/* Hendis landing page. Builds on app.css tokens; everything here is marketing-only layout and motion.
   One signature moment (the hero's holographic building), everything after it calm and readable. */

html, body { height: auto; }
html { overflow-x: clip; scroll-padding-top: 80px; }
body.lp { overflow-x: clip; background: var(--bg); font-size: 16px; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 640px) { .lp-wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); } }
.lp h1, .lp h2, .lp h3 { text-wrap: balance; }
.lp .eyebrow { font-size: 12px; color: var(--blue-text); }
.lp-sec { padding-block: 128px; position: relative; }
@media (max-width: 760px) { .lp-sec { padding-block: 84px; } }
.sec-title { display: flex; flex-direction: column; gap: 14px; max-width: 720px; margin-bottom: 56px; }
.sec-title.center { margin-inline: auto; text-align: center; align-items: center; }
.sec-title h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 650; }
.sec-title p { font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 58ch; }
.grad-text { background: linear-gradient(100deg, var(--text) 10%, var(--blue-text) 55%, var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ───── Nav ───── */
body.lp::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 41; background: var(--bg); }
.lp-nav { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; transition: background-color 240ms ease, box-shadow 240ms ease; }
.lp-nav.scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); box-shadow: 0 1px 0 var(--line); }
@media (prefers-reduced-transparency: reduce) { .lp-nav.scrolled { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.lp-nav .lp-wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.lp-nav .brand { padding: 0; }
.lp-links { position: relative; display: flex; gap: 4px; font-size: 14px; }
.lp-links a { position: relative; z-index: 1; padding: 7px 12px; border-radius: 8px; color: var(--text-2); transition: color 150ms ease; }
.lp-links a[aria-current="true"] { color: var(--text); }
@media (hover: hover) and (pointer: fine) { .lp-links a:hover { color: var(--text); } }
.lp-links .ink { position: absolute; z-index: 0; top: 0; bottom: 0; left: 0; border-radius: 8px; background: rgba(127, 140, 170, 0.1); opacity: 0; transition: transform 300ms var(--ease-out), width 300ms var(--ease-out), opacity 200ms ease; pointer-events: none; }
.lp-nav .cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.menu-toggle { display: none; }
@media (max-width: 860px) {
  .lp-links { display: none; }
  .lp-nav .cta .btn.ghostish { display: none; }
  .menu-toggle { display: inline-grid; }
}
.sheet { position: fixed; z-index: 45; top: calc(env(safe-area-inset-top, 0px) + 64px); left: 12px; right: 12px; padding: 8px; border-radius: 16px; background: var(--panel-2); box-shadow: var(--shadow-pop);
  transform-origin: top right; opacity: 0; transform: scale(0.96) translateY(-6px); pointer-events: none; transition: opacity 180ms ease, transform 240ms var(--ease-out); }
.sheet.on { opacity: 1; transform: none; pointer-events: auto; }
.sheet a { display: flex; align-items: center; justify-content: space-between; padding: 14px 14px; border-radius: 10px; font-size: 16px; font-weight: 500; }
.sheet a + a { border-top: 1px solid var(--line); }
.sheet .row { display: flex; gap: 8px; padding: 10px 6px 4px; }
.sheet .row .btn { flex: 1; height: 44px; justify-content: center; border-top: 1px solid var(--line-2); font-size: 15px; }
.sheet .row .btn.primary { border-top-color: transparent; }
.sheet-scrim { position: fixed; inset: 0; z-index: 44; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity 200ms ease; }
.sheet-scrim.on { opacity: 1; pointer-events: auto; }

/* ───── Buttons with a quiet shine on hover ───── */
.btn.xl { height: 50px; padding: 0 24px; font-size: 15px; border-radius: 12px; }
.btn.shine { position: relative; overflow: hidden; }
.btn.shine::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.28), transparent); transform: skewX(-18deg); transition: left 0ms; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { .btn.shine:hover::after { left: 130%; transition: left 700ms var(--ease-out); } }

/* ───── Hero ───── */
.hero { position: relative; padding-top: 48px; padding-bottom: 40px; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  radial-gradient(760px 520px at 74% 46%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 70%),
  radial-gradient(480px 320px at 8% 4%, color-mix(in srgb, var(--cyan) 10%, transparent), transparent 70%); }
