/* ============================================================
   taim – Landing Page Styles
   ============================================================ */

:root {
  --bg: #0a0a0b;
  --bg-2: #101012;
  --card: #151517;
  --card-2: #1b1b1e;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f5f5f7;
  --text-2: #c7c7cf;
  --muted: #8e8e97;
  --accent: #fe8157;
  --accent-2: #ffb08f;
  --accent-soft: rgba(254, 129, 87, 0.14);
  --blue: #5b7cfa;
  --green: #34d399;
  --red: #ff6b6b;
  --radius: 20px;
  --radius-sm: 12px;
  --nav-h: 64px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.container { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Typography ---------- */
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.08; font-weight: 700; }
.display { font-size: clamp(2.6rem, 7vw, 5.6rem); letter-spacing: -0.035em; font-weight: 700; }
.h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: var(--text-2); line-height: 1.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.gradient-text { color: var(--text); }
.accent-dot { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 0.98rem; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.35s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--accent); color: #1a0d07; }
.btn-primary:hover { background: #ff9169; }
.btn-ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10, 10, 11, 0.55);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled, .nav.static { border-bottom-color: var(--line); background: rgba(10, 10, 11, 0.78); }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; color: var(--text); }
.logo svg { height: 26px; width: auto; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 0.92rem; color: var(--text-2); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    padding: 12px 24px 20px; background: rgba(10, 10, 11, 0.96);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links a { display: block; padding: 12px 0; font-size: 1.1rem; border-bottom: 1px solid var(--line); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--nav-h) + 72px) 0 40px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 45% at 50% 0%, rgba(254, 129, 87, 0.09), transparent 70%),
    var(--bg);
}
.hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}
.hero-orb {
  display: none;
  position: absolute; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: 0.55; pointer-events: none;
  animation: orb 14s ease-in-out infinite alternate;
}
.hero-orb.a { width: 520px; height: 520px; left: -160px; top: 20%; background: rgba(254, 129, 87, 0.35); }
.hero-orb.b { width: 420px; height: 420px; right: -120px; top: 45%; background: rgba(91, 124, 250, 0.28); animation-delay: -6s; }
@keyframes orb { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(40px, -50px, 0) scale(1.12); } }

