:root {
  /* Surfaces & Backgrounds */
  --bg: #ffffff;
  --surface-gray: #f5f7fb;
  --surface-gray-hover: #eef1f8;
  --surface-white: #ffffff;

  /* Text Hierarchy */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Brand & Feature Accent Palette */
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-soft: #eef2ff;
  --hero-gradient: linear-gradient(180deg, #1e40af 0%, #2563eb 38%, #3b82f6 74%, #60a5fa 100%);

  --accent-indigo: #4f46e5;
  --accent-indigo-soft: #eef2ff;
  --accent-amber: #d97706;
  --accent-amber-soft: #fef3c7;
  --accent-emerald: #059669;
  --accent-emerald-soft: #d1fae5;
  --accent-purple: #7c3aed;
  --accent-purple-soft: #f3e8ff;
  --accent-rose: #e11d48;
  --accent-rose-soft: #ffe4e6;
  --accent-sky: #0284c7;
  --accent-sky-soft: #e0f2fe;

  /* Typography Scale */
  --text-h1: clamp(2.35rem, 4.8vw, 3.6rem);
  --text-h2: clamp(1.85rem, 3.4vw, 2.55rem);
  --text-h3: clamp(1.4rem, 2.2vw, 1.75rem);
  --text-body: 1rem;
  --text-sm: 0.875rem;
  --text-xs: 0.75rem;

  /* Radii & Layout Grid */
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --container-max: 1180px;
  --wrapper-max: 1212px;
}

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

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text-primary);
  font-size: var(--text-body);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  color: inherit;
}

.container {
  width: 92%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* =========================================
   SCROLL REVEAL & FLOATING ANIMATIONS
   ========================================= */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@keyframes floatSlow {
  0%, 100% {
    transform: translate3d(calc((1 - var(--pack-progress, 0)) * var(--stack-x, 0px)), 0, 0) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(calc((1 - var(--pack-progress, 0)) * var(--stack-x, 0px)), -12px, 0) rotate(var(--rot, 0deg));
  }
}

/* =========================================
   SECTION HEADER PATTERN (Centered Eyebrow + Title)
   ========================================= */
.section-header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
}

.eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

.eyebrow-tag::before,
.eyebrow-tag::after {
  content: "";
  width: 18px;
  height: 1.5px;
  background: currentColor;
  opacity: 0.5;
}

.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.section-subtitle {
  margin-top: 12px;
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* =========================================
   1. FRAMED GRADIENT HERO CONTAINER
   ========================================= */
.hero-wrapper {
  padding: 16px 16px 0;
  max-width: 1320px;
  margin: 0 auto;
}

.hero-box {
  position: relative;
  background: var(--hero-gradient);
  border-radius: var(--radius-xl);
  padding: 24px 48px 0;
  color: #ffffff;
  overflow: hidden;
}

/* Subtle Soft Sky Glow at Bottom of Hero (No White Washout) */
.hero-clouds {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -80px;
  height: 260px;
  background:
    radial-gradient(circle at 20% 85%, rgba(147, 197, 253, 0.28) 0%, transparent 55%),
    radial-gradient(circle at 50% 90%, rgba(191, 219, 254, 0.32) 0%, transparent 60%),
    radial-gradient(circle at 80% 85%, rgba(147, 197, 253, 0.28) 0%, transparent 55%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 1;
}

/* Sticky/Fixed Blurred Navbar */
.hero-navbar-spacer {
  height: 56px;
}

.hero-navbar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - 64px);
  max-width: var(--container-max);
  height: 60px;
  padding: 0 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition:
    top 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    background-color 0.3s ease,
    backdrop-filter 0.3s ease,
    -webkit-backdrop-filter 0.3s ease;
}

.hero-navbar.is-scrolled {
  top: 14px;
  background: rgba(30, 64, 175, 0.58);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.hero-navbar.is-scrolled.on-light {
  background: rgba(241, 245, 249, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  color: #ffffff;
  transition: color 0.25s ease;
}

.hero-navbar.on-light .hero-brand {
  color: var(--text-primary);
}

.hero-brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  transition: background-color 0.25s ease;
}

.hero-navbar.on-light .hero-brand-icon {
  background: var(--brand);
}

.hero-brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hero-nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  transition: color 0.2s ease, opacity 0.2s ease;
}