.hero-grid { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask: radial-gradient(ellipse 80% 70% at 60% 40%, #000, transparent 75%); mask: radial-gradient(ellipse 80% 70% at 60% 40%, #000, transparent 75%); }
.hero-in { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 24px; align-items: center; min-height: min(760px, calc(100svh - 112px)); }
.hero-copy { display: flex; flex-direction: column; gap: 26px; position: relative; z-index: 2; }
.hero-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; height: 32px; padding: 0 12px 0 5px; border-radius: 16px; border: 1px solid var(--line-2); background: color-mix(in srgb, var(--panel) 80%, transparent); font-size: 13px; color: var(--text-2); transition: border-color 150ms ease, transform 160ms var(--ease-out); }
.hero-pill:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .hero-pill:hover { border-color: var(--blue-line); color: var(--text); } }
.hero-pill b { font: 600 11px var(--f-mono); color: #fff; background: var(--blue); padding: 4px 8px; border-radius: 10px; letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(46px, 6.6vw, 88px); line-height: 0.98; letter-spacing: -0.048em; font-weight: 650; }
.hero h1 .ln { display: block; }
.hero h1 .w { display: inline-block; }
.hero h1 .w.anim { animation: word-in 1000ms var(--ease-out) both; }
@keyframes word-in { from { opacity: 0; transform: translateY(0.4em); filter: blur(12px); } }
.hero-sub { font-size: clamp(17px, 1.5vw, 19px); line-height: 1.6; color: var(--text-2); max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--text-3); }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { color: var(--green); }
.fade-up { animation: fade-up 900ms var(--ease-out) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }

.holo { position: relative; height: min(680px, calc(100svh - 140px)); min-height: 460px; margin-right: calc(-1 * max(24px, (100vw - 1200px) / 2 + 24px)); cursor: grab; touch-action: pan-y; }
.holo.grabbing { cursor: grabbing; }
.holo canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.holo-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.holo-fallback svg { width: 82%; height: auto; opacity: 0.85; }
.holo-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 7px 11px; border-radius: 10px; font-size: 12px; color: var(--text-2); background: color-mix(in srgb, var(--panel-2) 78%, transparent); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.holo-chip.top { top: 18px; left: 18px; font-family: var(--f-mono); }
.holo-chip.hint { top: 18px; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); transition: opacity 400ms ease; }
.holo-chip.hint.gone { opacity: 0; }
.holo-cap { position: absolute; z-index: 2; left: 18px; bottom: 22px; right: max(24px, calc((100vw - 1200px) / 2 + 24px)); display: flex; justify-content: flex-start; pointer-events: none; }
.cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: 14px; max-width: 440px;
  background: color-mix(in srgb, var(--panel-2) 82%, transparent); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
#capG { grid-row: span 2; display: grid; }
.cap b { font-size: 14px; font-weight: 600; }
.cap small { color: var(--text-2); font-size: 13px; }
.cap .t { transition: filter 220ms ease, opacity 220ms ease, transform 260ms var(--ease-out); }
.cap.swap .t { filter: blur(4px); opacity: 0; transform: translateY(4px); }
.phase-bar { position: absolute; z-index: 2; left: 20px; top: 74px; display: flex; flex-direction: column; gap: 6px; }
.phase-bar span { display: flex; align-items: center; gap: 8px; font: 500 11px var(--f-mono); color: var(--text-3); letter-spacing: 0.04em; transition: color 300ms ease; }
.phase-bar span i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-2); transition: background-color 300ms ease, box-shadow 300ms ease; }
.phase-bar span.on { color: var(--text); }
.phase-bar span.on i { background: var(--blue-hi); box-shadow: 0 0 0 3px var(--blue-soft); }
.phase-bar span.done i { background: var(--blue-hi); }
@media (max-width: 960px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); min-height: 0; gap: 8px; }
  .holo { height: 440px; min-height: 0; margin-right: 0; margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); }
  .holo-chip.hint, .holo-cap { right: 16px; }
  .phase-bar { display: none; }
}
@media (max-width: 560px) { .holo-chip.top { display: none; } .holo-chip.hint { left: 16px; right: auto; } }

