:root {
  --page-bg: #faf9ff;

  --text-primary: #1e202b;
  --text-secondary: #252836;
  --text-muted: #2d303e;
  --brand-blue-top: #0055f2;
  --brand-blue-bottom: #0042d9;

  --navy-btn: #121328;
  --navy-btn-hover: #1a1c3a;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  line-height: 1.5;
  color: var(--text-primary);
  background-color: var(--page-bg);
  min-block-size: 100dvh;
  overflow-x: hidden;
  text-align: start;
  -webkit-font-smoothing: antialiased;
}

/* Full-bleed page stage matching refernce 1.webp */
.page-stage {
  position: relative;
  container-type: inline-size;
  container-name: page-stage;
  width: 100%;
  min-block-size: 100dvh;
  background-color: var(--page-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding-block-end: clamp(1.25rem, 3.2dvh, 2.25rem);
  overflow: hidden;
  isolation: isolate;
}

/* Subtle pastel mesh gradient backdrop */
.page-stage__mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}

.mesh-blob--pink {
  width: 28rem;
  height: 28rem;
  top: 2%;
  left: -8%;
  background: radial-gradient(circle, rgba(236, 188, 232, 0.55) 0%, rgba(236, 188, 232, 0) 72%);
}

.mesh-blob--sky {
  width: 32rem;
  height: 26rem;
  top: -8%;
  left: 6%;
  background: radial-gradient(circle, rgba(196, 218, 253, 0.55) 0%, rgba(196, 218, 253, 0) 72%);
}

.mesh-blob--periwinkle {
  width: 34rem;
  height: 28rem;
  bottom: 4%;
  right: 6%;
  background: radial-gradient(circle, rgba(212, 225, 254, 0.52) 0%, rgba(212, 225, 254, 0) 72%);
}

/* Top-center curved white header notch flush with top edge */
.brand-notch {
  position: relative;
  z-index: 3;
  width: clamp(16.5rem, 27cqi, 24.5rem);
  min-block-size: clamp(3.35rem, 5.8cqi, 5.15rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-inline: 2.75rem;
  padding-block: 0.55rem 0.7rem;
  filter: drop-shadow(0 6px 20px rgba(105, 114, 160, 0.08));
}

.brand-notch__curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
}

.brand-notch__logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.5rem;
  transition: opacity 0.2s ease;
}

.brand-notch__logo-link:hover {
  opacity: 0.9;
}

.brand-notch__logo-link:focus-visible {
  outline: 2px solid var(--brand-blue-top);
  outline-offset: 4px;
}

.brand-notch__logo {
  display: block;
  width: clamp(7.5rem, 13.5cqi, 11.25rem);
  height: auto;
  aspect-ratio: 640 / 97;
  object-fit: contain;
}

/* Center Stage Content */
.stage-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 50rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-inline: clamp(1.25rem, 4cqi, 2.5rem);
  padding-block: clamp(1rem, 2.5dvh, 2rem);
  text-align: center;
}

/* Multi-layered 3D Hero Cluster */
.hero-illustration {
  position: relative;
  width: clamp(16.5rem, 32cqi, 24.5rem);
  aspect-ratio: 572 / 354;
  margin-block-end: clamp(1.15rem, 2.8dvh, 2rem);
  user-select: none;
  cursor: pointer;
}

.hero-illustration__layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 572 / 354;
  object-fit: contain;
  pointer-events: none;
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-illustration__layer--pcbs {
  z-index: 2;
  filter: drop-shadow(0 12px 22px rgba(32, 40, 78, 0.11));
}

/* Main Center Phone Cycling Stage — centered and enlarged between the two PCBs */
.hero-main-phone-stage {
  position: absolute;
  left: 28.5%;
  top: 1.5%;
  width: 39.5%;
  height: 92%;
  z-index: 3;
  pointer-events: none;
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-main-phone-float {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 360 / 560;
  object-fit: contain;
  opacity: 0;
  rotate: -8deg;
  translate: 0 10px;
  filter: drop-shadow(0 16px 26px rgba(24, 32, 68, 0.18));
  transition:
    opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    rotate 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    translate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-phone-slide.is-active {
  opacity: 1;
  rotate: 0deg;
  translate: 0 0;
}

.hero-phone-slide.is-exiting {
  opacity: 0;
  rotate: 8deg;
  translate: 0 -10px;
}

.hero-illustration__layer--tools {
  z-index: 4;
  filter: drop-shadow(0 10px 18px rgba(32, 40, 78, 0.1));
}

.hero-illustration__layer--gears {
  z-index: 1;
  filter: drop-shadow(0 8px 14px rgba(32, 40, 78, 0.09));
}

/* Copy Block */
.copy-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 42rem;
}

.copy-block__eyebrow {
  font-size: clamp(0.75rem, 0.68rem + 0.32vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-block-end: clamp(0.4rem, 1.1dvh, 0.75rem);
}

.copy-block__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 1.1rem + 3.1vw, 3.65rem);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.022em;
  text-wrap: balance;
  background: linear-gradient(180deg, var(--brand-blue-top) 0%, var(--brand-blue-bottom) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--brand-blue-bottom);
  -webkit-text-fill-color: transparent;
  margin-block-end: clamp(0.95rem, 2.4dvh, 1.5rem);
}

