/* =========================================================
   Infera — Make it Yours.
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-2: #f5f7fa;
  --ink: #0d1117;
  --ink-2: #3a4250;
  --muted: #8a93a3;
  --line: rgba(13, 17, 23, .09);
  --line-2: rgba(13, 17, 23, .16);
  --card: #ffffff;
  --card-2: #f7f9fc;
  --glass: rgba(255, 255, 255, .72);
  --accent: #3d7bd9;
  --ice: #cfe3f7;
  --shadow-sm: 0 1px 2px rgba(13,17,23,.06), 0 2px 8px rgba(13,17,23,.04);
  --shadow: 0 1px 1px rgba(13,17,23,.04), 0 10px 30px -8px rgba(30,45,70,.18), 0 30px 60px -30px rgba(30,45,70,.25);
  --shadow-lg: 0 2px 4px rgba(13,17,23,.04), 0 24px 60px -12px rgba(30,45,70,.28);
  --btn-dark: #111418;
  --btn-dark-ink: #fff;
  --radius: 22px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --font: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #07090e;
  --bg-2: #0c1018;
  --ink: #eef2f8;
  --ink-2: #b6bfcd;
  --muted: #6c7689;
  --line: rgba(220, 230, 255, .08);
  --line-2: rgba(220, 230, 255, .16);
  --card: #0f141d;
  --card-2: #131a25;
  --glass: rgba(10, 13, 20, .66);
  --accent: #7fb2ff;
  --ice: #22344f;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 1px rgba(0,0,0,.3), 0 14px 40px -10px rgba(0,0,0,.6);
  --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7);
  --btn-dark: #f1f4f9;
  --btn-dark-ink: #0b0e14;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07090e; --bg-2: #0c1018; --ink: #eef2f8; --ink-2: #b6bfcd; --muted: #6c7689;
    --line: rgba(220,230,255,.08); --line-2: rgba(220,230,255,.16);
    --card: #0f141d; --card-2: #131a25; --glass: rgba(10,13,20,.66); --accent: #7fb2ff; --ice: #22344f;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4); --shadow: 0 1px 1px rgba(0,0,0,.3), 0 14px 40px -10px rgba(0,0,0,.6);
    --shadow-lg: 0 24px 60px -12px rgba(0,0,0,.7); --btn-dark: #f1f4f9; --btn-dark-ink: #0b0e14;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .6s var(--ease), color .6s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { display: block; }
::selection { background: var(--ice); color: var(--ink); }

/* ---------- logo mark ---------- */
.mark {
  display: inline-block;
  width: 28px; height: 28px;
  background: currentColor;
  -webkit-mask: var(--logo-mask) center / contain no-repeat;
          mask: var(--logo-mask) center / contain no-repeat;
  flex: none;
}
.mark.sm { width: 14px; height: 14px; }