/* ───── Product window ───── */
.product { perspective: 1800px; perspective-origin: 50% 0%; }
.window { position: relative; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: 0 60px 120px -40px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04) inset; overflow: hidden; transform-origin: 50% 0%; will-change: transform; }
.window-bar { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.window-bar .url { margin: 0 auto; font: 500 12px var(--f-mono); color: var(--text-3); padding: 4px 14px; border-radius: 7px; background: var(--panel); border: 1px solid var(--line); display: inline-flex; gap: 8px; align-items: center; }
.window-body { position: relative; aspect-ratio: 16 / 9.4; overflow: hidden; background: var(--bg); }
.window-body iframe { position: absolute; left: 0; top: 0; width: 1440px; height: 846px; border: 0; transform-origin: 0 0; pointer-events: none; }
.window-body .skeleton { position: absolute; inset: 0; display: grid; grid-template-columns: 17% 1fr; transition: opacity 500ms ease; }
.window-body .skeleton > div:first-child { background: var(--bg-2); border-right: 1px solid var(--line); }
.window-glow { position: relative; margin: -40px 12% 0; height: 100px; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 50%, transparent), transparent); filter: blur(30px); opacity: 0.7; pointer-events: none; z-index: -1; }
.window-open { position: absolute; z-index: 2; right: 16px; bottom: 16px; }
.product-points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.product-points div { display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.product-points b { font-weight: 600; font-size: 16px; }
.product-points span { color: var(--text-2); font-size: 15px; line-height: 1.55; }
@media (max-width: 760px) { .product-points { grid-template-columns: minmax(0, 1fr); gap: 18px; } }

/* ───── Scroll story ───── */
.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; }
.story-steps { display: flex; flex-direction: column; }
.story-step { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; gap: 16px; opacity: 0.3; transition: opacity 400ms ease; }
.story-step.on { opacity: 1; }
.story-step .num { font: 500 13px var(--f-mono); color: var(--blue-text); display: flex; align-items: center; gap: 10px; }
.story-step .num::after { content: ""; width: 40px; height: 1px; background: var(--blue-line); }
.story-step h3 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 650; }
.story-step p { font-size: 17px; line-height: 1.6; color: var(--text-2); max-width: 44ch; }
.story-step .facts { display: flex; flex-wrap: wrap; gap: 8px; }
.story-stage { position: sticky; top: calc(64px + 6vh); height: 76vh; min-height: 460px; align-self: start; border-radius: 22px; overflow: hidden; border: 1px solid var(--line-2); background:
  radial-gradient(ellipse at 50% 40%, color-mix(in srgb, var(--blue) 12%, var(--bg)), var(--bg) 70%); box-shadow: var(--shadow); }