.copy-block__subtitle {
  font-size: clamp(0.95rem, 0.85rem + 0.42vw, 1.1875rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 58ch;
  text-wrap: pretty;
  overflow-wrap: break-word;
}

.copy-block__stay-tuned {
  font-size: clamp(0.75rem, 0.68rem + 0.25vw, 0.875rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--text-primary);
  margin-block-start: clamp(0.45rem, 1.2dvh, 0.75rem);
}

/* Primary CTA Button: Follow us on Instagram */
.cta-wrapper {
  margin-block-start: clamp(1.5rem, 4dvh, 2.6rem);
}

.cta-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  min-block-size: 3.85rem;
  padding: 0.5rem 1.55rem 0.5rem 0.55rem;
  background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 999rem;
  box-shadow:
    0 22px 38px -10px rgba(220, 39, 67, 0.38),
    0 6px 14px -4px rgba(188, 24, 136, 0.24);
  transition:
    filter 0.22s ease,
    box-shadow 0.25s ease,
    scale 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.cta-instagram:hover {
  filter: brightness(1.05);
  box-shadow:
    0 26px 44px -10px rgba(220, 39, 67, 0.46),
    0 8px 18px -4px rgba(188, 24, 136, 0.3);
  scale: 1.02;
}

.cta-instagram:active {
  scale: 0.99;
}

.cta-instagram:focus-visible {
  outline: 3px solid #dc2743;
  outline-offset: 4px;
}

.cta-instagram__icon-circle {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background-color: #ffffff;
  color: #d62458;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cta-instagram__label {
  font-size: clamp(0.875rem, 0.82rem + 0.22vw, 1rem);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.cta-instagram__chevron {
  flex-shrink: 0;
  opacity: 0.9;
  transition: translate 0.2s ease;
}

.cta-instagram:hover .cta-instagram__chevron {
  translate: 3px 0;
}

/* Bottom Social Pills & Copyright Footer */
.stage-bottom {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.85rem, 2dvh, 1.25rem);
  padding-inline: 1rem;
}

.social-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-block-size: 2.75rem;
  padding: 0.45rem 1.2rem 0.45rem 0.9rem;
  background-color: #ffffff;
  color: var(--text-primary);
  text-decoration: none;
  border-radius: 999rem;
  box-shadow:
    0 8px 22px -4px rgba(84, 94, 142, 0.14),
    0 2px 6px rgba(84, 94, 142, 0.06);
  transition:
    background-color 0.2s ease,
    box-shadow 0.22s ease,
    translate 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-pill:hover {
  background-color: #fcfcff;
  box-shadow:
    0 12px 26px -4px rgba(84, 94, 142, 0.2),
    0 4px 8px rgba(84, 94, 142, 0.08);
  translate: 0 -2px;
}

.social-pill:active {
  translate: 0 0;
}

.social-pill:focus-visible {
  outline: 2px solid var(--brand-blue-top);
  outline-offset: 3px;
}

.social-pill__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-pill__icon--whatsapp {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #43d854 0%, #2cb742 100%);
  color: #ffffff;
  margin-inline-start: -0.25rem;
}

.social-pill__text {
  font-size: clamp(0.8125rem, 0.78rem + 0.15vw, 0.9rem);
  font-weight: 500;
  color: var(--text-primary);
}

.stage-bottom__copy {
  font-size: clamp(0.75rem, 0.7rem + 0.15vw, 0.85rem);
  font-weight: 400;
  color: var(--text-muted);
}

/* Floating 3D Icons on Either Side */
.side-float-group {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  will-change: transform;
  translate: var(--px, 0px) var(--py, 0px);
  transition: translate 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.float-item__img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  will-change: transform;
  filter: drop-shadow(0 12px 18px rgba(45, 52, 88, 0.13));
}

/* Desktop positions matching reference proportions on the full-bleed canvas */
.float-item--left-screw {
  left: 13.5%;
  top: 63.5%;
  width: clamp(2rem, 3.5cqi, 2.75rem);
  aspect-ratio: 77 / 83;
}

.float-item--left-ring {
  left: 9.8%;
  top: 76.5%;
  width: clamp(2rem, 3.6cqi, 2.75rem);
  aspect-ratio: 78 / 56;
}

.float-item--left-gear {
  left: 21.5%;
  top: 72.5%;
  width: clamp(2.25rem, 4cqi, 3.1rem);
  aspect-ratio: 87 / 88;
}

.float-item--right-screw {
  right: 11%;
  top: 59%;
  width: clamp(1.6rem, 2.75cqi, 2.15rem);
  aspect-ratio: 60 / 68;
}

.float-item--right-screwdriver {
  right: 15.8%;
  top: 68.5%;
  width: clamp(3rem, 5.5cqi, 4.35rem);
  aspect-ratio: 107 / 117;
}

.float-item--right-nut {
  right: 10.6%;
  top: 78%;
  width: clamp(1.1rem, 1.85cqi, 1.45rem);
  aspect-ratio: 39 / 38;
}

/* Motion Animations — opt-in via prefers-reduced-motion: no-preference */
@media (prefers-reduced-motion: no-preference) {
  .hero-illustration__layer--pcbs,
  .hero-main-phone-float {
    animation: floatHeroMain 5.8s ease-in-out infinite;
  }

  .hero-illustration__layer--tools {
    animation: floatHeroTools 6.6s ease-in-out infinite;
  }

  .hero-illustration__layer--gears {
    animation: floatHeroGears 4.9s ease-in-out infinite;
  }

  .float-item--left-screw .float-item__img {
    animation: floatLeftScrew 5.2s ease-in-out infinite;
  }

  .float-item--left-ring .float-item__img {
    animation: floatLeftRing 6.4s ease-in-out infinite -1.4s;
  }

  .float-item--left-gear .float-item__img {
    animation: floatLeftGear 7.2s ease-in-out infinite -2.6s;
  }

  .float-item--right-screw .float-item__img {
    animation: floatRightScrew 5.6s ease-in-out infinite -0.9s;
  }

  .float-item--right-screwdriver .float-item__img {
    animation: floatRightScrewdriver 6.8s ease-in-out infinite -2.1s;
  }

  .float-item--right-nut .float-item__img {
    animation: floatRightNut 4.7s ease-in-out infinite -1.7s;
  }
}

@keyframes floatHeroMain {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -7px;
  }
}