/* ---------- progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 100; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--ice), var(--accent)); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 16px clamp(16px, 3vw, 36px);
  transition: padding .5s var(--ease), background-color .5s, box-shadow .5s, backdrop-filter .5s;
}
.nav.scrolled {
  padding-top: 10px; padding-bottom: 10px;
  background: var(--glass);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav.hidden { transform: translateY(-100%); }
.nav { transition: transform .5s var(--ease), padding .5s var(--ease), background-color .5s, box-shadow .5s; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; letter-spacing: -.03em; }
.brand .mark { width: 30px; height: 30px; transition: transform .8s var(--ease); }
.brand:hover .mark { transform: rotate(-18deg) scale(1.08); }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  position: relative; font-size: 13.5px; font-weight: 500; color: var(--ink-2);
  padding: 8px 12px; border-radius: 999px; transition: color .3s, background-color .3s;
}
.nav-links a:hover { color: var(--ink); background: var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; justify-self: end; }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px;
  color: var(--ink-2); transition: background-color .3s, color .3s, transform .3s var(--ease);
}
.icon-btn:hover { background: var(--line); color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.i-sun, .i-play { display: none !important; }
:root[data-theme="dark"] .i-sun { display: block !important; }
:root[data-theme="dark"] .i-moon { display: none !important; }
.paused .i-play { display: block !important; }
.paused .i-pause { display: none !important; }
.i-play { fill: currentColor !important; }
.burger { display: none; }
.burger span { display: block; width: 16px; height: 1.6px; background: currentColor; border-radius: 2px; transition: transform .4s var(--ease); }
.burger span + span { margin-top: 5px; }
.burger { flex-direction: column; justify-content: center; }
.menu-open .burger span:first-child { transform: translateY(3.3px) rotate(45deg); }
.menu-open .burger span:last-child { transform: translateY(-3.3px) rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 45; padding: 96px 24px 24px;
  display: flex; flex-direction: column; gap: 6px;
  background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  opacity: 0; pointer-events: none; transition: opacity .45s var(--ease);
}
.mobile-menu a:not(.btn) { font-size: 34px; font-weight: 700; letter-spacing: -.04em; padding: 6px 0;
  transform: translateY(16px); opacity: 0; transition: transform .6s var(--ease), opacity .6s; }
.mobile-menu .btn { margin-top: 24px; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open .mobile-menu a { transform: none; opacity: 1; }
.menu-open .mobile-menu a:nth-child(2) { transition-delay: .05s; }
.menu-open .mobile-menu a:nth-child(3) { transition-delay: .1s; }
.menu-open .mobile-menu a:nth-child(4) { transition-delay: .15s; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; border-radius: 14px;
  padding: 12px 18px; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .4s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.btn .win { fill: currentColor; stroke: none; }
.btn .arrow { transition: transform .5s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-sm { padding: 10px 14px; font-size: 13.5px; border-radius: 12px; }
.btn-lg { padding: 16px 22px; font-size: 15.5px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-dark {
  background: var(--btn-dark); color: var(--btn-dark-ink);
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.18), 0 8px 22px -6px rgba(10,15,25,.5), 0 2px 4px rgba(10,15,25,.2);
}
:root[data-theme="dark"] .btn-dark { box-shadow: 0 0 0 1px rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.15), 0 8px 30px -6px rgba(140,180,255,.35); }
.btn-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.22) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.btn-dark:hover::before { transform: translateX(120%); }
.btn-dark:hover { box-shadow: 0 0 0 1px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.2), 0 16px 34px -8px rgba(10,15,25,.55), 0 2px 4px rgba(10,15,25,.2); }
.btn-ghost {
  background: var(--card); color: var(--ink); border: 1px solid var(--line-2);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--ink-2); box-shadow: var(--shadow); }
.btn-disabled {
  background: var(--card-2); color: var(--muted); border: 1px dashed var(--line-2); cursor: not-allowed;
}
.btn-disabled.dark { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink-2); }
.ul { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: background-size .5s var(--ease); }
.ul:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 780px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(120px, 17vh, 170px) 16px 0;
  background:
    radial-gradient(120% 70% at 50% 0%, var(--bg) 40%, transparent 75%),
    linear-gradient(180deg, var(--bg) 0%, var(--sky-low, #e9f1f9) 100%);
}
:root { --sky-low: #e6eff8; }
:root[data-theme="dark"] { --sky-low: #101a2b; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sky-low: #101a2b; } }

.snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.hero-fade { position: absolute; inset: auto 0 0 0; height: 120px; background: linear-gradient(transparent, var(--bg)); z-index: 4; pointer-events: none; }

.hero-inner { position: relative; z-index: 5; text-align: center; max-width: 980px; }
.hero-title {
  margin: 0; font-weight: 700; letter-spacing: -.055em; line-height: .98;
  font-size: clamp(46px, 8.4vw, 112px);
}
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .08em; }
.hero-title .w {
  display: inline-block; transform: translateY(110%) rotate(4deg); opacity: 0; filter: blur(8px);
  animation: wordIn 1.15s var(--ease) forwards;
}
.hero-title .line:first-child .w:nth-child(1) { animation-delay: .1s; }
.hero-title .line:first-child .w:nth-child(2) { animation-delay: .18s; }
.hero-title .line:first-child .w:nth-child(3) { animation-delay: .26s; }
.hero-title .line:last-child .w:nth-child(1) { animation-delay: .36s; }
.hero-title .line:last-child .w:nth-child(2) { animation-delay: .44s; }
.hero-title .line:last-child .w:nth-child(3) { animation-delay: .52s; }
.accent-word {
  background: linear-gradient(100deg, var(--ink) 20%, #6f9fd8 45%, #bcd8f2 55%, var(--ink) 80%);
  background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
}
.accent-word.shine { animation: wordIn 1.15s var(--ease) forwards, shine 6s 1.6s var(--ease-io) infinite; }
@keyframes wordIn { to { transform: none; opacity: 1; filter: none; } }
@keyframes shine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }

.hero-sub { margin: 26px 0 0; font-size: 17px; color: var(--ink); }
.hero-sub strong { font-weight: 600; }
.hero-sub2 { margin: 4px 0 0; font-size: 17px; color: var(--ink-2); }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.hero-meta { list-style: none; display: flex; justify-content: center; gap: 0; padding: 0; margin: 22px 0 0; font-size: 12.5px; color: var(--ink-2); }
.hero-meta li + li::before { content: "·"; margin: 0 12px; color: var(--muted); }
.fade-up { opacity: 0; transform: translateY(18px); filter: blur(6px); animation: fadeUp 1s var(--d, 0s) var(--ease) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: none; filter: none; } }


/* ---------- marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0 30px; border-block: 1px solid var(--line); background: var(--bg); z-index: 2;
  -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: clamp(26px, 4vw, 56px); padding-right: clamp(26px, 4vw, 56px); }
.marquee span { font-size: clamp(40px, 6vw, 78px); font-weight: 700; letter-spacing: -.045em; text-transform: uppercase; line-height: 1; }
.marquee span.o { color: transparent; -webkit-text-stroke: 1.2px var(--muted); }
.marquee i.mark { width: clamp(30px, 4vw, 48px); height: clamp(30px, 4vw, 48px); color: var(--accent); animation: spin 14s linear infinite; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(90px, 13vw, 170px) clamp(16px, 4vw, 48px); max-width: 1240px; margin: 0 auto; }
.head { max-width: 640px; }
.head.center { margin: 0 auto; text-align: center; }
.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.head.center .eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
h2 { margin: 0; font-size: clamp(38px, 5.6vw, 72px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
h3 { margin: 0; font-size: clamp(30px, 3.6vw, 46px); font-weight: 700; letter-spacing: -.045em; line-height: 1.02; }
.muted { color: var(--muted); }
.lead { margin: 22px 0 0; font-size: 17.5px; color: var(--ink-2); line-height: 1.6; max-width: 560px; }
.head.center .lead { margin-inline: auto; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); filter: blur(8px); transition: opacity 1.1s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), filter 1.1s var(--ease) var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------- features ---------- */
.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  margin-top: clamp(80px, 11vw, 150px);
}
.feature.reverse .feature-copy { order: 2; }
.feature-copy p { margin: 22px 0 0; font-size: 17px; color: var(--ink-2); line-height: 1.6; max-width: 440px; }
.num { display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 18px; padding: 4px 9px; border: 1px solid var(--line-2); border-radius: 999px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.ticks li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; flex: none;
  background: var(--ice) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7bd9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat; }