.story-stage .grid-bg { position: absolute; inset: 0; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 28px 28px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 28px 28px; }
.story-stage .planlayer { position: absolute; inset: 6% 5% 18%; display: grid; place-items: center; transition: opacity 600ms ease, transform 800ms var(--ease-out), filter 600ms ease; }
.story-stage .planlayer svg { width: 100%; height: auto; max-height: 100%; }
.story-stage .planlayer.away { opacity: 0; transform: scale(0.92) translateY(-4%); filter: blur(6px); }
.story-stage .planlayer .wall-o, .story-stage .planlayer .wall-i { stroke-dasharray: 3200; stroke-dashoffset: 3200; }
.story-stage .planlayer.drawn .wall-o, .story-stage .planlayer.drawn .wall-i { transition: stroke-dashoffset 2.2s var(--ease-in-out); stroke-dashoffset: 0; }
.story-stage .planlayer.drawn .wall-i { transition-delay: 0.5s; }
.story-stage .planlayer .rlabel, .story-stage .planlayer .rarea, .story-stage .planlayer .dims { opacity: 0; transition: opacity 500ms ease; }
.story-stage .planlayer.measured .rlabel, .story-stage .planlayer.measured .rarea, .story-stage .planlayer.measured .dims { opacity: 1; }
.story-stage .scanline { z-index: 2; }
.story-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 700ms ease; }
.story-stage canvas.on { opacity: 1; }
.stage-card { position: absolute; z-index: 3; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--panel-2) 86%, transparent); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--shadow); font-size: 13px; opacity: 0; transform: translateY(12px) scale(0.98); transition: opacity 400ms ease, transform 500ms var(--ease-out); pointer-events: none; }
.stage-card.on { opacity: 1; transform: none; }
.stage-card .big { font: 600 26px var(--f); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stage-card.tl { left: 16px; top: 16px; }
.stage-card.br { right: 16px; bottom: 16px; }
.stage-card.bl { left: 16px; bottom: 16px; }
.stage-card .rows { display: flex; flex-direction: column; gap: 6px; min-width: 230px; margin-top: 8px; }
.stage-card .rows div { display: flex; justify-content: space-between; gap: 16px; opacity: 0; transform: translateX(-6px); transition: opacity 300ms ease, transform 400ms var(--ease-out); }
.stage-card .rows b { font-family: var(--f-mono); font-weight: 500; }
.stage-card.on .rows div { opacity: 1; transform: none; }
.stage-agent { position: absolute; z-index: 3; top: 16px; right: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 10px; font-size: 12px; background: color-mix(in srgb, var(--panel-2) 86%, transparent); border: 1px solid var(--line-2); }
.story-rail { position: absolute; z-index: 3; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; }
.story-rail i { width: 26px; height: 3px; border-radius: 2px; background: var(--line-2); overflow: hidden; position: relative; }
.story-rail i b { position: absolute; inset: 0; background: var(--blue-hi); transform: scaleX(0); transform-origin: left; transition: transform 500ms var(--ease-out); }
.story-rail i.on b { transform: scaleX(1); }
@media (max-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-stage { order: -1; top: calc(64px + 8px); height: 46vh; min-height: 300px; z-index: 2; }
  .story-step { min-height: 64vh; }
  .stage-card .rows { min-width: 190px; }
}

/* ───── Agents: all four departments in one scrolling list; the agent at the reading line is in focus ───── */
.agx { display: flex; flex-direction: column; gap: 20px; }
.agx-bar { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 72px); z-index: 5; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.agx-bar::before { content: ""; position: absolute; inset: -8px -24px; z-index: -1; background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent); }
.agx-tabs button { height: 34px; padding: 0 14px; font-size: 14px; display: inline-flex; align-items: center; gap: 8px; }
.agx-tabs button i { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.agx-tabs button small { font: 500 11px var(--f-mono); color: var(--text-3); }
.agx-tabs button[aria-pressed="true"] small { color: var(--text-2); }
.agx-count { margin-left: auto; font: 500 12px var(--f-mono); color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.agx-body { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 32px; align-items: start; }
.agx-list { position: relative; display: flex; flex-direction: column; gap: 4px; padding-left: 22px; }
.agx-rail { position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; border-radius: 1px; background: var(--line); overflow: hidden; }
.agx-rail i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--g-tasarim), var(--g-maliyet) 35%, var(--g-sozlesme) 65%, var(--g-saha)); transform-origin: top; transform: scaleY(0); transition: transform 300ms var(--ease-out); }
.agx-group { display: flex; flex-direction: column; gap: 4px; scroll-margin-top: 150px; }
.agx-group + .agx-group { margin-top: 28px; }
.agx-gh { position: relative; display: flex; align-items: center; gap: 10px; padding: 4px 4px 10px; }
.agx-gh::before { content: ""; position: absolute; left: -22px; top: 9px; width: 10px; height: 10px; border-radius: 3px; background: var(--gc); box-shadow: 0 0 0 4px var(--bg); }
.agx-gh b { font: 600 13px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text); }
.agx-gh span { font: 500 12px var(--f-mono); color: var(--text-3); }
.agx-row { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 14px; align-items: center; width: 100%; padding: 16px; border-radius: 14px; border: 1px solid transparent; background: transparent; text-align: left; cursor: pointer; scroll-margin-block: 40vh; transition: background-color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out), opacity 220ms ease; opacity: 0.62; }
.agx-row:active { transform: scale(0.99); }
.agx-row .ag { grid-row: span 2; }
.agx-row b { font-size: 16px; font-weight: 600; }
.agx-row small { grid-column: 2; color: var(--text-3); font-size: 13px; }
.agx-row .go { grid-row: span 2; color: var(--text-3); opacity: 0; transform: translateX(-4px); transition: opacity 200ms ease, transform 220ms var(--ease-out); }
.agx-row.on { opacity: 1; background: var(--panel); border-color: var(--line-2); }
.agx-row.on small { color: var(--text-2); }
.agx-row.on .go { opacity: 1; transform: none; color: var(--c); }
@media (hover: hover) and (pointer: fine) { .agx-row:not(.on):hover { opacity: 1; background: rgba(127, 140, 170, 0.06); } }
.agx-more { display: none; }
.agx-side { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 140px); }
.agx-card { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid var(--line-2); padding: 28px; display: flex; flex-direction: column; gap: 18px; min-height: 420px;
  background: radial-gradient(520px 260px at 100% 0%, color-mix(in srgb, var(--c, var(--blue)) 18%, transparent), transparent 70%), var(--panel); }
