body.homepage {
  --text: var(--text-primary);
  --text-2: var(--text-secondary);
  --text-3: var(--text-tertiary);
  --text-4: var(--text-disabled);
  --border: var(--border-light);
  font-family: var(--font-sans);
  background:
    radial-gradient(900px 600px at 15% -10%, var(--surface) 0%, transparent 60%),
    radial-gradient(800px 600px at 80% 10%, var(--surface) 0%, transparent 55%),
    var(--bg-white);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.homepage .navbar {
  transform: translateX(var(--navbar-translate-x)) translateY(0);
}

/* ── Theme Buttons ── */
.btn--coren { background-color: var(--coral) !important; border-color: var(--coral) !important; color: white !important; }
.btn--coren:hover { background-color: var(--coral-dark) !important; transform: translateY(-2px); }

.btn--leda { background-color: var(--mint-saturated) !important; border-color: var(--mint-saturated) !important; color: white !important; }
.btn--leda:hover { background-color: var(--mint-dark) !important; transform: translateY(-2px); }

.btn--sky { background-color: var(--sky-dark) !important; border-color: var(--sky-dark) !important; color: white !important; }
.btn--sky:hover { background-color: #3e9ac7 !important; transform: translateY(-2px); }

/* ── Hero intro animation ── */
@keyframes customFadeIn {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

@keyframes customFadeInUp {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

body.homepage .navbar,
body.homepage #orbiterCanvas,
body.homepage .hero-sphere-heading {
  opacity: 0;
  pointer-events: none; /* Initially ignore clicks during delay */
  transition: none !important; /* Disable transitions that might interfere with initial state */
}

body.homepage .navbar {
  animation: customFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.52s forwards;
  pointer-events: auto;
}

body.homepage #orbiterCanvas {
  animation: customFadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) 2.52s forwards;
}

body.homepage .hero-sphere-heading {
  transform: translateY(20px);
  animation: customFadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) 2.52s forwards;
}

.homepage a:focus-visible, .homepage button:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: 3px;
    border-radius: 6px;
    box-shadow: 0 0 0 3px var(--surface-overlay-strong), 0 6px 18px var(--shadow-color-strong);
  }

  .homepage .rv { opacity: 0; transform: translateY(16px); will-change: opacity, transform; transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
  .homepage .rv.vis { opacity: 1; transform: translateY(0); }
  .homepage .rv-d1 { transition-delay: 0.1s }
  .homepage .rv-d2 { transition-delay: 0.2s }

  .homepage .skip-link {
    position: absolute; top: -100px; left: 16px; background: var(--text); color: var(--surface);
    padding: 8px 16px; border-radius: 6px; font-size: 12px; font-weight: 600; text-decoration: none; z-index: 1000;
  }
  .homepage .skip-link:focus { top: 16px; box-shadow: 0 0 0 3px var(--surface), 0 6px 18px var(--shadow-color-strong); }

  .homepage .btn { text-decoration: none; }
  .homepage .homepage-hero-btn { gap: 6px; }
  .homepage .homepage-hero-btn--dark {
    --brand-accent: var(--text);
    --brand-accent-strong: color-mix(in srgb, var(--text) 88%, black);
    color: var(--surface);
  }
  .homepage .homepage-hero-btn--dark:hover { color: var(--surface); }
  .homepage .homepage-hero-btn.btn--secondary {
    background: var(--bg-white);
    border: 1.5px solid var(--border);
    color: var(--text);
  }
  .homepage .homepage-hero-btn.btn--secondary:hover {
    border-color: var(--text);
    background: var(--surface);
  }
  .homepage .btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
  .homepage .label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
  .homepage .placeholder { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }

  .homepage .product-layout {
    border-radius: 24px;
    padding: 32px;
    background: transparent;
  }

  .homepage .obsolete-inner,
  .homepage .about-inner {
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 32px;
  }

  /* ═══════════ HERO ═══════════ */
  .homepage .hero--ecosystem {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: max(100svh, 760px);
    overflow: hidden;
    background:
      radial-gradient(circle at 50% 46%, rgba(255, 166, 129, 0.16) 0%, rgba(255, 166, 129, 0) 28%),
      radial-gradient(circle at 20% 14%, rgba(193, 219, 141, 0.16) 0%, rgba(193, 219, 141, 0) 32%),
      radial-gradient(circle at 80% 18%, rgba(169, 226, 255, 0.18) 0%, rgba(169, 226, 255, 0) 34%),
      var(--bg-white);
  }

  .homepage .hero--ecosystem::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(250, 250, 250, 0.12) 0%, rgba(250, 250, 250, 0) 16%),
      radial-gradient(circle at 50% 100%, rgba(250, 250, 250, 0) 42%, rgba(250, 250, 250, 0.68) 100%);
    pointer-events: none;
    z-index: 0;
  }

  .homepage .hero--ecosystem .hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 1;
  }

  .homepage .hero--ecosystem .hero__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: clamp(1.25rem, 3vh, 2rem);
    width: min(100%, var(--max-width));
    min-height: inherit;
    padding-top: clamp(7rem, 14vh, 10rem);
    padding-bottom: clamp(2rem, 5vh, 4rem);
  }

  .homepage .hero--ecosystem .hero__title {
    position: relative;
    z-index: 3;
    width: min(92vw, 11ch);
    margin: 0;
    text-align: center;
    text-wrap: balance;
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 5.4vw, 4.75rem);
    font-weight: 600;
    line-height: 0.92;
    letter-spacing: -0.065em;
    color: var(--text-primary);
    transform: translateY(20px);
    opacity: 0;
    filter: blur(10px);
    transition:
      transform 900ms var(--ease-smooth),
      opacity 900ms var(--ease-smooth),
      filter 900ms var(--ease-smooth);
    will-change: transform, opacity, filter;
  }

  .homepage .hero--ecosystem .hero__visual {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    pointer-events: none;
  }

  .homepage .hero--ecosystem .hero__legend {
    position: absolute;
    bottom: clamp(1.5rem, 4vh, 2.75rem);
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.85rem, 2vw, 1.5rem);
    flex-wrap: wrap;
    width: fit-content;
    max-width: min(92vw, 36rem);
    margin: 0;
    padding: 0.8rem 1.1rem;
    list-style: none;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--shadow-neu-sm);
    transform: translateX(-50%) translateY(18px);
    opacity: 0;
    transition:
      opacity 800ms var(--ease-smooth),
      transform 800ms var(--ease-smooth);
  }

  .homepage .hero--ecosystem .hero__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-primary);
    white-space: nowrap;
  }

  .homepage .hero--ecosystem .hero__legend-dot {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.7);
    flex: 0 0 auto;
  }

  .homepage .hero--ecosystem .hero__legend-dot--coren {
    background: var(--coral);
  }

  .homepage .hero--ecosystem .hero__legend-dot--leda {
    background: var(--mint);
  }

  .homepage .hero--ecosystem .hero__legend-dot--business {
    background: var(--sky);
  }

  .homepage .hero--ecosystem.is-ready .hero__legend {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }

  .homepage .hero--ecosystem.is-ready .hero__title {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }

  .homepage .hero-desc {
    font-size: clamp(0.9375rem, 1.5vw, 1.1rem);
    color: var(--text-secondary, #555);
    line-height: 1.65;
    max-width: 560px;
    margin-bottom: 2.5rem;
  }
  .homepage :is(.hero, .about-hero) .btn-row {
    justify-content: center;
  }

  .homepage .about-hero {
    display: flex;
    justify-content: center;
    padding: clamp(6rem, 12vh, 9rem) clamp(1rem, 4vw, 2rem);
  }

  .homepage .about-hero .hero-wrap {
    min-height: auto;
    padding: 0;
  }

  @media (max-width: 900px) {
    .homepage .about-hero .hero-wrap { width: min(100%, 760px); }
    .homepage .about-hero .hero-copy {
      width: min(100%, 680px);
    }

    .homepage .hero--ecosystem .hero__legend {
      gap: 0.75rem 1rem;
      padding-inline: 1rem;
    }
  }
  @media (max-width: 600px) {
    .homepage .hero--ecosystem {
      min-height: max(100svh, 720px);
      padding-inline: 1rem;
    }
    .homepage .about-hero .hero-copy :is(h1, h2) {
      font-size: clamp(2.35rem, 12vw, 3.5rem);
      max-width: 10ch;
    }
    .homepage .hero--ecosystem .hero__title {
      width: min(94vw, 8.5ch);
      font-size: clamp(2.1rem, 9vw, 3.3rem);
    }
    .homepage .hero-desc {
      max-width: 30rem;
    }
    .homepage .about-hero .hero-copy {
      width: 100%;
    }
    .homepage .hero--ecosystem .hero__legend {
      width: min(92vw, 22rem);
      justify-content: flex-start;
      border-radius: var(--radius-2xl);
      padding: 0.9rem 1rem;
    }
    .homepage .hero--ecosystem .hero__legend-item {
      font-size: 0.88rem;
    }
    .homepage .about-hero {
      padding-inline: 1rem;
    }
  }

  /* ═══════════ OBSOLETE ═══════════ */
  .homepage .obsolete { padding: clamp(80px, 15vh, 160px) 0; }
  .homepage .obsolete, .homepage .about {
    content-visibility: auto;
    contain-intrinsic-size: auto 500px;
  }
  .homepage .obsolete-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
  .homepage .obsolete-header { text-align: center; margin-bottom: 80px; max-width: 440px; margin-left: auto; margin-right: auto; }
  .homepage .obsolete-header h2 { font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; line-height: 1.15; letter-spacing: -0.03em; }
  .homepage .obsolete-items { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 0; align-items: center; }
  .homepage .obsolete-divider { background: var(--border); align-self: stretch; }
  .homepage .ob-item { text-align: center; padding: 40px; }
  .homepage .ob-number { font-size: clamp(64px, 10vw, 120px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; color: var(--text); margin-bottom: 16px; }
  .homepage .ob-line { font-size: 14px; color: var(--text-2); line-height: 1.6; max-width: 240px; margin: 0 auto; }

  /* ═══════════ ABOUT ═══════════ */
  .homepage .about { padding: clamp(80px, 15vh, 160px) 0; }
  .homepage .about-inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
  .homepage .about-top { margin-bottom: 80px; }
  .homepage .about-headline { display: flex; gap: 80px; align-items: baseline; }
  .homepage .about-h { font-size: 32px; font-weight: 700; line-height: 1.18; letter-spacing: -0.025em; max-width: 400px; flex-shrink: 0; }
  .homepage .about-p { font-size: 14px; color: var(--text-2); line-height: 1.75; max-width: 340px; }
  .homepage .about-numbers { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--border); }
  .homepage .about-num-cell { padding: 56px 0; text-align: center; border-right: 1px solid var(--border); }
  .homepage .about-num-cell:last-child { border-right: none; }
  .homepage .an-number { font-size: clamp(48px, 6vw, 72px); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
  .homepage .an-label { font-size: 11px; color: var(--text-3); }

  /* ═══════════ CTA ═══════════ */

  /* ═══════════ RESPONSIVE ═══════════ */
  @media(max-width:900px) {
    .homepage .sphere-leda .s-content { grid-column: 1 / 8; padding: 32px; }
    .homepage .sphere-leda .s-visual { grid-column: 5 / 13; }
    .homepage .sphere-coren .s-content { grid-column: 5 / 13; padding: 32px; }
    .homepage .sphere-coren .s-visual { grid-column: 1 / 10; }
    .homepage .sphere-ledawork .s-items { grid-template-columns: 1fr 1fr; }
    .homepage .sphere-ledawork .s-item:nth-child(2) { margin-top: 32px; }
    .homepage .sphere-ledawork .s-item:nth-child(3) { margin-top: 0; }
    .homepage .about-headline { flex-direction: column; gap: 16px; align-items: flex-start; }
    .homepage .obsolete-items { grid-template-columns: 1fr; }
    .homepage .obsolete-divider { display: none; }
    .homepage .ob-item { padding: 32px 0; border-bottom: 1px solid var(--border); }
    .homepage .ob-item:last-child { border-bottom: none; }
  }
  @media(max-width:768px) {
    .homepage .sphere-section { padding: 0 24px; }
    .homepage .product-layout { width: 100%; gap: 0; }
    .homepage .product-actions { gap: 12px; }
    .homepage .sphere-leda .s-grid, .homepage .sphere-coren .s-grid { display: flex; flex-direction: column; }
    .homepage .sphere-leda .s-visual, .homepage .sphere-coren .s-visual { width: 100%; }
    .homepage .sphere-leda .s-content, .homepage .sphere-coren .s-content {
      width: calc(100% - 16px); margin: -20px auto 0;
      padding: 28px; border-radius: 12px;
    }
    .homepage .sphere-ledawork .s-items { grid-template-columns: 1fr; }
    .homepage .sphere-ledawork .s-item:nth-child(2), .homepage .sphere-ledawork .s-item:nth-child(3) { margin-top: 0; }
    .homepage .about-h { font-size: 26px; }
    .homepage .about-numbers { grid-template-columns: 1fr; }
    .homepage .about-num-cell { border-right: none; border-bottom: 1px solid var(--border); text-align: left; padding: 36px 0; }
    .homepage .about-num-cell:last-child { border-bottom: none; }
    .homepage .btn-row { flex-direction: column; }
    .homepage .btn { justify-content: center; width: 100%; }
    .homepage .notif { width: 200px; min-height: 52px; height: auto; }
    .homepage .notif.lg { width: 240px; min-height: 60px; height: auto; }
    .homepage .notif.sm { width: 170px; min-height: 46px; height: auto; }
    .homepage .notif.md { width: 210px; min-height: 52px; height: auto; }
  }
  @media(max-width:600px) {
    .homepage .n-title { font-size: 12px; }
    .homepage .n-body { font-size: 11.5px; }
    .homepage .n-app, .homepage .n-time { font-size: 10px; }
    .homepage .ns-text { font-size: 12px; }
    .homepage .navbar {
      background: color-mix(in srgb, var(--bg-subtle) 92%, transparent);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid var(--surface-stroke);
      box-shadow: var(--shadow-neu-sm);
    }
    .homepage .navbar__dropdown {
      right: 16px;
      left: 16px;
      min-width: 0;
      width: auto;
      background: var(--bg-white);
      box-shadow: var(--shadow-neu);
    }
    .homepage .noise-heading {
      white-space: normal;
      width: min(90vw, 460px);
    }
    .homepage .noise-heading span {
      white-space: normal;
      width: 100%;
      text-align: center;
    }
    .homepage .product-actions { flex-direction: column; width: 100%; }
    .homepage .product-btn { width: min(320px, 100%); }
    .homepage .product-placeholder { height: clamp(180px, 48vw, 320px); }
  }
  @media(max-width:400px) {
    .homepage .navbar__logo-image { height: 42px; }
    .homepage .navbar__toggle {
      padding: var(--space-2) var(--space-4);
      font-size: calc(var(--font-body-sm) * 1.2);
    }
    .homepage .sphere-section { padding: 0 16px; }
    .homepage .sphere-leda .s-content, .homepage .sphere-coren .s-content { padding: 24px; width: calc(100% - 8px); }
    .homepage .obsolete-inner, .homepage .about-inner { padding: 0 16px; }
  }
  @media(prefers-reduced-motion: reduce) {
    .homepage .rv { opacity: 1; transform: none; transition: none; }
    .homepage .hero--ecosystem .hero__title,
    .homepage .hero--ecosystem .hero__legend {
      opacity: 1;
      filter: none;
      transition: none;
    }
    .homepage .hero--ecosystem .hero__legend {
      transform: translateX(-50%);
    }
    .homepage .sphere-section.active .product-layout::before,
    .homepage .sphere-section.active .product-layout::after,
    .homepage .sphere-section.active .product-layout > * { animation: none; }

  }

  /* ── Shaped Sections Theming ── */
  .shaped-section--coren {
    background: linear-gradient(180deg, var(--bg-white) 0%, rgba(246, 155, 117, 0.04) 100%);
  }
  .shaped-section--coren .shaped-h2 { color: var(--coral-dark); }
  .shaped-section--coren .shaped-img { background: linear-gradient(135deg, var(--coral-light) 0%, var(--coral) 100%); }

  .shaped-section--leda {
    background: linear-gradient(180deg, var(--bg-white) 0%, rgba(193, 219, 141, 0.04) 100%);
  }
  .shaped-section--leda .shaped-h2 { color: var(--mint-dark); }
  .shaped-section--leda .shaped-img { background: linear-gradient(135deg, var(--mint-light) 0%, var(--mint) 100%); }

  .shaped-section--sky {
    background: linear-gradient(180deg, var(--bg-white) 0%, rgba(169, 226, 255, 0.04) 100%);
  }
  .shaped-section--sky .shaped-h2 { color: var(--sky-dark); }
  .shaped-section--sky .shaped-img { background: linear-gradient(135deg, var(--sky-light) 0%, var(--sky) 100%); }

