/* Landing page: personal features visual language, scoped to the home page. */
body[data-page="hero"] {
  --landing-bg: #080b13;
  --landing-panel: #10141f;
  --landing-panel-2: #151b2b;
  --landing-border: rgba(255,255,255,.09);
  --landing-border-strong: rgba(255,255,255,.18);
  --landing-text: #f7f9fc;
  --landing-text-2: #98a2b9;
  --landing-text-3: #5f6982;
  --landing-blue: #4f8dff;
  --landing-blue-soft: rgba(79,141,255,.15);
  --landing-green: #34d399;
  --landing-green-soft: rgba(52,211,153,.15);
  --landing-purple: #a78bfa;
  --landing-purple-soft: rgba(167,139,250,.16);
  --landing-red: #f3665f;
  --landing-red-soft: rgba(243,102,95,.16);
  background: var(--landing-bg);
  color: var(--landing-text);
}

body[data-page="hero"] #hero { padding: 128px 0 96px; background: radial-gradient(1100px 520px at 12% -8%, rgba(79,141,255,.10), transparent 60%), radial-gradient(900px 500px at 100% 4%, rgba(139,124,246,.08), transparent 55%), var(--landing-bg); }
body[data-page="hero"] .hero-bg { display: none; }
/* ── Hero background: the app, being navigated ────────────────────────
   Five product views cycle on one laptop screen: each holds, drifts (the
   scroll), then cross-fades to the next (the click). Pure CSS — the
   <img> layers share one keyframe, staggered by animation-delay, so
   there is no video to download and no script to run. Screenshots live
   in assets/dashboard/; with none present the layer paints nothing. */
body[data-page="hero"] .hero-screen {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
body[data-page="hero"] .hero-laptop {
  position: relative;
  width: clamp(1180px, 62vw, 1520px);
  opacity: .17;
  filter: saturate(.8);
  /* Fades into the section on every edge so it reads as ambient depth
     rather than a picture someone pasted behind the text. */
  -webkit-mask-image: radial-gradient(120% 100% at 50% 46%, #000 34%, rgba(0,0,0,.45) 62%, transparent 88%);
  mask-image: radial-gradient(120% 100% at 50% 46%, #000 34%, rgba(0,0,0,.45) 62%, transparent 88%);
}
/* Lid */
body[data-page="hero"] .hero-laptop-screen {
  position: relative;
  /* Matches the cropped screenshots exactly, so object-fit trims nothing. */
  aspect-ratio: 1600 / 921;
  border-radius: 16px;
  border: 10px solid #1b2130;
  background: #05070d;
  overflow: hidden;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.9);
}
/* Deck: a slightly wider slab under the lid, so it reads as a laptop
   rather than a floating rectangle. */
body[data-page="hero"] .hero-laptop::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18px;
  transform: translateX(-50%);
  width: 112%;
  height: 18px;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(180deg, #232a3a, #10141d);
}
body[data-page="hero"] .hero-laptop-screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  opacity: 0;
  will-change: opacity, transform;
  animation: heroScreenCycle 30s cubic-bezier(.4, 0, .2, 1) infinite;
  animation-delay: calc(var(--i) * 6s);
}
/* One 30s loop, five 6s slots: fade in, drift for the hold, fade out. */
@keyframes heroScreenCycle {
  0%        { opacity: 0; transform: translate3d(0, 2.6%, 0) scale(1.05); }
  2.5%      { opacity: 1; }
  17%       { opacity: 1; }
  20%, 100% { opacity: 0; transform: translate3d(0, -2.6%, 0) scale(1.05); }
}
/* Pointer drifting across the screen and settling before each view change. */
body[data-page="hero"] .hero-laptop-cursor {
  position: absolute;
  top: 0; left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255,255,255,.75);
  box-shadow: 0 0 0 6px rgba(255,255,255,.12);
  animation: heroCursorPath 30s ease-in-out infinite;
}
/* Settles on the sidebar just before each cross-fade, then moves out into
   the content area — reads as clicking a nav item, then browsing it. */
@keyframes heroCursorPath {
  0%   { transform: translate3d(60%, 44%, 0); }
  16%  { transform: translate3d(14%, 30%, 0); }
  20%  { transform: translate3d(52%, 58%, 0); }
  36%  { transform: translate3d(14%, 44%, 0); }
  40%  { transform: translate3d(66%, 36%, 0); }
  56%  { transform: translate3d(14%, 52%, 0); }
  60%  { transform: translate3d(44%, 62%, 0); }
  76%  { transform: translate3d(14%, 38%, 0); }
  80%  { transform: translate3d(70%, 46%, 0); }
  100% { transform: translate3d(60%, 44%, 0); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-page="hero"] .hero-laptop-screen img { animation: none; opacity: 0; }
  body[data-page="hero"] .hero-laptop-screen img[style*="--i:0"] { opacity: 1; }
  body[data-page="hero"] .hero-laptop-cursor { animation: none; display: none; }
}

