/* AI Visibility & Shopping Feed: main.css */

@font-face { font-family: 'Inter'; src: url('../fonts/inter-var.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Inter Fallback'; src: local('Arial'); size-adjust: 107.06%; ascent-override: 90.49%; descent-override: 22.53%; line-gap-override: 0%; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Mono'; src: url('../fonts/dm-mono-500.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --ink: #0B1A3A;
  --ink-2: #3A4A6B;
  --ink-3: #56668A;
  --bg: #F5F8FF;
  --bg-2: #E9F0FF;
  --line: #DCE5F7;
  --card: #FFFFFF;

  --b-950: #0A1638;
  --b-900: #172554;
  --b-800: #1E3A8A;
  --b-700: #1E40AF;
  --b-600: #1D4ED8;
  --b-500: #2563EB;
  --b-400: #3B82F6;
  --b-300: #93C5FD;
  --b-200: #BFDBFE;
  --b-100: #DBEAFE;

  --mint: #10B981;
  --mint-hi: #6EE7B7;
  --mint-bg: #D1FAE5;
  --mint-ink: #065F46;
  --green: #047857;
  --green-bg: #E3F7EC;
  --red: #B42318;
  --red-bg: #FDECEA;

  --field: radial-gradient(90% 60% at 50% 0%, rgba(59, 130, 246, .45) 0%, transparent 70%), linear-gradient(180deg, var(--b-800) 0%, var(--b-900) 60%, var(--b-950) 100%);
  --field-card: radial-gradient(80% 70% at 70% 20%, rgba(59, 130, 246, .5), transparent 70%), linear-gradient(160deg, var(--b-700), var(--b-900));

  --f: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fm: 'DM Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --wrap: 1160px;
  --gutter: max(16px, calc((100vw - var(--wrap)) / 2));
  --overlap: clamp(80px, 12vw, 180px);

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 17px;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; }
strong { font-weight: 600; }

:focus-visible { outline: 3px solid var(--b-500); outline-offset: 3px; border-radius: 6px; }
.field :focus-visible, .footer :focus-visible { outline-color: var(--mint-hi); }

.skip-link {
  position: fixed; top: 10px; left: 50%; z-index: 100;
  transform: translate(-50%, -160%);
  background: #fff; color: var(--b-700); font-weight: 600; font-size: 14px;
  padding: 8px 16px; border-radius: 999px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(10, 22, 56, .25);
  transition: transform .2s;
}
.skip-link:focus { transform: translate(-50%, 0); }

.wrap { max-width: var(--wrap); margin: 0 auto; }
.mono { font-family: var(--fm); font-size: .92em; }
.muted { color: var(--ink-3); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 15.5px; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap; border: 1px solid transparent;
  transition: transform .2s ease, background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-white { background: #fff; color: var(--b-700); box-shadow: 0 8px 24px rgba(5, 12, 40, .3); }
.btn-white:hover { box-shadow: 0 12px 30px rgba(5, 12, 40, .4); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .2); }
.btn-blue { background: var(--b-600); color: #fff; box-shadow: 0 10px 24px rgba(29, 78, 216, .3); }
.btn-blue:hover { background: var(--b-700); }
.btn-line { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--b-300); }

.text-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--b-600); font-weight: 600; font-size: 15.5px; text-decoration: none;
}
.text-link .ico { width: 18px; height: 18px; transition: transform .2s; }
.text-link:hover .ico { transform: translateX(3px); }

.ico { width: 20px; height: 20px; flex-shrink: 0; }