.agx-card .in { display: flex; flex-direction: column; gap: 18px; transition: filter 220ms ease, opacity 220ms ease, transform 280ms var(--ease-out); }
.agx-card.swap .in { filter: blur(6px); opacity: 0; transform: translateY(6px); }
.agx-card h3 { font-size: 26px; letter-spacing: -0.025em; font-weight: 650; }
.agx-card p { color: var(--text-2); font-size: 16px; line-height: 1.6; }
.agx-dept { display: flex; gap: 6px; }
.agx-dept i { height: 4px; flex: 1; border-radius: 2px; background: var(--line); transition: background-color 300ms ease; }
.agx-dept i.on { background: var(--c); }
.agx-out { border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); padding: 14px 16px; font: 400 13px/1.6 var(--f-mono); color: var(--text-2); }
.agx-out .h { display: flex; align-items: center; gap: 8px; color: var(--text-3); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 8px; }
.agx-out .r { color: var(--blue-text); min-height: 1.6em; }
.agx-out .r .caret { display: inline-block; width: 7px; height: 1em; background: var(--blue-hi); vertical-align: -2px; margin-left: 2px; animation: blink 900ms steps(1) infinite; }
@media (max-width: 900px) {
  .agx-bar { top: calc(env(safe-area-inset-top, 0px) + 64px); }
  .agx-tabs { overflow-x: auto; }
  .agx-count { display: none; }
  .agx-body { grid-template-columns: minmax(0, 1fr); }
  .agx-side { display: none; }
  .agx-list { padding-left: 18px; }
  .agx-gh::before { left: -18px; }
  .agx-row { padding: 14px; }
  .agx-more { display: grid; grid-column: 1 / -1; grid-template-rows: 0fr; transition: grid-template-rows 360ms var(--ease-out); }
  .agx-more > div { min-height: 0; overflow: hidden; }
  .agx-more p { color: var(--text-2); font-size: 14px; line-height: 1.55; padding-top: 10px; }
  .agx-more .agx-out { margin-top: 10px; font-size: 12px; }
  .agx-row.on .agx-more { grid-template-rows: 1fr; }
  .agx-row .go { display: none; }
}

