/* =========================================================
   Spectra — landing page
   A scroll descent: space → sky → land → soil → core.
   Calm, GPU-cheap motion. Fully disabled under reduced-motion.
   ========================================================= */

:root {
  /* brand */
  --brand-900: #1e3a8a;
  --brand-700: #1d4ed8;
  --brand-600: #2563eb;
  --brand-500: #3b82f6;
  --brand-400: #60a5fa;
  --brand-100: #dbe8fe;
  --brand-50: #eff5ff;

  --ink: #0f172a;
  --moss: #15803d;
  --brass: #b45309;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1160px;
  --pad: clamp(20px, 5vw, 64px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #05060f;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--pad);
  position: relative;
  z-index: 2;
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px var(--pad);
  background: rgba(8, 11, 25, 0);
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(8, 11, 25, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav__logo {
  border-radius: 7px;
}
.nav__name {
  font-size: 18px;
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}
.nav__links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav__links a:hover {
  color: #fff;
}
.nav__cta {
  margin-left: 4px;
}
@media (max-width: 760px) {
  .nav__links {
    display: none;
  }
  .nav__cta {
    margin-left: auto;
  }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  --b: var(--brand-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.25s,
    border-color 0.25s, color 0.25s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn--lg {
  padding: 14px 26px;
  font-size: 15px;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  color: #fff;
  box-shadow: 0 10px 28px -12px rgba(37, 99, 235, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -12px rgba(37, 99, 235, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.btn--ghost-light {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* =========================================================
   DEPTH RAIL (scroll progress)
   ========================================================= */
.depth-rail {
  position: fixed;
  right: clamp(10px, 2vw, 26px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  width: 3px;
  height: min(46vh, 360px);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: visible;
}
.depth-rail__fill {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: 0%;
  border-radius: 999px;
  background: linear-gradient(180deg, #cfe0ff, var(--brand-500), #ff8a3c);
  transition: height 0.12s linear;
}
.depth-rail__ticks {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  inset: 0;
}
.depth-rail__ticks li {
  position: absolute;
  left: 12px;
  transform: translateY(-50%);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.depth-rail__ticks li:nth-child(1) { top: 2%; }
.depth-rail__ticks li:nth-child(2) { top: 27%; }
.depth-rail__ticks li:nth-child(3) { top: 52%; }
.depth-rail__ticks li:nth-child(4) { top: 76%; }
.depth-rail__ticks li:nth-child(5) { top: 99%; }
@media (max-width: 980px) {
  .depth-rail {
    display: none;
  }
}

/* =========================================================
   LAYERS — shared
   ========================================================= */
.layer {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}
.layer .wrap {
  padding-block: clamp(96px, 13vh, 160px);
}

/* gradients share edge colors so the descent is seamless */
.layer--space {
  background: linear-gradient(180deg, #05060f 0%, #0a0e24 45%, #131a3a 78%, #1d2c5e 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.layer--sky {
  background: linear-gradient(180deg, #1d2c5e 0%, #345fad 26%, #5b8fe0 55%, #8fbef0 82%, #c8e2f3 100%);
}
.layer--land {
  background: linear-gradient(180deg, #c8e2f3 0%, #dcefe0 14%, #7fb15a 34%, #4f8a36 64%, #3a6f2a 100%);
}
.layer--soil {
  background: linear-gradient(180deg, #3a6f2a 0%, #5c4a2c 16%, #4a3320 52%, #38271a 100%);
}
.layer--core {
  background: linear-gradient(180deg, #38271a 0%, #5a1f12 30%, #9e2f10 60%, #e0560f 82%, #ff8a1e 100%);
}

/* =========================================================
   SECTION HEADINGS
   ========================================================= */
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-400);
  margin-bottom: 14px;
}
.eyebrow--dark {
  color: var(--brand-700);
}
.eyebrow--light {
  color: #ffd9a8;
}
.sec-head {
  max-width: 680px;
  margin: 0 auto clamp(44px, 6vh, 72px);
  text-align: center;
}
.sec-head h2 {
  font-size: clamp(28px, 4.6vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: var(--ink);
}
.sec-head p {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.6;
  color: #475569;
  margin: 0;
}
.sec-head--light h2 {
  color: #fff;
}
.sec-head--light p {
  color: rgba(255, 255, 255, 0.78);
}

.grad {
  background: linear-gradient(120deg, #8fd0ff, #4f8bff 55%, #b48bff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   HERO (space)
   ========================================================= */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
}
.hero__copy .eyebrow {
  color: var(--brand-400);
}
.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.03;
  letter-spacing: -0.035em;
  margin: 0 0 22px;
  color: #fff;
  font-weight: 800;
}
.hero__sub {
  font-size: clamp(15px, 1.8vw, 18.5px);
  line-height: 1.62;
  color: rgba(226, 232, 240, 0.86);
  max-width: 30em;
  margin: 0 0 30px;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}
.hero__trust {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  color: rgba(203, 213, 225, 0.72);
  margin: 0;
}
.hero__trust .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 4px rgba(74, 222, 128, 0.18);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero__panel {
    order: -1;
    max-width: 460px;
  }
}

/* ---- space ambiance ---- */
.starfield {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.space__nebula {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 78% 18%, rgba(91, 96, 220, 0.28), transparent 60%),
    radial-gradient(30vw 30vw at 12% 72%, rgba(37, 99, 235, 0.22), transparent 62%);
  filter: blur(6px);
}
.shooting-star {
  position: absolute;
  top: 16%;
  left: -10%;
  width: 130px;
  height: 2px;
  z-index: 0;
  background: linear-gradient(90deg, transparent, #fff);
  border-radius: 999px;
  opacity: 0;
  transform: rotate(18deg);
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.scroll-cue span {
  width: 20px;
  height: 32px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  position: relative;
}
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 7px;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: #fff;
  transform: translateX(-50%);
}

/* =========================================================
   PRODUCT PANEL MOCK
   ========================================================= */
.panel {
  border-radius: 18px;
  background: #0a0e1a;
  box-shadow: 0 40px 90px -30px rgba(2, 6, 23, 0.7);
  overflow: hidden;
  /* Wide perspective keeps the 3D tilt looking good while minimizing the
     foreshortening blur that a tight perspective caused. */
  transform: perspective(2400px) rotateY(-8deg) rotateX(2.5deg);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
  will-change: transform;
}
.panel:hover {
  transform: perspective(2400px) rotateY(-2deg) rotateX(0.5deg);
}
.panel__shot {
  display: block;
  width: 100%;
  height: auto;
}
.panel__chrome {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-600));
  color: #fff;
  font-weight: 700;
  font-size: 13px;
}
.panel__chrome-dots {
  margin-left: auto;
  display: inline-flex;
  gap: 5px;
}
.panel__chrome-dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}
.panel__body {
  padding: 16px;
}
.panel__profile {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}
/* Profile avatar: a circular monogram standing in for the real LinkedIn photo
   that the extension now displays (the demo profile has no real photo). */
.avatar {
  position: relative;
  flex: none;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #60a5fa, #2563eb 60%, #1e3a8a);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35), inset 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.avatar::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(96, 165, 250, 0.5), transparent);
  z-index: -1;
}
.avatar__monogram {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
}
.panel__id h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.panel__id p {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: #64748b;
}
/* de-emphasised meta: small, muted, low contrast on purpose */
.panel__meta {
  display: flex;
  gap: 6px;
  margin: 10px 2px 16px;
}
.panel__meta span {
  flex: 1;
  font-size: 9.5px;
  color: #94a3b8;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  background: rgba(148, 163, 184, 0.08);
  letter-spacing: 0.02em;
}
.panel__meta b {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 1px;
}
.panel__focus-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  margin: 0 2px 11px;
}
.ic-ring {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--brand-600);
  border-right-color: transparent;
}
.panel__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}
.scard {
  background: #fff;
  border-radius: 13px;
  padding: 12px 12px 14px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  border: 1.5px solid transparent;
}
.scard--focus {
  border-color: var(--brand-400);
  box-shadow: 0 8px 20px -10px rgba(37, 99, 235, 0.45);
}
.scard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 9px;
}
.scard strong {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tag {
  font-size: 9px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
  text-transform: none;
}
.tag--high {
  background: var(--moss);
}
.tag--mid {
  background: var(--brass);
}
.bar {
  margin-top: 9px;
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: var(--w);
  border-radius: 999px;
  background: linear-gradient(90deg, var(--moss), #22c55e);
}
.bar--mid i {
  background: linear-gradient(90deg, var(--brass), #f59e0b);
}

/* =========================================================
   FEATURES (sky)
   ========================================================= */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 880px) {
  .features {
    grid-template-columns: 1fr;
    max-width: 460px;
    margin-inline: auto;
  }
}
.feature {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 28px 26px 30px;
  box-shadow: 0 24px 50px -28px rgba(30, 58, 138, 0.5);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: 0 34px 60px -28px rgba(30, 58, 138, 0.6);
}
.feature__icon {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature__icon svg {
  width: 24px;
  height: 24px;
  fill: #fff;
}
.feature__icon--analyze {
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
}
.feature__icon--outreach {
  background: linear-gradient(135deg, #14b8a6, #0f766e);
}
.feature__icon--email {
  background: linear-gradient(135deg, #f59e0b, #b45309);
}
.feature h3 {
  margin: 0 0 10px;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.feature p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #475569;
}
.feature__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.feature__list li {
  position: relative;
  padding-left: 24px;
  font-size: 13.5px;
  color: #334155;
}
.feature__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: var(--brand-50);
  box-shadow: inset 0 0 0 1.5px var(--brand-400);
}
.feature__list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  width: 4px;
  height: 7px;
  border: solid var(--brand-600);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ---- clouds (sky) ---- */
.clouds {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cloud {
  position: absolute;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  filter: blur(3px);
  opacity: 0.7;
}
.cloud--1 { top: 12%; width: 220px; height: 70px; animation: drift 46s linear infinite; }
.cloud--2 { top: 30%; width: 320px; height: 90px; opacity: 0.55; animation: drift 64s linear infinite -12s; }
.cloud--3 { top: 8%;  width: 160px; height: 56px; opacity: 0.6; animation: drift 38s linear infinite -22s; }
.cloud--4 { top: 44%; width: 260px; height: 80px; opacity: 0.45; animation: drift 72s linear infinite -8s; }

@keyframes drift {
  from { transform: translateX(-30vw); }
  to { transform: translateX(120vw); }
}

/* ---- planes crossing the sky ---- */
.plane {
  position: absolute;
  left: 0;
  z-index: 0;
  width: 22px;
  height: 6px;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 2px 7px 7px 2px;
  filter: blur(0.5px) drop-shadow(0 2px 3px rgba(20, 40, 90, 0.22));
  opacity: 0; /* JS fades/animates the planes along a wandering path */
}
.plane::before {
  /* swept wing */
  content: "";
  position: absolute;
  left: 5px;
  top: 50%;
  width: 8px;
  height: 15px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.82);
  clip-path: polygon(0 50%, 100% 0, 100% 100%);
  filter: blur(0.5px);
}
.plane::after {
  /* contrail */
  content: "";
  position: absolute;
  right: 100%;
  top: 50%;
  width: 90px;
  height: 2px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5));
  border-radius: 999px;
}
.plane--1 { top: 20%; }
.plane--2 { top: 52%; scale: 0.72; }

/* =========================================================
   HOW IT WORKS (land + grass)
   ========================================================= */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 880px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: 0 20px 44px -26px rgba(20, 60, 20, 0.55);
}
.step__n {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--moss), #166534);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.step h3 {
  margin: 0 0 7px;
  font-size: 17px;
  color: var(--ink);
}
.step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: #475569;
}
.step em {
  font-style: normal;
  font-weight: 700;
  color: var(--brand-700);
}

/* grass blades along the bottom of the land layer */
.grass {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 90px;
  z-index: 1;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
}
.grass span {
  flex: 1;
  height: 100%;
  background: linear-gradient(180deg, #4f8a36, #356b29);
  clip-path: polygon(48% 0, 52% 0, 70% 100%, 30% 100%);
  transform-origin: bottom center;
  opacity: 0.85;
}
.grass span:nth-child(odd) {
  height: 76%;
  background: linear-gradient(180deg, #5c9a40, #3f7a30);
}
.grass span:nth-child(even) {
  height: 100%;
}

/* falling leaves layer (populated by JS) */
.leaves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.leaf {
  position: absolute;
  top: -24px;
  width: 12px;
  height: 12px;
  border-radius: 0 100% 0 100%;
  opacity: 0.85;
  will-change: transform;
}

/* =========================================================
   PRIVACY (soil)
   ========================================================= */
.privacy {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 880px;
  margin-inline: auto;
}
@media (max-width: 680px) {
  .privacy {
    grid-template-columns: 1fr;
  }
}
.priv-card {
  background: rgba(35, 26, 18, 0.55);
  border: 1px solid rgba(255, 220, 170, 0.16);
  border-radius: 16px;
  padding: 24px 24px 26px;
  backdrop-filter: blur(4px);
}
.priv-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
  color: #ffe7c7;
  letter-spacing: -0.01em;
}
.priv-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 240, 224, 0.78);
}

/* worms wiggling through soil */
.worms {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.worm {
  position: absolute;
  width: 46px;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c97b6a, #e09b86);
  opacity: 0.5;
}
.worm--1 { top: 28%; left: 8%; animation: wiggle 9s ease-in-out infinite; }
.worm--2 { top: 62%; right: 12%; animation: wiggle 11s ease-in-out infinite -3s; }
.worm--3 { top: 82%; left: 22%; animation: wiggle 13s ease-in-out infinite -6s; }

@keyframes wiggle {
  0%, 100% { transform: translateX(0) scaleY(1) rotate(-4deg); }
  25% { transform: translateX(14px) scaleY(0.8) rotate(3deg); }
  50% { transform: translateX(26px) scaleY(1) rotate(-2deg); }
  75% { transform: translateX(12px) scaleY(0.85) rotate(2deg); }
}

/* blurry bones buried near the soil → core transition */
.bones {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bone {
  --bone-col: rgba(233, 225, 206, 0.5);
  position: absolute;
  width: 40px;
  height: 9px;
  background: var(--bone-col);
  border-radius: 999px;
  filter: blur(1.6px);
  opacity: 0.4;
  transform: rotate(var(--rot, 0deg));
}
.bone::before,
.bone::after {
  /* two knobs at each end make the dog-bone shape */
  content: "";
  position: absolute;
  top: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bone-col);
  box-shadow: 0 11px 0 var(--bone-col);
}
.bone::before { left: -5px; }
.bone::after { right: -5px; }
.bone--1 { bottom: 15%; left: 12%; --rot: -18deg; animation: bone-float 13s ease-in-out infinite; }
.bone--2 { bottom: 8%; right: 15%; --rot: 22deg; opacity: 0.3; animation: bone-float 16s ease-in-out infinite -5s; }
.bone--3 { bottom: 24%; left: 58%; --rot: 7deg; width: 30px; opacity: 0.26; animation: bone-float 19s ease-in-out infinite -9s; }

@keyframes bone-float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-7px) rotate(var(--rot, 0deg)); }
}

.roots {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 120px;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(8px 60px at 16% 0, rgba(60, 42, 26, 0.7), transparent 70%),
    radial-gradient(6px 80px at 38% 0, rgba(60, 42, 26, 0.6), transparent 70%),
    radial-gradient(10px 70px at 62% 0, rgba(60, 42, 26, 0.65), transparent 70%),
    radial-gradient(7px 90px at 84% 0, rgba(60, 42, 26, 0.6), transparent 70%);
}

/* =========================================================
   CTA (core)
   ========================================================= */
.cta {
  text-align: center;
  max-width: 720px;
}
.cta__logo {
  border-radius: 22px;
  box-shadow: 0 20px 60px -16px rgba(255, 138, 30, 0.7);
  margin-bottom: 22px;
}
.cta h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fff;
}
.cta p {
  font-size: clamp(15px, 1.9vw, 19px);
  line-height: 1.62;
  color: rgba(255, 244, 230, 0.88);
  margin: 0 auto 30px;
  max-width: 34em;
}
.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.core-glow {
  position: absolute;
  left: 50%;
  bottom: -30%;
  transform: translateX(-50%);
  width: 120vw;
  height: 80vh;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 170, 60, 0.55), rgba(255, 110, 30, 0.2) 45%, transparent 70%);
  animation: corepulse 7s ease-in-out infinite;
}
@keyframes corepulse {
  0%, 100% { opacity: 0.8; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.06); }
}
.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(closest-side, #ffd49a, #ff7a18);
  opacity: 0;
  will-change: transform, opacity;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(20, 8, 4, 0.5);
  backdrop-filter: blur(6px);
}
.footer__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-block: 26px;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff;
  font-weight: 800;
}
.footer__tag {
  font-weight: 500;
  font-size: 12px;
  color: rgba(255, 230, 210, 0.6);
}
.footer__links {
  display: flex;
  gap: 22px;
  margin-left: auto;
}
.footer__links a {
  color: rgba(255, 240, 230, 0.78);
  text-decoration: none;
  font-size: 14px;
}
.footer__links a:hover {
  color: #fff;
}
.footer__copy {
  width: 100%;
  margin: 6px 0 0;
  font-size: 12.5px;
  color: rgba(255, 230, 210, 0.5);
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* =========================================================
   REDUCED MOTION — strip all ambient motion & parallax
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cloud,
  .plane,
  .bone,
  .worm,
  .core-glow,
  .leaf,
  .ember,
  .shooting-star {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .panel {
    transform: none;
  }
  .leaves,
  .embers {
    display: none;
  }
}