.hero-nav-links a:hover {
  color: #ffffff;
}

.hero-navbar.on-light .hero-nav-links a {
  color: var(--text-secondary);
}

.hero-navbar.on-light .hero-nav-links a:hover {
  color: var(--brand);
}

.hero-navbar.on-light .btn-white {
  background: var(--brand);
  color: #ffffff;
}

.hero-navbar.on-light .btn-white .btn-play-icon {
  filter: brightness(0) invert(1);
}

.hero-navbar.on-light .btn-white:hover {
  background: var(--brand-hover);
}

/* Pill Buttons */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 500;
  font-size: var(--text-sm);
  line-height: 1.2;
  padding: 11px 22px;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.22s ease;
  white-space: nowrap;
}

.btn-pill svg,
.btn-play-icon {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
  transition: filter 0.22s ease;
}

.btn-pill:hover {
  transform: translateY(-2px);
}

.btn-white {
  background: #ffffff;
  color: var(--text-primary);
}

.btn-white:hover {
  background: #f8fafc;
}

.btn-glass {
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #ffffff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.26);
}

/* Hero Copy */
.hero-copy {
  position: relative;
  z-index: 5;
  text-align: center;
  max-width: 640px;
  margin: 36px auto 44px;
}

.hero-eyebrow {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 12px;
}

.hero-headline {
  font-size: var(--text-h1);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #ffffff;
}

.hero-sub {
  margin: 14px auto 28px;
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.88);
  max-width: 520px;
  line-height: 1.65;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero 5-Card Stage + Scroll-Expanding Card Pack */
.hero-cards-stage {
  --pack-progress: 0;
  position: relative;
  z-index: 5;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-bottom: 36px;
}

.hero-three-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: end;
}

.hero-screen-card {
  position: relative;
  background: transparent;
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
  transform-origin: center bottom;
}

/* Card 1 (Far Left): Tucked deepest on left behind center on load, expands far left on scroll */
.hero-screen-card:nth-child(1) {
  z-index: 2;
  transform:
    translate(
      calc((1 - var(--pack-progress, 0)) * 184%),
      calc((1 - var(--pack-progress, 0)) * 22px)
    )
    rotate(calc((1 - var(--pack-progress, 0)) * -14deg));
}

/* Card 2 (Inner Left): Stacked & fanned behind center on load, expands inner left on scroll */
.hero-screen-card:nth-child(2) {
  z-index: 4;
  transform:
    translate(
      calc((1 - var(--pack-progress, 0)) * 92%),
      calc((1 - var(--pack-progress, 0)) * 10px)
    )
    rotate(calc((1 - var(--pack-progress, 0)) * -7deg));
}

/* Card 3 (Center): Top of the 5-card pack */
.hero-screen-card:nth-child(3) {
  z-index: 5;
  transform: translate(0, calc((1 - var(--pack-progress, 0)) * -6px));
}

/* Card 4 (Inner Right): Stacked & fanned behind center on load, expands inner right on scroll */
.hero-screen-card:nth-child(4) {
  z-index: 3;
  transform:
    translate(
      calc((1 - var(--pack-progress, 0)) * -92%),
      calc((1 - var(--pack-progress, 0)) * 10px)
    )
    rotate(calc((1 - var(--pack-progress, 0)) * 7deg));
}

/* Card 5 (Far Right): Tucked deepest on right behind center on load, expands far right on scroll */
.hero-screen-card:nth-child(5) {
  z-index: 1;
  transform:
    translate(
      calc((1 - var(--pack-progress, 0)) * -184%),
      calc((1 - var(--pack-progress, 0)) * 22px)
    )
    rotate(calc((1 - var(--pack-progress, 0)) * 14deg));
}

.hero-screen-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* 8 Floating Brand Icons Scattered Organically Around the Hero Screenshots */
.hero-stage-icon {
  position: absolute;
  z-index: 14;
  width: 54px;
  height: 54px;
  object-fit: contain;
  user-select: none;
  pointer-events: none;
  animation: floatSlow 5s ease-in-out infinite;
  will-change: transform;
}