/* ───── Chain reaction ───── */
.chain { position: relative; padding: 32px; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel), var(--bg-2)); overflow: hidden; }
.chain-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 28px; }
.chain-head .file { display: inline-flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); font: 500 13px var(--f-mono); }
.chain-nodes { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.chain svg.path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.chain svg.path .base { fill: none; stroke: var(--line-2); stroke-width: 1.5; stroke-dasharray: 4 6; }
.chain svg.path .lit { fill: none; stroke: var(--blue-hi); stroke-width: 2; filter: drop-shadow(0 0 6px rgba(92, 141, 255, 0.8)); }
.chain svg.path .pk { fill: var(--cyan); filter: drop-shadow(0 0 8px var(--cyan)); }
.cnode { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.cnode .ag { transition: transform 300ms var(--ease-out), box-shadow 300ms ease; background: var(--panel-2); }
.cnode.hit .ag { transform: scale(1.15); box-shadow: 0 0 0 1px var(--c) inset, 0 0 24px color-mix(in srgb, var(--c) 60%, transparent); }
.cnode b { font-size: 14px; font-weight: 600; }
.cnode .res { font: 500 12px var(--f-mono); color: var(--text-3); min-height: 3em; transition: color 300ms ease; }
.cnode.hit .res, .cnode.done .res { color: var(--blue-text); }
.cnode .res .wait { color: var(--amber); }
@media (max-width: 900px) { .chain-nodes { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 32px; } }
@media (max-width: 520px) { .chain { padding: 20px 14px; } .chain-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ───── Field ───── */
/* ───── Hendis007: the film's chat, played on the page ─────
   The chat pieces (.m7, .dchip, .schip, .typing7, .hold7) come from app.css, so the page and the
   product show exactly the same conversation. */
.h7-sec { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: center; }
.lp .h7-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--amber); }
.h7-eyebrow .new-tag { margin-left: 0; }
.h7-acc { color: var(--hivis); }
:root[data-theme="light"] .h7-acc { color: inherit; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--hivis) 75%, transparent) 62%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .h7-acc { color: inherit; background: linear-gradient(transparent 62%, color-mix(in srgb, var(--hivis) 75%, transparent) 62%); } }
.h7-sub { display: inline-block; margin-top: 8px; font-size: 0.6em; color: var(--text-2); letter-spacing: -0.025em; }
.h7-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.h7-steps li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start; color: var(--text-2); font-size: 15px; }
.h7-steps li > span { font: 500 12px var(--f-mono); letter-spacing: 0.06em; color: var(--amber); padding-top: 7px; border-top: 1.5px solid var(--hivis); }
.h7-steps b { display: block; font-weight: 600; font-size: 17px; color: var(--text); margin-bottom: 2px; }
.h7-panel { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 20px; background: var(--panel); box-shadow: 18px 18px 0 color-mix(in srgb, var(--text) 5%, transparent); overflow: hidden; }
.h7-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.h7-head b { display: block; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.h7-head small { display: flex; align-items: center; gap: 6px; font: 500 11px var(--f-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); margin-top: 3px; }
.h7-head small i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.h7-replay { margin-left: auto; }
.h7-log { height: 500px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 18px 16px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px); mask-image: linear-gradient(180deg, transparent 0, #000 90px); }
.h7-grow { display: grid; grid-template-rows: 0fr; flex-shrink: 0; transition: grid-template-rows 360ms var(--ease-out); }
.h7-grow.open { grid-template-rows: 1fr; }
.h7-grow > * { min-height: 0; }
.h7-grow > .m7 { overflow: hidden; }
.h7-grow > .m7, .h7-grow > .typing7 { opacity: 0; transform: translateY(10px); transition: opacity 300ms ease 60ms, transform 360ms var(--ease-out) 60ms; animation: none; }
.h7-grow.open > .m7, .h7-grow.open > .typing7 { opacity: 1; transform: none; }
.h7-grow > .m7.in { opacity: 1; transform: none; animation: m7-in 380ms var(--ease-out) both; }
.h7-grow > .typing7 { width: max-content; }
.h7-input { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 6px 6px 6px 16px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--bg-2); transition: border-color 200ms ease; }
.h7-input:has(.caret) { border-color: var(--hivis); }
.h7-typed { flex: 1; min-width: 0; height: 38px; display: flex; align-items: center; font-size: 15px; white-space: nowrap; overflow: hidden; }
.h7-typed .ph { color: var(--text-3); }
.h7-typed .caret { display: inline-block; flex: none; width: 2px; height: 1.15em; margin-left: 1px; background: var(--hivis); animation: h7-blink 1s steps(1) infinite; }
@keyframes h7-blink { 50% { opacity: 0; } }
@media (max-width: 960px) { .h7-sec { grid-template-columns: minmax(0, 1fr); gap: 40px; } }
@media (max-width: 560px) { .h7-log { height: 470px; padding: 0 12px 12px; } .h7-head { padding: 14px; } .h7-input { margin: 0 12px 12px; } .h7-panel { box-shadow: 10px 10px 0 color-mix(in srgb, var(--text) 5%, transparent); } }

.field-sec { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 64px; align-items: center; }
.phone { justify-self: center; width: min(380px, 100%); border-radius: 44px; padding: 12px; background: linear-gradient(160deg, #2a3242, #12161f); box-shadow: 0 50px 100px -40px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.06) inset; }
.phone-in { border-radius: 34px; overflow: hidden; background: var(--bg); height: 600px; display: flex; flex-direction: column; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 18px 16px 12px; background: var(--panel); border-bottom: 1px solid var(--line); }
.phone-top .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #2EBD72; color: #fff; font: 600 12px var(--f); }
.phone .msgs { flex: 1; padding: 14px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; }
.phone .msg { font-size: 13px; max-width: 86%; }
.ticks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.ticks li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.ticks b { display: block; font-weight: 600; font-size: 17px; margin-bottom: 2px; }
.ticks span { color: var(--text-2); font-size: 15px; }
@media (max-width: 960px) { .field-sec { grid-template-columns: minmax(0, 1fr); } .phone-in { height: 540px; } }

/* ───── Trust: a deck of decisions, stamped one at a time ───── */
.trust { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.principles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.principle { position: relative; overflow: hidden; padding: 14px 14px 18px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: border-color 200ms ease, transform 200ms var(--ease-out); }
.principle::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); opacity: 0; pointer-events: none; transition: opacity 250ms ease; }
.principle > * { position: relative; }
@media (hover: hover) and (pointer: fine) { .principle:hover { border-color: var(--line-2); transform: translateY(-2px); } .principle:hover::before { opacity: 1; } }
.principle > b { font-weight: 600; font-size: 15px; margin-top: 8px; padding-inline: 4px; }
.principle > span { color: var(--text-2); font-size: 14px; line-height: 1.5; padding-inline: 4px; }
.mv { position: relative; height: 84px; border-radius: 12px; border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 10px 12px; overflow: hidden;
  background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 14px 14px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 14px 14px, var(--bg-2); }
.mv-src .mv-q { align-self: flex-start; font-size: 12px; padding: 4px 8px; border-radius: 8px 8px 8px 2px; background: var(--panel-3); color: var(--text-2); }
.mv-src .mv-a { align-self: flex-end; display: inline-flex; align-items: center; gap: 6px; font: 500 12px var(--f-mono); padding: 4px 6px 4px 8px; border-radius: 8px 8px 2px 8px; background: color-mix(in srgb, var(--c) 18%, var(--panel-2)); color: var(--text); }
.mv-src .mv-a .chip { height: 18px; font-size: 10px; }
.mv .mv-seg { align-self: center; }
.mv .mv-seg button { height: 26px; padding: 0 10px; font-size: 12px; }
.mv-tr { gap: 4px; }
.mv-tr span { font: 400 11px var(--f-mono); color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv-tr b { color: var(--c); font-weight: 500; margin-right: 6px; }
.mv-lock { flex-direction: row; align-items: center; gap: 10px; font-size: 12px; color: var(--text-2); }
.mv-lock svg { color: var(--c); flex: none; }
.mv-lock span:not(.switch) { flex: 1; min-width: 0; }
.mv-lock .switch { cursor: default; }

.decide { position: relative; display: flex; flex-direction: column; gap: 16px; }
.decide-glow { position: absolute; inset: 10% -10% -10%; z-index: -1; background: radial-gradient(closest-side, color-mix(in srgb, var(--blue) 30%, transparent), transparent); filter: blur(40px); opacity: 0.6; pointer-events: none; transition: background 600ms ease; }
.decide.ok .decide-glow { background: radial-gradient(closest-side, color-mix(in srgb, var(--green) 32%, transparent), transparent); }
.decide-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.decide-head .badge { transition: background-color 300ms ease, color 300ms ease; }
.deck { position: relative; display: grid; margin-top: 30px; }
.dcard { grid-area: 1 / 1; position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px; border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--panel-2), var(--panel)); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7); transform-origin: 50% 0%;
  transition: transform 520ms var(--ease-out), opacity 320ms ease, border-color 300ms ease; will-change: transform; }
