/* ============================================================
   FlowDesk — SaaS landing (Web Design Lab showcase)
   Dark, tech, premium. WebGL shader / bento / glass / charts /
   odometer / command palette / sticky story.
   ============================================================ */
:root {
  --navy:      #0b1430;
  --navy-deep: #070d1f;
  --navy-2:    #0e1a3c;
  --blue:      #4f7cff;
  --violet:    #8b5cf6;
  --cyan:      #22d3ee;
  --white:     #f4f7ff;
  --text:      #c7d2f0;
  --muted:     #7d8bb5;
  --faint:     #4d5a82;
  --line:      rgba(123, 140, 200, .14);
  --glass:     rgba(20, 32, 70, .55);
  --glass-2:   rgba(28, 42, 88, .42);
  --disp: 'Outfit', 'Noto Sans JP', system-ui, sans-serif;
  --sans: 'Inter', 'Noto Sans JP', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --maxw: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --grad: linear-gradient(100deg, var(--cyan), var(--blue) 48%, var(--violet));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans); color: var(--text); background: var(--navy-deep);
  -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.75;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(79, 124, 255, .4); color: #fff; }

/* ===== scroll progress ===== */
.scroll-progress { position: fixed; left: 0; top: 0; height: 2px; width: 0; z-index: 400;
  background: var(--grad); box-shadow: 0 0 12px rgba(79, 124, 255, .7); }

/* ===== intro loader ===== */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(130% 120% at 50% 40%, var(--navy-2) 0%, var(--navy-deep) 70%);
  transition: opacity .7s ease, transform 1s var(--ease), filter .7s ease; }
.intro.done { opacity: 0; transform: scale(1.04); filter: blur(8px); pointer-events: none; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro-logo { display: flex; align-items: center; gap: 14px;
  opacity: 0; transform: translateY(14px); animation: introRise .8s var(--ease) .1s forwards; }
.intro-glyph { width: 46px; height: 46px; }
.intro-glyph path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: drawPath 1.1s var(--ease) .25s forwards; }
.intro-node { opacity: 0; animation: nodePop .5s var(--ease) forwards; }
.intro-node:nth-of-type(1) { animation-delay: .9s; }
.intro-node:nth-of-type(2) { animation-delay: 1.05s; }
.intro-node:nth-of-type(3) { animation-delay: 1.2s; }
.intro-name { font-family: var(--disp); font-weight: 800; font-size: 30px; letter-spacing: -.01em; color: var(--white); }
.intro-track { width: 200px; height: 2px; border-radius: 99px; background: rgba(123, 140, 200, .18); overflow: hidden; }
.intro-track i { display: block; height: 100%; width: 0; background: var(--grad); }
.intro-pct { font-family: var(--mono); font-size: 11px; letter-spacing: .2em; color: var(--muted); }
@keyframes introRise { to { opacity: 1; transform: none; } }
@keyframes drawPath { to { stroke-dashoffset: 0; } }
@keyframes nodePop { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }

/* ===== nav ===== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 300; display: flex; align-items: center; gap: 26px;
  padding: 18px clamp(18px, 4vw, 48px); transition: padding .35s var(--ease), background .35s, box-shadow .35s, border-color .35s;
  border-bottom: 1px solid transparent; }
.nav.solid { padding: 12px clamp(18px, 4vw, 48px); background: rgba(8, 14, 33, .72);
  backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid var(--line); box-shadow: 0 12px 40px -22px rgba(0, 0, 0, .8); }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-glyph { width: 28px; height: 28px; }
.brand-word { font-family: var(--disp); font-weight: 800; font-size: 19px; letter-spacing: -.01em; color: var(--white); }
.nav-links { display: flex; gap: 28px; margin-left: 14px; }
.nav-links a { font-family: var(--disp); font-weight: 500; font-size: 14.5px; color: var(--muted); position: relative; transition: color .25s; }
.nav-links a:hover { color: var(--white); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 100%;
  background: var(--grad); border-radius: 2px; transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cmdk-hint { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 10px;
  background: rgba(123, 140, 200, .08); border: 1px solid var(--line); color: var(--muted); font-size: 13px; transition: border-color .25s, color .25s; }
.cmdk-hint:hover { border-color: rgba(79, 124, 255, .5); color: var(--white); }
.cmdk-hint kbd { font-family: var(--mono); font-size: 11px; background: rgba(123, 140, 200, .14); border-radius: 5px; padding: 1px 5px; }
.nav-burger { display: none; background: none; border: 0; width: 40px; height: 40px; }
.nav-burger i { display: block; width: 22px; height: 2px; margin: 5px auto; background: var(--white); border-radius: 2px; transition: .3s var(--ease); }

/* ===== buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--disp);
  font-weight: 600; font-size: 14.5px; letter-spacing: .01em; padding: 13px 26px; border-radius: 12px; border: 0;
  position: relative; overflow: hidden; transition: transform .25s var(--ease), box-shadow .3s, background .3s, color .3s; }
.btn-cta, .btn-primary { color: #fff; background: var(--grad); background-size: 160% 160%;
  box-shadow: 0 14px 34px -14px rgba(79, 124, 255, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-cta { padding: 11px 22px; font-size: 14px; }
.btn-primary:hover, .btn-cta:hover { transform: translateY(-2px); box-shadow: 0 22px 44px -16px rgba(79, 124, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--white); background: rgba(123, 140, 200, .08); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(123, 140, 200, .16); border-color: rgba(123, 140, 200, .3); transform: translateY(-2px); }
.btn-ghost.light { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); }
.btn-ghost svg { transition: transform .25s; }
.btn-ghost:hover svg { transform: scale(1.1); }
/* shimmer: a gloss runs across the button */
.shimmer::before { content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg);
  animation: shimmer 4.5s ease-in-out infinite; }
@keyframes shimmer { 0%, 60% { left: -120%; } 80%, 100% { left: 160%; } }