@keyframes floatHeroTools {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 3px -11px;
    rotate: 1.6deg;
  }
}

@keyframes floatHeroGears {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: -3px -5px;
    rotate: -1.8deg;
  }
}

@keyframes floatLeftScrew {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: -5px -13px;
    rotate: -9deg;
  }
}

@keyframes floatLeftRing {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 6px -10px;
    rotate: 11deg;
  }
}

@keyframes floatLeftGear {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: -4px -15px;
    rotate: 22deg;
  }
}

@keyframes floatRightScrew {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 5px -12px;
    rotate: 10deg;
  }
}

@keyframes floatRightScrewdriver {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: -6px -16px;
    rotate: -10deg;
  }
}

@keyframes floatRightNut {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 4px -10px;
    rotate: -16deg;
  }
}

/* Container queries for Tablet and Mobile responsiveness */
@container page-stage (max-width: 54rem) {
  .float-item--left-screw {
    left: 7%;
    top: 62%;
  }

  .float-item--left-ring {
    left: 5%;
    top: 77%;
  }

  .float-item--left-gear {
    left: 14.5%;
    top: 72.5%;
  }

  .float-item--right-screw {
    right: 6.5%;
    top: 58.5%;
  }

  .float-item--right-screwdriver {
    right: 9.5%;
    top: 68.5%;
  }

  .float-item--right-nut {
    right: 5.5%;
    top: 78.5%;
  }
}

@container page-stage (max-width: 36rem) {
  .brand-notch {
    width: 15.5rem;
    min-block-size: 3.25rem;
    padding-inline: 2rem;
  }

  .hero-illustration {
    width: min(86cqi, 19rem);
    margin-block-end: 1.2rem;
  }

  .cta-wrapper {
    margin-block-start: 1.5rem;
  }

  .cta-instagram {
    min-block-size: 3.45rem;
    padding: 0.42rem 1.25rem 0.42rem 0.48rem;
    gap: 0.7rem;
  }

  .cta-instagram__icon-circle {
    width: 2.45rem;
    height: 2.45rem;
  }

  /* Keep all 6 floating icons visible on either side on mobile without overlapping text/buttons */
  .float-item--left-screw {
    left: 5%;
    top: 20%;
    width: 1.85rem;
  }

  .float-item--left-ring {
    left: 4.5%;
    top: 74%;
    width: 1.8rem;
  }

  .float-item--left-gear {
    left: 8%;
    top: 64.5%;
    width: 2rem;
  }

  .float-item--right-screw {
    right: 5.5%;
    top: 19%;
    width: 1.5rem;
  }

  .float-item--right-screwdriver {
    right: 5%;
    top: 65%;
    width: 2.6rem;
  }

  .float-item--right-nut {
    right: 6.5%;
    top: 75.5%;
    width: 1.05rem;
  }

  .social-pills {
    gap: 0.65rem;
  }

  .social-pill {
    min-block-size: 2.5rem;
    padding: 0.38rem 0.95rem 0.38rem 0.75rem;
  }
}
