/* Octofeed — landing page. Tokens from brand/tokens.css; dark = petrol blue from the brief. */
:root {
  --bg: #FFFFFF; --fg: #09090B; --surface: #FAFAFA; --card: #FFFFFF; --border: #E4E4E7;
  --muted: #F4F4F5; --muted-fg: #5F5F68; --primary: #1D4ED8; --brand-soft: #EFF4FF; --brand-fg: #1E40AF;
  --navy: #0B1F4D; --navy-2: #12307A; --navy-line: #1E3A8A; --header-bg: rgba(255,255,255,.92);
  color-scheme: light;
}
:root.dark {
  --bg: #0B1922; --fg: #E6EEF2; --surface: #08131A; --card: #0E1D27; --border: #1C2F3B;
  --muted: #14262F; --muted-fg: #9DB2BE; --primary: #2563EB; --brand-soft: #0F2240; --brand-fg: #93B4FD;
  --header-bg: rgba(11,25,34,.92);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: Geist, Inter, system-ui, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.h2 { margin: 0; font-size: clamp(30px, 4.2vw, 46px); line-height: 1.06; font-weight: 700; letter-spacing: -.04em; }
.lead { margin: 0; font-size: 18px; line-height: 1.6; color: var(--muted-fg); max-width: 640px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; }
.btn { text-decoration: none; height: 48px; padding: 0 22px; border-radius: 12px; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-secondary { border: 1px solid var(--border); background: var(--card); color: var(--fg); font-weight: 500; }
.chip { display: inline-flex; align-items: center; justify-content: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 6px; border: 1px solid var(--border); color: var(--muted-fg); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip.hi { border-color: var(--primary); color: var(--primary); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pad { padding-top: 88px; padding-bottom: 88px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; flex-wrap: wrap; }
.muted { color: var(--muted-fg); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header-bg); border-bottom: 1px solid var(--border); backdrop-filter: saturate(1.4) blur(8px); }
.site-header .wrap { min-height: 64px; display: flex; align-items: center; gap: 12px 24px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 16px; }
.logo-tile { width: 32px; height: 32px; border-radius: 8px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.nav { display: flex; gap: 20px; font-size: 14px; flex-wrap: wrap; }
.nav a { color: var(--muted-fg); text-decoration: none; }
.nav a:hover { color: var(--fg); }
.spacer { flex: 1; }
.seg { display: flex; padding: 3px; border-radius: 9px; background: var(--muted); }
.seg a { height: 30px; padding: 0 10px; border-radius: 6px; font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; color: var(--muted-fg); }
.seg a[aria-current="true"] { background: var(--card); color: var(--fg); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.icon-btn { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn .sun { display: none; } :root.dark .icon-btn .sun { display: block; } :root.dark .icon-btn .moon { display: none; }
.gh-btn { text-decoration: none; height: 36px; padding: 0 14px; border-radius: 9px; background: var(--fg); color: var(--bg); font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }

/* Hero */
.hero { padding-top: 56px; padding-bottom: 72px; display: flex; flex-wrap: wrap; align-items: center; gap: 40px; }
.hero-text { flex: 1 1 440px; min-width: 0; gap: 22px; animation: fadeup .7s ease-out both; }
.hero h1 { margin: 0; font-size: clamp(40px, 6vw, 66px); line-height: 1.02; font-weight: 700; letter-spacing: -.05em; }
.hero .sub { margin: 0; font-size: 19px; line-height: 1.6; color: var(--muted-fg); max-width: 540px; }
.hero-art { flex: 1 1 440px; min-width: 0; border-radius: 28px; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 480px; overflow: hidden; }
.hero-art svg { width: 100%; max-width: 560px; height: auto; display: block; }
.cmd { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px; background: var(--navy); color: #DBEAFE; font-size: 12.5px; max-width: 100%; }
.cmd .prompt { color: #60A5FA; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; font-family: inherit; }
.copy-btn { height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--navy-line); background: transparent; color: #BFDBFE; font: inherit; font-family: Geist, sans-serif; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; flex: 0 0 auto; }
.copy-btn:hover { background: var(--navy-2); }

/* Problem */
.pile { width: 170px; padding-top: 12px; position: relative; }
.pile .count { position: absolute; top: -12px; right: -6px; z-index: 1; height: 26px; padding: 0 10px; border-radius: 99px; background: #DC2626; color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; }
.pile .line { height: 30px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); margin-top: -12px; display: flex; align-items: center; padding: 0 10px; }
.pile .line span { width: 60%; height: 6px; border-radius: 3px; background: var(--border); }
.pill-session { height: 40px; padding: 0 14px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-fg); font-weight: 700; display: inline-flex; align-items: center; }

/* Session mock */
.mock-session { overflow: hidden; width: 100%; max-width: 520px; box-shadow: 0 24px 48px rgba(11,31,77,.12); }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--muted-fg); }
.badge-jev { height: 20px; padding: 0 7px; border-radius: 5px; background: var(--brand-soft); color: var(--brand-fg); font-weight: 600; display: inline-flex; align-items: center; }
.segs { display: flex; gap: 4px; padding: 10px 16px 0; }
.segs span { height: 5px; border-radius: 99px; background: var(--border); }
.mock-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.mock-actions { display: flex; gap: 8px; padding: 0 22px 20px; }
.fake-btn { height: 38px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--border); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; }
.fake-btn.primary { background: var(--primary); border-color: var(--primary); color: #fff; font-size: 14px; font-weight: 700; padding: 0 16px; }

/* Steps & features */
.grid { display: grid; gap: 16px; }
.steps { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 0; padding: 0; list-style: none; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.step-head { display: flex; align-items: center; gap: 10px; }
.num { width: 32px; height: 32px; border-radius: 99px; background: var(--navy); color: #fff; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.step-head .bar { flex: 1; height: 2px; background: var(--border); }
.ico { width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; }
.h3 { margin: 0; font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
.features { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feature { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.feature h3 { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -.015em; }
.feature p, .step p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted-fg); }
.list-mock { overflow: hidden; width: 100%; }
.list-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.list-row { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; border-bottom: 1px solid var(--border); font-size: 13px; }
.list-row .dot { width: 7px; height: 7px; border-radius: 99px; flex: 0 0 auto; }
.list-row .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.list-row .s { width: 140px; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-row .m { width: 46px; text-align: right; color: var(--muted-fg); }
.phone { width: 250px; flex: 0 0 auto; border-radius: 36px; border: 8px solid var(--navy); background: var(--surface); overflow: hidden; box-shadow: 0 24px 48px rgba(11,31,77,.18); }

/* Matinal */
.mm-bullet { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; color: var(--muted-fg); }
.mock-matinal { overflow: hidden; width: 100%; max-width: 520px; box-shadow: 0 24px 48px rgba(11,31,77,.12); }
.mm-top { display: flex; align-items: center; gap: 12px; padding: 16px 18px 10px; }
.mm-play { width: 44px; height: 44px; border-radius: 99px; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.mm-eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 18px; color: var(--primary); }
.mm-eq span { width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: bottom; animation: eq 900ms ease-in-out infinite; }
.mm-eq span:nth-child(2) { animation-delay: 150ms; } .mm-eq span:nth-child(3) { animation-delay: 300ms; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.mm-now { padding: 0 18px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted-fg); }
.mm-bar { height: 4px; border-radius: 99px; background: var(--muted); overflow: hidden; }
.mm-bar span { display: block; width: 38%; height: 100%; background: var(--primary); }
.mm-chapters { margin: 0; padding: 6px 8px 10px; list-style: none; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.mm-chapters li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 13px; }
.mm-chapters li.on { background: var(--brand-soft); }
.mm-chapters li.on .mm-t { color: var(--brand-fg); font-weight: 600; }
.mm-n { width: 16px; flex: 0 0 auto; color: var(--muted-fg); font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }
.mm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.mm-t { font-weight: 500; line-height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted-fg); }
.mm-who { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.mm-avatar { width: 16px; height: 16px; border-radius: 99px; background: var(--who); color: #fff; font-size: 9px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.mm-src { display: inline-flex; align-items: center; gap: 3px; color: var(--primary); }
.mm-d { flex: 0 0 auto; font-size: 12px; line-height: 20px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }

/* Privacy */
.privacy { background: var(--navy); color: #fff; }
.privacy .kicker { color: #93C5FD; }
.privacy li { display: flex; gap: 12px; font-size: 16px; line-height: 1.55; color: #DBEAFE; }
.machine { border: 1.5px dashed #3B5BA9; border-radius: 22px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.machine-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.machine-grid > div { padding: 14px; border-radius: 14px; background: var(--navy-2); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.engine { height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); font-size: 15px; font-weight: 500; display: inline-flex; align-items: center; }

/* Quick start */
.qs { border-radius: 28px; background: var(--navy); color: #fff; padding: clamp(28px, 5vw, 56px); display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.qs .cmd { background: var(--navy-2); border: 1px solid var(--navy-line); padding: 10px 10px 10px 16px; font-size: 13px; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 18px 0; }
summary { cursor: pointer; font-size: 17px; font-weight: 600; }
details p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted-fg); }

footer .wrap { padding-top: 28px; padding-bottom: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; font-size: 14px; color: var(--muted-fg); }

/* Animations */
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes counter { to { transform: rotate(-360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes wave { 0%, 100% { transform: rotate(-7deg); } 50% { transform: rotate(7deg); } }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1); } }
@keyframes shimmer { 0%, 100% { opacity: .35; } 50% { opacity: .9; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.a-orbit { transform-origin: 0 0; animation: orbit 40s linear infinite; }
.a-counter { transform-box: fill-box; transform-origin: center; animation: counter 40s linear infinite; }
.a-bob { animation: bob 2.8s ease-in-out infinite; }
.a-leg { transform-box: fill-box; transform-origin: 50% 0%; animation: wave 1.8s ease-in-out infinite; }
.a-twinkle { transform-box: fill-box; transform-origin: center; animation: twinkle 2.4s ease-in-out infinite; }
.a-shimmer { animation: shimmer 3s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; } }

@media (max-width: 640px) {
  .nav { display: none; }
  .hero-art { min-height: 320px; }
  .machine-grid { grid-template-columns: 1fr; }
  .list-row .s { display: none; }
}