/* Two even columns: the copy fills the left half, the orbit sits centred in
   the right half, so the two sides stay balanced at any window width. */
body[data-page="hero"] .hero-content { position: relative; z-index: 1; width: 100%; gap: 48px; }
body[data-page="hero"] .hero-left { flex: 1 1 50%; }
body[data-page="hero"] .hero-right { flex: 1 1 50%; justify-content: center; }
body[data-page="hero"] .hero-badge { border-color: rgba(79,141,255,.32); border-radius: 999px; background: var(--landing-blue-soft); color: var(--landing-blue); font-size: .85rem; padding: 8px 18px; }
body[data-page="hero"] #hero h1 { max-width: 620px; font-size: clamp(2.25rem, 4.2vw, 3.5rem); font-weight: 700; line-height: 1.06; letter-spacing: -.022em; }
body[data-page="hero"] .gradient-text { background: none; -webkit-text-fill-color: currentColor; color: var(--landing-text); }
body[data-page="hero"] .hero-sub { max-width: 54ch; color: var(--landing-text-2); font-size: 1.0625rem; line-height: 1.65; }
body[data-page="hero"] .btn-primary, body[data-page="hero"] .btn-ghost { border-radius: 999px; padding: 15px 30px; font-size: .95rem; }
body[data-page="hero"] .btn-primary { background: var(--landing-blue); box-shadow: none; }
body[data-page="hero"] .btn-primary:hover { background: var(--landing-blue); filter: brightness(1.08); box-shadow: none; }
body[data-page="hero"] .btn-ghost { border-color: var(--landing-border-strong); color: var(--landing-text); background: var(--landing-panel-2); }
body[data-page="hero"] .hero-believers { border-color: var(--landing-border); }
/* The orbit is sized from one variable and everything inside it derives from
   that, so it can grow on a wide monitor without the ring, coins and centre
   drifting out of proportion. Holds at 520px until roughly 2000px wide. */
body[data-page="hero"] .hero-nodes { position: relative; --nodes: clamp(520px, 26vw, 660px); width: var(--nodes); height: var(--nodes); }
body[data-page="hero"] .center-node { width: calc(var(--nodes) * .254); height: calc(var(--nodes) * .254); background: var(--landing-blue); box-shadow: 0 0 60px rgba(79,141,255,.38); gap: 2px; }
body[data-page="hero"] .center-node .node-label { font-size: .8rem; }
body[data-page="hero"] .orbit-node { --r: calc(var(--nodes) * .385); }
body[data-page="hero"] .orbit-dot { width: calc(var(--nodes) * .142); height: calc(var(--nodes) * .142); --coin-t: 10px; animation: landing-orbit-spin 4s linear infinite; }
body[data-page="hero"] .orbit-node span { color: var(--landing-text-2); font-size: .8rem; }

/* Coin faces: a solid metal fill per accent color (not a see-through
   glass panel) with a small glossy highlight near the top-left, like
   light catching a struck coin. Applied to .coin-face (the coin's
   front/back) rather than .orbit-dot, which is just the 3D shell
   around front/back/edge. */