/* ===== reveal: blur-in & clip wipe ===== */
[data-blur] { opacity: 0; transform: translateY(26px); filter: blur(10px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
[data-blur].in { opacity: 1; transform: none; filter: blur(0); }
[data-wipe] { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
[data-wipe].in { clip-path: inset(0 0 0 0); }

/* ===== section base ===== */
.section { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(18px, 5vw, 48px); position: relative; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-kicker { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: 12px; letter-spacing: .25em;
  color: var(--cyan); margin-bottom: 16px; padding: 5px 12px; border: 1px solid rgba(34, 211, 238, .25); border-radius: 99px;
  background: rgba(34, 211, 238, .06); }
.sec-title { font-family: var(--disp); font-weight: 800; font-size: clamp(30px, 5vw, 54px); line-height: 1.1; letter-spacing: -.02em; color: var(--white); }
.sec-title.light { color: #fff; }
.sec-lead { margin-top: 20px; font-size: clamp(15px, 1.6vw, 17px); color: var(--muted); }
.sec-lead.light { color: #aebbe0; }

/* ===== hero ===== */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: 120px clamp(18px, 5vw, 48px) 80px; background: var(--navy-deep); }
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-grid { position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(123, 140, 200, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 140, 200, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 35%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 50% 35%, #000 30%, transparent 75%); }
.hero-inner { position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; font-family: var(--disp); font-weight: 500; font-size: 13px;
  color: var(--text); padding: 7px 14px 7px 11px; border-radius: 99px; border: 1px solid var(--line);
  background: rgba(20, 32, 70, .5); backdrop-filter: blur(8px); margin-bottom: 26px; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(34, 211, 238, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(34, 211, 238, 0); } }
.hero-title { font-family: var(--disp); font-weight: 800; font-size: clamp(36px, 6vw, 70px); line-height: 1.06; letter-spacing: -.03em; color: var(--white); }
.ht-line { display: block; }
.ht-scramble { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-family: var(--mono), var(--disp); }
.hero-sub { margin: 26px 0 32px; font-size: clamp(15px, 1.7vw, 18px); color: var(--muted); max-width: 540px; }
.hero-sub b { color: var(--white); font-weight: 600; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust { margin-top: 20px; font-size: 13px; color: var(--faint); font-family: var(--disp); }

/* hero mock dashboard */
.hero-mock { position: relative; }
.mock-glow { position: absolute; inset: -10% -6% -16% -6%; z-index: -1; border-radius: 40px; filter: blur(38px);
  background: radial-gradient(60% 60% at 70% 20%, rgba(79, 124, 255, .4), transparent 70%),
              radial-gradient(50% 50% at 20% 90%, rgba(139, 92, 246, .35), transparent 70%); }
.mock-window { border-radius: 16px; overflow: hidden; border: 1px solid rgba(123, 140, 200, .22);
  background: linear-gradient(180deg, #0f1b3e, #0b1430); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: perspective(1600px) rotateY(-9deg) rotateX(4deg) translateZ(0); transition: transform .6s var(--ease); }
.mock-window:hover { transform: perspective(1600px) rotateY(-3deg) rotateX(2deg); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); background: rgba(8, 14, 33, .6); }
.md { width: 11px; height: 11px; border-radius: 50%; }
.md-r { background: #ff5f57; } .md-y { background: #febc2e; } .md-g { background: #28c840; }
.mock-url { margin-left: 14px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.mock-body { display: grid; grid-template-columns: 54px 1fr; min-height: 320px; }
.mock-side { padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 12px; border-right: 1px solid var(--line); background: rgba(8, 14, 33, .35); }
.ms-logo { width: 24px; height: 24px; border-radius: 8px; background: var(--grad); }
.ms-item { width: 24px; height: 24px; border-radius: 7px; background: rgba(123, 140, 200, .12); }
.ms-item.active { background: rgba(79, 124, 255, .35); box-shadow: 0 0 0 1px rgba(79, 124, 255, .5); }
.ms-item.s { margin-top: auto; }
.mock-main { padding: 16px; overflow: hidden; }
.mock-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mc-col { display: flex; flex-direction: column; gap: 9px; }
.mc-h { display: flex; align-items: center; gap: 7px; font-family: var(--disp); font-size: 11px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.mc-h .dotc { width: 8px; height: 8px; border-radius: 3px; }
.mc-card { padding: 10px; border-radius: 10px; background: rgba(123, 140, 200, .08); border: 1px solid var(--line);
  opacity: 0; transform: translateY(8px); animation: cardIn .5s var(--ease) forwards; }
.mc-card .l1 { height: 7px; border-radius: 4px; background: rgba(199, 210, 240, .5); width: 80%; }
.mc-card .l2 { height: 6px; border-radius: 4px; background: rgba(123, 140, 200, .3); width: 55%; margin-top: 7px; }
.mc-card .tag { display: inline-block; margin-top: 9px; height: 14px; border-radius: 99px; padding: 0 9px; font-family: var(--mono); font-size: 9px; line-height: 14px; }
@keyframes cardIn { to { opacity: 1; transform: none; } }
.scroll-cue { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px;
  border: 1.5px solid rgba(123, 140, 200, .3); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; border-radius: 4px; background: var(--cyan);
  transform: translateX(-50%); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0% { opacity: 0; transform: translate(-50%, -4px); } 40% { opacity: 1; } 80%, 100% { opacity: 0; transform: translate(-50%, 16px); } }

/* ===== trust bar ===== */
.trust { max-width: var(--maxw); margin: 0 auto; padding: 10px clamp(18px, 5vw, 48px) 30px; text-align: center; }
.trust-label { font-family: var(--disp); font-size: 13px; letter-spacing: .04em; color: var(--faint); margin-bottom: 26px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(22px, 5vw, 56px); align-items: center; }
.tlogo { display: flex; align-items: center; gap: 9px; color: var(--muted); opacity: .6; transition: opacity .4s, color .4s; }
.tlogo:hover { opacity: 1; color: var(--white); }
.tlogo svg { width: 26px; height: 26px; }
.tlogo span { font-family: var(--disp); font-weight: 700; font-size: 16px; letter-spacing: -.01em; }

/* ===== features / bento ===== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 200px; gap: 16px; }
.bt { position: relative; overflow: hidden; border-radius: 20px; padding: 24px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px);
  display: flex; flex-direction: column; transition: border-color .4s, transform .4s var(--ease); }
.bt:hover { border-color: rgba(79, 124, 255, .4); transform: translateY(-3px); }
/* cursor-follow shine on glass */
.bt::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(79, 124, 255, .18), transparent 60%); }
.bt:hover::before { opacity: 1; }
.bt-span3 { grid-column: span 3; } .bt-span2 { grid-column: span 2; } .bt-span4 { grid-column: span 4; }
.bt-tall { grid-row: span 2; }
.bt-ico { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(79, 124, 255, .14); border: 1px solid rgba(79, 124, 255, .25); }
.bt-ico svg { width: 22px; height: 22px; stroke: var(--cyan); fill: none; stroke-width: 1.8; }
.bt-title { font-family: var(--disp); font-weight: 700; font-size: 19px; color: var(--white); margin-bottom: 8px; position: relative; }
.bt-desc { font-size: 14px; color: var(--muted); position: relative; max-width: 38ch; }
.bt-tag { margin-top: auto; font-family: var(--mono); font-size: 11px; color: var(--cyan); letter-spacing: .08em; position: relative; }
/* feature visual flourishes */
.bt-viz { position: absolute; inset: auto -10px -10px auto; opacity: .8; pointer-events: none; }
.bt-flow { display: flex; gap: 6px; margin-top: 14px; }
.bt-flow i { flex: 1; height: 6px; border-radius: 99px; background: rgba(123, 140, 200, .18); overflow: hidden; position: relative; }
.bt-flow i::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 99px; background: var(--grad);
  animation: flowBar 2.6s var(--ease) infinite; }
.bt-flow i:nth-child(2)::after { animation-delay: .4s; } .bt-flow i:nth-child(3)::after { animation-delay: .8s; }
.bt-flow i:nth-child(4)::after { animation-delay: 1.2s; }
@keyframes flowBar { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(280%); } }
.bt-dots { display: flex; gap: 14px; margin-top: 16px; }
.bt-avatar { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--navy); margin-left: -12px;
  display: grid; place-items: center; font-family: var(--disp); font-weight: 700; font-size: 12px; color: #fff; }
.bt-avatar:first-child { margin-left: 0; }

/* ===== dashboard ===== */
.dash { max-width: none; padding: 0; }
.dash-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(80px, 11vw, 150px) clamp(18px, 5vw, 48px); position: relative; z-index: 1; }
.dash-bg { position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 60% at 80% 10%, rgba(139, 92, 246, .14), transparent 60%),
              radial-gradient(60% 50% at 10% 90%, rgba(34, 211, 238, .1), transparent 60%),
              linear-gradient(180deg, var(--navy), var(--navy-deep)); }
.dash-panel { border-radius: 24px; border: 1px solid var(--line); background: var(--glass-2); backdrop-filter: blur(16px);
  padding: clamp(20px, 3vw, 34px); box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.kpi { padding: 18px 20px; border-radius: 16px; background: rgba(11, 20, 48, .55); border: 1px solid var(--line); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kpi-label { font-family: var(--disp); font-size: 12.5px; color: var(--muted); }
.kpi-trend { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.kpi-trend.up { color: #34e3a4; background: rgba(52, 227, 164, .12); }
.kpi-trend.dn { color: #ff7a9c; background: rgba(255, 122, 156, .12); }
.kpi-val { display: flex; align-items: baseline; gap: 4px; font-family: var(--disp); font-weight: 800; font-size: clamp(26px, 3vw, 36px); color: var(--white); letter-spacing: -.02em; }
.kpi-val .unit { font-size: 15px; color: var(--muted); font-weight: 600; }
/* odometer */
.odo { display: inline-flex; }
.odo-col { display: inline-block; height: 1em; overflow: hidden; line-height: 1; }
.odo-col i { display: block; font-style: normal; }
.dash-charts { display: grid; grid-template-columns: 1.5fr 1fr; gap: 16px; }
.chart-card { padding: 20px; border-radius: 16px; background: rgba(11, 20, 48, .55); border: 1px solid var(--line); }
.chart-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 10px; }
.cc-label { font-family: var(--disp); font-size: 12.5px; color: var(--muted); }
.cc-value { font-family: var(--disp); font-weight: 800; color: var(--white); font-size: 26px; margin-top: 2px; }
.cc-value em { font-size: 13px; font-style: normal; color: var(--muted); font-weight: 600; }
.chart-legend { display: flex; gap: 14px; }
.lg { font-family: var(--disp); font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.lg::before { content: ""; width: 14px; height: 3px; border-radius: 2px; }
.lg-a::before { background: var(--cyan); }
.lg-b::before { background: rgba(123, 140, 200, .5); }
.chart-canvas { width: 100%; height: 210px; display: block; }
.spark-list { display: flex; flex-direction: column; gap: 12px; }
.spark { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 14px;
  background: rgba(11, 20, 48, .55); border: 1px solid var(--line); }
.spark-name { font-family: var(--disp); font-size: 13px; color: var(--text); }
.spark-num { font-family: var(--disp); font-weight: 700; font-size: 16px; color: var(--white); }
.spark-num small { font-family: var(--mono); font-size: 10px; font-weight: 700; margin-left: 6px; }
.spark-num small.up { color: #34e3a4; } .spark-num small.dn { color: #ff7a9c; }
.spark canvas { grid-column: 1 / -1; width: 100%; height: 34px; display: block; margin-top: 4px; }

/* ===== flow / sticky story ===== */
.flow { max-width: var(--maxw); }
.flow-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.flow-sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; }
.flow-visual { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(160deg, #0f1b3e, #0a1230);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .7); }
.fv-stage { position: absolute; inset: 0; }
.fv-scene { position: absolute; inset: 0; opacity: 0; transform: scale(.97); transition: opacity .6s var(--ease), transform .6s var(--ease);
  padding: 26px; display: flex; flex-direction: column; }
.fv-scene.on { opacity: 1; transform: none; }
.fv-head { display: flex; align-items: center; gap: 10px; font-family: var(--disp); font-weight: 700; font-size: 13px; color: var(--white); margin-bottom: 18px; }
.fv-head .n { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; color: #fff; background: var(--grad); }
.fv-canvas { flex: 1; width: 100%; }
.flow-steps { display: flex; flex-direction: column; }
.fstep { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; }
.fstep-num { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--cyan); margin-bottom: 14px; }
.fstep-title { font-family: var(--disp); font-weight: 800; font-size: clamp(24px, 3.4vw, 38px); line-height: 1.15; color: var(--white); letter-spacing: -.02em; }
.fstep-desc { margin-top: 16px; color: var(--muted); font-size: 16px; max-width: 44ch; }
.fstep { opacity: .32; transition: opacity .45s ease; }
.fstep.active { opacity: 1; }

/* ===== stats / odometer ===== */
.stats { max-width: none; background: linear-gradient(180deg, var(--navy-deep), var(--navy)); }
.stats-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(70px, 9vw, 120px) clamp(18px, 5vw, 48px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { text-align: center; }
.stat-val { font-family: var(--disp); font-weight: 900; font-size: clamp(40px, 6vw, 66px); line-height: 1; letter-spacing: -.03em;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; display: inline-flex; align-items: baseline; }
.stat-val .suf { -webkit-text-fill-color: initial; color: var(--blue); font-size: .5em; margin-left: 2px; }
.stat-label { margin-top: 12px; font-family: var(--disp); font-weight: 600; font-size: 13px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.stat-sub { font-size: 12.5px; color: var(--faint); margin-top: 4px; }

/* ===== pricing ===== */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; padding: 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--glass);
  backdrop-filter: blur(14px); display: flex; flex-direction: column; transition: transform .4s var(--ease), border-color .4s; }
.plan:hover { transform: translateY(-4px); border-color: rgba(123, 140, 200, .35); }
.plan.featured { border-color: rgba(79, 124, 255, .5); background: linear-gradient(180deg, rgba(30, 46, 100, .55), rgba(20, 32, 70, .5));
  box-shadow: 0 40px 90px -36px rgba(79, 124, 255, .5); }
.plan.featured::before { content: ""; position: absolute; inset: -1px; border-radius: 22px; padding: 1px; pointer-events: none;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; }
.plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-family: var(--disp); font-weight: 700; font-size: 11px;
  letter-spacing: .1em; padding: 5px 14px; border-radius: 99px; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -8px rgba(79, 124, 255, .7); }
.plan-name { font-family: var(--disp); font-weight: 700; font-size: 17px; color: var(--white); }
.plan-tag { font-size: 13px; color: var(--muted); margin-top: 4px; min-height: 38px; }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 18px 0 6px; }
.plan-price b { font-family: var(--disp); font-weight: 900; font-size: 44px; letter-spacing: -.03em; color: var(--white); }
.plan-price .cur { font-family: var(--disp); font-weight: 700; font-size: 22px; color: var(--white); }
.plan-price .per { font-size: 13px; color: var(--muted); }
.plan-note { font-size: 12px; color: var(--faint); margin-bottom: 22px; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; flex: 1; }
.plan li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text); }
.plan li svg { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 2px; stroke: var(--cyan); fill: none; stroke-width: 2.4; }
.plan .btn { width: 100%; }

/* ===== cta ===== */
.cta { max-width: var(--maxw); }
.cta-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 60px);
  text-align: center; border: 1px solid var(--line); background: rgba(11, 20, 48, .6); }
.cta-aurora { position: absolute; inset: -40% -10%; z-index: 0; filter: blur(50px); opacity: .8;
  background: radial-gradient(40% 50% at 30% 40%, rgba(34, 211, 238, .5), transparent 70%),
              radial-gradient(40% 50% at 70% 60%, rgba(139, 92, 246, .5), transparent 70%),
              radial-gradient(40% 50% at 50% 50%, rgba(79, 124, 255, .4), transparent 70%);
  animation: aurora 14s ease-in-out infinite alternate; }
@keyframes aurora { to { transform: translate(4%, -6%) scale(1.15) rotate(8deg); } }
.cta-card > * { position: relative; z-index: 1; }
.cta-title { font-family: var(--disp); font-weight: 800; font-size: clamp(28px, 5vw, 52px); letter-spacing: -.03em; color: #fff; }
.cta-sub { margin: 16px auto 30px; color: var(--text); max-width: 460px; font-size: 16px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== footer ===== */
.footer { background: var(--navy-deep); border-top: 1px solid var(--line); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: clamp(50px, 7vw, 80px) clamp(18px, 5vw, 48px) 40px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; }
.footer-tag { margin-top: 16px; color: var(--muted); font-size: 14px; max-width: 28ch; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.fcol h4 { font-family: var(--disp); font-weight: 700; font-size: 13px; letter-spacing: .06em; color: var(--white); margin-bottom: 16px; }
.fcol a { display: block; font-size: 13.5px; color: var(--muted); padding: 5px 0; transition: color .25s; }
.fcol a:hover { color: var(--white); }
.footer-base { border-top: 1px solid var(--line); }
.footer-base { max-width: var(--maxw); margin: 0 auto; padding: 24px clamp(18px, 5vw, 48px) 40px; }
.footer-note { color: var(--faint); font-size: 12px; max-width: 620px; line-height: 1.7; }
.footer-copy { color: var(--faint); font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; margin-top: 10px; }

/* ===== command palette ===== */
.cmdk { position: fixed; inset: 0; z-index: 900; display: none; align-items: flex-start; justify-content: center; padding: 14vh 16px 16px; }
.cmdk.open { display: flex; }
.cmdk-backdrop { position: absolute; inset: 0; background: rgba(4, 8, 22, .65); backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.cmdk.open .cmdk-backdrop { opacity: 1; }
.cmdk-modal { position: relative; width: min(580px, 100%); border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 32, 70, .96), rgba(11, 20, 48, .96)); border: 1px solid rgba(123, 140, 200, .28);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8); transform: translateY(-14px) scale(.98); opacity: 0; transition: transform .3s var(--ease), opacity .3s; }
.cmdk.open .cmdk-modal { transform: none; opacity: 1; }
.cmdk-search { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-ico { color: var(--muted); flex: 0 0 auto; }
.cmdk-search input { flex: 1; background: none; border: 0; outline: none; color: var(--white); font-family: var(--sans); font-size: 16px; }
.cmdk-search input::placeholder { color: var(--faint); }
.cmdk-esc { font-family: var(--mono); font-size: 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; }
.cmdk-results { max-height: 46vh; overflow-y: auto; padding: 8px; }
.cmdk-group { font-family: var(--disp); font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--faint); padding: 10px 12px 6px; }
.cmdk-item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.cmdk-item.sel, .cmdk-item:hover { background: rgba(79, 124, 255, .16); }
.cmdk-item__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: 0 0 auto;
  background: rgba(123, 140, 200, .12); border: 1px solid var(--line); }
.cmdk-item__ico svg { width: 16px; height: 16px; stroke: var(--cyan); fill: none; stroke-width: 1.9; }
.cmdk-item__txt { flex: 1; }
.cmdk-item__txt b { display: block; font-family: var(--disp); font-weight: 600; font-size: 14px; color: var(--white); }
.cmdk-item__txt span { font-size: 12px; color: var(--muted); }
.cmdk-item__hint { font-family: var(--mono); font-size: 10px; color: var(--faint); }
.cmdk-empty { padding: 30px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk-foot { display: flex; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--line); }
.cmdk-foot span { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--faint); }
.cmdk-foot kbd { font-family: var(--mono); font-size: 10px; background: rgba(123, 140, 200, .14); border-radius: 5px; padding: 1px 6px; }

/* ===== responsive ===== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-mock { max-width: 520px; }
  .mock-window { transform: none; }
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; }
  .bt-span4 { grid-column: span 4; } .bt-span3 { grid-column: span 2; } .bt-span2 { grid-column: span 2; }
  .dash-charts { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .flow-wrap { grid-template-columns: 1fr; gap: 0; }
  .flow-sticky { height: auto; position: relative; top: auto; margin-bottom: 30px; }
  .fstep { min-height: auto; opacity: 1; padding: 30px 0; }
  .plans { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { position: fixed; inset: 0; top: 0; height: 100svh; flex-direction: column; justify-content: center; align-items: center; gap: 30px;
    background: rgba(8, 14, 33, .97); backdrop-filter: blur(16px); transform: translateX(100%); transition: transform .5s var(--ease); margin: 0; }
  .nav-links a { font-size: 22px; color: var(--white); }
  .nav.open .nav-links { transform: none; }
  .nav-right .cmdk-hint { display: none; }
  .nav-burger { display: block; z-index: 330; }
  .nav.open .nav-burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.open .nav-burger i:nth-child(2) { opacity: 0; }
  .nav.open .nav-burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bt, .bt-span2, .bt-span3, .bt-span4, .bt-tall { grid-column: auto; grid-row: auto; min-height: 180px; }
  .kpis { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  [data-blur], [data-wipe] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
  .mock-window { transform: none !important; }
}