/* 1. Upper-left floating out from Card 1 (Habits) */
.icon-stage-1 {
  top: -22px;
  left: -32px;
  width: 58px;
  height: 58px;
  --rot: -12deg;
  --stack-x: 210px;
  animation-duration: 5.4s;
  animation-delay: -0.5s;
}

/* 2. Floating above Left-Center seam at an offset height (Tasks) */
.icon-stage-2 {
  top: -34px;
  left: 25%;
  width: 50px;
  height: 50px;
  --rot: 9deg;
  --stack-x: 75px;
  animation-duration: 6.2s;
  animation-delay: -1.9s;
}

/* 3. Tucked lower into the Center-Right seam (Stats) */
.icon-stage-3 {
  top: 15%;
  right: 30%;
  width: 52px;
  height: 52px;
  --rot: -8deg;
  --stack-x: -65px;
  animation-duration: 5.7s;
  animation-delay: -3.1s;
}

/* 4. High upper-right above Card 3 (Countdowns) */
.icon-stage-4 {
  top: -30px;
  right: -20px;
  width: 56px;
  height: 56px;
  --rot: 11deg;
  --stack-x: -210px;
  animation-duration: 4.8s;
  animation-delay: -1.2s;
}

/* 5. Mid-upper left overlapping Card 1 edge (Notes) */
.icon-stage-5 {
  top: 31%;
  left: -26px;
  width: 52px;
  height: 52px;
  --rot: 7deg;
  --stack-x: 220px;
  animation-duration: 6.4s;
  animation-delay: -3.8s;
}

/* 6. Mid-lower right drifting further out from Card 3 (Themes) */
.icon-stage-6 {
  top: 47%;
  right: -38px;
  width: 60px;
  height: 60px;
  --rot: -10deg;
  --stack-x: -225px;
  animation-duration: 5.9s;
  animation-delay: -2.4s;
}

/* 7. Lower-left near bottom of Card 1 (Folders) */
.icon-stage-7 {
  bottom: 82px;
  left: -36px;
  width: 56px;
  height: 56px;
  --rot: -9deg;
  --stack-x: 215px;
  animation-duration: 5.1s;
  animation-delay: -4.3s;
}

/* 8. Bottom-right overlapping lower corner of Card 3 (Journal Lock) */
.icon-stage-8 {
  bottom: 36px;
  right: -24px;
  width: 54px;
  height: 54px;
  --rot: 8deg;
  --stack-x: -210px;
  animation-duration: 5.5s;
  animation-delay: -2.7s;
}

/* =========================================
   2. WHY PEOPLE CHOOSE HABITOME (Scroll-Spinning Circular Orbit)
   ========================================= */
.why-section {
  padding: 80px 0 40px;
  overflow: hidden;
}

.why-section .section-header {
  margin-bottom: 24px;
}

.why-orbit-stage {
  --orbit-deg: 0;
  --orbit-radius: 238px;
  position: relative;
  width: 676px;
  height: 676px;
  max-width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Soft Concentric Background Rings (No Borders or Shadows) */
.why-orbit-ring-outer {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 63%, rgba(37, 99, 235, 0.055) 64%, rgba(37, 99, 235, 0.055) 66%, transparent 67%);
  pointer-events: none;
}

.why-orbit-ring-inner {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.015) 68%, transparent 70%);
  pointer-events: none;
}

/* Central Habitome Hub Circle */
.why-orbit-hub {
  position: relative;
  z-index: 3;
  width: 134px;
  height: 134px;
  border-radius: 50%;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  user-select: none;
}

.why-orbit-hub img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Spinning Wheel Container */
.why-orbit-wheel {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  transform: rotate(calc(var(--orbit-deg, 0) * 1deg));
}

/* 6 Circular Feature Nodes that Orbit & Counter-Rotate to Stay Upright */
.why-circle-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  height: 190px;
  margin-top: -95px;
  margin-left: -95px;
  border-radius: 50%;
  background: var(--surface-gray);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: auto;
  transform:
    rotate(var(--node-angle, 0deg))
    translateY(calc(-1 * var(--orbit-radius, 238px)))
    rotate(calc(-1 * var(--node-angle, 0deg) - var(--orbit-deg, 0) * 1deg));
}