/* ───────── Tags (one colour per channel) and pills ───────── */
.tag {
  display: inline-flex; align-items: center;
  font-family: var(--fm); font-weight: 500; font-size: 11.5px; line-height: 1;
  padding: 5px 8px; border-radius: 6px; white-space: nowrap;
  background: var(--b-100); color: var(--b-700); border: 1px solid var(--b-200);
}
.tag.g { background: #E0ECFF; color: #1A4FC4; border-color: #C7DAFE; }
.tag.m { background: #EEF0FF; color: #3730A3; border-color: #D9DCFE; }
.tag.l { background: #DCFCE7; color: #166534; border-color: #BBF7D0; }
.tag.ws { background: #FCE8EE; color: #9F1239; border-color: #FBCFDB; }
.tag.vv { background: #FAE8FF; color: #86198F; border-color: #F5D0FE; }
.tag.src { background: #F1F5F9; color: #334155; border-color: #E2E8F0; }

.pill {
  display: inline-flex; align-items: center; white-space: nowrap;
  font-size: 12px; font-weight: 600; line-height: 1;
  padding: 5px 10px; border-radius: 999px;
}
.pill.ok { background: var(--green-bg); color: var(--green); }
.pill.miss { background: var(--red-bg); color: var(--red); }
.mono.pill { font-family: var(--fm); font-weight: 500; }
.mini-row .pill { font-family: var(--fm); font-weight: 500; }

/* ───────── Fields and pixel texture ───────── */
.field {
  position: relative;
  color: #fff;
  background: var(--field);
  isolation: isolate;
}
.field::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .75;
  background: url('../images/pixels.svg') 0 0 / 240px 240px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 85%);
  mask-image: radial-gradient(70% 60% at 50% 35%, #000 0%, transparent 85%);
}
.dissolve {
  position: absolute; left: 0; right: 0; height: 96px; z-index: 1; pointer-events: none;
  background: var(--bg);
  -webkit-mask: url('../images/dissolve.svg') 50% 100% / 480px 96px repeat-x;
  mask: url('../images/dissolve.svg') 50% 100% / 480px 96px repeat-x;
}
.dissolve-bottom { bottom: -1px; }
.dissolve-top { top: -1px; transform: scaleY(-1); }

.hl {
  background: linear-gradient(95deg, var(--b-600) 0%, var(--b-400) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.field .hl { background-image: linear-gradient(95deg, #A7F3D0 0%, #6EE7B7 50%, #5EEAD4 100%); }

/* ───────── Nav ───────── */
.nav-wrap {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding: 0 16px; pointer-events: none;
}
.nav {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; gap: 4px;
  padding: 6px 6px 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .8);
  box-shadow: 0 8px 28px rgba(10, 22, 56, .2);
  transition: box-shadow .3s, background-color .3s;
}
.nav.scrolled { background: rgba(255, 255, 255, .95); box-shadow: 0 10px 34px rgba(10, 22, 56, .24); }
.nav-logo {
  display: flex; align-items: center; gap: 8px; padding: 0 10px 0 0;
  font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
}
.nav-logo svg { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 2px; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 999px;
  font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-decoration: none;
  transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--bg-2); color: var(--ink); }
.nav-cta {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 18px; margin-left: 4px;
  border-radius: 999px; background: var(--b-600); color: #fff;
  font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background-color .2s;
}
.nav-cta:hover { background: var(--b-700); }
.nav-toggle {
  display: none; width: 40px; height: 40px; border: 0; border-radius: 999px;
  background: var(--bg-2); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform .25s, top .25s;
}
.nav-toggle span:first-child { top: 15px; }
.nav-toggle span:last-child { top: 23px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

/* ───────── Hero ───────── */
.hero { padding: 150px 16px 0; text-align: center; overflow-x: clip; }
.hero-inner { position: relative; z-index: 2; max-width: 920px; margin: 0 auto; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  background: rgba(10, 22, 56, .28); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 14px; font-weight: 500; color: #fff;
}
.chip-px {
  width: 10px; height: 10px; border-radius: 2px; background: var(--mint-hi); flex-shrink: 0;
  box-shadow: 0 0 12px rgba(110, 231, 183, .8);
}
.chip-sep { width: 4px; height: 4px; border-radius: 1px; background: var(--b-300); opacity: .7; }
.hero h1 {
  margin: 24px auto 20px; max-width: 17ch;
  font-size: clamp(2.5rem, 6.2vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em;
  text-wrap: balance;
}
.hero-sub {
  max-width: 700px; margin: 0 auto;
  font-size: clamp(1.05rem, 1.7vw, 1.2rem); line-height: 1.6; color: var(--b-100);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 32px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--b-200); text-wrap: balance; }
.hero-note a { color: #fff; }

/* Catalog flow */
.flow {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto 56px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
}
.flow-node {
  display: flex; align-items: center; gap: 10px; text-align: left;
  padding: 10px 16px 10px 10px; border-radius: 16px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.node-icon {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; background: #fff; color: var(--b-600);
}
.node-label { font-weight: 600; font-size: 15px; line-height: 1.25; }
.node-label small { display: block; font-weight: 400; font-size: 12.5px; color: var(--b-200); }
.flow-track { position: relative; height: 72px; }
.flow-track::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 12px);
}
.flow-hub {
  position: absolute; left: 50%; top: 50%; z-index: 3;
  width: 60px; height: 60px; margin: -30px 0 0 -30px;
}
.flow-hub svg { width: 100%; height: 100%; border-radius: 14px; box-shadow: 0 12px 30px rgba(3, 8, 30, .5); }
.flow-hub::after {
  content: ''; position: absolute; inset: -6px; border-radius: 18px;
  border: 2px solid var(--mint-hi); opacity: 0;
  animation: hub-ring 3s ease-out 1.5s infinite;
}
.flow-hub .asf-eye { animation: eye-lit 3s ease-out 1.5s infinite; }
.flow-lane {
  position: absolute; top: 0; bottom: 0; left: 5%; right: 5%;
  animation: lane-x 9s linear infinite; animation-delay: calc(var(--i) * -3s);
  pointer-events: none;
}
.chip { position: absolute; left: 0; top: 50%; transform: translate(-50%, -50%); display: grid; }
.face {
  grid-area: 1 / 1; justify-self: center;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 5px 12px 5px 5px; border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 20px rgba(3, 8, 30, .35);
  animation: face-a 9s linear infinite; animation-delay: calc(var(--i) * -3s);
}
.face.b { animation-name: face-b; opacity: 0; }
.face .tag { padding: 4px 7px; }

@keyframes lane-x {
  0% { transform: translateX(0); opacity: 0; }
  7%, 93% { opacity: 1; }
  100% { transform: translateX(100%); opacity: 0; }
}
@keyframes lane-y {
  0% { transform: translateY(0); opacity: 0; }
  7%, 93% { opacity: 1; }
  100% { transform: translateY(100%); opacity: 0; }
}
@keyframes face-a { 0%, 47% { opacity: 1; } 51%, 100% { opacity: 0; } }
@keyframes face-b { 0%, 49% { opacity: 0; } 53%, 100% { opacity: 1; } }
@keyframes hub-ring { 0% { opacity: .9; transform: scale(.92); } 70%, 100% { opacity: 0; transform: scale(1.4); } }
@keyframes eye-lit { 0% { fill: var(--mint-hi); opacity: 1; } 55%, 100% { fill: #fff; opacity: .07; } }

/* Product frame */
.hero-shot {
  position: relative; z-index: 2;
  max-width: 1080px; margin: 56px auto calc(-1 * var(--overlap));
}
.shot-frame {
  border-radius: 20px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 50px 100px rgba(3, 8, 30, .5), 0 0 0 8px rgba(255, 255, 255, .08);
}
.shot-bar, .mini-bar {
  display: flex; align-items: center; gap: 6px; padding: 12px 16px;
  background: #F8FAFF; border-bottom: 1px solid var(--line);
}
.shot-bar span, .mini-bar span { width: 10px; height: 10px; border-radius: 50%; background: #D5DEF2; }
.shot-bar em, .mini-bar em { font-style: normal; font-size: 12.5px; color: var(--ink-3); margin-left: 8px; }

/* ───────── Sections ───────── */
.section { position: relative; padding: 120px 16px; }
.section.field { padding: 150px 16px; }
.section-after-hero { padding-top: calc(var(--overlap) + 110px); }
.section-flush { padding-left: 0; padding-right: 0; }
.section-flush .wrap { padding: 0 16px; }
#controls, #how, #ai { padding-top: 60px; }

.sec-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.sec-head h2 {
  font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; line-height: 1.05; letter-spacing: -.035em;
  text-wrap: balance;
}
.sec-head > p:not(.eyebrow) { margin-top: 16px; font-size: 1.12rem; color: var(--ink-2); text-wrap: pretty; }
.eyebrow {
  margin-bottom: 14px;
  font-family: var(--fm); font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--b-600);
}
.field .eyebrow { color: var(--b-200); }
.field .sec-head > p:not(.eyebrow) { color: var(--b-100); }

/* ───────── Why bento ───────── */
.bento { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.tile {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  min-height: 320px; padding: 28px; border-radius: 26px; color: #fff;
  background: var(--field-card);
}
.tile::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: .9;
  background: url('../images/pixels.svg') 0 0 / 240px 240px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%);
  mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.tile-lg { grid-row: span 2; }
.tile-wide { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.25fr; align-items: center; min-height: 0; }
.tile-mint {
  background:
    radial-gradient(60% 90% at 85% 50%, rgba(16, 185, 129, .32), transparent 70%),
    linear-gradient(160deg, var(--b-800), var(--b-950));
}
.tile-art { flex: 1; display: flex; align-items: center; justify-content: center; }
.tile-cap h3 { font-size: 1.35rem; font-weight: 700; letter-spacing: -.015em; line-height: 1.25; margin-bottom: 8px; }
.tile-cap p { font-size: 15.5px; color: var(--b-100); max-width: 46ch; }
.tile-mint .tile-cap h3 { margin-top: 14px; }

.mini {
  width: min(100%, 340px); padding: 16px 18px;
  background: #fff; color: var(--ink); font-size: 13.5px;
  border-radius: 16px; box-shadow: 0 24px 50px rgba(3, 8, 30, .38);
}
.mini-rows { display: grid; }
.mini-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 0; border-top: 1px solid #EAEFFA;
}
.mini-row:first-child { border-top: 0; }
.mini-label {
  display: block; margin-bottom: 10px;
  font-family: var(--fm); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
}

.ad-card { display: flex; gap: 14px; align-items: center; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 1px solid #EAEFFA; }
.ad-img {
  width: 64px; height: 76px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; color: #7F1D1D;
  background: linear-gradient(160deg, #FEF2F2, #FBD5D5);
}
.ad-img .ico { width: 34px; height: 34px; }
.ad-text { display: grid; gap: 2px; font-size: 13px; }
.ad-text strong { font-size: 15px; }
.ad-price { font-weight: 700; font-size: 15px; }

.mini-browser { padding: 0; overflow: hidden; }
.mini-browser .mini-bar { padding: 10px 14px; }
.mini-browser .mini-bar em { font-size: 11.5px; }
.mini-browser .mini-rows { padding: 4px 16px 8px; }

.field-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.field-chips span {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 9px 5px 5px; border-radius: 8px; background: #F5F8FF; border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 500;
}
.field-chips em {
  font-style: normal; font-family: var(--fm); font-size: 11px; color: #9F1239;
  padding: 3px 6px; border-radius: 5px; background: #FCE8EE;
}

.mini-files { width: min(100%, 460px); padding: 8px 16px; }
.mini-files .mini-row { justify-content: flex-start; }
.mini-files .tag { min-width: 128px; }
.mini-files .mono { flex: 1; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge-mint {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--mint-bg); color: var(--mint-ink);
  font-size: 13.5px; font-weight: 600;
}
.badge-mint .chip-px { background: var(--mint); box-shadow: none; }

/* ───────── Feeds ───────── */
.ch-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ch {
  grid-column: span 2; min-width: 0;
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 24px; border-radius: 22px; background: #fff; color: var(--ink);
  box-shadow: 0 12px 30px rgba(3, 8, 30, .22);
}
.ch:nth-child(-n+2) { grid-column: span 3; }
.ch h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.015em; }
.ch p { font-size: 15px; line-height: 1.55; color: var(--ink-2); flex: 1; }
.ch-url {
  display: block; width: 100%; margin-top: 6px; padding: 9px 12px; border-radius: 10px;
  font-family: var(--fm); font-size: 12px; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--line);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ───────── App rail ───────── */
.rail {
  display: flex; gap: 20px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 4px var(--gutter) 28px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -3px; }
.slide {
  flex: 0 0 min(86vw, 740px); scroll-snap-align: start;
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: 28px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(11, 26, 58, .08);
}
.slide-copy { padding: 30px 32px 24px; }
.slide-copy h3 { font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin-bottom: 10px; }
.slide-copy p { color: var(--ink-2); font-size: 15.5px; max-width: 56ch; }
.slide-art {
  position: relative; isolation: isolate; flex: 1;
  display: flex; align-items: flex-end; justify-content: center;
  min-height: 320px; padding: 32px 32px 0;
  background: var(--field-card);
}
.slide-art::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url('../images/pixels.svg') 0 0 / 240px 240px;
}
.slide-art img {
  width: 100%; max-height: 380px; object-fit: cover; object-position: top;
  border-radius: 14px 14px 0 0; box-shadow: 0 -10px 40px rgba(3, 8, 30, .45);
}
.rail-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.rail-nav { display: flex; gap: 10px; }
.rail-btn {
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background: #fff; color: var(--b-600); border: 1px solid var(--line);
  transition: background-color .2s, opacity .2s;
}
.rail-btn:hover:not(:disabled) { background: var(--bg-2); }
.rail-btn:disabled { opacity: .4; cursor: default; }

/* ───────── Controls ───────── */
.ctl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ctl { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid var(--line); }
.ctl-ico {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px; background: var(--bg-2); color: var(--b-600);
}
.ctl h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; margin-bottom: 8px; }
.ctl p { font-size: 15px; color: var(--ink-2); }


/* ───────── Setup ───────── */
.step-num {
  display: block; margin-bottom: 18px;
  font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -.05em;
  color: var(--b-500);
  background: linear-gradient(180deg, var(--b-500), var(--b-300));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.help {
  max-width: 720px; margin: 28px auto 0; padding: 18px 24px; border-radius: 18px;
  background: var(--bg-2); color: var(--ink-2); text-align: center; font-size: 15.5px;
}
.help a { color: var(--b-600); font-weight: 600; }

/* ───────── Pricing ───────── */
.price-card {
  position: relative; z-index: 2;
  max-width: 940px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.15fr;
  border-radius: 30px; overflow: hidden; background: #fff; color: var(--ink);
  box-shadow: 0 40px 90px rgba(3, 8, 30, .45);
}
.price-main { display: flex; flex-direction: column; gap: 12px; padding: 40px; background: var(--bg); }
.price-name { font-weight: 700; font-size: 1.05rem; }
.price-amount { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.05em; display: flex; align-items: flex-start; }
.price-cur { font-size: 36px; margin-top: 10px; margin-right: 2px; letter-spacing: 0; }
.price-dec { font-size: 40px; margin-top: 8px; letter-spacing: -.02em; }
.price-per { align-self: flex-end; margin: 0 0 12px 8px; font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.price-note { color: var(--ink-2); font-size: 15px; margin-bottom: 10px; }
.price-cur-list { font-size: 13.5px; color: var(--ink-3); text-align: center; margin-top: 4px; }
.price-list { display: grid; gap: 14px; align-content: center; padding: 40px; }
.price-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.price-list .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--green); }

/* ───────── FAQ ───────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: #fff; border: 1px solid var(--line); transition: border-color .2s; }
.faq details[open] { border-color: var(--b-300); }
.faq summary {
  position: relative; cursor: pointer; list-style: none;
  padding: 20px 60px 20px 24px; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--b-600); border-bottom: 2px solid var(--b-600);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq summary:focus-visible { outline-offset: -3px; border-radius: 18px; }
.faq-a { padding: 0 24px 22px; color: var(--ink-2); font-size: 15.5px; }
.faq-a a { color: var(--b-600); }

/* ───────── Closing CTA and footer ───────── */
.cta { padding: 170px 16px 110px; text-align: center; }
.cta-inner { position: relative; z-index: 2; max-width: 780px; margin: 0 auto; }
.cta-logo { width: 72px; height: 72px; margin: 0 auto 28px; }
.cta-logo svg { width: 100%; height: 100%; border-radius: 18px; box-shadow: 0 16px 40px rgba(3, 8, 30, .5), 0 0 0 1px rgba(255, 255, 255, .15); }
.cta h2 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; line-height: 1.04; letter-spacing: -.04em; text-wrap: balance; }
.cta-inner > p:not(.hero-note) { margin-top: 18px; font-size: 1.12rem; color: var(--b-100); }

.footer {
  position: relative; overflow: hidden;
  padding: 72px 16px 0; color: var(--b-200);
  background: linear-gradient(180deg, var(--b-950), #060D24);
}
.footer-grid {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 40px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.footer-logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 18px; text-decoration: none; }
.footer-logo svg { width: 34px; height: 34px; border-radius: 9px; }
.footer-brand p { margin: 14px 0 22px; max-width: 34ch; font-size: 15px; }
.footer-col h2 { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: #fff; }
.footer-col ul { display: grid; gap: 10px; }
.footer-col a { color: var(--b-200); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: #fff; }
.footer-copy { max-width: var(--wrap); margin: 0 auto; padding: 24px 0 0; display: grid; gap: 6px; font-size: 13.5px; color: var(--b-300); }
.footer-mark {
  margin: 24px 0 -0.2em; text-align: center; white-space: nowrap; user-select: none;
  font-size: clamp(40px, 10vw, 150px); font-weight: 800; line-height: 1; letter-spacing: -.06em;
  color: rgba(255, 255, 255, .05);
}

/* ───────── 404 and plain pages ───────── */
.hero-short { padding-bottom: 170px; }
.hero-short h1 { max-width: 20ch; }
.hero-404 { min-height: 78vh; padding-bottom: 120px; }
.page-body { max-width: 760px; margin: 0 auto; padding: 40px 16px 110px; color: var(--ink-2); }
.page-body > * + * { margin-top: 1.1em; }
.page-body h2, .page-body h3 { color: var(--ink); letter-spacing: -.02em; line-height: 1.2; margin-top: 1.8em; }
.page-body h2 { font-size: 1.7rem; font-weight: 800; }
.page-body h3 { font-size: 1.25rem; font-weight: 700; }
.page-body a { color: var(--b-600); }
.page-body ul { list-style: disc; padding-left: 1.3em; }
.page-body ol { list-style: decimal; padding-left: 1.3em; }

/* ───────── AI Visibility (3.0) ───────── */
.crawl {
  border-radius: 20px; overflow: hidden; background: #fff; color: var(--ink); text-align: left;
  border: 1px solid rgba(255, 255, 255, .25);
  box-shadow: 0 50px 100px rgba(3, 8, 30, .5), 0 0 0 8px rgba(255, 255, 255, .08);
}
.crawl-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.crawl-col { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 24px; min-width: 0; }
.crawl-col + .crawl-col { border-left: 1px solid var(--line); }
.crawl-label { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--ink-3); }
.crawl-code {
  flex: 1; margin: 0; padding: 16px 18px; border-radius: 12px; overflow-x: auto;
  font-family: var(--fm); font-size: 13px; line-height: 1.65; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line);
}
.crawl-code i { font-style: normal; color: var(--b-500); }
.crawl-after .crawl-code { background: #F2FDF8; border-color: #C9F2DF; }
.crawl-checks { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.crawl-checks li { display: flex; align-items: center; gap: 10px; }
.crawl-checks li::before {
  content: ''; width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
  background: var(--red-bg) center / 12px no-repeat;
}
.crawl-checks .no::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B42318' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.crawl-checks .yes::before { background-color: var(--green-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E"); }
.crawl-checks .no { color: var(--ink-3); }

.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.duo-card { min-height: 0; justify-content: space-between; }
.duo-card h3 { font-size: 1.5rem; margin: 16px 0 16px; }
.duo-list { display: grid; gap: 12px; }
.duo-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--b-100); }
.duo-list .ico { color: var(--mint-hi); margin-top: 2px; }
.duo-link { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; }
.duo-link .ico { width: 18px; height: 18px; transition: transform .2s; }
.duo-link:hover .ico { transform: translateX(3px); }
.badge-blue {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--b-100); color: var(--b-700);
  font-size: 13.5px; font-weight: 600;
}
.badge-blue .chip-px { background: var(--b-500); box-shadow: none; }

#feeds { overflow-x: clip; }
.ai-steps { margin-bottom: 16px; }
.installs { padding: 30px; border-radius: 26px; background: #fff; border: 1px solid var(--line); }
.installs-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.installs-head h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; }
.installs-head p { color: var(--ink-3); font-size: 15px; }
.install-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.install { padding: 18px 20px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.install h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 6px; font-size: 1rem; font-weight: 700; }
.install p { font-size: 14.5px; color: var(--ink-2); }
.install .tag { background: #FEF3C7; color: #92400E; border-color: #FDE68A; }

.safe { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.safe-item { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: 22px; background: var(--mint-bg); }
.safe-item .ctl-ico { margin: 0; background: #fff; color: var(--green); flex-shrink: 0; }
.safe-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; color: var(--mint-ink); }
.safe-item p { font-size: 14.5px; color: #1F5244; }

.slide-copy .badge-mint, .slide-copy .badge-blue { margin-bottom: 14px; }

.tracks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.track { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.track-ai { border-color: #A7F3D0; box-shadow: 0 0 0 1px #A7F3D0; }
.track-name { margin-bottom: 22px; }
.track-steps { display: grid; gap: 20px; }
.track-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.track-steps .step-num { margin: 0; font-size: 40px; }
.track-ai .step-num { background-image: linear-gradient(180deg, var(--mint), var(--mint-hi)); }
.track-steps h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.track-steps p { font-size: 15px; color: var(--ink-2); }
.track-steps a { color: var(--b-600); font-weight: 600; }

.price-setup {
  display: flex; align-items: center; gap: 14px; margin-bottom: 6px;
  padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #A7F3D0;
}
.price-setup-amt { font-size: 28px; font-weight: 800; letter-spacing: -.03em; color: var(--green); }
.price-setup p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.price-setup strong { color: var(--ink); }

@media (max-width: 980px) {
  .ctl-grid.ai-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .install-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .safe { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .ctl-grid.ai-steps { grid-template-columns: minmax(0, 1fr); }
  .crawl { border-radius: 14px; }
  .crawl-col + .crawl-col { border-left: 0; border-top: 1px solid var(--line); }
  .crawl-col { padding: 18px; }
  .crawl-code { font-size: 12px; }
  .installs, .track { padding: 22px; }
}
@media (max-width: 560px) {
  .nav-logo { font-size: 14.5px; }
}

/* ───────── Reveal ───────── */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }

/* ───────── Responsive ───────── */
@media (max-width: 1060px) {
  .nav { width: min(100%, 560px); justify-content: space-between; }
  .nav-toggle { display: block; }
  .nav-cta { margin-left: auto; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 2px; padding: 8px;
    border-radius: 22px; background: #fff; box-shadow: 0 16px 40px rgba(10, 22, 56, .22);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 16px; }
}

@media (max-width: 980px) {
  .ch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch, .ch:nth-child(-n+2) { grid-column: auto; }
  .ch:last-child { grid-column: 1 / -1; }
  .ctl-grid { grid-template-columns: repeat(2, 1fr); }
  .price-card { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding-top: 120px; }
  .flow { grid-template-columns: 1fr; justify-items: center; gap: 0; margin-bottom: 40px; }
  .flow-track { width: 100%; height: 260px; }
  .flow-track::before {
    left: 50%; right: auto; top: 0; bottom: 0; width: 2px; height: auto; margin: 0 0 0 -1px;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .4) 0 6px, transparent 6px 12px);
  }
  .flow-lane { left: 0; right: 0; top: 8%; bottom: 8%; animation-name: lane-y; }
  .chip { left: 50%; top: 0; }
  .hero-shot { margin-top: 40px; }
  .shot-frame { border-radius: 14px; }
  .dissolve { height: 64px; -webkit-mask-size: 320px 64px; mask-size: 320px 64px; }

  .section { padding: 88px 16px; }
  .section.field { padding: 120px 16px; }
  .section-after-hero { padding-top: calc(var(--overlap) + 80px); }
  .section-flush { padding-left: 0; padding-right: 0; }
  #controls, #how, #ai { padding-top: 40px; }
  .sec-head { margin-bottom: 40px; }

  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-row: auto; }
  .tile-wide { grid-template-columns: 1fr; }
  .tile { padding: 22px; min-height: 0; }
  .ch-grid, .ctl-grid, .duo, .tracks, .install-grid, .safe, .crawl-cols { grid-template-columns: minmax(0, 1fr); }
  .ch:last-child { grid-column: auto; }
  .slide-copy { padding: 24px 22px 20px; }
  .slide-art { min-height: 220px; padding: 22px 22px 0; }
  .price-main, .price-list { padding: 28px 24px; }
  .price-amount { font-size: 72px; }
  .cta { padding: 140px 16px 90px; }
}

@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; }
  .hero-chip { font-size: 13px; }
  .chip-sep, .chip-extra { display: none; }
  .nav-logo span { display: none; }
  .mini-files .tag { min-width: 0; }
  .mini-files .mono { display: none; }
  .footer-grid { gap: 32px 20px; }
  .rail-foot { flex-direction: column-reverse; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .flow-hub::after, .flow-hub .asf-eye { animation: none; }
  .flow-lane, .face { animation: none; }
  .flow-lane { opacity: 1; }
  .flow-lane:nth-child(1) { transform: translateX(12%); }
  .flow-lane:nth-child(2) { transform: translateX(88%); }
  .flow-lane:nth-child(2) .face.a { opacity: 0; }
  .flow-lane:nth-child(2) .face.b { opacity: 1; }
  .flow-lane:nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .flow-lane:nth-child(1) { transform: translateY(12%); }
  .flow-lane:nth-child(2) { transform: translateY(88%); }
}
