/* Quadpoint AI Studio — site styles */
:root {
  --bg: #0B0E13;
  --bg-2: #0F131B;
  --panel: #141a24;
  --panel-2: #1A2130;
  --line: rgba(255,255,255,0.09);
  --text: #E8EDF3;
  --muted: #9AA6B5;
  --accent: #73EDFF;
  --accent-2: #0EA5C0;
  --accent-dim: rgba(115,237,255,0.12);
  --ok: #7CF2A6;
  --warn: #FFD166;
  --font: Inter, "SF Pro Display", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; }
code, pre { font-family: var(--mono); font-size: 0.9em; }
pre {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px;
  padding: 16px 18px; overflow-x: auto; line-height: 1.5;
}
code { background: rgba(255,255,255,0.06); padding: 1px 6px; border-radius: 5px; }
pre code { background: none; padding: 0; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin-bottom: 14px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11,14,19,0.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 0.95rem; }
.nav a { color: var(--muted); }
.nav a:hover, .nav a.active { color: var(--text); text-decoration: none; }
.nav .btn { padding: 8px 14px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font-size: 1.1rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; border: 1px solid var(--line); color: var(--text); background: var(--panel);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); border-color: rgba(255,255,255,0.2); }
.btn.primary { background: var(--accent); color: #06232a; border-color: var(--accent); }
.btn.primary:hover { background: #8ff1ff; }
.btn small { font-weight: 500; opacity: 0.75; }

/* Hero */
.hero {
  position: relative; overflow: hidden; padding: 96px 0 72px;
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(115,237,255,0.14), transparent 60%),
    radial-gradient(700px 380px at 90% 10%, rgba(14,165,192,0.12), transparent 60%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent 90%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 1.2rem; color: var(--muted); max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .fine { font-size: 0.85rem; color: var(--muted); margin-top: 14px; }
.hero-art { display: flex; justify-content: center; }
.hero-art img { width: 260px; filter: drop-shadow(0 20px 50px rgba(115,237,255,0.25)); }

/* Sections */
section { padding: 72px 0; border-top: 1px solid var(--line); }
section.alt { background: var(--bg-2); }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.grid { display: grid; gap: 18px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--line);
  border-radius: 14px; padding: 22px;
}
.card h3 { display: flex; align-items: center; gap: 10px; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .k { color: var(--accent); font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; }
.card.app { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: start; }
.card.app img { width: 72px; height: 72px; border-radius: 16px; }
.card.app ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.card.app li { margin-bottom: 4px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.stat .n { font-size: 2rem; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1.1; }
.stat .n small { font-size: 1rem; color: var(--muted); font-weight: 500; margin-left: 4px; }
.stat .l { color: var(--text); font-weight: 600; margin-top: 6px; }
.stat .s { color: var(--muted); font-size: 0.88rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
td.num { font-family: var(--mono); color: var(--accent); white-space: nowrap; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.table-wrap table th, .table-wrap table td { padding: 12px 16px; }
.badge { display: inline-block; font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.badge.ok { color: var(--ok); border-color: rgba(124,242,166,0.35); }
.badge.warn { color: var(--warn); border-color: rgba(255,209,102,0.35); }
.badge.acc { color: var(--accent); border-color: rgba(115,237,255,0.35); }

/* Steps / flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: step; }
.flow .step { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: relative; }
.flow .step::before {
  counter-increment: step; content: counter(step);
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent-dim); color: var(--accent); font-weight: 700; margin-bottom: 12px; font-family: var(--mono);
}
.flow .step h3 { font-size: 1.02rem; }
.flow .step p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* Two-column prose */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.split ul { padding-left: 20px; color: var(--muted); }
.split li { margin-bottom: 8px; }
.split li strong { color: var(--text); }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 28px 28px; }
.timeline li::before {
  content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--accent);
}
.timeline .date { font-family: var(--mono); font-size: 0.8rem; color: var(--accent); letter-spacing: 0.06em; }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--muted); margin: 0; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); padding: 0 18px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent); font-weight: 700; font-size: 1.2rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); padding-bottom: 16px; margin: 0; }

/* Callout */
.callout { border: 1px solid rgba(115,237,255,0.3); background: var(--accent-dim); border-radius: 14px; padding: 20px 22px; color: var(--text); }
.callout strong { color: var(--accent); }

/* Downloads */
.dl { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dl .card { display: flex; flex-direction: column; gap: 10px; }
.dl .card .btn { align-self: flex-start; margin-top: 8px; }
.dl .meta { font-size: 0.85rem; color: var(--muted); font-family: var(--mono); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { color: var(--muted); }

/* Page header for subpages */
.page-head { padding: 64px 0 36px; }
.page-head p { color: var(--muted); font-size: 1.1rem; max-width: 720px; }
.prose { max-width: 800px; }
.prose h2 { margin-top: 48px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose li strong { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { width: 180px; }
  .grid.cols-3, .grid.cols-4, .stats, .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 48px; }
  section { padding: 52px 0; }
  .grid.cols-2, .grid.cols-3, .grid.cols-4, .stats, .flow, .split, .dl { grid-template-columns: 1fr; }
  .card.app { grid-template-columns: 56px 1fr; }
  .card.app img { width: 56px; height: 56px; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch;
         background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 12px 20px 18px; gap: 14px; }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
}

/* Download buttons before release: a click reads the date instead of fetching */
.btn.soon, .btn.soon:hover, .btn.primary.soon, .btn.primary.soon:hover {
  background: var(--panel); color: var(--accent); border-color: rgba(115,237,255,0.45); cursor: default; transform: none;
}