.dcard[data-pos="1"] { transform: translateY(-16px) scale(0.95); opacity: 0.7; }
.dcard[data-pos="2"] { transform: translateY(-31px) scale(0.9); opacity: 0.4; }
.dcard[data-pos="3"] { transform: translateY(-40px) scale(0.86); opacity: 0; }
.dcard[data-pos="1"] .dc-in, .dcard[data-pos="2"] .dc-in, .dcard[data-pos="3"] .dc-in { opacity: 0; }
.dcard .dc-in { display: flex; flex-direction: column; gap: 16px; height: 100%; transition: opacity 300ms ease 120ms; }
.dcard.leave { transform: translateX(118%) rotate(7deg); opacity: 0; transition: transform 420ms cubic-bezier(0.32, 0.72, 0, 1), opacity 300ms ease 80ms; }
.dcard.thud { animation: thud 220ms var(--ease-out); }
@keyframes thud { 40% { transform: translateY(3px) scale(0.992); } }
.dcard.holding { transform: scale(0.985); transition-duration: 1200ms; transition-timing-function: linear; }
.dcard.done { border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.dc-top { display: flex; gap: 12px; align-items: center; }
.dc-top h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.015em; margin-top: 2px; }
.dc-amt { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 14px; border-radius: 14px; background: var(--bg-2); border: 1px solid var(--line); }
.dc-amt small { display: block; color: var(--text-3); font-size: 12px; }
.dc-amt b { font: 650 28px/1.1 var(--f); letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.dc-amt svg { width: 150px; height: 46px; flex: none; overflow: visible; }
.dc-amt svg .ln { fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dc-amt svg .fc { fill: none; stroke: var(--c); stroke-width: 2; stroke-dasharray: 3 4; opacity: 0.7; }
.dc-amt svg .bar { fill: var(--c); opacity: 0.35; }
.dc-amt svg .bar.now { opacity: 1; }
.dc-amt svg text { font: 500 9px var(--f-mono); fill: var(--text-3); }
.dc-checks { display: flex; gap: 6px; }
.dc-checks i { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; font: 600 11px var(--f-mono); }
.dc-checks i.ok { background: var(--green-soft); color: var(--green); }
.dc-checks i.no { background: var(--red-soft); color: var(--red); }
.dc-why { list-style: none; margin: 0; padding: 0 0 0 16px; position: relative; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--text-2); }
.dc-why::before { content: ""; position: absolute; left: 3px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.dc-why li { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; transition: color 250ms ease; }
.dc-why li::before { content: ""; position: absolute; left: -16px; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--panel); box-shadow: 0 0 0 1.5px var(--line-2); transition: background-color 250ms ease, box-shadow 250ms ease; }
.dc-why li.lit { color: var(--text); }
.dc-why li.lit::before { background: var(--c); box-shadow: 0 0 0 1.5px var(--c), 0 0 10px var(--c); }
.dc-why .chip.src { height: 20px; font-size: 10px; }
.dcard[data-pos="0"] .dc-why li { animation: why-in 420ms var(--ease-out) both; }
.dcard[data-pos="0"] .dc-why li:nth-child(2) { animation-delay: 60ms; }
.dcard[data-pos="0"] .dc-why li:nth-child(3) { animation-delay: 120ms; }
@keyframes why-in { from { opacity: 0; transform: translateY(6px); } }
.stamp { position: absolute; right: 22px; top: 88px; z-index: 2; padding: 8px 14px 6px; border: 3px solid var(--green); border-radius: 10px; color: var(--green); font: 700 22px/1 var(--f-mono); letter-spacing: 0.08em; text-align: center;
  transform: rotate(-11deg) scale(1.8); opacity: 0; pointer-events: none; background: color-mix(in srgb, var(--green) 12%, var(--panel-2)); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6); }