.hero-copy { max-width: 900px; will-change: transform, opacity; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px;
  border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04);
  font-size: 0.85rem; color: var(--text-2); margin-bottom: 28px;
}
.hero-badge b { padding: 3px 10px; border-radius: 999px; background: var(--accent); color: #1a0d07; font-size: 0.72rem; letter-spacing: 0.06em; }
.hero h1 { margin: 0 0 22px; }
.hero .lead { max-width: 640px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-meta { margin-top: 24px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 14px; height: 14px; color: var(--green); }

/* Word-by-word reveal */
.reveal-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.reveal-words .w > span { display: inline-block; transform: translateY(110%); opacity: 0; animation: wordUp 1.1s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + 200ms); }
@keyframes wordUp { to { transform: translateY(0); opacity: 1; } }
.fade-up { opacity: 0; transform: translateY(20px); animation: fadeUp 1s var(--ease) forwards; animation-delay: var(--d, 0ms); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* Device stage */
.hero-stage {
  position: relative; width: min(1120px, 100%); margin-top: 72px;
  perspective: 1600px; perspective-origin: 50% 20%;
}
.device-window {
  position: relative; margin: 0 auto; width: min(960px, 92%);
  border-radius: 18px; background: #0f0f11;
  border: 1px solid var(--line-2);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 60px 120px -40px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx, 14deg)) scale(var(--s, 0.94)) translateY(var(--ty, 0px));
  transform-origin: 50% 0%;
  transform-style: preserve-3d;
  overflow: hidden;
  opacity: 0;
  animation: stageIn 1.4s var(--ease) 500ms forwards;
  will-change: transform;
}
@keyframes stageIn { from { opacity: 0; transform: rotateX(28deg) scale(0.86) translateY(60px); } to { opacity: 1; transform: rotateX(var(--rx, 14deg)) scale(var(--s, 0.94)) translateY(var(--ty, 0px)); } }
.device-window::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 30%);
}
.window-bar {
  height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: #131315;
}
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a3f; }
.window-bar i:nth-child(1) { background: #ff5f57; } .window-bar i:nth-child(2) { background: #febc2e; } .window-bar i:nth-child(3) { background: #28c840; }
.window-url { margin-left: 12px; flex: 1; max-width: 340px; height: 24px; border-radius: 7px; background: #1e1e21; color: var(--muted); font-size: 0.72rem; display: flex; align-items: center; justify-content: center; gap: 6px; }
.window-url svg { width: 10px; height: 10px; }

.device-phone {
  position: absolute; left: 2%; bottom: -8%; width: 232px; z-index: 3;
  border-radius: 40px; background: #0b0b0c; padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, 0.95), inset 0 0 0 2px #1a1a1d;
  transform: translateY(var(--pty, 0px)) rotate(-6deg);
  opacity: 0; animation: phoneIn 1.4s var(--ease) 900ms forwards;
  will-change: transform;
}
@keyframes phoneIn { from { opacity: 0; transform: translateY(80px) rotate(-10deg); } to { opacity: 1; transform: translateY(var(--pty, 0px)) rotate(-6deg); } }
.phone-screen { border-radius: 32px; overflow: hidden; background: #0e0e10; aspect-ratio: 9 / 19.2; position: relative; }
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 76px; height: 22px; border-radius: 999px; background: #000; z-index: 2; }

.hero-float {
  position: absolute; z-index: 4; padding: 12px 14px; border-radius: 14px;
  background: rgba(21, 21, 23, 0.85); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  font-size: 0.8rem; color: var(--text-2); display: flex; align-items: center; gap: 10px;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  opacity: 0; animation: fadeUp 1s var(--ease) forwards;
  transform: translateY(var(--fy, 0px));
}
.hero-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18); } 50% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0.05); } }
.hero-float strong { color: var(--text); font-weight: 600; }
.hero-float.f1 { right: 3%; top: 12%; animation-delay: 1.3s; }
.hero-float.f2 { right: 6%; bottom: 8%; animation-delay: 1.6s; }
.hero-float .ic { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.hero-float .ic svg { width: 16px; height: 16px; }

@media (max-width: 860px) {
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .hero-stage { margin-top: 48px; perspective: 1000px; }
  .device-window { width: 100%; max-height: 440px; }
  .device-window::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 140px; z-index: 2; pointer-events: none; background: linear-gradient(180deg, transparent, #0e0e10 90%); }
  .device-phone { width: 150px; left: -6px; bottom: -10%; border-radius: 28px; padding: 6px; }
  .phone-screen { border-radius: 22px; }
  .phone-notch { width: 50px; height: 14px; top: 6px; }
  .hero-float { display: none; }
}

/* ---------- Dashboard mockup (shared) ---------- */
.dash { display: grid; grid-template-columns: 172px 1fr; min-height: 520px; background: #0e0e10; text-align: left; font-size: 12px; color: var(--text-2); }
.dash-side { border-right: 1px solid var(--line); padding: 16px 12px; background: #0c0c0d; }
.dash-user { display: flex; align-items: center; gap: 8px; padding: 6px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.dash-user .av { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #1a0d07; display: grid; place-items: center; font-weight: 800; font-size: 11px; }
.dash-user b { display: block; font-size: 11px; color: var(--text); }
.dash-user small { display: block; font-size: 9px; color: var(--muted); }
.dash-nav { list-style: none; margin: 0; padding: 0; }
.dash-nav li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; font-size: 11px; color: var(--text-2); }
.dash-nav li.active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.dash-nav li .badge { font-size: 9px; padding: 1px 6px; border-radius: 999px; background: rgba(254, 129, 87, 0.2); color: var(--accent); font-weight: 700; }
.dash-nav .sec { margin: 12px 8px 4px; font-size: 8.5px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.dash-main { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; }
.dash-head h4 { margin: 0; font-size: 17px; color: var(--text); letter-spacing: -0.01em; }
.dash-head small { color: var(--muted); font-size: 11px; }
.dash-clock { font-variant-numeric: tabular-nums; font-size: 16px; font-weight: 600; color: var(--text); letter-spacing: 0.02em; }
.dash-card { background: #141416; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.dash-card .lbl { font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.dash-card .val { font-size: 26px; font-weight: 700; color: var(--text); margin: 8px 0 2px; letter-spacing: -0.02em; }
.dash-card .sub { font-size: 10px; color: var(--muted); }
.dash-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.dash-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dash-card .chip { display: inline-block; margin-top: 4px; padding: 2px 8px; border-radius: 6px; background: rgba(254, 129, 87, 0.12); color: var(--accent); font-size: 9.5px; font-weight: 600; }
.dash-card .chip.ok { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.spark { width: 100%; height: 56px; margin-top: 6px; }
.spark path.l { fill: none; stroke: #9aa4c4; stroke-width: 1.5; }
.spark path.a { fill: url(#sg); opacity: 0.5; }
.spark.accent path.l { stroke: var(--accent); }
.dash-list { display: flex; flex-direction: column; }
.dash-list div { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text); }
.dash-list div:last-child { border-bottom: 0; }
.dash-list .av { width: 22px; height: 22px; border-radius: 50%; background: #2a2a2e; font-size: 8.5px; font-weight: 700; display: grid; place-items: center; color: var(--text-2); }
.dash-list .r { margin-left: auto; padding: 2px 8px; border-radius: 999px; background: #202024; color: var(--text-2); font-size: 10px; font-variant-numeric: tabular-nums; }
.dash-list .r.neg { color: var(--red); } .dash-list .r.pos { color: var(--green); }
.avs { display: flex; margin-top: 8px; } .avs i { width: 20px; height: 20px; border-radius: 50%; background: #2a2a2e; border: 2px solid #141416; margin-left: -6px; font-style: normal; font-size: 7px; display: grid; place-items: center; color: var(--text-2); } .avs i:first-child { margin-left: 0; }

@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; min-height: 0; }
  .dash-side { display: none; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); }
  .dash-row { grid-template-columns: 1fr; }
  .dash-main { padding: 14px; }
}

/* ---------- Generic section ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head .eyebrow { margin-bottom: 18px; }
.section-head .lead { margin-top: 18px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

/* Scroll reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0ms); }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Logos / trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 28px 0; background: var(--bg-2); }
.strip .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip p { margin: 0; font-size: 0.85rem; color: var(--muted); }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.strip li { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 0.8rem; color: var(--text-2); font-weight: 600; letter-spacing: 0.02em; }
.strip li.soon { color: var(--muted); font-weight: 500; }

/* ---------- Platforms ---------- */
.platforms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plat {
  position: relative; padding: 30px 28px 32px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  overflow: hidden; transition: transform 0.5s var(--ease), border-color 0.3s;
}
.plat:hover { transform: translateY(-6px); border-color: var(--line-2); }
.plat::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(254, 129, 87, 0.5), transparent 40%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.plat:hover::before { opacity: 0; }
.plat .icon { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); margin-bottom: 22px; color: var(--text); }
.plat .icon svg { width: 26px; height: 26px; }
.plat h3 { margin-bottom: 10px; }
.plat p { margin: 0 0 22px; color: var(--muted); font-size: 0.95rem; }
.plat ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 0.9rem; color: var(--text-2); }
.plat li { display: flex; gap: 10px; align-items: flex-start; }
.plat li svg { width: 16px; height: 16px; color: var(--accent); flex: none; margin-top: 3px; }
.plat .tag { position: absolute; top: 20px; right: 20px; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 6px; }
@media (max-width: 900px) { .platforms { grid-template-columns: 1fr; } }

/* ---------- Feature scrollytelling ---------- */
.features { position: relative; }
.features-track { position: relative; }
.features-sticky {
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); height: calc(100svh - var(--nav-h));
  display: grid; grid-template-columns: minmax(280px, 0.9fr) 1.4fr; gap: 48px; align-items: center;
}
.feature-steps { position: relative; min-height: 320px; }
.feature-step {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  pointer-events: none;
}
.feature-step.active { opacity: 1; transform: none; pointer-events: auto; }
.feature-step .num { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); margin-bottom: 16px; letter-spacing: 0.1em; }
.feature-step h3 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); margin-bottom: 16px; letter-spacing: -0.03em; }
.feature-step p { margin: 0 0 18px; color: var(--text-2); font-size: 1.05rem; max-width: 460px; }
.feature-step ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; color: var(--muted); font-size: 0.95rem; }
.feature-step li::before { content: "—"; color: var(--accent); margin-right: 10px; }
.feature-progress { display: flex; gap: 8px; margin-top: 30px; }
.feature-progress i { height: 3px; width: 34px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.feature-progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: left; }

.feature-visual { position: relative; height: min(600px, 70vh); }
.feature-panel {
  position: absolute; inset: 0; border-radius: 22px; overflow: hidden;
  background: #0f0f11; border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -50px rgba(0, 0, 0, 0.9);
  opacity: 0; transform: scale(0.92) translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.feature-panel.active { opacity: 1; transform: none; }
.feature-panel .window-bar { position: relative; z-index: 2; }
.feature-panel .inner { position: absolute; inset: 40px 0 0; padding: 22px; overflow: hidden; }

/* Calendar panel */
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; font-size: 10px; }
.cal .d { min-width: 0; overflow: hidden; }
.cal .dow { text-align: center; color: var(--muted); letter-spacing: 0.1em; font-size: 9px; padding-bottom: 6px; }
.cal .d { aspect-ratio: 1 / 0.85; border-radius: 10px; border: 1px solid rgba(255, 107, 107, 0.25); background: rgba(255, 107, 107, 0.06); padding: 8px; display: flex; flex-direction: column; justify-content: space-between; }
.cal .d.ok { border-color: rgba(52, 211, 153, 0.25); background: rgba(52, 211, 153, 0.06); }
.cal .d.today { outline: 2px solid var(--accent); outline-offset: -2px; }
.cal .d.empty { border-color: var(--line); background: transparent; }
.cal .d span { color: var(--muted); font-weight: 600; }
.cal .d b { font-size: 11px; color: #ff9a9a; font-variant-numeric: tabular-nums; }
.cal .d.ok b { color: var(--green); }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.cal-head h5 { margin: 0; font-size: 15px; color: var(--text); }
.cal-head .pill { font-size: 10px; color: var(--muted); }
.cal-head .pill b { color: var(--red); font-size: 13px; margin-left: 8px; }

/* Export panel */
.exp { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; font-size: 11px; color: var(--text-2); }
.exp .opt { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #141416; margin-bottom: 10px; }
.exp .opt.on { border-color: rgba(255, 255, 255, 0.35); }
.exp .opt .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-size: 9px; font-weight: 800; }
.exp .opt b { display: block; color: var(--text); font-size: 12px; }
.exp .opt small { color: var(--muted); }
.exp .opt .cb { margin-left: auto; width: 16px; height: 16px; border-radius: 5px; border: 1px solid var(--line-2); }
.exp .opt.on .cb { background: #fff; border-color: #fff; position: relative; }
.exp .opt.on .cb::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #000; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.exp .months { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-top: 6px; }
.exp .months i { font-style: normal; text-align: center; padding: 8px 0; border-radius: 8px; border: 1px solid var(--line); font-size: 10px; color: var(--text-2); }
.exp .months i.on { background: #fff; color: #000; font-weight: 700; }
.exp .sum { background: #141416; border: 1px solid var(--line); border-radius: 12px; padding: 14px; align-self: start; }
.exp .sum h6 { margin: 0 0 12px; font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.exp .sum dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; }
.exp .sum dt { color: var(--muted); } .exp .sum dd { margin: 0; color: var(--text); font-weight: 600; }
.exp .sum .go { margin-top: 14px; height: 36px; border-radius: 10px; background: #fff; color: #000; font-weight: 700; display: grid; place-items: center; font-size: 11px; }

/* Locations panel */
.map { position: relative; height: 100%; border-radius: 14px; overflow: hidden; background: #111114; border: 1px solid var(--line); }
.map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px); background-size: 40px 40px; }
.map .road { position: absolute; height: 24px; background: rgba(255, 255, 255, 0.05); border-radius: 12px; }
.map .pin { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 4px; transform: translate(-50%, -100%); }
.map .pin span { font-size: 10px; padding: 3px 8px; border-radius: 6px; background: #fff; color: #000; font-weight: 600; }
.map .pin i { width: 12px; height: 12px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #cfd0d6; }
.map .pin.hot span { background: var(--accent); color: #1a0d07; }
.map .pin.hot i { background: var(--accent); }
.map .fence { position: absolute; width: 150px; height: 150px; border-radius: 50%; border: 1.5px dashed rgba(254, 129, 87, 0.7); background: rgba(254, 129, 87, 0.08); transform: translate(-50%, -50%); animation: fence 3s ease-in-out infinite; }
@keyframes fence { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.06); } }
.map .card { position: absolute; left: 16px; bottom: 16px; background: rgba(21, 21, 23, 0.9); border: 1px solid var(--line-2); border-radius: 12px; padding: 12px 14px; font-size: 11px; color: var(--text-2); backdrop-filter: blur(10px); }
.map .card b { display: block; color: var(--text); font-size: 12px; margin-bottom: 2px; }

/* Policies panel */
.pol { font-size: 12px; color: var(--text-2); }
.pol .row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.pol .row:last-child { border-bottom: 0; }
.pol .row b { display: block; color: var(--text); font-size: 13px; margin-bottom: 2px; }
.pol .row small { color: var(--muted); }
.pol .sw { flex: none; width: 40px; height: 24px; border-radius: 999px; background: #2a2a2e; position: relative; transition: background 0.3s; }
.pol .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.3s var(--ease); }
.pol .sw.on { background: var(--green); } .pol .sw.on::after { transform: translateX(16px); }
.pol .sel { flex: none; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: 11px; color: var(--text); }
.pol h5 { margin: 0 0 6px; font-size: 14px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.pol h5 i { width: 26px; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); display: grid; place-items: center; }

/* Mobile fallback for scrollytelling */
@media (max-width: 900px) {
  .features-sticky { position: static; height: auto; display: block; }
  .feature-steps { min-height: 0; }
  .feature-step { position: static; opacity: 1; transform: none; pointer-events: auto; margin-bottom: 20px; }
  .feature-visual { height: auto; margin-bottom: 64px; }
  .feature-panel { position: relative; opacity: 1; transform: none; height: 420px; }
  .feature-panel::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; pointer-events: none; background: linear-gradient(180deg, transparent, #0f0f11 95%); }
  .feature-panel .inner { padding: 14px; }
  .feature-progress { display: none; }
  .cal { gap: 4px; }
  .cal .d { padding: 5px 4px; border-radius: 7px; aspect-ratio: 1 / 1.05; }
  .cal .d span { font-size: 8px; }
  .cal .d b { font-size: 7.5px; letter-spacing: -0.02em; }
  .cal-head { flex-direction: column; align-items: flex-start; gap: 4px; }
  .exp .months { grid-template-columns: repeat(4, 1fr); }
  .feature-mobile-group { padding-bottom: 8px; }
  .exp { grid-template-columns: 1fr; }
}

/* ---------- Integrations ---------- */
.integrations { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.int-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.int {
  padding: 18px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px; min-height: 108px; transition: transform 0.5s var(--ease), border-color 0.3s;
}
.int:hover { transform: translateY(-4px); border-color: var(--line-2); }
.int .mark { width: 40px; height: 40px; border-radius: 10px; background: #1f1f23; display: grid; place-items: center; font-size: 10px; font-weight: 800; letter-spacing: 0.02em; color: var(--text-2); }
.int b { font-size: 0.92rem; color: var(--text); }
.int small { font-size: 0.75rem; color: var(--muted); }
.int .st { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.int.live { border-color: rgba(52, 211, 153, 0.35); }
.int.live .st { color: var(--green); }
.int.live .mark { background: #fff; color: #e0261c; font-size: 11px; }
.int-copy .lead { margin: 18px 0 26px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.checks li svg { width: 20px; height: 20px; color: var(--green); flex: none; margin-top: 2px; }
@media (max-width: 900px) { .integrations { grid-template-columns: 1fr; } .int-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Security ---------- */
.security { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.sec {
  padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card);
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.sec:hover { transform: translateY(-4px); border-color: var(--line-2); }
.sec .icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 18px; }
.sec .icon svg { width: 22px; height: 22px; }
.sec h3 { font-size: 1.1rem; margin-bottom: 8px; }
.sec p { margin: 0; font-size: 0.92rem; color: var(--muted); }
@media (max-width: 1000px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .sec-grid { grid-template-columns: 1fr; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 60px; }
.stat { text-align: center; padding: 28px 16px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); }
.stat b { display: block; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stat span { font-size: 0.9rem; color: var(--muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta-wrap { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(48px, 7vw, 96px) clamp(24px, 6vw, 80px); text-align: center; border: 1px solid var(--line-2);
  background: var(--card); }
.cta-wrap::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%); -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 50%, #000, transparent 80%); }
.cta-wrap > * { position: relative; }
.cta-wrap .app-icon { width: 84px; height: 84px; border-radius: 22px; margin: 0 auto 28px; box-shadow: 0 20px 50px -25px rgba(0, 0, 0, 0.9); }
.cta-wrap h2 { margin-bottom: 16px; }
.cta-wrap .lead { max-width: 560px; margin: 0 auto 32px; }
.stores { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: #000; border: 1px solid var(--line-2); color: #fff; min-width: 180px; text-align: left;
  transition: transform 0.4s var(--ease), border-color 0.3s;
}
.store:hover { transform: translateY(-3px); border-color: rgba(255, 255, 255, 0.35); }
.store svg { width: 26px; height: 26px; flex: none; }
.store small { display: block; font-size: 0.66rem; color: #bbb; letter-spacing: 0.02em; }
.store b { display: block; font-size: 1.05rem; font-weight: 600; line-height: 1.15; }
.store.web { background: var(--accent); border-color: transparent; color: #1a0d07; }
.store.web small { color: rgba(26, 13, 7, 0.7); }

/* ---------- Footer ---------- */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 48px; }
.footer .logo svg { height: 24px; }
.footer p { color: var(--muted); font-size: 0.9rem; max-width: 300px; margin: 16px 0 0; }
.footer h4 { margin: 0 0 14px; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer li a { font-size: 0.92rem; color: var(--muted); transition: color 0.2s; }
.footer li a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.82rem; color: var(--muted); }
.footer-bottom nav { display: flex; gap: 18px; }
.footer-bottom a:hover { color: var(--text); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + 64px) 0 96px; }
.legal .container { max-width: 780px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); letter-spacing: -0.03em; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 48px; }
.legal h2 { font-size: 1.5rem; margin: 48px 0 14px; letter-spacing: -0.02em; }
.legal h3 { font-size: 1.1rem; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 1rem; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--text-2); line-height: 1.7; padding: 20px 24px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.legal .todo { display: inline-block; padding: 1px 8px; border-radius: 6px; background: rgba(254, 129, 87, 0.15); color: var(--accent); font-family: var(--mono); font-size: 0.85em; }
.legal .note { padding: 16px 20px; border-radius: 12px; border: 1px dashed rgba(254, 129, 87, 0.5); background: rgba(254, 129, 87, 0.06); font-size: 0.92rem; color: var(--text-2); margin-bottom: 32px; }
.legal .note b { color: var(--accent); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .reveal-words .w > span, .fade-up, .device-window, .device-phone, .hero-float, [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   App mockups (light UI, scaled with container units)
   ============================================================ */
.aph-wrap { container-type: inline-size; }
.aph-screen {
  --abg: #f2f2f3; --acard: #fff; --atext: #1d1d1f; --amuted: #6f6f75; --aline: rgba(0,0,0,.08);
  --ared: #d63a2f; --agreen: #2f9e6c; --aamber: #b8770f;
  position: absolute; inset: 0; display: flex; flex-direction: column;
  background: var(--abg); color: var(--atext); font-size: 5.1cqw; line-height: 1.3;
  font-family: var(--font); text-align: left; overflow: hidden; -webkit-font-smoothing: antialiased;
}
.aph-screen * { box-sizing: border-box; }
.aph-screen b { font-weight: 700; }
.aph-screen small { display: block; }
.aph-screen .sb { height: 3.6em; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 1.6em; font-size: 1em; font-weight: 600; position: relative; }
.aph-screen .sb .icons { display: flex; gap: .35em; align-items: center; }
.aph-screen .sb .icons i { display: block; background: var(--atext); }
.aph-screen .sb .icons .sig { width: .9em; height: .8em; clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.aph-screen .sb .icons .wifi { width: .9em; height: .9em; border-radius: 50% 50% 0 0; clip-path: polygon(50% 100%, 0 25%, 100% 25%); }
.aph-screen .sb .icons .bat { width: 1.5em; height: .75em; border-radius: .15em; }
.aph-screen .island { position: absolute; left: 50%; top: .9em; transform: translateX(-50%); width: 7em; height: 1.9em; border-radius: 999px; background: #000; }
.aph-screen .hole { position: absolute; left: 50%; top: .9em; transform: translateX(-50%); width: 1.1em; height: 1.1em; border-radius: 50%; background: #000; }
.aph-screen .scr { flex: 1; padding: .6em 1.4em 1em; overflow: hidden; }
.aph-screen .home { flex: none; height: 1.6em; background: var(--acard); position: relative; }
.aph-screen .home::after { content: ""; position: absolute; left: 50%; bottom: .45em; transform: translateX(-50%); width: 9em; height: .35em; border-radius: 999px; background: var(--atext); }
/* OS variants */
.os-android .ios-only, .os-ios .android-only { display: none !important; }
.os-android .aph-screen .home::after { width: 6em; height: .3em; }
.os-android .aph-screen .sb { justify-content: space-between; }

/* tab bar */
.aph-screen .tabbar { flex: none; display: flex; justify-content: space-around; align-items: flex-end; background: var(--acard); border-top: 1px solid var(--aline); padding: .6em 0 .3em; }
.aph-screen .tab { display: flex; flex-direction: column; align-items: center; gap: .25em; font-size: .78em; color: var(--amuted); width: 6em; }
.aph-screen .tab svg { width: 1.7em; height: 1.7em; }
.aph-screen .tab .pillbg { display: grid; place-items: center; padding: .25em 1.1em; border-radius: 999px; }
.os-android .aph-screen .tab.on .pillbg { background: #e8e8ea; }
.os-android .aph-screen .tab.on { color: var(--atext); font-weight: 600; }
.os-ios .aph-screen .tab.on { color: var(--accent); }
.os-ios .aph-screen .tabbar { padding-top: .5em; }
.os-ios .aph-screen .tab .pillbg { padding: .1em; }

/* generic pieces */
.aph-screen .title { font-size: 1.9em; font-weight: 800; letter-spacing: -.02em; display: flex; justify-content: space-between; align-items: center; }
.aph-screen .title .r { font-size: .55em; font-weight: 400; color: var(--amuted); border: .12em solid currentColor; border-radius: 50%; width: 1.6em; height: 1.6em; display: grid; place-items: center; }
.aph-screen .title .plus { color: var(--accent); font-weight: 300; font-size: .9em; }
.aph-screen .upd { font-size: .78em; color: var(--amuted); margin: .1em 0 1em; }
.aph-screen .lbl { font-size: .7em; letter-spacing: .06em; text-transform: uppercase; color: var(--amuted); font-weight: 600; }
.aph-screen .hd { display: flex; align-items: center; gap: .6em; margin-top: .2em; }
.aph-screen .hd .av { width: 2.6em; height: 2.6em; border-radius: 50%; background: #1d1d1f; color: #fff; font-weight: 800; font-size: .8em; display: grid; place-items: center; }
.aph-screen .hd b { font-size: 1.75em; letter-spacing: -.02em; }
.aph-screen .big { font-size: 3.4em; font-weight: 800; letter-spacing: -.04em; line-height: 1; margin: .15em 0 .1em; }
.aph-screen .big span { font-size: .55em; }
.aph-screen .pos { color: var(--agreen); } .aph-screen .neg { color: var(--ared); }
.aph-screen .sub { font-size: .8em; color: var(--amuted); display: flex; gap: 1.2em; margin-bottom: .9em; }
.aph-screen .apill { display: inline-block; padding: .55em 1.1em; border-radius: 999px; background: rgba(254,129,87,.16); color: var(--accent); font-weight: 700; font-size: .9em; margin-bottom: 1em; }
.aph-screen .card { background: var(--acard); border-radius: 1.3em; padding: 1em; }
.aph-screen .two { display: grid; grid-template-columns: 1fr 1fr; gap: .7em; margin-bottom: .7em; }
.aph-screen .two .card { min-height: 9em; display: flex; flex-direction: column; }
.aph-screen .two .mid { font-size: 1.3em; white-space: nowrap; }
.aph-screen .mid { font-size: 1.55em; font-weight: 800; letter-spacing: -.03em; margin-top: .3em; display: block; }
.aph-screen .mid span { font-size: .6em; font-weight: 400; color: var(--amuted); }
.aph-screen .card small { font-size: .78em; color: var(--amuted); }
.aph-screen .card .foot { margin-top: auto; padding-top: 1em; }
.aph-screen .dots { display: flex; flex-wrap: wrap; gap: .18em; margin-top: auto; padding-top: .8em; }
.aph-screen .dots i { width: .42em; height: .95em; border-radius: 999px; background: #dcdcdf; }
.aph-screen .dots i.f { background: #1d1d1f; }
.aph-screen .row { display: flex; align-items: center; gap: .8em; }
.aph-screen .row .ic { width: 2.6em; height: 2.6em; border-radius: .8em; background: #ececee; display: grid; place-items: center; }
.aph-screen .row .ic svg { width: 1.3em; height: 1.3em; }
.aph-screen .row b { font-size: 1.15em; }
.aph-screen .row .cnt { margin-left: auto; font-size: 2.2em; color: var(--accent); font-weight: 800; }
.aph-screen .legend { display: flex; gap: .8em; font-size: .78em; margin-top: .7em; }
.aph-screen .legend span::before { content: ""; display: inline-block; width: .55em; height: .55em; border-radius: 50%; margin-right: .3em; background: var(--aamber); }
.aph-screen .legend .g::before { background: var(--agreen); } .aph-screen .legend .r::before { background: var(--ared); }
/* segmented */
.aph-screen .seg { display: flex; border: 1px solid #b9b9bf; border-radius: 999px; overflow: hidden; margin-bottom: 1em; font-weight: 700; font-size: .9em; }
.aph-screen .seg span { flex: 1; text-align: center; padding: .55em 0; border-right: 1px solid #b9b9bf; }
.aph-screen .seg span:last-child { border-right: 0; }
.aph-screen .seg .on { background: rgba(254,129,87,.16); color: var(--accent); }
/* calendar week cards */
.aph-screen .kw { margin-bottom: .7em; }
.aph-screen .kw .kwh { display: flex; justify-content: space-between; align-items: flex-start; }
.aph-screen .kw .kwh b { font-size: 1.25em; }
.aph-screen .kw .kwh small { font-size: .75em; color: var(--amuted); }
.aph-screen .kw .kwh .sum { font-size: 1.15em; font-weight: 800; }
.aph-screen .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .2em; margin-top: .9em; text-align: center; font-size: .72em; color: var(--amuted); }
.aph-screen .days i { display: block; width: 2.4em; height: 2.4em; margin: .3em auto 0; border-radius: 50%; border: 1px solid #d6d6da; font-style: normal; color: var(--atext); display: grid; place-items: center; font-weight: 500; }
.aph-screen .days .today i { background: #1d1d1f; color: #fff; border-color: #1d1d1f; }
.aph-screen .days .dim, .aph-screen .days .dim i { color: #b9b9bf; }
.aph-screen .days em { display: block; font-style: normal; font-size: .85em; font-weight: 700; margin-top: .3em; }
/* detail */
.aph-screen .back { display: flex; align-items: center; gap: .8em; font-size: 1.45em; font-weight: 800; letter-spacing: -.02em; }
.aph-screen .back small { font-size: .55em; font-weight: 400; color: var(--amuted); }
.aph-screen .date { font-size: 2.1em; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; margin: .1em 0 .6em; }
.aph-screen .chip { display: inline-block; padding: .15em .7em; border-radius: 999px; font-size: .72em; font-weight: 700; background: rgba(47,158,108,.15); color: var(--agreen); vertical-align: middle; margin-left: .4em; }
.aph-screen .chip.warn { background: rgba(254,129,87,.16); color: var(--accent); }
.aph-screen .stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: .5em 0 1em; padding-bottom: .9em; border-bottom: 1px solid var(--aline); }
.aph-screen .stats b { font-size: 1.5em; display: block; letter-spacing: -.02em; }
.aph-screen .stats small { font-size: .78em; color: var(--amuted); }
.aph-screen .bk { background: #ececee; border-radius: 1.2em; padding: .9em 1em; margin: .6em 0; }
.aph-screen .bk.open { background: #fff5f0; border: 1px solid rgba(254,129,87,.5); }
.aph-screen .bk .t { display: flex; justify-content: space-between; font-size: .72em; color: var(--amuted); font-weight: 600; }
.aph-screen .bk .t b { color: var(--atext); }
.aph-screen .bk .rng { font-size: 1.25em; font-weight: 800; margin: .1em 0; }
.aph-screen .bk .prj { font-size: .78em; color: var(--amuted); padding-bottom: .6em; border-bottom: 1px solid var(--aline); margin-bottom: .5em; }
.aph-screen .bk .io { display: grid; grid-template-columns: 5.5em 1fr; font-size: .85em; gap: .2em 0; }
.aph-screen .bk .io span { color: var(--amuted); }
.aph-screen .bk .io b { font-weight: 600; }
.aph-screen .bk .fix { text-align: right; color: var(--accent); font-weight: 700; font-size: .85em; margin-top: .4em; }
/* absence */
.aph-screen .vac { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.aph-screen .vac div { padding-left: .6em; }
.aph-screen .vac div + div { border-left: 1px solid var(--aline); }
.aph-screen .vac b { font-size: 2.2em; display: block; letter-spacing: -.03em; }
.aph-screen .chips { display: flex; gap: .5em; margin: 1em 0 .8em; font-size: .85em; font-weight: 700; overflow: hidden; }
.aph-screen .chips span { padding: .45em .9em; border-radius: 999px; background: #fff; border: 1px solid var(--aline); white-space: nowrap; }
.aph-screen .chips span i { font-style: normal; font-weight: 500; color: var(--amuted); margin-left: .4em; }
.aph-screen .chips .on { background: rgba(254,129,87,.16); color: var(--accent); border-color: transparent; }
.aph-screen .sect { display: flex; justify-content: space-between; font-size: 1.15em; font-weight: 800; margin-bottom: .6em; }
.aph-screen .sect span { color: var(--amuted); font-weight: 400; }
.aph-screen .req .rh { display: flex; justify-content: space-between; align-items: center; font-size: 1.15em; font-weight: 800; }
.aph-screen .req .rh .chip { font-size: .62em; background: rgba(184,119,15,.14); color: var(--aamber); }
.aph-screen .req .tl { display: flex; align-items: center; gap: .5em; margin-top: .8em; }
.aph-screen .req .tl .d { background: #ececee; border-radius: .8em; padding: .5em .8em; text-align: center; line-height: 1.1; }
.aph-screen .req .tl .d b { font-size: 1.5em; display: block; }
.aph-screen .req .tl .d small { font-size: .7em; color: var(--amuted); }
.aph-screen .req .tl .ln { flex: 1; border-top: 1px dashed #c8c8cc; position: relative; }
.aph-screen .req .tl .ln span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #ececee; border-radius: 999px; padding: .2em .7em; font-size: .72em; white-space: nowrap; }

/* ---------- App showcase section ---------- */
.os-switch { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,.04); margin-top: 28px; }
.os-switch button { border: 0; background: transparent; color: var(--text-2); padding: 9px 20px; border-radius: 999px; font-weight: 600; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background .25s, color .25s; }
.os-switch button svg { width: 16px; height: 16px; }
.os-switch button.on { background: var(--text); color: #0a0a0b; }
.app-showcase { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; align-items: start; margin-top: 56px; }
.app-showcase .aph { position: relative; }
.app-showcase .aph:nth-child(even) { margin-top: 56px; }
.aph-frame {
  position: relative; border-radius: 12.5%/6%; background: #0b0b0c; padding: 3.2%;
  border: 1px solid rgba(255,255,255,.18); box-shadow: 0 50px 100px -40px rgba(0,0,0,.9), inset 0 0 0 2px #1a1a1d;
}
.aph-frame .aph-wrap { position: relative; aspect-ratio: 9 / 19.4; border-radius: 11%/5.3%; overflow: hidden; background: #f2f2f3; }
.os-android .aph-frame { border-radius: 9%/4.3%; }
.os-android .aph-frame .aph-wrap { border-radius: 7.5%/3.6%; }
.aph-cap { text-align: center; margin-top: 18px; }
.aph-cap b { display: block; font-size: .95rem; }
.aph-cap span { font-size: .82rem; color: var(--muted); }
@media (max-width: 1000px) {
  .app-showcase { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 24px; margin-top: 40px; -webkit-overflow-scrolling: touch; }
  .app-showcase .aph { flex: 0 0 min(72vw, 260px); scroll-snap-align: center; }
  .app-showcase .aph:nth-child(even) { margin-top: 0; }
}
/* hero phone uses the same screen */
.phone-screen { container-type: inline-size; }


/* ---------- Intro: logo → ai highlight ---------- */
.intro { position: relative; height: 280vh; background: var(--bg); }
.intro-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; overflow: hidden; }
.intro-stage { display: flex; flex-direction: column; align-items: center; width: min(760px, 78vw); transform: scale(var(--sc, 1)); opacity: var(--out, 1); will-change: transform, opacity; }
.intro-logo { width: 100%; height: auto; color: var(--text); overflow: visible; }
.intro-logo .l-tm { fill: currentColor; opacity: var(--dim, 1); transition: opacity .15s linear; }
.intro-logo .l-ai { fill: var(--accent); filter: drop-shadow(0 0 calc(var(--glow, 0) * 28px) rgba(254, 129, 87, calc(var(--glow, 0) * .55))); }
.intro-cap { text-align: center; margin-top: 48px; max-width: 640px; opacity: var(--cap, 0); transform: translateY(calc((1 - var(--cap, 0)) * 24px)); pointer-events: none; }
.intro-cap .eyebrow { justify-content: center; margin-bottom: 16px; }
.intro-cap .eyebrow b { color: var(--accent); font-weight: 800; }
.intro-cap .h2 { margin-bottom: 14px; }
.intro-cap .lead { margin: 0 auto; }
.intro-hint { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); opacity: var(--hint, 1); transition: opacity .3s; }
.intro-hint span { width: 1px; height: 36px; background: linear-gradient(180deg, var(--muted), transparent); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.intro-logo { opacity: 0; transform: translateY(16px) scale(.96); animation: fadeUp 1.2s var(--ease) .2s forwards; }
.nav .logo { transition: opacity .35s; }
.nav.logo-hidden .logo { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .intro { height: 240vh; } .intro-stage { width: 84vw; } .intro-cap { margin-top: 32px; } .intro-cap .lead { font-size: 1rem; } }
@media (prefers-reduced-motion: reduce) { .intro { height: auto; padding: 120px 0 40px; } .intro-sticky { position: static; height: auto; } .intro-stage { --dim: .15; --cap: 1; } .intro-hint { display: none; } }

/* hero entrance now waits until the hero is in view */
.hero:not(.play) .reveal-words .w > span,
.hero:not(.play) .fade-up,
.hero:not(.play) .device-window,
.hero:not(.play) .device-phone,
.hero:not(.play) .hero-float { animation-play-state: paused; }

/* coming soon states */
.store.soon { opacity: .55; cursor: default; pointer-events: none; }
.plat .tag.soon { color: var(--accent); border-color: rgba(254,129,87,.4); }

/* ============================================================
   Terminal section: NFC tablet demo + UWB coming soon
   ============================================================ */
.terminal-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: stretch; }
.tcard { position: relative; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden; }
.tcard-head { padding: 26px 28px 0; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tcard-head h3 { font-size: 1.35rem; margin-bottom: 6px; }
.tcard-head p { margin: 0; color: var(--muted); font-size: .95rem; max-width: 520px; }
.badge-soon { flex: none; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--accent); border: 1px solid rgba(254,129,87,.45); padding: 5px 10px; border-radius: 6px; }
.badge-live { flex: none; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--green); border: 1px solid rgba(52,211,153,.4); padding: 5px 10px; border-radius: 6px; }

/* --- NFC stage --- */
.nfc-stage { position: relative; height: 380px; margin-top: 18px; }
.tablet { position: absolute; left: 6%; right: 22%; top: 34px; bottom: 26px; border-radius: 22px; background: #0b0b0c; border: 1px solid rgba(255,255,255,.18); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), inset 0 0 0 2px #1a1a1d; padding: 12px; }
.tablet-screen { position: relative; height: 100%; border-radius: 12px; background: #101012; overflow: hidden; display: flex; flex-direction: column; padding: 18px 22px; font-size: 12px; color: var(--text-2); }
.tablet-screen .tb-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.tablet-screen .tb-head b { color: var(--text); letter-spacing: 0; text-transform: none; font-size: 12px; }
.tablet-screen .tb-clock { font-size: 40px; font-weight: 700; color: var(--text); letter-spacing: -.02em; margin: 14px 0 4px; font-variant-numeric: tabular-nums; line-height: 1; }
.tablet-screen .tb-date { color: var(--muted); font-size: 11px; }
.tb-state { position: absolute; left: 22px; right: 22px; bottom: 18px; }
.tb-panel { position: absolute; inset: auto 0 0 0; border-radius: 12px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; opacity: 0; transform: translateY(8px); }
.tb-panel .av { width: 34px; height: 34px; border-radius: 50%; background: #2a2a2e; color: var(--text); font-weight: 700; font-size: 11px; display: grid; place-items: center; flex: none; }
.tb-panel b { display: block; color: var(--text); font-size: 13px; }
.tb-panel small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.tb-panel .ok { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.tb-panel .ok svg { width: 14px; height: 14px; }
.tb-idle { background: #16161a; border: 1px dashed var(--line-2); color: var(--muted); }
.tb-idle .nfc { width: 34px; height: 34px; border-radius: 10px; background: rgba(254,129,87,.14); color: var(--accent); display: grid; place-items: center; flex: none; }
.tb-idle .nfc svg { width: 18px; height: 18px; }
.tb-in { background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.35); }
.tb-in .ok { background: var(--green); color: #05130d; }
.tb-out { background: rgba(254,129,87,.1); border: 1px solid rgba(254,129,87,.35); }
.tb-out .ok { background: var(--accent); color: #1a0d07; }

.nfc-phone { --tapx: -40px; --tapy: -30px; position: absolute; right: 4%; bottom: -8%; width: 120px; aspect-ratio: 9/19; border-radius: 22px; background: #0b0b0c; border: 1px solid rgba(255,255,255,.2); box-shadow: 0 30px 60px -20px rgba(0,0,0,.9), inset 0 0 0 2px #1a1a1d; padding: 6px; transform: translate(70px, 60px) rotate(-12deg); }
.nfc-phone .sc { height: 100%; border-radius: 16px; background: #f2f2f3; position: relative; overflow: hidden; }
.nfc-phone .sc::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 34px; height: 9px; border-radius: 999px; background: #000; }
.nfc-phone .toast { position: absolute; left: 6px; right: 6px; top: 22px; background: #fff; border-radius: 10px; padding: 7px 8px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); font-size: 8px; color: #1d1d1f; display: flex; gap: 6px; align-items: center; opacity: 0; transform: translateY(-6px); }
.nfc-phone .toast i { width: 14px; height: 14px; border-radius: 4px; background: var(--accent); flex: none; display: grid; place-items: center; color: #fff; font-style: normal; font-weight: 800; font-size: 8px; }
.nfc-phone .toast b { display: block; font-size: 8px; }
.nfc-phone .toast small { display: block; font-size: 7px; color: #6f6f75; }
.nfc-phone .app { position: absolute; left: 8px; right: 8px; top: 62px; font-size: 7.5px; color: #6f6f75; }
.nfc-phone .app b { display: block; color: #1d1d1f; font-size: 11px; letter-spacing: -.02em; }
.nfc-phone .app .bar { margin-top: 6px; height: 26px; border-radius: 8px; background: #fff; }
.nfc-phone .app .bar + .bar { margin-top: 4px; height: 40px; }

.ripple { position: absolute; right: calc(4% + 60px); bottom: calc(-8% + 150px); width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--accent); transform: translate(50%, 50%) scale(0); opacity: 0; pointer-events: none; }
.ripple.r2 { animation-delay: .25s !important; }
.ripple.r3 { animation-delay: .5s !important; }

/* 12 s loop: 0–1 idle · 1–2 phone in · 2–5 check-in · 5–6 out · 6–7 idle · 7–8 in · 8–11 check-out · 11–12 out */
.nfc-stage.animate .nfc-phone { animation: phoneTap 12s ease-in-out infinite; }
.nfc-stage.animate .tb-in { animation: showIn 12s ease infinite; }
.nfc-stage.animate .tb-out { animation: showOut 12s ease infinite; }
.nfc-stage.animate .tb-idle { animation: showIdle 12s ease infinite; }
.nfc-stage.animate .ripple { animation: ripple 12s ease-out infinite; }
.nfc-stage.animate .nfc-phone .toast.t-in { animation: showIn 12s ease infinite; }
.nfc-stage.animate .nfc-phone .toast.t-out { animation: showOut 12s ease infinite; }
@keyframes phoneTap {
  0%, 4% { transform: translate(70px, 60px) rotate(-12deg); }
  12%, 42% { transform: translate(var(--tapx), var(--tapy)) rotate(-8deg); }
  50%, 58% { transform: translate(70px, 60px) rotate(-12deg); }
  66%, 92% { transform: translate(var(--tapx), var(--tapy)) rotate(-8deg); }
  100% { transform: translate(70px, 60px) rotate(-12deg); }
}
@keyframes showIn  { 0%, 15% { opacity: 0; transform: translateY(8px); } 18%, 42% { opacity: 1; transform: none; } 46%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes showOut { 0%, 65% { opacity: 0; transform: translateY(8px); } 68%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes showIdle { 0%, 14% { opacity: 1; transform: none; } 17%, 45% { opacity: 0; transform: translateY(8px); } 48%, 64% { opacity: 1; transform: none; } 67%, 95% { opacity: 0; transform: translateY(8px); } 98%, 100% { opacity: 1; transform: none; } }
@keyframes ripple {
  0%, 14% { transform: translate(50%, 50%) scale(0); opacity: 0; }
  15% { opacity: .9; } 24% { transform: translate(50%, 50%) scale(7); opacity: 0; }
  25%, 64% { transform: translate(50%, 50%) scale(0); opacity: 0; }
  65% { opacity: .9; } 74% { transform: translate(50%, 50%) scale(7); opacity: 0; }
  75%, 100% { transform: translate(50%, 50%) scale(0); opacity: 0; }
}
.nfc-stage:not(.animate) .tb-in, .nfc-stage:not(.animate) .nfc-phone .toast.t-in { opacity: 1; transform: none; }
.nfc-stage:not(.animate) .tb-idle { opacity: 0; }
.nfc-stage:not(.animate) .nfc-phone { transform: translate(var(--tapx), var(--tapy)) rotate(-8deg); }

/* --- UWB card --- */
.uwb-stage { position: relative; height: 260px; margin: 18px 0 0; overflow: hidden; }
.uwb-door { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: 70px; height: 110px; border: 2px solid var(--line-2); border-bottom: 0; border-radius: 10px 10px 0 0; }
.uwb-door::after { content: ""; position: absolute; left: -60px; right: -60px; bottom: -2px; height: 2px; background: var(--line-2); }
.uwb-ring { position: absolute; left: 50%; bottom: 40px; transform: translate(-50%, 50%); border-radius: 50%; border: 1px solid rgba(254,129,87,.35); }
.uwb-ring.a { width: 120px; height: 120px; } .uwb-ring.b { width: 220px; height: 220px; border-style: dashed; } .uwb-ring.c { width: 320px; height: 320px; opacity: .5; }
.uwb-dot { position: absolute; left: 50%; bottom: 40px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(254,129,87,.25); transform: translate(-50%, 50%); }
.uwb-walker { position: absolute; left: 50%; bottom: 40px; width: 14px; height: 14px; border-radius: 50%; background: var(--text); transform: translate(-50%, 50%); animation: walk 6s ease-in-out infinite; }
.uwb-walker::after { content: "Erika M."; position: absolute; left: 20px; top: -4px; font-size: 10px; color: var(--muted); white-space: nowrap; }
@keyframes walk { 0% { transform: translate(-50%, -150px); opacity: 0; } 10% { opacity: 1; } 45%, 55% { transform: translate(-50%, -20px); } 90% { opacity: 1; } 100% { transform: translate(-50%, 50%); opacity: 0; } }
.uwb-tag { position: absolute; left: 50%; top: 22px; transform: translateX(-50%); font-size: 10.5px; color: var(--text-2); background: #16161a; border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 10px; white-space: nowrap; opacity: 0; animation: uwbTag 6s ease infinite; }
.uwb-tag b { color: var(--green); }
@keyframes uwbTag { 0%, 40% { opacity: 0; transform: translate(-50%, 6px); } 48%, 85% { opacity: 1; transform: translate(-50%, 0); } 92%, 100% { opacity: 0; } }
.tcard ul.mini { list-style: none; margin: 0; padding: 0 28px 26px; display: grid; gap: 8px; font-size: .9rem; color: var(--text-2); }
.tcard ul.mini li { display: flex; gap: 10px; align-items: flex-start; }
.tcard ul.mini li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 8px; }
.terminal-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.fact { padding: 22px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); }
.fact .icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(255,255,255,.06); display: grid; place-items: center; margin-bottom: 14px; color: var(--text); }
.fact .icon svg { width: 20px; height: 20px; }
.fact h4 { margin: 0 0 6px; font-size: 1rem; }
.fact p { margin: 0; color: var(--muted); font-size: .9rem; }
@media (max-width: 1000px) {
  .terminal-grid { grid-template-columns: 1fr; }
  .terminal-facts { grid-template-columns: 1fr; }
  .nfc-stage { height: 320px; }
  .tablet { left: 4%; right: 26%; }
  .tablet-screen .tb-clock { font-size: 30px; }
  .nfc-phone { width: 96px; --tapx: -14px; --tapy: -16px; }
  .ripple { right: calc(4% + 48px); bottom: calc(-8% + 120px); }
}
@media (max-width: 560px) {
  .nfc-stage { height: 300px; }
  .tablet { right: 30%; padding: 8px; }
  .nfc-phone { width: 80px; --tapx: -6px; --tapy: -10px; }
  .tablet-screen .tb-head span { display: none; }
  .tablet-screen { padding: 12px 14px; }
  .tb-panel { padding: 10px 12px; }
  .tb-panel small { display: none; }
}
@media (prefers-reduced-motion: reduce) { .uwb-walker, .uwb-tag { animation: none; opacity: 1; transform: translate(-50%, -20px); } .uwb-tag { transform: translateX(-50%); } }