.why-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.why-circle-node:nth-child(1) .why-icon {
  background: var(--accent-indigo);
}

.why-circle-node:nth-child(2) .why-icon {
  background: var(--accent-amber);
}

.why-circle-node:nth-child(3) .why-icon {
  background: var(--accent-emerald);
}

.why-circle-node:nth-child(4) .why-icon {
  background: var(--accent-purple);
}

.why-circle-node:nth-child(5) .why-icon {
  background: var(--accent-rose);
}

.why-circle-node:nth-child(6) .why-icon {
  background: var(--accent-sky);
}

.why-icon svg {
  width: 19px;
  height: 19px;
}

.why-circle-node h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 5px;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.why-circle-node p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.45;
  max-width: 152px;
}

/* =========================================
   4. POWERFUL FEATURES (Spacious Alternating Showcase)
   ========================================= */
.features-bento-section {
  padding: 40px 0 80px;
}

.features-rows {
  display: flex;
  flex-direction: column;
  gap: 72px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: center;
  gap: 64px;
}

.feature-row-reverse {
  grid-template-columns: 0.88fr 1.12fr;
}

.feature-row-reverse .feature-row-visual {
  order: 2;
}

.feature-row-reverse .feature-row-copy {
  order: 1;
}

.feature-row-visual {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-gray);
}

.feature-row-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-row:hover .feature-row-visual img {
  transform: scale(1.025);
}

.feature-row-copy {
  max-width: 460px;
}

.feature-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}

.tag-indigo {
  background: var(--accent-indigo-soft);
  color: var(--accent-indigo);
}

.tag-amber {
  background: var(--accent-amber-soft);
  color: var(--accent-amber);
}

.tag-emerald {
  background: var(--accent-emerald-soft);
  color: var(--accent-emerald);
}

.tag-purple {
  background: var(--accent-purple-soft);
  color: var(--accent-purple);
}

.tag-rose {
  background: var(--accent-rose-soft);
  color: var(--accent-rose);
}

.tag-sky {
  background: var(--accent-sky-soft);
  color: var(--accent-sky);
}

.feature-row-copy h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.22;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.feature-row-copy p {
  font-size: var(--text-body);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-points li {
  position: relative;
  padding-left: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.55;
}

.feature-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand);
}

/* =========================================
   6. FRAMED GRADIENT BOTTOM CTA BANNER
   ========================================= */
.cta-wrapper {
  padding: 0 16px;
  max-width: var(--wrapper-max);
  margin: 0 auto 20px;
}

.cta-box {
  position: relative;
  background: var(--hero-gradient);
  border-radius: var(--radius-xl);
  padding: 64px 32px;
  text-align: center;
  color: #ffffff;
  overflow: hidden;
}

.cta-box-content {
  position: relative;
  z-index: 5;
  max-width: 580px;
  margin: 0 auto;
}

.cta-icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px;
  margin-bottom: 20px;
}

.cta-icon-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cta-box h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.cta-box p {
  margin: 14px auto 28px;
  font-size: var(--text-body);
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.65;
}

/* =========================================
   7. FOOTER
   ========================================= */
.site-footer {
  background: var(--bg);
  overflow: hidden;
}

.footer-wrapper {
  padding: 0 16px 24px;
  max-width: var(--wrapper-max);
  margin: 0 auto;
}

.footer-box {
  background: var(--surface-gray);
  border-radius: var(--radius-xl);
  padding: 44px 48px 28px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
}

.footer-brand-col {
  max-width: 360px;
}

.footer-logo-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.footer-logo-row img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.footer-socials {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--surface-white);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.footer-social-pill:hover {
  background: var(--brand);
  color: #ffffff;
  transform: translateY(-1px);
}