.stamp small { display: block; font: 500 10px var(--f-mono); letter-spacing: 0.04em; margin-top: 4px; }
.dcard.done .stamp { animation: stamp 420ms cubic-bezier(0.2, 0.9, 0.3, 1.25) forwards; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-11deg) scale(1.8); } 55% { opacity: 1; transform: rotate(-11deg) scale(0.94); } 100% { opacity: 1; transform: rotate(-11deg) scale(1); } }

.hold { position: relative; overflow: hidden; height: 56px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); font: 600 15px var(--f); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 160ms var(--ease-out), border-color 200ms ease; }
.hold:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .hold:hover { border-color: var(--blue-line); } }
.hold .fill { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--blue-hi)); clip-path: inset(0 100% 0 0); transition: clip-path 200ms var(--ease-out); }
.hold .fill::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 60px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45)); }
.hold.pressing .fill { clip-path: inset(0 0 0 0); transition: clip-path 1.2s linear; }
.hold.done .fill { clip-path: inset(0 0 0 0); background: var(--green); transition: background-color 300ms ease; }
.hold.done .fill::after { display: none; }
.hold .lbl { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px; transition: filter 200ms ease, opacity 200ms ease; }
.hold.swap .lbl { filter: blur(3px); opacity: 0; }
.hold-after { font-size: 13px; color: var(--text-2); min-height: 1.5em; display: flex; align-items: center; gap: 8px; }
@media (max-width: 960px) { .trust { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .dcard { padding: 18px; }
  .dc-amt { padding: 12px; gap: 10px; }
  .dc-amt b { font-size: 23px; }
  .dc-amt svg { width: 112px; height: 40px; }
  .dc-checks { gap: 4px; }
  .dc-checks i { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
  .stamp { top: 120px; right: 16px; font-size: 18px; }
}

/* ───── Final CTA ───── */
.final { position: relative; overflow: hidden; border-radius: 28px; padding: 96px 48px; border: 1px solid var(--blue-line); text-align: center; background:
  radial-gradient(700px 360px at 50% 130%, color-mix(in srgb, var(--blue) 50%, transparent), transparent 70%), var(--panel); }
.final .beams { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 40px 40px, linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 40px 40px;
  -webkit-mask: radial-gradient(ellipse 60% 80% at 50% 100%, #000, transparent 70%); mask: radial-gradient(ellipse 60% 80% at 50% 100%, #000, transparent 70%); }
.final h2 { font-size: clamp(36px, 5.4vw, 66px); line-height: 1; letter-spacing: -0.04em; font-weight: 650; max-width: 16ch; margin: 0 auto; position: relative; }
.final p { margin: 18px auto 0; font-size: 18px; color: var(--text-2); max-width: 52ch; position: relative; }
.final .hero-cta { margin-top: 32px; justify-content: center; position: relative; }
@media (max-width: 640px) { .final { padding: 56px 22px; } }

.lp-foot { padding-block: 48px max(48px, env(safe-area-inset-bottom, 0px)); color: var(--text-3); font-size: 13px; }
.lp-foot .lp-wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; }
.lp-foot a { color: var(--text-2); }
.lp-foot .sp { flex: 1; }

/* Reveal for content below the fold */
.lp .rv { opacity: 0; transform: translateY(24px); }
.lp .rv.in { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }

@media (prefers-reduced-motion: reduce) {
  .hero h1 .w.anim, .fade-up { animation: none; }
  .lp .rv { transform: none; }
  .story-step { transition: none; }
  .hold.pressing .fill { transition-duration: 1ms; }
  .dcard, .dcard.leave { transition: opacity 200ms ease; transform: none !important; }
  .dcard[data-pos="1"], .dcard[data-pos="2"] { opacity: 0; }
  .dcard.done .stamp { animation: none; opacity: 1; transform: rotate(-11deg); }
  .agx-rail i, .agx-more { transition: none; }
  .btn.shine::after { display: none; }
}
