/* Pako's site. Dark, deep space, the figure's three colours: violet, sky and mint. */
:root {
  --bg: #06070d;
  --bg-2: #0b0d18;
  --ink: #f2f4ff;
  --ink-2: #a9b0cf;
  --ink-3: #6d7497;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --violet: #5b46ff;
  --sky: #29c4ff;
  --mint: #4ff2b0;
  --warn: #ffb547;
  --danger: #ff5d7a;
  --glass: rgba(14, 16, 30, 0.55);
  --grad: linear-gradient(100deg, #8b7bff 0%, #29c4ff 45%, #4ff2b0 100%);
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.loading { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: rgba(91, 70, 255, 0.55); color: #fff; }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 8px; }

/* ---------- the stage, the grain, the cursor ---------- */
#stage { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: 0; pointer-events: none; }
.grain {
  position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 33% { transform: translate(-3%, 2%); } 66% { transform: translate(2%, -3%); } 100% { transform: translate(0, 0); } }
.cursor-glow {
  position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; z-index: 1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(91, 70, 255, 0.16), rgba(41, 196, 255, 0.06) 55%, transparent 75%);
  transform: translate3d(-999px, -999px, 0); mix-blend-mode: screen;
}
@media (hover: none) { .cursor-glow { display: none; } }

main, .nav, .foot { position: relative; z-index: 2; }

/* ---------- loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; align-content: center; gap: 28px; background: var(--bg);
}
.loader-orb {
  width: 84px; height: 84px; border-radius: 50%; position: relative;
  background: radial-gradient(circle at 38% 32%, #8fe6ff, #29c4ff 30%, #5b46ff 68%, #241a7a);
  box-shadow: 0 0 60px 10px rgba(91, 70, 255, 0.45), inset 0 -10px 30px rgba(0, 0, 0, 0.35);
  animation: breathe 2.4s var(--ease) infinite;
}
.loader-orb span { position: absolute; top: 30%; width: 10px; height: 22px; border-radius: 6px; background: #e8f9ff; box-shadow: 0 0 10px #8fe6ff; animation: blink 3.2s infinite; }
.loader-orb span:first-child { left: 30%; }
.loader-orb span:last-child { right: 30%; }
.loader-bar { width: 140px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--grad); }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 90px 18px rgba(41, 196, 255, 0.4), inset 0 -10px 30px rgba(0, 0, 0, 0.35); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

/* ---------- the mini orb (the figure without WebGL) ---------- */
.mini-orb {
  --s: 26px; position: relative; flex: none; display: inline-block; width: var(--s); height: var(--s); border-radius: 50%;
  background: radial-gradient(circle at 38% 32%, #8fe6ff, #29c4ff 32%, #5b46ff 70%, #241a7a);
  box-shadow: 0 0 18px rgba(91, 70, 255, 0.6);
}
.mini-orb i { position: absolute; top: 30%; width: 13%; height: 30%; border-radius: 99px; background: #eafaff; animation: blink 4s infinite; }
.mini-orb i:first-child { left: 30%; }
.mini-orb i:last-child { right: 30%; }
.mini-orb.big { --s: 56px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 20;
  display: flex; align-items: center; gap: 28px; padding: 10px 10px 10px 18px; width: min(1100px, calc(100% - 32px));
  border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 9, 18, 0.5);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), transform 0.5s var(--ease);
}
.nav.hidden { transform: translate(-50%, -140%); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); font-size: 15px; transition: color 0.25s, background 0.25s; }
.nav-links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 820px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- buttons ---------- */
.btn {
  --x: 0px; --y: 0px; position: relative; display: inline-flex; align-items: center; gap: 10px; padding: 16px 26px; border-radius: 999px;
  font-weight: 650; font-size: 16px; letter-spacing: -0.005em; border: 1px solid transparent; cursor: pointer; isolation: isolate;
  transform: translate3d(var(--x), var(--y), 0); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.35s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn-primary { color: #050611; background: #fff; box-shadow: 0 10px 40px -10px rgba(41, 196, 255, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.6) inset; }
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit; background: var(--grad); filter: blur(14px); opacity: 0.55;
  transition: opacity 0.35s;
}
.btn-primary:hover::before { opacity: 0.95; }
.btn-ghost { color: var(--ink); border-color: var(--line-2); background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn-small { padding: 10px 18px; font-size: 14px; }
.btn-glow { color: #fff; background: linear-gradient(120deg, var(--violet), #3b8cff); box-shadow: 0 6px 30px -6px rgba(91, 70, 255, 0.8); }

/* ---------- type ---------- */
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.grad, .grad .word { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad .word { padding-bottom: 0.08em; }
.kicker { margin: 0 0 18px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sky); }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 640px; }
.fine { font-size: 14px; color: var(--ink-3); }
.section-head { max-width: 900px; margin: 0 auto 64px; text-align: center; }
.section-head .lead { margin: 22px auto 0; }
.section-title { margin: 0; font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 700; }
.section-title .serif { font-size: 1.08em; }
.split, .split-words { display: inline-block; }
.split .char, .split-words .word, .hero-title .w, .final-title .w { display: inline-block; will-change: transform; }
.hero-title .w, .final-title .w { white-space: nowrap; }

section { padding: 140px 24px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding-top: 120px; padding-bottom: 80px; }
.hero-inner { width: min(1180px, 100%); margin: 0 auto; }
@media (max-width: 900px) { .hero { align-items: end; padding-top: 42vh; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255, 255, 255, 0.04); backdrop-filter: blur(8px); font-size: 14px; color: var(--ink-2); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 var(--mint); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(79, 242, 176, 0.7); } 80%, 100% { box-shadow: 0 0 0 10px rgba(79, 242, 176, 0); } }
.hero-title { margin: 0; font-size: clamp(52px, 9.2vw, 138px); line-height: 0.94; letter-spacing: -0.05em; font-weight: 800; max-width: 11ch; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .serif { font-weight: 400; font-size: 1.04em; color: #a9dcff; text-shadow: 0 0 40px rgba(41, 196, 255, 0.35); padding-right: 0.08em; }
.hero-sub { max-width: 560px; margin: 30px 0 0; font-size: clamp(18px, 1.5vw, 21px); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--ink-3); font-size: 15px; }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sky); }
.hero-badges b { color: var(--ink); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--line-2); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px; background: var(--ink-2); animation: wheel 1.8s var(--ease) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80%, 100% { transform: translateY(14px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { padding: 34px 0; border-block: 1px solid var(--line); background: rgba(6, 7, 13, 0.55); backdrop-filter: blur(6px); overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 34px; width: max-content; font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.02em;
  color: var(--ink-2); animation: marquee 38s linear infinite; }
.marquee-track i { font-style: normal; font-size: 0.6em; color: var(--violet); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- statement ---------- */
.statement { text-align: center; max-width: 1180px; margin: 0 auto; }
.big-statement { margin: 0 auto; font-size: clamp(36px, 6vw, 88px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; max-width: 16ch; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 80px auto 30px; max-width: 980px; }
.stat { padding: 32px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px); }
.stat b { display: block; font-size: clamp(52px, 6vw, 84px); line-height: 1; font-weight: 800; letter-spacing: -0.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--ink-2); font-size: 16px; }
@media (max-width: 720px) { .stat-row { grid-template-columns: 1fr; } }

/* ---------- a day (pinned) ---------- */
.day { padding: 0 24px; }
.day-pin { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center; width: min(1180px, 100%); margin: 0 auto; padding: 100px 0 60px; }
.day-clock { display: flex; align-items: baseline; gap: 16px; margin: 4px 0 30px; }
.clock-time { font-size: clamp(64px, 9vw, 128px); font-weight: 800; letter-spacing: -0.06em; line-height: 0.9; font-variant-numeric: tabular-nums;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.clock-label { font-family: var(--serif); font-style: italic; font-size: clamp(24px, 2.6vw, 36px); color: var(--ink-2); }
.day-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day-steps li { padding: 12px 16px; border-radius: 14px; color: var(--ink-3); transition: color 0.5s var(--ease), background 0.5s var(--ease), transform 0.5s var(--ease); }
.day-steps li b { display: inline-block; min-width: 58px; font-family: var(--mono); font-weight: 500; font-size: 14px; color: inherit; }
.day-steps li.is-on { color: var(--ink); background: rgba(255, 255, 255, 0.05); transform: translateX(8px); }
.day-steps li.is-on b { color: var(--sky); }
.day-progress { height: 2px; margin-top: 28px; border-radius: 2px; background: var(--line); overflow: hidden; }
.day-progress i { display: block; height: 100%; width: 0; background: var(--grad); }

.phone-wrap { position: relative; display: grid; place-items: center; perspective: 1400px; }

/* ---------- the brief in a quiet browser window (08:00) ---------- */
.dia {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: min(700px, 58vw); height: min(560px, 74vh); margin: 0; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden; background: #f4f1ec; border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 50px 120px -30px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(0, 0, 0, 0.2), 0 0 100px -30px rgba(255, 170, 110, 0.45);
  transform: translate(-50%, -50%); transform-origin: 50% 50%; will-change: transform, opacity;
}
.dia-bar { position: relative; display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; background: #ebe7e1; border-bottom: 1px solid #ddd7ce; flex: none; }
.dia-lights { display: inline-flex; gap: 7px; }
.dia-lights i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.dia-lights i:nth-child(2) { background: #febc2e; }
.dia-lights i:nth-child(3) { background: #28c840; }
.dia-tab { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 14px 0 8px; border-radius: 9px; background: #fbfaf8;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04); color: #2a2622; font: 600 12.5px var(--sans); }
.dia-tab .mini-orb { --s: 16px; box-shadow: 0 0 8px rgba(91, 70, 255, 0.5); }
.dia-url { margin-left: auto; color: #8a8178; font: 12px var(--mono); }
.dia-view { position: relative; flex: 1; overflow: hidden; background: #f6f1e8; }
.dia-view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; background: #f6f1e8; pointer-events: none; }
.dia.live .dia-view iframe { pointer-events: auto; }
@media (max-width: 900px) {
  .dia { width: 92vw; height: min(540px, 62vh); }
  .dia-url { display: none; }
}
.phone {
  position: relative; width: min(370px, 86vw); height: min(720px, 80vh); padding: 14px; border-radius: 52px;
  background: linear-gradient(160deg, #1c1f33, #0a0b14 60%); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, 0.9), 0 0 0 10px rgba(255, 255, 255, 0.02), 0 0 120px -20px rgba(91, 70, 255, 0.5);
  transform: rotateY(-14deg) rotateX(6deg); transform-style: preserve-3d; overflow: hidden;
}
.phone-notch { position: absolute; top: 18px; left: 50%; width: 110px; height: 30px; margin-left: -55px; border-radius: 20px; background: #000; z-index: 3; }
.phone-head { display: flex; align-items: center; gap: 12px; padding: 56px 16px 14px; border-bottom: 1px solid var(--line); }
.phone-head b { display: block; font-size: 16px; }
.phone-head small { color: var(--mint); font-size: 12px; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px 6px; height: calc(100% - 110px); justify-content: flex-end; overflow: hidden; }
.msg { max-width: 88%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.42; opacity: 0; transform: translateY(24px) scale(0.96); }
.msg p { margin: 0; }
.msg.pako { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.you { align-self: flex-end; background: linear-gradient(135deg, var(--violet), #3b8cff); border-bottom-right-radius: 6px; }
.msg.card { border-color: rgba(41, 196, 255, 0.4); box-shadow: 0 0 30px -10px rgba(41, 196, 255, 0.5); }
.msg.soft { color: var(--ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.chips span { padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--line-2); }
.chips .go { background: #fff; color: #050611; border-color: #fff; }
@media (max-width: 900px) {
  .day-pin { grid-template-columns: 1fr; gap: 30px; padding-top: 90px; }
  .day-steps { display: none; }
  .day-clock { margin-bottom: 6px; flex-wrap: wrap; gap: 4px 14px; }
  .phone { height: min(560px, 62vh); transform: none; }
}

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; width: min(1180px, 100%); margin: 0 auto; }
.tile {
  --mx: 50%; --my: 50%; position: relative; padding: 30px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, rgba(20, 22, 40, 0.75), rgba(10, 11, 22, 0.75)); border: 1px solid var(--line);
  backdrop-filter: blur(16px); transform-style: preserve-3d; transition: border-color 0.4s var(--ease);
}
.tile:hover { border-color: rgba(91, 70, 255, 0.5); }
.tile-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s var(--ease);
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(91, 70, 255, 0.22), rgba(41, 196, 255, 0.08) 40%, transparent 60%); }
.tile:hover .tile-glow { opacity: 1; }
.tile-icon { font-size: 30px; width: 58px; height: 58px; display: grid; place-items: center; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); margin-bottom: 22px; transform: translateZ(30px); }
.tile h3 { margin: 0 0 8px; font-size: 22px; letter-spacing: -0.02em; transform: translateZ(20px); }
.tile p { margin: 0; color: var(--ink-2); font-size: 15.5px; transform: translateZ(10px); }
.tile-xl { grid-column: span 2; grid-row: span 2; }
.tile-wide { grid-column: span 2; }
.tile-full { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 26px; }
.tile-full .tile-icon { margin: 0; }
.tile-full .channels { margin: 0; }
.tile-full h3 { margin: 0; }
@media (max-width: 980px) { .tile-full { display: block; } .tile-full .tile-icon { margin-bottom: 22px; } .tile-full .channels { margin-top: 22px; } }
.memory-graph { margin-top: 26px; }
.memory-graph svg { width: 100%; height: auto; overflow: visible; }
.memory-graph .edges path { fill: none; stroke: rgba(41, 196, 255, 0.45); stroke-width: 1.2; stroke-dasharray: 4 5; animation: dash 6s linear infinite; }
.memory-graph .nodes circle { fill: #1b1d38; stroke: var(--sky); stroke-width: 1.4; }
.memory-graph .nodes .me { fill: url(#none); fill: var(--violet); stroke: #9d8fff; filter: drop-shadow(0 0 8px rgba(91, 70, 255, 0.9)); }
.memory-graph text { fill: var(--ink-2); font-size: 11px; text-anchor: middle; font-family: var(--sans); }
.memory-graph .labels text:first-child { fill: #fff; font-weight: 700; font-size: 9px; }
@keyframes dash { to { stroke-dashoffset: -90; } }
.cal-strip { position: relative; height: 54px; margin-top: 22px; border-radius: 12px; background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 9.09%); }
.cal-strip span { position: absolute; top: 8px; left: calc((var(--s) - 7) * 8.33%); width: calc(var(--l) * 8.33% - 4px); height: 38px; padding: 0 8px;
  display: flex; align-items: center; border-radius: 9px; font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden;
  background: rgba(41, 196, 255, 0.16); border: 1px solid rgba(41, 196, 255, 0.4); }
.cal-strip span.warn { background: rgba(255, 181, 71, 0.15); border-color: rgba(255, 181, 71, 0.55); }
.cal-strip span.warn + .warn { top: 12px; }
.channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.channels span { padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); }
.channels .wa { border-color: rgba(79, 242, 176, 0.5); }
.channels .tg { border-color: rgba(41, 196, 255, 0.5); }
.channels .mac { border-color: rgba(139, 123, 255, 0.55); }
@media (max-width: 980px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .bento { grid-template-columns: 1fr; } .tile-xl, .tile-wide { grid-column: auto; grid-row: auto; } }

/* ---------- proactive ---------- */
.proactive { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; width: min(1180px, 100%); margin: 0 auto; }
.proactive .section-title { font-size: clamp(36px, 4.6vw, 64px); }
.proactive .lead { margin-top: 22px; }
.moments { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: center; }
.moments-grid { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(12, 1fr); gap: 10px; align-content: center; }
.moments-grid i { aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, 0.07); }
.moments-grid i.lit { background: var(--mint); box-shadow: 0 0 18px 4px rgba(79, 242, 176, 0.7); }
.moment-card { position: absolute; left: 50%; top: 50%; width: 82%; transform: translate(-50%, -50%) scale(0.9); opacity: 0; display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px; border-radius: 20px; background: rgba(10, 12, 24, 0.85); border: 1px solid rgba(79, 242, 176, 0.45);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 60px -20px rgba(79, 242, 176, 0.6); backdrop-filter: blur(14px); }
.moment-card p { margin: 0; font-size: 16px; }
@media (max-width: 900px) { .proactive { grid-template-columns: 1fr; } }

/* ---------- safety ---------- */
.safety-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: center; width: min(1180px, 100%); margin: 0 auto; }
.stop-demo { display: grid; justify-items: center; gap: 26px; text-align: center; }
.stop-btn {
  position: relative; width: 230px; height: 230px; border-radius: 50%; border: 0; cursor: pointer; color: #fff; font: 800 34px/1 var(--sans); letter-spacing: 0.08em;
  background: radial-gradient(circle at 40% 30%, #ff8aa0, #ff3d63 45%, #a0122f); box-shadow: 0 0 0 10px rgba(255, 93, 122, 0.12), 0 0 0 22px rgba(255, 93, 122, 0.06),
  0 30px 80px -10px rgba(255, 61, 99, 0.7), inset 0 -14px 30px rgba(0, 0, 0, 0.35), inset 0 10px 20px rgba(255, 255, 255, 0.25);
  transition: transform 0.25s var(--ease), box-shadow 0.4s var(--ease), filter 0.4s;
}
.stop-btn:hover { transform: scale(1.04); }
.stop-btn:active { transform: scale(0.95); }
.stop-btn::after { content: ""; position: absolute; inset: -22px; border-radius: 50%; border: 2px solid rgba(255, 93, 122, 0.5); animation: ring 2.4s var(--ease) infinite; }
@keyframes ring { 0% { transform: scale(0.85); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.stop-btn[aria-pressed="true"] { background: radial-gradient(circle at 40% 30%, #9ff5d2, #2fd8a0 45%, #0d7a55); box-shadow: 0 0 0 10px rgba(79, 242, 176, 0.12), 0 30px 80px -10px rgba(79, 242, 176, 0.6), inset 0 -14px 30px rgba(0, 0, 0, 0.35); }
.stop-btn[aria-pressed="true"]::after { border-color: rgba(79, 242, 176, 0.5); }
.stop-caption { max-width: 330px; color: var(--ink-2); margin: 0; }
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.rules li { padding: 22px 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(14px); color: var(--ink-2); }
.rules b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 18px; letter-spacing: -0.01em; }
@media (max-width: 900px) { .safety-grid { grid-template-columns: 1fr; } }
body.paused #stage { filter: saturate(0.4) hue-rotate(-40deg); }

/* ---------- mac window ---------- */
.window { width: min(980px, 100%); margin: 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2);
  background: rgba(13, 15, 28, 0.82); backdrop-filter: blur(20px); box-shadow: 0 80px 160px -40px rgba(0, 0, 0, 0.9), 0 0 100px -30px rgba(91, 70, 255, 0.5); }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); }
.window-bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.window-bar i:nth-child(2) { background: #febc2e; }
.window-bar i:nth-child(3) { background: #28c840; }
.window-bar span { margin-left: 12px; font-size: 13px; color: var(--ink-3); }
.window-body { display: grid; grid-template-columns: 260px 1fr; gap: 30px; padding: 36px; align-items: center; }
.ring-wrap { position: relative; width: 220px; height: 220px; justify-self: center; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; stroke-linecap: round; }
.ring-bg { stroke: rgba(255, 255, 255, 0.07); }
.ring-fg { stroke-dasharray: 314.16; stroke-dashoffset: 314.16; filter: drop-shadow(0 0 8px rgba(41, 196, 255, 0.7)); }
.ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-text b { font-size: 64px; line-height: 1; font-weight: 800; letter-spacing: -0.05em; }
.ring-text span { color: var(--ink-2); font-size: 14px; }
.conn-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.conn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); font-size: 15px; }
.conn span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, 0.06); font-weight: 800; }
.conn em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: var(--ink-2); }
.conn em.ok { background: rgba(79, 242, 176, 0.14); color: var(--mint); }
@media (max-width: 760px) { .window-body { grid-template-columns: 1fr; padding: 24px; } .conn-list { grid-template-columns: 1fr; } }

/* ---------- how ---------- */
.flow { position: relative; width: min(1000px, 100%); margin: 0 auto; height: 360px; }
.flow-lines { position: absolute; inset: 0 0 auto; width: 100%; height: 260px; }
.flow-lines path { fill: none; stroke: url(#none); stroke: rgba(41, 196, 255, 0.5); stroke-width: 2; stroke-dasharray: 6 8; animation: dash 3s linear infinite; }
.node { position: absolute; top: 130px; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 6px; width: 190px; padding: 22px 16px; text-align: center;
  border-radius: 22px; border: 1px solid var(--line-2); background: rgba(12, 14, 26, 0.8); backdrop-filter: blur(14px); }
.node span { font-size: 34px; line-height: 1; }
.node b { font-size: 19px; }
.node small { color: var(--ink-3); font-size: 13px; }
.n-you { left: 10%; }
.n-pako { left: 50%; border-color: rgba(91, 70, 255, 0.6); box-shadow: 0 0 80px -20px rgba(91, 70, 255, 0.8); }
.n-claude { left: 90%; }
.flow-services { position: absolute; left: 0; right: 0; top: 245px; display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; padding-top: 30px; }
.flow-services span { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); font-size: 14px; color: var(--ink-2); }
@media (max-width: 760px) {
  .flow { height: auto; display: grid; gap: 14px; justify-items: center; }
  .flow-lines { display: none; }
  .node, .flow-services { position: static; transform: none; width: min(320px, 100%); }
  .flow-services { padding-top: 0; }
}

/* ---------- install ---------- */
.install-card { width: min(820px, 100%); margin: 0 auto; padding: 34px; border-radius: 28px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(22, 24, 44, 0.85), rgba(10, 11, 22, 0.85)); backdrop-filter: blur(20px);
  box-shadow: 0 60px 140px -40px rgba(0, 0, 0, 0.9), 0 0 120px -40px rgba(41, 196, 255, 0.45); }
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { position: relative; z-index: 1; padding: 10px 18px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: 600 14.5px var(--sans); cursor: pointer; transition: color 0.3s; }
.tabs button[aria-selected="true"] { color: #050611; }
.tab-ink { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 5px; width: 100px; border-radius: 999px; background: #fff; transition: transform 0.5s var(--ease), width 0.5s var(--ease); }
.steps { margin: 0 0 28px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; padding-left: 46px; min-height: 30px; color: var(--ink-2); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: -2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #050611; font-weight: 800; font-size: 14px; }
.steps b { color: var(--ink); }
.code { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 18px; border-radius: 14px; background: #04050a; border: 1px solid var(--line-2); }
.code code { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13.5px; line-height: 1.5; color: var(--mint); white-space: normal; overflow-wrap: anywhere; }
.copy { flex: none; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.06); color: var(--ink); font: 600 13px var(--sans); cursor: pointer; }
.copy.done { background: var(--mint); color: #050611; border-color: var(--mint); }
code { font-family: var(--mono); font-size: 0.92em; }
@media (max-width: 560px) { .install-card { padding: 22px; } .tabs button { padding: 9px 12px; font-size: 13.5px; } }

/* ---------- faq ---------- */
.faq-list { width: min(820px, 100%); margin: 0 auto; display: grid; gap: 10px; }
details { border: 1px solid var(--line); border-radius: 18px; background: var(--glass); backdrop-filter: blur(14px); overflow: hidden; }
summary { list-style: none; cursor: pointer; padding: 22px 26px; font-size: 19px; font-weight: 650; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--sky); transition: transform 0.4s var(--ease); }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 26px 24px; color: var(--ink-2); }

/* ---------- final ---------- */
.final { min-height: 100vh; display: grid; align-content: end; justify-items: center; text-align: center; gap: 10px; padding-top: 46vh; }
.final-title { margin: 0; font-size: clamp(64px, 13vw, 200px); line-height: 0.95; letter-spacing: -0.06em; font-weight: 800; }
.final-title .char { background: linear-gradient(180deg, #fff 35%, rgba(169, 220, 255, 0.55)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.05em; }
.final .lead { margin: 18px auto 0; }

/* ---------- footer ---------- */
.foot { padding: 50px 24px 60px; border-top: 1px solid var(--line); background: rgba(6, 7, 13, 0.75); backdrop-filter: blur(10px); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; width: min(1180px, 100%); margin: 0 auto 18px; color: var(--ink-2); }
.foot-row p { margin: 0; }
.foot > .fine { width: min(1180px, 100%); margin: 0 auto; }

/* ---------- reveal defaults (app.js animates them; without JS everything shows) ---------- */
.js .reveal-up { opacity: 0; transform: translateY(40px); }
.js .reveal-scale { opacity: 0; transform: translateY(60px) scale(0.94); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal-up, .js .reveal-scale, .msg { opacity: 1 !important; transform: none !important; }
}
