/* Andolika Labs — site styles */
:root {
  --bg: #0b1020;
  --bg-2: #101730;
  --surface: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.09);
  --text: #e8ecf4;
  --muted: #8b93a8;
  --teal: #5eead4;
  --indigo: #6366f1;
  --indigo-soft: #818cf8;
  --grad: linear-gradient(135deg, var(--teal), var(--indigo));
  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1100px;
  --radius: 16px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f7fb; --bg-2: #eef0f7;
    --surface: rgba(10,16,32,0.03); --border: rgba(10,16,32,0.1);
    --text: #0f1529; --muted: #5b6478;
    --teal: #0f9f8a; --indigo: #4f46e5; --indigo-soft: #6366f1;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); line-height: 1.6; font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-family: var(--display); font-size: 1.35rem; letter-spacing: -0.01em; }
.brand-name small { font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.22em; color: var(--muted); margin-left: 8px; vertical-align: middle; }
nav ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-size: 0.95rem; }
nav a { color: var(--muted); transition: color .2s; }
nav a:hover, nav a[aria-current="page"] { color: var(--text); }

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(72px, 12vw, 150px) 0 clamp(56px, 8vw, 110px); }
.hero-waves { position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; }
.hero-waves svg { width: 100%; height: 100%; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); font-weight: 600; margin: 0 0 18px; }
h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.4rem, 6vw, 4.5rem); line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 16ch; }
h1 em { font-style: italic; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 54ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; border: 1px solid var(--border); transition: transform .15s, border-color .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #07101c; border-color: transparent; }
.btn-ghost:hover { border-color: var(--muted); background: var(--surface); }

/* Sections */
section { padding: clamp(56px, 8vw, 100px) 0; }
.section-head { max-width: 60ch; margin-bottom: 40px; }
h2 { font-family: var(--display); font-weight: 500; font-size: clamp(1.8rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 14px; }
.section-head p { color: var(--muted); margin: 0; }

/* Cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { position: relative; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 12px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: color-mix(in srgb, var(--indigo-soft) 50%, var(--border)); }
a.card:hover { transform: translateY(-3px); }
.card h3 { font-family: var(--display); font-weight: 500; font-size: 1.5rem; margin: 0; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }
.card .meaning { font-size: 0.85rem; color: var(--muted); font-style: italic; }
.card .more { margin-top: auto; padding-top: 8px; font-weight: 600; color: var(--teal); font-size: 0.92rem; }
.badge { position: absolute; top: 20px; right: 20px; font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); }
.badge-live { color: var(--teal); border-color: color-mix(in srgb, var(--teal) 40%, transparent); }
.card.soon { opacity: .7; }
.glyph { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--indigo) 18%, transparent); color: var(--indigo-soft); }
.glyph svg { width: 24px; height: 24px; }

/* Meaning band */
.band { background: var(--bg-2); border-block: 1px solid var(--border); }
.two-col { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }
.two-col p { color: var(--muted); }
.word { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 6px; }
.word span { color: var(--muted); font-size: 0.45em; font-family: var(--sans); letter-spacing: 0.08em; display: block; margin-top: 10px; }

/* Feature list */
.features { display: grid; gap: 28px 40px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.feature h3 { font-size: 1.1rem; margin: 0 0 6px; font-weight: 600; }
.feature p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.feature .num { font-family: var(--display); color: var(--teal); font-size: 0.95rem; margin-bottom: 8px; }

/* Product hero variant */
.product-hero .glyph { width: 60px; height: 60px; border-radius: 16px; margin-bottom: 22px; }
.product-hero .glyph svg { width: 32px; height: 32px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--text); }

/* CTA */
.cta { text-align: center; }
.cta .lede { margin-inline: auto; }
.cta .actions { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
footer a:hover { color: var(--text); }

@media (max-width: 600px) {
  .site-header .wrap { gap: 16px; }
  nav ul { gap: 14px; font-size: 0.88rem; }
  nav li.hide-sm { display: none; }
  .brand-name { font-size: 1.2rem; }
  .brand-name small { display: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-waves path { animation: drift 14s ease-in-out infinite alternate; }
  .hero-waves path:nth-child(2) { animation-duration: 18s; animation-delay: -4s; }
  .hero-waves path:nth-child(3) { animation-duration: 22s; animation-delay: -9s; }
  @keyframes drift { from { transform: translateX(0); } to { transform: translateX(-60px); } }
}

/* ---------- Product page additions ---------- */
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8rem; color: var(--muted); margin-bottom: 18px; }
.kicker .pill { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--teal); }
.product-hero h1 { max-width: 20ch; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.app-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 22px; }

/* Presenter-view mock */
.mock { border-radius: 14px; background: #0a0d18; border: 1px solid var(--border); padding: 12px; box-shadow: 0 30px 80px -30px rgba(0,0,0,.6); font-family: var(--sans); color: #c9d0e0; }
.mock-top { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.slide { aspect-ratio: 16/9; border-radius: 6px; background: #f4f5f8; color: #1c2238; padding: 7% 8%; position: relative; overflow: hidden; }
.slide.next { background: #e9ebf1; opacity: .8; }
.slide .bar { height: 5px; width: 36%; background: #3651a3; border-radius: 3px; margin-bottom: 6%; }
.slide .t { font-family: var(--display); font-size: clamp(11px, 1.3vw, 16px); font-weight: 500; margin-bottom: 5%; }
.slide .ln { height: 4px; border-radius: 2px; background: #c3c8d6; margin: 0 0 5%; }
.slide .ln.s { width: 70%; } .slide .ln.m { width: 85%; }
.slide .eq { font-family: var(--display); font-style: italic; font-size: clamp(10px, 1.1vw, 14px); color: #2d3550; margin-top: 4%; }
.slide .ink { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slide .laser { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #ff2d2d; box-shadow: 0 0 10px 3px rgba(255,45,45,.6); right: 24%; top: 58%; }
.mock-side { display: flex; flex-direction: column; gap: 8px; }
.mock-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: 0.7rem; }
.mock-meta div { background: rgba(255,255,255,.05); border-radius: 6px; padding: 7px 9px; }
.mock-meta b { display: block; font-size: 0.95rem; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; }
.mock-meta .rec b { color: #ff5c5c; }
.notes { margin-top: 10px; background: rgba(255,255,255,.04); border-radius: 8px; padding: 12px 14px; font-size: 0.78rem; line-height: 1.5; }
.notes h4 { margin: 0 0 6px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.notes p { margin: 0 0 6px; color: #d6dbe8; }
.notes .m { font-family: var(--display); font-style: italic; }
.notes pre { margin: 6px 0 0; padding: 8px 10px; border-radius: 6px; background: #0f1322; font-size: 0.72rem; line-height: 1.45; overflow: hidden; }
.notes .k { color: #c792ea; } .notes .c { color: #6b7490; } .notes .n { color: #f78c6c; }

/* alternating feature rows */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--border); }
.row:first-of-type { border-top: 0; }
.row.flip > :first-child { order: 2; }
@media (max-width: 860px) { .row { grid-template-columns: 1fr; gap: 28px; } .row.flip > :first-child { order: 0; } }
.row h3 { font-family: var(--display); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.01em; margin: 0 0 14px; line-height: 1.2; }
.row p { color: var(--muted); margin: 0 0 14px; }
.row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.row li { padding-left: 26px; position: relative; color: var(--muted); font-size: 0.97rem; }
.row li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 14px; height: 6px; border-radius: 3px; background: var(--grad); }
.row li strong { color: var(--text); font-weight: 600; }
.panel { border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); padding: 22px; }

pre.code { margin: 0; padding: 18px 20px; border-radius: 12px; background: #0a0d18; color: #d6dbe8; font-size: 0.86rem; line-height: 1.65; overflow-x: auto; border: 1px solid var(--border); }
pre.code .cm { color: #6b7490; } pre.code .cmd { color: #5eead4; } pre.code .fl { color: #c792ea; }
.light-pre pre.code { color: #d6dbe8; }

/* keys table */
.keys { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.keys td { padding: 9px 0; border-top: 1px solid var(--border); color: var(--muted); vertical-align: top; }
.keys tr:first-child td { border-top: 0; }
.keys td:first-child { width: 42%; white-space: nowrap; padding-right: 16px; }
kbd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.8em; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }

/* compact feature tiles */
.tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.tile { padding: 18px 20px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.tile h4 { margin: 0 0 6px; font-size: 1rem; font-weight: 600; }
.tile p { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* file-tree / plain list */
.tree { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; color: var(--muted); line-height: 1.7; margin: 0; }
.tree b { color: var(--text); font-weight: 500; }

/* get-it */
.get { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.get .card h3 { font-size: 1.2rem; }
.get pre.code { font-size: 0.8rem; padding: 12px 14px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; color: var(--muted); font-size: 0.9rem; margin-top: 28px; }
.facts span b { color: var(--text); font-weight: 600; }
p code, li code, td code, h4 code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.86em; padding: 1px 6px; border-radius: 5px; background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.section-head kbd { font-size: 0.78em; }
.two-col h2 { margin-bottom: 14px; }
.two-col .panel { align-self: start; }
.row > *, .two-col > *, .hero-grid > *, .get > * { min-width: 0; }
.panel, .card { min-width: 0; }
pre.code, pre.tree { max-width: 100%; }
pre.tree { overflow-x: auto; }
.notes pre { overflow-x: auto; }
pre.code, pre.tree, .notes pre { scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