.feature-visual {
  position: relative; min-height: 420px; border-radius: 30px; display: grid; place-items: center; padding: 48px 24px;
  background:
    radial-gradient(100% 80% at 30% 0%, color-mix(in srgb, var(--ice) 70%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  transform-style: preserve-3d;
  overflow: hidden;
}
.feature-visual::after { /* subtle grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask: radial-gradient(70% 60% at 50% 50%, #000, transparent); mask: radial-gradient(70% 60% at 50% 50%, #000, transparent);
}
.tilt { --rx: 0deg; --ry: 0deg; }
.tilt > .panel { transform: perspective(1000px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .8s var(--ease); }

.panel {
  position: relative; z-index: 2; width: min(100%, 400px); border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  padding: 18px;
}
.panel-bar { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em; font-weight: 600; color: var(--muted); padding: 2px 4px 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; text-transform: uppercase; }
.panel-bar .dots { letter-spacing: .1em; }

/* settings panel */
.settings-panel .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 4px; font-size: 14px; font-weight: 500; }
.settings-panel .row + .row { border-top: 1px solid var(--line); }
.settings-panel .row.col { flex-direction: column; align-items: stretch; gap: 12px; }
.row-top { display: flex; justify-content: space-between; }
.rv { font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--ink-2); }
.tog { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background-color .4s var(--ease); }
.tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .45s var(--ease); }
.tog.on { background: var(--ink); }
.tog.on::after { transform: translateX(16px); }
:root[data-theme="dark"] .tog.on { background: var(--accent); }
.swatches { display: flex; gap: 6px; }
.swatches i { width: 18px; height: 18px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); cursor: pointer; transition: transform .3s var(--ease), box-shadow .3s; }
.swatches i.sel { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--c); }
.swatches i:hover { transform: scale(1.15); }
.range { position: relative; height: 6px; border-radius: 6px; background: var(--line); }
.range .fill { position: absolute; inset: 0 auto 0 0; width: var(--v, 46%); border-radius: inherit; background: var(--ink); transition: width .9s var(--ease); }
.range .knob { position: absolute; top: 50%; left: var(--v, 46%); width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px rgba(0,0,0,.2); transition: left .9s var(--ease); }
.float-tag {
  position: absolute; z-index: 3; font-size: 10.5px; letter-spacing: .16em; font-weight: 600;
  padding: 7px 11px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: drift 6s var(--ease-io) infinite;
}
.ft1 { top: 9%; left: 6%; }
.ft2 { bottom: 10%; right: 6%; animation-delay: -3s; }
.ft3 { bottom: 9%; left: 7%; animation-delay: -2s; color: var(--accent); }
@keyframes drift { 50% { transform: translateY(-10px); } }
.ghost-card { position: absolute; z-index: 1; right: -30px; top: 16%; width: 180px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: .7; transform: rotate(8deg); padding: 12px; }
.gc-head { display: flex; gap: 5px; margin-bottom: 10px; }
.gc-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.gc-body span { display: block; height: 7px; border-radius: 4px; background: var(--line); margin-top: 7px; }
.gc-body span.s { width: 60%; }