.footer-social-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, auto));
  gap: 64px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-divider {
  height: 1px;
  background: rgba(15, 23, 42, 0.07);
  margin: 32px 0 20px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.footer-dev-link {
  color: var(--text-primary);
  font-weight: 500;
  transition: color 0.2s ease;
}

.footer-dev-link:hover {
  color: var(--brand);
}

.footer-status {
  color: var(--text-secondary);
  font-weight: 500;
}

/* =========================================
   RESPONSIVE BREAKPOINTS
   ========================================= */
@media (max-width: 1024px) {
  .footer-box {
    padding: 36px 32px 24px;
  }

  .footer-top {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand-col {
    max-width: 440px;
  }

  .footer-nav-grid {
    width: 100%;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .hero-box {
    padding: 22px 32px 0;
  }

  .hero-stage-icon {
    width: 44px;
    height: 44px;
  }

  .icon-stage-5,
  .icon-stage-6 {
    display: none;
  }

  .why-orbit-stage {
    --orbit-radius: 220px;
    width: 636px;
    height: 636px;
  }

  .why-circle-node {
    width: 184px;
    height: 184px;
    margin-top: -92px;
    margin-left: -92px;
    padding: 18px 16px;
  }

  .why-circle-node h3 {
    font-size: 0.95rem;
  }

  .why-circle-node p {
    font-size: 0.78rem;
  }

  .features-rows {
    gap: 56px;
  }

  .feature-row,
  .feature-row-reverse {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    width: 90%;
  }

  .section-header {
    margin: 0 auto 28px;
  }

  .eyebrow-tag {
    font-size: 0.7rem;
    gap: 8px;
    margin-bottom: 10px;
  }

  .section-title {
    font-size: clamp(1.6rem, 6.2vw, 2.05rem);
    line-height: 1.2;
  }

  .section-subtitle {
    font-size: 0.92rem;
    margin-top: 10px;
  }

  /* Hero Mobile */
  .hero-wrapper {
    padding: 10px 10px 0;
  }

  .hero-box {
    border-radius: 24px;
    padding: 14px 18px 0;
  }

  .hero-navbar-spacer {
    height: 48px;
  }

  .hero-navbar {
    top: 16px;
    width: calc(100% - 36px);
    height: 52px;
    padding: 0 12px;
  }

  .hero-navbar.is-scrolled {
    top: 10px;
  }

  .hero-brand {
    font-size: 1rem;
    gap: 8px;
  }

  .hero-brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    padding: 5px;
  }

  .hero-navbar .btn-pill {
    padding: 8px 15px;
    font-size: 0.8rem;
    gap: 6px;
  }

  .hero-navbar .btn-play-icon {
    width: 13px;
    height: 13px;
  }

  .hero-nav-links {
    display: none;
  }

  .hero-copy {
    margin: 20px auto 28px;
  }

  .hero-headline {
    font-size: clamp(1.8rem, 7.2vw, 2.3rem);
    line-height: 1.15;
  }

  .hero-sub {
    margin: 12px auto 22px;
    font-size: 0.92rem;
    max-width: 320px;
    line-height: 1.58;
  }

  .hero-stage-icon {
    display: none;
  }

  .hero-cards-stage {
    padding-bottom: 24px;
  }

  .hero-three-grid {
    position: relative;
    display: block;
    width: 46%;
    max-width: 164px;
    min-width: 138px;
    margin: 0 auto;
  }

  .hero-screen-card,
  .hero-screen-card img {
    border-radius: 14px;
  }

  .hero-screen-card:nth-child(1),
  .hero-screen-card:nth-child(2),
  .hero-screen-card:nth-child(4),
  .hero-screen-card:nth-child(5) {
    position: absolute;
    inset: 0;
  }

  .hero-screen-card:nth-child(1) {
    transform:
      translate(
        calc(-8% - var(--pack-progress, 0) * 34%),
        calc(6px + var(--pack-progress, 0) * 8px)
      )
      rotate(calc(-4deg - var(--pack-progress, 0) * 9deg));
  }

  .hero-screen-card:nth-child(2) {
    transform:
      translate(
        calc(-4% - var(--pack-progress, 0) * 17%),
        calc(3px + var(--pack-progress, 0) * 4px)
      )
      rotate(calc(-2deg - var(--pack-progress, 0) * 4.5deg));
  }

  .hero-screen-card:nth-child(3) {
    position: relative;
    transform: translate(0, calc((1 - var(--pack-progress, 0)) * -3px));
  }

  .hero-screen-card:nth-child(4) {
    transform:
      translate(
        calc(4% + var(--pack-progress, 0) * 17%),
        calc(3px + var(--pack-progress, 0) * 4px)
      )
      rotate(calc(2deg + var(--pack-progress, 0) * 4.5deg));
  }

  .hero-screen-card:nth-child(5) {
    transform:
      translate(
        calc(8% + var(--pack-progress, 0) * 34%),
        calc(6px + var(--pack-progress, 0) * 8px)
      )
      rotate(calc(4deg + var(--pack-progress, 0) * 9deg));
  }

  /* Orbit Mobile */
  .why-section {
    padding: 48px 0 24px;
  }

  .why-section .section-header {
    margin-bottom: 16px;
  }

  .why-orbit-stage {
    --orbit-radius: 108px;
    width: 312px;
    height: 312px;
  }

  .why-orbit-ring-outer {
    width: 224px;
    height: 224px;
  }

  .why-orbit-ring-inner {
    width: 144px;
    height: 144px;
  }

  .why-orbit-hub {
    width: 72px;
    height: 72px;
    padding: 18px;
  }

  .why-circle-node {
    width: 92px;
    height: 92px;
    margin-top: -46px;
    margin-left: -46px;
    padding: 8px;
  }

  .why-icon {
    width: 26px;
    height: 26px;
    margin-bottom: 4px;
  }

  .why-icon svg {
    width: 13px;
    height: 13px;
  }

  .why-circle-node h3 {
    font-size: 0.68rem;
    line-height: 1.15;
    margin-bottom: 0;
    max-width: 76px;
  }

  .why-circle-node p {
    display: none;
  }

  /* Features Mobile */
  .features-bento-section {
    padding: 24px 0 48px;
  }

  .features-rows {
    gap: 40px;
  }

  .feature-row,
  .feature-row-reverse {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .feature-row-reverse .feature-row-visual {
    order: 1;
  }

  .feature-row-reverse .feature-row-copy {
    order: 2;
  }

  .feature-row-visual,
  .feature-row-visual img {
    border-radius: 18px;
  }

  .feature-row-copy {
    max-width: 100%;
  }

  .feature-tag {
    padding: 5px 12px;
    font-size: 0.72rem;
    margin-bottom: 10px;
  }

  .feature-row-copy h3 {
    font-size: 1.32rem;
    margin-bottom: 8px;
  }

  .feature-row-copy p {
    font-size: 0.92rem;
    line-height: 1.58;
    margin-bottom: 14px;
  }

  .feature-points {
    gap: 8px;
  }

  .feature-points li {
    font-size: 0.85rem;
    padding-left: 18px;
  }

  .feature-points li::before {
    top: 7px;
    width: 6px;
    height: 6px;
  }

  /* CTA Box Mobile */
  .cta-wrapper {
    padding: 0 10px;
    margin: 0 auto 14px;
  }

  .cta-box {
    border-radius: 24px;
    padding: 40px 20px 44px;
  }

  .cta-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    padding: 9px;
    margin-bottom: 16px;
  }

  .cta-box h2 {
    font-size: clamp(1.6rem, 6.2vw, 2.05rem);
    line-height: 1.2;
  }

  .cta-box p {
    font-size: 0.92rem;
    margin: 12px auto 22px;
    line-height: 1.58;
  }

  /* Footer Mobile */
  .footer-wrapper {
    padding: 0 10px 18px;
  }

  .footer-box {
    border-radius: 24px;
    padding: 28px 20px 22px;
  }

  .footer-top {
    align-items: center;
    gap: 26px;
  }

  .footer-brand-col {
    text-align: center;
    max-width: 340px;
    margin: 0 auto;
  }

  .footer-tagline {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .footer-socials {
    justify-content: center;
  }

  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    text-align: center;
  }

  .footer-col h4 {
    margin-bottom: 10px;
  }

  .footer-col ul {
    gap: 8px;
  }

  .footer-col a {
    font-size: 0.84rem;
  }

  .footer-divider {
    margin: 24px 0 16px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .hero-cta-row {
    flex-direction: column;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    gap: 10px;
  }

  .hero-cta-row .btn-pill {
    width: 100%;
    padding: 11px 20px;
  }
}