body[data-page="hero"] .orbit-glass .coin-face {
  box-shadow: 0 10px 28px -10px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.14);
}
body[data-page="hero"] .orbit-white .coin-face { background: radial-gradient(circle at 32% 26%, #8a92a6, #454b5c 45%, #2b3040 100%); border-color: rgba(255,255,255,.28); color: var(--landing-text); }
body[data-page="hero"] .orbit-purple .coin-face { background: radial-gradient(circle at 32% 26%, #a78bfa, #6b53c9 45%, #3c2d6e 100%); border-color: rgba(167,139,250,.45); color: var(--landing-purple); }
body[data-page="hero"] .orbit-green .coin-face { background: radial-gradient(circle at 32% 26%, #34d399, #1f8f68 45%, #0f4a36 100%); border-color: rgba(52,211,153,.45); color: var(--landing-green); }
body[data-page="hero"] .orbit-red .coin-face { background: radial-gradient(circle at 32% 26%, #f3665f, #d8453e 45%, #7a211d 100%); border-color: rgba(243,102,95,.45); color: var(--landing-red); }
body[data-page="hero"] .orbit-node:hover .orbit-white .coin-face { background: radial-gradient(circle at 32% 26%, #9aa1b3, #545a6d 45%, #343a4d 100%); border-color: rgba(255,255,255,.4); color: var(--landing-text); }
body[data-page="hero"] .orbit-node:hover .orbit-purple .coin-face { background: radial-gradient(circle at 32% 26%, #b7a1ff, #7c62dd 45%, #4a3986 100%); border-color: rgba(167,139,250,.65); color: var(--landing-purple); }
body[data-page="hero"] .orbit-node:hover .orbit-green .coin-face { background: radial-gradient(circle at 32% 26%, #52e0ac, #26a578 45%, #135a42 100%); border-color: rgba(52,211,153,.65); color: var(--landing-green); }
body[data-page="hero"] .orbit-node:hover .orbit-red .coin-face { background: radial-gradient(circle at 32% 26%, #f68781, #e15850 45%, #922923 100%); border-color: rgba(243,102,95,.65); color: var(--landing-red); }

/* Coin rims: metallic light/dark shading of each coin's own accent
   color (matches the face), not a uniform gold edge. */
body[data-page="hero"] .orbit-white .coin-edge-ring { border-color: #9aa1b3; }
body[data-page="hero"] .orbit-white .coin-edge-ring--dark { border-color: #363c4c; }
body[data-page="hero"] .orbit-purple .coin-edge-ring { border-color: #a78bfa; }
body[data-page="hero"] .orbit-purple .coin-edge-ring--dark { border-color: #4a3986; }
body[data-page="hero"] .orbit-green .coin-edge-ring { border-color: #34d399; }
body[data-page="hero"] .orbit-green .coin-edge-ring--dark { border-color: #135a42; }
body[data-page="hero"] .orbit-red .coin-edge-ring { border-color: #f3665f; }
body[data-page="hero"] .orbit-red .coin-edge-ring--dark { border-color: #7a211d; }

@keyframes landing-orbit-spin { to { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { body[data-page="hero"] .orbit-dot { animation: none; } }

body[data-page="hero"] #problem, body[data-page="hero"] #early-reactions { background: var(--landing-bg); }
body[data-page="hero"] #solution, body[data-page="hero"] #contact { background: var(--landing-panel); }
body[data-page="hero"] .section-label { display: flex; align-items: center; gap: 9px; color: var(--landing-blue); font-size: 14px; letter-spacing: .14em; margin-bottom: 22px; }
body[data-page="hero"] .section-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--landing-blue); box-shadow: 0 0 0 4px var(--landing-blue-soft); }
body[data-page="hero"] section h2 { color: var(--landing-text); font-size: clamp(30px,3.9vw,46px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
body[data-page="hero"] .section-sub, body[data-page="hero"] .problem-card p, body[data-page="hero"] .feature-item p, body[data-page="hero"] .contact-left p, body[data-page="hero"] .perk { color: var(--landing-text-2); }
body[data-page="hero"] .problem-card, body[data-page="hero"] .contact-form { border-color: var(--landing-border); border-radius: 20px; background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,0)); }
body[data-page="hero"] .problem-card:hover { border-color: var(--landing-border-strong); }
body[data-page="hero"] .problem-num { color: var(--landing-blue); opacity: 1; }
body[data-page="hero"] .problem-subtitle { color: var(--landing-text) !important; }
body[data-page="hero"] .feature-icon, body[data-page="hero"] .perk-icon { border-color: rgba(79,141,255,.30); border-radius: 10px; color: var(--landing-blue); background: var(--landing-blue-soft); }
body[data-page="hero"] .screen-mockup { border-color: var(--landing-border); background: var(--landing-panel-2); border-radius: 20px; box-shadow: 0 30px 60px -28px rgba(0,0,0,.85); }
body[data-page="hero"] .contact-form { background: var(--landing-panel-2); }
body[data-page="hero"] .form-group input, body[data-page="hero"] .form-group select, body[data-page="hero"] .form-group textarea { border-color: var(--landing-border); background: rgba(255,255,255,.04); }
body[data-page="hero"] .form-group input:focus, body[data-page="hero"] .form-group select:focus, body[data-page="hero"] .form-group textarea:focus { border-color: var(--landing-blue); box-shadow: 0 0 0 3px var(--landing-blue-soft); }
body[data-page="hero"] .btn-submit { border-radius: 999px; background: var(--landing-blue); box-shadow: none; }
body[data-page="hero"] .btn-submit:hover { background: var(--landing-blue); filter: brightness(1.08); box-shadow: none; }

/* No room for the laptop once the hero stacks — it just peeks out from
   behind the copy. */
@media (max-width: 900px) { body[data-page="hero"] .hero-screen { display: none; } }
@media (max-width: 1100px) { body[data-page="hero"] .hero-content { gap: 32px; } body[data-page="hero"] .hero-nodes { --nodes: 440px; } body[data-page="hero"] .orbit-dot { --coin-t: 9px; } }
@media (max-width: 900px) { body[data-page="hero"] .hero-nodes { --nodes: 460px; margin-top: 40px; } }
@media (max-width: 600px) { body[data-page="hero"] #hero { padding: 104px 0 72px; } body[data-page="hero"] .hero-content { gap: 20px; } body[data-page="hero"] .hero-nodes { --nodes: 300px; } body[data-page="hero"] .center-node { width: 92px; height: 92px; } body[data-page="hero"] .orbit-node { --r: 112px; } body[data-page="hero"] .orbit-dot { --coin-t: 7px; } body[data-page="hero"] .orbit-node span { font-size: .68rem; } body[data-page="hero"] .hero-cta { width: 100%; } body[data-page="hero"] .btn-primary, body[data-page="hero"] .btn-ghost { flex: 1 1 100%; text-align: center; } }