/* code panel */
.code-panel { width: min(100%, 440px); background: #0d1117; color: #c9d4e3; border-color: rgba(255,255,255,.06); }
.code-panel .panel-bar { border-color: rgba(255,255,255,.08); color: #6b7689; text-transform: none; letter-spacing: .02em; font-family: var(--mono); font-weight: 400; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; letter-spacing: .14em; color: #7ee2a8; }
.live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.asm { font-family: var(--mono); font-size: 12px; }
.asm-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; padding: 7px 8px; border-radius: 8px; transition: background-color .4s; }
.asm-row em { font-style: normal; color: #5a6578; }
.asm-row code { color: #9fb3cf; }
.asm-row span { color: #e4c27a; }
.asm-row.hl { background: rgba(127,178,255,.12); box-shadow: inset 2px 0 0 #7fb2ff; }
.flow { width: 100%; height: auto; margin-top: 10px; }
.flow .edge { fill: none; stroke: #2c3a50; stroke-width: 1.5; stroke-dasharray: 4 5; animation: dash 1.4s linear infinite; }
.flow rect { fill: #151c28; stroke: #2c3a50; }
.flow rect.hot { stroke: #7fb2ff; fill: rgba(127,178,255,.12); }
.flow text { fill: #9fb3cf; font: 10px var(--mono); text-anchor: middle; }
.flow text.hot-t { fill: #cfe2ff; }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* diff */
.diff-panel { width: min(100%, 460px); }
.counts { display: flex; gap: 10px; font-family: var(--mono); letter-spacing: 0; }
.counts .minus { color: #d9534f; } .counts .plus { color: #2f9e62; }
.file-tab { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-2); padding: 6px 10px; margin: 6px 0 8px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--line); }
.diff { margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.5; white-space: pre; overflow: hidden; border-radius: 10px; }
.diff .ln { display: block; padding: 3px 10px; position: relative; }
.diff .ln i { font-style: normal; color: var(--muted); display: inline-block; width: 26px; }
.diff .del { background: rgba(217,83,79,.09); color: #b8413d; }
.diff .add { background: rgba(47,158,98,.1); color: #23804e; }
:root[data-theme="dark"] .diff .del { color: #ff8f8a; } :root[data-theme="dark"] .diff .add { color: #74e0a5; }
.diff .del::before, .diff .add::before { position: absolute; left: 2px; }
.diff .del::before { content: "−"; } .diff .add::before { content: "+"; }
.diff .add { clip-path: inset(0 100% 0 0); transition: clip-path 1s var(--ease); }
.in .diff .add { clip-path: inset(0 0 0 0); }
.in .diff .add:nth-of-type(4) { transition-delay: .5s; }
.in .diff .add:nth-of-type(5) { transition-delay: .75s; }
.in .diff .add:nth-of-type(6) { transition-delay: 1s; }
.diff-foot { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); color: var(--ink-2); }
.pill.ok i { width: 7px; height: 7px; border-radius: 50%; background: #2f9e62; box-shadow: 0 0 0 3px rgba(47,158,98,.2); }

/* modes */
.modes { position: relative; z-index: 2; display: grid; gap: 12px; width: min(100%, 420px); }
.mode {
  position: relative; text-align: left; display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center;
  padding: 18px 20px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.mode .m-n { grid-row: span 2; font-family: var(--mono); font-size: 12px; color: var(--muted); width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: var(--card-2); border: 1px solid var(--line); transition: background-color .4s, color .4s; }
.mode b { font-size: 16px; letter-spacing: -.02em; }
.mode small { color: var(--ink-2); font-size: 13.5px; }
.mode:hover { transform: translateX(6px); }
.mode.active { border-color: var(--ink); box-shadow: var(--shadow); transform: scale(1.03); }
.mode.active .m-n { background: var(--ink); color: var(--bg); }
.m-ring { position: absolute; right: 20px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 1.5px solid var(--line-2); transition: border-color .4s; }
.mode.active .m-ring { border: 5.5px solid var(--ink); }

/* ---------- plans ---------- */
.plans { max-width: 1180px; }
.notice {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; padding: 9px 16px 9px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 500; background: var(--card); border: 1px solid var(--line-2); box-shadow: var(--shadow-sm); color: var(--ink-2);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #e5a13a; position: relative; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #e5a13a; animation: ping 2s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 64px; align-items: stretch; }
.plan {
  --x: 50%; --y: 50%;
  position: relative; overflow: hidden; border-radius: 26px; padding: 30px 28px 32px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease), opacity 1.1s var(--ease) var(--d,0s), filter 1.1s var(--ease) var(--d,0s);
}
.plan::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--x) var(--y), color-mix(in srgb, var(--ice) 70%, transparent), transparent 60%);
}
.plan:hover::before { opacity: 1; }
.plan.in:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan > * { position: relative; }
.plan.featured { background: #0d1117; color: #eef2f8; border-color: #0d1117; box-shadow: var(--shadow-lg); }
:root[data-theme="dark"] .plan.featured { background: linear-gradient(180deg, #172133, #0f1520); border-color: rgba(127,178,255,.3); }
.plan.featured::before { background: radial-gradient(360px circle at var(--x) var(--y), rgba(127,178,255,.18), transparent 60%); }
.plan-glow { position: absolute !important; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(127,178,255,.35), transparent); filter: blur(30px); pointer-events: none; animation: glow 8s var(--ease-io) infinite; }
@keyframes glow { 50% { transform: translateX(15%) scale(1.15); opacity: .7; } }
.plan-top { display: flex; align-items: center; justify-content: space-between; }
.plan h4 { margin: 0; font-size: 22px; letter-spacing: -.03em; }
.tag { font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(127,178,255,.18); color: #a9cbff; letter-spacing: .02em; }
.tag.soft { background: var(--card-2); color: var(--muted); border: 1px solid var(--line); }
.plan-desc { margin: 10px 0 0; font-size: 14.5px; color: var(--ink-2); min-height: 44px; }
.plan.featured .plan-desc { color: #a8b3c4; }
.price { display: flex; align-items: baseline; gap: 4px; margin: 26px 0 24px; }
.price .cur { font-size: 22px; font-weight: 600; align-self: flex-start; margin-top: 8px; }
.price .amt { font-size: 60px; font-weight: 700; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.price .per { margin-left: 8px; font-size: 13px; color: var(--muted); }
.plan.featured .btn-disabled { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.18); color: #a8b3c4; }
.feat { list-style: none; padding: 24px 0 0; margin: 26px 0 0; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.plan.featured .feat { border-color: rgba(255,255,255,.1); }
.feat li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.feat li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--card-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233d7bd9' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 10px no-repeat; border: 1px solid var(--line); }
.plan.featured .feat li::before { background-color: rgba(127,178,255,.14); border-color: rgba(127,178,255,.25); }

/* ---------- integrations ---------- */
.int-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.mcp-card { margin-top: 36px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; max-width: 480px; }
.mcp-tabs { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid var(--line); }
.mcp-tabs button { font-size: 13px; font-weight: 500; padding: 7px 12px; border-radius: 10px; color: var(--ink-2); transition: background-color .3s, color .3s; }
.mcp-tabs button.on { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.mcp-body { display: flex; gap: 16px; padding: 20px; }
.mcp-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; background: var(--ink); color: var(--bg); }
.mcp-body b { font-size: 16px; letter-spacing: -.02em; }
.mcp-body p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.mcp-foot { padding: 12px 20px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: var(--muted); background: var(--card-2); border-top: 1px solid var(--line); }

.orbit { position: relative; aspect-ratio: 1; width: min(100%, 520px); justify-self: center; }
.ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); }
.r1 { inset: 0; } .r2 { inset: 16%; border-style: solid; border-color: var(--line); } .r3 { inset: 32%; }
.core {
  position: absolute; inset: 39%; border-radius: 30%; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--card), var(--card-2)); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.core::before { content: ""; position: absolute; inset: -40%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent); z-index: -1; animation: glow 6s var(--ease-io) infinite; }
.core .mark { width: 58%; height: 58%; animation: spin 30s linear infinite; }
.sat-track { position: absolute; inset: 0; }
.st2 { inset: 16%; }
.sat {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -50%);
  font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 999px; white-space: nowrap;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: box-shadow .3s, border-color .3s;
}
.sat:hover { border-color: var(--accent); }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.sticky { position: sticky; top: 120px; }
.acc details { border-bottom: 1px solid var(--line); }
.acc details:first-child { border-top: 1px solid var(--line); }
.acc summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; font-size: 18px; font-weight: 600; letter-spacing: -.02em; transition: color .3s, padding .5s var(--ease);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2);
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat;
  transition: transform .5s var(--ease), background-color .3s, color .3s;
}
.acc summary:hover { padding-left: 10px; }
.acc details[open] summary::after { transform: rotate(135deg); background-color: var(--ink); color: var(--bg); border-color: var(--ink); }
.acc .a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .55s var(--ease); }
.acc .a > p { overflow: hidden; margin: 0; padding: 0 4px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 560px; }
.acc details.open .a { grid-template-rows: 1fr; }
.acc details.open .a > p { padding-bottom: 24px; }

/* ---------- cta ---------- */
.cta {
  position: relative; overflow: hidden; min-height: 820px; display: flex; justify-content: center; padding: 140px 16px 0; text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--sky-low) 100%);
}
.cta-inner { position: relative; z-index: 5; display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 64px; height: 64px; margin-bottom: 26px; color: var(--ink); animation: float 6s var(--ease-io) infinite; }
@keyframes float { 50% { transform: translateY(-10px) rotate(-6deg); } }
.cta h2 { font-size: clamp(42px, 7vw, 96px); }
.cta .eyebrow { justify-content: center; }
.cta .eyebrow::after { content: ""; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px; }
.cta .lead { margin-inline: auto; }

/* ---------- footer ---------- */
.footer { position: relative; overflow: hidden; border-top: 1px solid var(--line); background: var(--bg); }
.foot-inner { max-width: 1240px; margin: 0 auto; padding: 48px clamp(16px, 4vw, 48px) 24px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px 32px; align-items: center; }
.foot-tag { margin: 0; color: var(--ink-2); font-size: 14px; }
.footer nav { display: flex; gap: 22px; font-size: 14px; color: var(--ink-2); }
.footer nav a:hover { color: var(--ink); }
.copy { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.foot-word {
  font-size: clamp(90px, 23vw, 340px); font-weight: 800; letter-spacing: -.07em; line-height: .78; text-align: center;
  background: linear-gradient(180deg, var(--line-2), transparent 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none; margin-top: 10px; padding-bottom: 2px;
}

/* ---------- paused ---------- */
.paused *, .paused *::before, .paused *::after { animation-play-state: paused !important; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav { grid-template-columns: 1fr auto; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .feature, .int-wrap, .faq-grid { grid-template-columns: 1fr; }
  .feature.reverse .feature-copy { order: 0; }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .sticky { position: static; }
  .foot-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav-actions .btn-sm { display: none; }
  .hero-ctas .btn-lg { width: 100%; }
  .hero-meta { flex-wrap: wrap; }
  .feature-visual { min-height: 360px; padding: 40px 14px; }
  .ghost-card { display: none; }
  .footer nav { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22,1,.36,1); }

/* ---------- Alps photo ---------- */
.alps { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.alps img {
  position: absolute; left: -3%; width: 106%; bottom: -2%; height: 70%;
  object-fit: cover; object-position: 50% 58%;
  transform-origin: 50% 100%; will-change: transform;
  opacity: 0; filter: blur(14px) saturate(.9);
  transition: opacity 1.6s var(--ease), filter 2s var(--ease);
  -webkit-mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 12%, rgba(0,0,0,.8) 26%, #000 36%);
          mask: linear-gradient(180deg, transparent 0%, rgba(0,0,0,.25) 12%, rgba(0,0,0,.8) 26%, #000 36%);
}
.alps.ready img { opacity: 1; filter: none; }
.cta-photo img { height: 58%; object-position: 62% 55%; }
.alps .tint { position: absolute; inset: 0; pointer-events: none; transition: background .6s; background: linear-gradient(180deg, var(--bg) 0%, var(--bg) 22%, transparent 52%); }
/* night mode: moonlit snow */
:root[data-theme="dark"] .alps img { filter: brightness(.48) contrast(1.08) saturate(.55) hue-rotate(8deg); }
:root[data-theme="dark"] .alps .tint { background: linear-gradient(180deg, var(--bg) 0%, rgba(7,9,14,.2) 45%, rgba(20,40,80,.28) 100%); mix-blend-mode: normal; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .alps img { filter: brightness(.48) contrast(1.08) saturate(.55) hue-rotate(8deg); }
  :root:not([data-theme="light"]) .alps .tint { background: linear-gradient(180deg, var(--bg) 0%, rgba(7,9,14,.2) 45%, rgba(20,40,80,.28) 100%); }
}
/* soft glow behind the headline so it reads over the peaks */
.hero-inner::before {
  content: ""; position: absolute; inset: -12% -18% -18%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--bg) 80%, transparent), transparent);
}
.hero-sub { margin-top: 26px; }
.hero-meta { display: inline-flex; padding: 7px 16px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4); border: 1px solid var(--line); color: var(--ink-2); }

/* ---------- minimal hover zoom ---------- */
.btn:not(:disabled):hover { transform: scale(1.03); }
.btn:not(:disabled):active { transform: scale(.98); }

/* ---------- coming soon ---------- */
.soon { cursor: default; }
.soon-pill {
  font-size: 10.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 8px; border-radius: 999px; margin-left: 2px;
  background: color-mix(in srgb, var(--btn-dark-ink) 16%, transparent); color: var(--btn-dark-ink);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--btn-dark-ink) 22%, transparent);
}
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120; display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 14px; font-size: 14px; font-weight: 500;
  background: var(--btn-dark); color: var(--btn-dark-ink); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  transition: transform .5s var(--ease), opacity .4s var(--ease);
}
.toast .mark { width: 18px; height: 18px; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- thin custom scrollbars ---------- */
:root { --sb-thumb: rgba(13,17,23,.22); --sb-thumb-hover: rgba(13,17,23,.42); }
:root[data-theme="dark"] { --sb-thumb: rgba(220,230,255,.18); --sb-thumb-hover: rgba(220,230,255,.36); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --sb-thumb: rgba(220,230,255,.18); --sb-thumb-hover: rgba(220,230,255,.36); } }
@supports not selector(::-webkit-scrollbar) {
  * { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
}
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: transparent; }
