/* Nexus ECM — landing page */

.landing {
  --l-bg: #060A14;
  --l-bg-2: #0A1020;
  --l-line: rgba(148, 163, 200, .14);
  --l-text: #E9EDF7;
  --l-muted: #97A0B6;
  --grad: linear-gradient(100deg, #6E8BFF 0%, #2EE6A6 55%, #FFB547 100%);
  background: var(--l-bg);
  color: var(--l-text);
  overflow-x: hidden;
}
.landing ::selection { background: rgba(46, 230, 166, .3); }
.grad-text {
  background: var(--grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: grad-shift 8s ease-in-out infinite alternate;
}
@keyframes grad-shift { to { background-position: 100% 0; } }

.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 0; opacity: .55;
  background: radial-gradient(circle, rgba(47, 91, 255, .16), rgba(46, 230, 166, .06) 40%, transparent 70%);
  transform: translate3d(var(--x, -999px), var(--y, -999px), 0);
  transition: opacity .4s;
}

/* nav */
.nav {
  position: fixed; inset: 14px 16px auto; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  max-width: 1180px; margin: 0 auto; padding: 10px 12px 10px 18px;
  border-radius: 16px; border: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s, transform .4s var(--ease);
}
.nav.is-scrolled { background: rgba(8, 12, 24, .72); border-color: var(--l-line); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.nav .brand { color: #fff; }
.nav .brand small, .foot .brand small { color: #F2737B; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { color: var(--l-muted); font-size: 14px; padding: 6px 12px; border-radius: 8px; transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .06); text-decoration: none; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 120px 16px 80px; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(900px 500px at 78% 30%, rgba(47, 91, 255, .22), transparent 60%),
    radial-gradient(700px 420px at 20% 85%, rgba(46, 230, 166, .10), transparent 60%),
    var(--l-bg);
}
.hero::after { /* fine grid */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--l-line) 1px, transparent 1px), linear-gradient(90deg, var(--l-line) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .35;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%);
}
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero-inner { width: 100%; max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 48px; align-items: center; }
@media (max-width: 1020px) { .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 40px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px;
  border: 1px solid var(--l-line); background: rgba(255, 255, 255, .04); color: #C9D2E8; font-size: 13.5px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(46, 230, 166, .6); animation: ping 2.2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(46, 230, 166, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 166, 0); } }

.hero-title { margin: 22px 0 18px; font-size: clamp(38px, 6.2vw, 74px); line-height: 1.12; font-weight: 700; letter-spacing: -.02em; }
.hero-title .line { display: block; }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2deg); filter: blur(8px); animation: word-in .9s var(--ease) forwards; animation-delay: calc(var(--i) * 70ms + var(--base, 0ms)); }
/* Thai tone marks/upper vowels sit above the line box: pad the clipped box so they are not cut off */
.hero-title .grad-text { padding: .18em 0 .08em; margin: -.18em 0 -.08em; }
.hero-title .grad-text .w { background: inherit; background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; padding: .18em .03em .1em; margin: -.18em -.03em -.1em; }
.grad-text { padding-block: .12em; }
@keyframes word-in { to { opacity: 1; transform: none; filter: none; } }
.hero-sub { max-width: 540px; color: var(--l-muted); font-size: clamp(16px, 1.6vw, 18.5px); line-height: 1.75; }
.hero-sub b { color: #fff; font-weight: 600; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn-glass { --b-bg: rgba(255, 255, 255, .05); --b-fg: #fff; --b-bd: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .1); }
.landing .btn-primary { --b-bg: #3B66FF; --b-fg: #fff; box-shadow: 0 10px 30px -10px rgba(59, 102, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .2); }
.landing .btn-primary:hover { background: #4C74FF; }
.hero-proof { list-style: none; padding: 0; margin: 34px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--l-muted); font-size: 14px; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: rgba(46, 230, 166, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232EE6A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 10px no-repeat; }
.hero-proof b { color: #fff; font-weight: 600; }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* stage (pipeline animation) */
.stage {
  position: relative; height: 470px; border-radius: 26px; border: 1px solid var(--l-line);
  background: linear-gradient(180deg, rgba(20, 28, 52, .75), rgba(10, 15, 30, .85));
  box-shadow: 0 40px 120px -40px rgba(47, 91, 255, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 1fr 150px 1fr; align-items: center; padding: 22px; overflow: hidden;
  opacity: 0; transform: perspective(1200px) rotateY(-8deg) rotateX(4deg) translateY(30px);
  animation: stage-in 1.4s .3s var(--ease) forwards;
}
@keyframes stage-in { to { opacity: 1; transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); } }
.stage::before { /* top sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .05) 45%, transparent 60%);
  background-size: 250% 100%; animation: sheen 7s ease-in-out infinite;
}
@keyframes sheen { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
.stage-zone { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.zone-label { position: absolute; top: 0; left: 0; font-size: 12px; letter-spacing: .08em; color: #7F8AA6; }
.stage-out .zone-label { left: auto; right: 0; }
.inbox { position: absolute; inset: 28px 0 0; }
.paper {
  position: absolute; left: 0; top: 0; z-index: 2; width: 118px; height: 150px; border-radius: 10px; padding: 14px 12px;
  background: linear-gradient(180deg, #FDFDFE, #EEF1F7); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .6);
  color: #1B2338; font-size: 9.5px; line-height: 1.3; will-change: transform, opacity;
}
.paper::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: 10px 0 0 10px; background: var(--c, #2EE6A6); }
.paper b { display: block; font-family: var(--font-display); font-size: 11px; margin-bottom: 8px; }
.paper i { display: block; height: 5px; border-radius: 3px; background: #D5DAE6; margin: 6px 0; }
.paper i:nth-of-type(2) { width: 82%; } .paper i:nth-of-type(3) { width: 64%; } .paper i:nth-of-type(4) { width: 90%; } .paper i:nth-of-type(5) { width: 40%; }
.paper .amt { position: absolute; right: 10px; bottom: 10px; font-weight: 700; color: #0E1428; }
.paper.is-scanning::after {
  content: ""; position: absolute; left: -6px; right: -6px; height: 26px; top: -20px; border-radius: 4px;
  background: linear-gradient(180deg, transparent, rgba(46, 230, 166, .55), transparent);
  box-shadow: 0 0 24px rgba(46, 230, 166, .7); animation: scanline .9s ease-in-out 2 alternate;
}
@keyframes scanline { to { top: 145px; } }

.core { position: relative; width: 150px; height: 150px; display: grid; place-items: center; z-index: 2; }
.core-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(110, 139, 255, .35); }
.core-ring.r1 { inset: 8px; border-style: dashed; animation: spin 18s linear infinite; }
.core-ring.r2 { inset: 26px; border-color: rgba(46, 230, 166, .35); animation: spin 10s linear infinite reverse; border-top-color: rgba(46, 230, 166, .95); }
.core-ring.r3 { inset: -10px; border: 0; background: conic-gradient(from 0deg, transparent 0 70%, rgba(47, 91, 255, .6) 85%, transparent); mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); -webkit-mask: radial-gradient(circle, transparent 66%, #000 67%, #000 70%, transparent 71%); animation: spin 4s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.core-dot { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #0B1020; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 0 40px rgba(47, 91, 255, .5); transition: box-shadow .3s, transform .3s var(--ease-spring); }
.core-dot { overflow: hidden; }
.core-dot img { width: 100%; height: 100%; display: block; }
.core.is-busy .core-dot { transform: scale(1.12); box-shadow: 0 0 0 1px rgba(46, 230, 166, .5), 0 0 70px rgba(46, 230, 166, .75); }
.core-label { position: absolute; bottom: -34px; white-space: nowrap; font-size: 12px; color: var(--mint); opacity: 0; transition: opacity .3s; }
.core.is-busy .core-label { opacity: 1; }

.views { display: grid; gap: 10px; }
.view {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--l-line); font-size: 13px; color: #CDD5E8;
  transition: background .3s, border-color .3s, transform .4s var(--ease-spring);
}
.view i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); box-shadow: 0 0 12px var(--c); flex: none; }
.view span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.view b { font-variant-numeric: tabular-nums; color: #fff; font-weight: 600; }
.view.is-hit { background: rgba(46, 230, 166, .1); border-color: rgba(46, 230, 166, .5); transform: translateX(-4px) scale(1.03); }

.chips { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.chip {
  position: absolute; left: 0; top: 0; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; white-space: nowrap;
  background: rgba(12, 18, 36, .92); border: 1px solid rgba(46, 230, 166, .45); color: #DFFBF0;
  box-shadow: 0 8px 22px -8px rgba(46, 230, 166, .6); will-change: transform, opacity;
}
.chip b { color: var(--mint); font-weight: 600; margin-right: 4px; }

@media (max-width: 640px) {
  .stage { height: 400px; grid-template-columns: 1fr 96px 1fr; padding: 16px 12px; }
  .core { width: 96px; height: 96px; }
  .core-dot { width: 48px; height: 48px; border-radius: 14px; }
  .core-dot img { width: 32px; height: 32px; }
  .paper { width: 88px; height: 116px; padding: 10px 9px; font-size: 8px; }
  .paper b { font-size: 9px; }
  .view { padding: 8px; font-size: 11.5px; gap: 6px; }
  .chip { font-size: 10px; }
}

.scroll-hint { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 1.5px solid rgba(255, 255, 255, .25); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@media (max-height: 760px), (max-width: 1020px) { .scroll-hint { display: none; } }

/* marquee */
.marquee { position: relative; overflow: hidden; border-block: 1px solid var(--l-line); background: var(--l-bg-2); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { color: #8D97B0; font-size: 15px; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✦"; color: rgba(46, 230, 166, .6); font-size: 12px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* sections */
.landing section:not(.hero) { position: relative; z-index: 1; padding: 120px 16px; }
.section-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.kicker { display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--mint); margin-bottom: 14px; }
.section-head h2 { font-size: clamp(30px, 4.4vw, 50px); line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
.section-sub { margin-top: 18px; color: var(--l-muted); font-size: 17px; line-height: 1.75; }

/* story */
.story-grid { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; }
.story-visual { position: sticky; top: 110px; align-self: start; }
.sv-frame { position: relative; height: 430px; border-radius: 24px; border: 1px solid var(--l-line); background: linear-gradient(180deg, #0D1428, #0A1020); overflow: hidden; box-shadow: 0 30px 90px -40px rgba(46, 230, 166, .35); }
.sv-panel { position: absolute; inset: 0; display: grid; place-items: center; padding: 28px; opacity: 0; transform: scale(.96) translateY(14px); transition: opacity .6s var(--ease), transform .7s var(--ease); pointer-events: none; }
.sv-panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.sv-progress { height: 3px; margin-top: 16px; border-radius: 3px; background: var(--l-line); overflow: hidden; }
.sv-progress i { display: block; height: 100%; width: 33%; background: var(--grad); border-radius: 3px; transition: width .6s var(--ease); }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding-left: 28px; border-left: 2px solid var(--l-line); opacity: .35; transition: opacity .5s, border-color .5s; }
.story-step.is-active { opacity: 1; border-color: var(--mint); }
.step-no { font-family: var(--font-display); font-size: 14px; color: var(--mint); letter-spacing: .1em; }
.story-step h3 { font-size: clamp(26px, 3vw, 36px); margin: 8px 0 12px; }
.story-step p { color: var(--l-muted); font-size: 17px; line-height: 1.8; max-width: 440px; }
@media (max-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .story-visual { top: 76px; z-index: 2; }
  .sv-frame { height: 300px; }
  .story-step { min-height: 70vh; padding-left: 18px; }
}

/* panel 0: drop */
.drop { position: relative; width: min(360px, 100%); aspect-ratio: 1.25; border-radius: 20px; border: 2px dashed rgba(110, 139, 255, .45); display: grid; place-content: end center; justify-items: center; gap: 6px; padding-bottom: 30px; text-align: center; color: #C8D0E5; }
.drop svg { width: 40px; height: 40px; color: #6E8BFF; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.drop b { font-size: 18px; color: #fff; }
.drop span { font-size: 13px; color: var(--l-muted); }
.drop-ring { position: absolute; inset: -2px; border-radius: 20px; border: 2px solid #2EE6A6; opacity: 0; animation: dropring 3s ease-out infinite; }
@keyframes dropring { 0%, 55% { opacity: 0; transform: scale(1); } 60% { opacity: .9; } 100% { opacity: 0; transform: scale(1.08); } }
.drop-files { position: absolute; inset: 0; pointer-events: none; }
.drop-files span { position: absolute; left: 50%; top: -12%; padding: 8px 12px; border-radius: 10px; background: #fff; color: #18203A; font-size: 12px; font-weight: 500; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7); white-space: nowrap; opacity: 0; animation: fall 3s var(--ease) infinite; animation-delay: calc(var(--i) * .25s); }
@keyframes fall { 0% { opacity: 0; transform: translate(calc(-50% + (var(--i) - 1) * 70px), -20px) rotate(calc((var(--i) - 1) * 8deg)); } 15% { opacity: 1; } 50% { opacity: 1; transform: translate(calc(-50% + (var(--i) - 1) * 96px), 72px) rotate(calc((var(--i) - 1) * -3deg)); } 62%, 100% { opacity: 0; transform: translate(calc(-50% + (var(--i) - 1) * 40px), 96px) scale(.6); } }

/* panel 1: OCR */
.ocr { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; width: 100%; align-items: center; }
.ocr-doc { position: relative; background: #F7F8FB; color: #1B2338; border-radius: 12px; padding: 18px 16px; font-size: 12px; line-height: 1.9; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .7); }
.ocr-doc .o1 { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.ocr-doc mark { background: transparent; color: inherit; border-radius: 3px; transition: background .4s, color .4s; }
.sv-panel.is-active .ocr-doc mark { animation: mark-on .5s forwards; animation-delay: calc(1.2s + var(--m, 0) * .25s); }
.ocr-doc .o2 mark { --m: 0; } .ocr-doc .o3 mark:first-child { --m: 1; } .ocr-doc .o3 mark:last-child { --m: 2; } .ocr-doc .o4 mark { --m: 3; } .ocr-doc .o5 mark { --m: 4; }
@keyframes mark-on { to { background: rgba(46, 230, 166, .3); box-shadow: 0 0 0 2px rgba(46, 230, 166, .3); } }
.ocr-scan { position: absolute; left: 0; right: 0; top: -30px; height: 30px; background: linear-gradient(180deg, transparent, rgba(46, 230, 166, .45)); border-bottom: 2px solid #2EE6A6; }
.sv-panel.is-active .ocr-scan { animation: ocrscan 1.4s ease-in-out .2s; }
@keyframes ocrscan { to { top: 100%; } }
.ocr-fields { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ocr-fields li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--l-line); font-size: 13px; opacity: 0; transform: translateX(16px); }
.ocr-fields span { color: var(--l-muted); }
.ocr-fields b { color: #fff; font-weight: 600; text-align: right; }
.sv-panel.is-active .ocr-fields li { animation: field-in .5s var(--ease) forwards; animation-delay: calc(1.4s + var(--i) * .22s); }
@keyframes field-in { to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .ocr { grid-template-columns: 1fr; } .ocr-doc { display: none; } }

/* panel 2: flow */
.flow { position: relative; display: grid; gap: 0; width: min(380px, 100%); }
.flow-node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .04); border: 1px solid var(--l-line); font-size: 14.5px; color: #C9D1E6; }
.flow-node span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: rgba(255, 255, 255, .08); }
.flow-node.done span { background: var(--mint); color: #062018; }
.flow-node.active { border-color: rgba(110, 139, 255, .6); background: rgba(110, 139, 255, .1); color: #fff; }
.flow-node.active span { background: #6E8BFF; color: #fff; box-shadow: 0 0 0 0 rgba(110, 139, 255, .6); animation: ping 1.8s infinite; }
.flow-line { height: 22px; margin-left: 26px; width: 2px; background: var(--l-line); position: relative; overflow: hidden; }
.flow-line i { position: absolute; left: 0; top: -100%; width: 2px; height: 100%; background: linear-gradient(180deg, transparent, #2EE6A6); animation: flowdown 1.6s linear infinite; }
@keyframes flowdown { to { top: 100%; } }
.flow-toast { position: absolute; right: -8px; top: 30%; padding: 10px 14px; border-radius: 12px; background: #fff; color: #18203A; font-size: 12.5px; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(10px) scale(.96); }
.flow-toast b { color: #0E9F6E; }
.sv-panel.is-active .flow-toast { animation: toast 4s var(--ease) 1s infinite; }
@keyframes toast { 0% { opacity: 0; transform: translateY(10px) scale(.96); } 12%, 70% { opacity: 1; transform: none; } 85%, 100% { opacity: 0; transform: translateY(-6px); } }

/* bento */
.bento { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; border-radius: 22px; padding: 28px; min-height: 260px;
  background: linear-gradient(180deg, rgba(20, 28, 52, .7), rgba(11, 16, 32, .9)); border: 1px solid var(--l-line);
  display: flex; flex-direction: column; gap: 10px; transition: border-color .3s, transform .5s var(--ease);
}
.tile.t-wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 28px; }
.tile-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.spot::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(110, 139, 255, .16), transparent 45%); }
.spot:hover::before { opacity: 1; }
.tile:hover { border-color: rgba(110, 139, 255, .4); }
.tile-tag { align-self: flex-start; font-size: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(46, 230, 166, .1); color: var(--mint); letter-spacing: .02em; }
.tile h3 { font-size: 22px; color: #fff; }
.tile p { color: var(--l-muted); font-size: 15px; line-height: 1.75; }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile.t-wide { grid-column: span 2; } }
@media (max-width: 680px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile.t-wide { grid-column: auto; flex-direction: column; align-items: stretch; } .tile { padding: 22px; } }

.viz-meta { position: relative; flex: 1.05; min-width: 0; height: 170px; }
.vm-doc { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 76px; height: 96px; border-radius: 10px; background: #F4F6FB; padding: 12px 10px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .7); }
.vm-doc i { display: block; height: 4px; border-radius: 2px; background: #CBD2E1; margin-bottom: 7px; } .vm-doc i:nth-child(2) { width: 70%; }
.vm-doc b { position: absolute; bottom: 10px; left: 10px; font-size: 10px; color: #1B2338; }
.vm-lines { position: absolute; left: 60px; top: 0; width: calc(100% - 200px); height: 100%; overflow: visible; }
.vm-lines path { fill: none; stroke: rgba(46, 230, 166, .55); stroke-width: 1.5; stroke-dasharray: 5 6; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.vm-tag { position: absolute; right: 0; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .06); border: 1px solid var(--l-line); color: #DCE3F3; white-space: nowrap; }
@media (max-width: 680px) { .viz-meta { height: 150px; } .vm-lines { width: calc(100% - 175px); } .vm-tag { font-size: 11px; padding: 5px 9px; } }

.viz-type { margin-top: auto; padding: 14px; border-radius: 12px; background: #F7F8FB; color: #18203A; font-size: 14px; min-height: 52px; }
.type-line::after { content: "▍"; color: #2F5BFF; animation: blink 1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }
.viz-flow { margin-top: auto; position: relative; display: flex; justify-content: space-between; align-items: center; height: 40px; }
.viz-flow::before { content: ""; position: absolute; left: 8px; right: 8px; height: 2px; background: var(--l-line); }
.viz-flow i { position: relative; width: 16px; height: 16px; border-radius: 50%; background: #1A2240; border: 2px solid #6E8BFF; }
.viz-flow b { position: absolute; left: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 14px var(--mint); animation: token 3.2s var(--ease) infinite; }
@keyframes token { 0% { left: 4px; } 30% { left: calc(33% - 3px); } 55% { left: calc(66% - 6px); } 85%, 100% { left: calc(100% - 14px); } }
.viz-ret { margin-top: auto; display: grid; gap: 8px; }
.viz-ret span { position: relative; height: 26px; border-radius: 8px; background: rgba(255, 255, 255, .04); font-size: 12px; color: #CFD7EA; display: flex; align-items: center; padding-left: 10px; overflow: hidden; }
.viz-ret span::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(110, 139, 255, .45), rgba(46, 230, 166, .45)); border-radius: 8px; z-index: -1; transition: width 1.4s var(--ease); }
.tile.is-in .viz-ret span::before { width: var(--w); }
.viz-stamp { margin-top: auto; display: grid; place-items: center; height: 70px; }
.viz-stamp span { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--coral); border: 3px solid var(--coral); border-radius: 8px; padding: 2px 14px; transform: rotate(-8deg); opacity: 0; }
.tile.is-in .viz-stamp span { animation: stamp 3.6s var(--ease-spring) .4s infinite; }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-8deg) scale(2.2); } 12% { opacity: .95; transform: rotate(-8deg) scale(1); } 80% { opacity: .95; transform: rotate(-8deg) scale(1); } 100% { opacity: 0; transform: rotate(-8deg) scale(1); } }
.viz-code { flex: 1; min-width: 0; margin: 0; padding: 18px; border-radius: 14px; background: #070B16; border: 1px solid var(--l-line); color: #C5CEE4; font: 12.5px/1.75 var(--font-mono); overflow-x: auto; white-space: pre; }
.c-k { color: #FFB547; } .c-h { color: #6E8BFF; } .c-p { color: #8FE9C8; } .c-s { color: #2EE6A6; font-weight: 700; } .c-b { color: #FF8A7A; }
.caret { display: inline-block; width: 7px; height: 14px; margin-left: 4px; background: #2EE6A6; vertical-align: -2px; animation: blink 1s steps(1) infinite; }

/* search demo */
.sd-window { max-width: 860px; margin: 0 auto; border-radius: 22px; border: 1px solid var(--l-line); background: linear-gradient(180deg, #0F1730, #0A1020); padding: 18px; box-shadow: 0 40px 120px -50px rgba(110, 139, 255, .6); }
.sd-bar { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-radius: 14px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(110, 139, 255, .4); box-shadow: 0 0 0 4px rgba(110, 139, 255, .1); font-size: 18px; }
.sd-bar svg { width: 20px; height: 20px; color: #6E8BFF; flex: none; }
.sd-query { color: #fff; white-space: nowrap; overflow: hidden; }
.sd-caret { width: 2px; height: 22px; background: #6E8BFF; animation: blink 1s steps(1) infinite; flex: none; }
.sd-bar .kbd { margin-left: auto; background: transparent; color: #8D97B0; border-color: var(--l-line); }
.sd-facets { display: flex; flex-wrap: wrap; gap: 8px; min-height: 30px; margin: 14px 4px 6px; }
.sd-facets span { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--l-line); color: #C6CEE3; animation: pop .4s var(--ease-spring) both; animation-delay: calc(var(--i) * 60ms); }
.sd-facets span b { color: var(--mint); margin-left: 4px; }
@keyframes pop { from { opacity: 0; transform: scale(.8); } }
.sd-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-height: 250px; }
.sd-results li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .03); border: 1px solid transparent; animation: res-in .5s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
.sd-results li:first-child { border-color: rgba(46, 230, 166, .3); background: rgba(46, 230, 166, .06); }
@keyframes res-in { from { opacity: 0; transform: translateY(10px); } }
.sd-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #0B1020; background: var(--c); }
.sd-results h4 { font-size: 15px; color: #fff; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-results p { font-size: 13px; color: var(--l-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sd-results mark { background: rgba(255, 181, 71, .25); color: #FFD38E; border-radius: 3px; padding: 0 2px; }
.sd-results time { font-size: 12px; color: #7F8AA6; white-space: nowrap; }
@media (max-width: 560px) { .sd-results li { grid-template-columns: 34px minmax(0, 1fr); } .sd-results time { display: none; } .sd-ico { width: 34px; height: 34px; } .sd-bar { font-size: 15px; } .sd-bar .kbd { display: none; } }

/* numbers */
.numbers { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-top: 40px !important; }
.num { padding: 26px 22px; border-radius: 20px; border: 1px solid var(--l-line); background: rgba(255, 255, 255, .02); }
.num b { font-family: var(--font-display); font-size: clamp(42px, 5vw, 60px); font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.num > span { font-family: var(--font-display); font-size: 30px; color: var(--mint); margin-left: 2px; }
.num p { margin-top: 12px; color: var(--l-muted); font-size: 14.5px; line-height: 1.6; }
@media (max-width: 860px) { .numbers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* cta */
.cta-card { position: relative; overflow: hidden; max-width: 1000px; margin: 0 auto; text-align: center; padding: 80px 24px; border-radius: 30px; border: 1px solid rgba(110, 139, 255, .35); background: linear-gradient(180deg, #111B3A, #0A1020); }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 52px); font-weight: 700; position: relative; }
.cta-card p { color: var(--l-muted); font-size: 17px; margin: 16px 0 30px; position: relative; }
.cta-card .btn { position: relative; }
.cta-glow { position: absolute; left: 50%; top: -60%; width: 900px; height: 600px; margin-left: -450px; background: conic-gradient(from 180deg, #2F5BFF, #2EE6A6, #FFB547, #2F5BFF); filter: blur(90px); opacity: .28; animation: spin 16s linear infinite; }

.foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; max-width: 1180px; margin: 0 auto; padding: 36px 16px 48px; border-top: 1px solid var(--l-line); color: #7F8AA6; font-size: 13.5px; }
.foot .brand { color: #fff; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal], .hero-title .w, .stage { opacity: 1 !important; transform: none !important; filter: none !important; }
  .cursor-glow { display: none; }
}

/* last bento row: full-width API tile */
.tile.t-full { grid-column: 1 / -1; }
@media (max-width: 680px) { .tile.t-full { grid-column: auto; } }
