/* Blink Studio — site styles. Plain CSS, no external fonts or frameworks. */

:root {
  --bg: #07050d;
  --bg-2: #0e0a1a;
  --surface: #151026;
  --surface-2: #1d1633;
  --border: #2c2250;
  --text: #ece8f7;
  --muted: #a99fc6;
  --purple: #8b5cf6;
  --purple-2: #a78bfa;
  --violet: #6d28d9;
  --magenta: #d946ef;
  --ok: #34d399;
  --warn: #fbbf24;
  --planned: #60a5fa;
  --radius: 14px;
  --max: 1160px;
  --shadow: 0 10px 40px rgba(109, 40, 217, 0.25);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(139, 92, 246, 0.22), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(217, 70, 239, 0.12), transparent 60%),
    var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

img, svg { max-width: 100%; display: block; }

a { color: var(--purple-2); text-underline-offset: 3px; }
a:hover { color: #fff; }

:focus-visible {
  outline: 3px solid var(--magenta);
  outline-offset: 3px;
  border-radius: 6px;
}

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

/* Skip link */
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--purple); color: #fff; padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 1rem; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 5, 13, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: #fff; text-decoration: none; font-weight: 800; font-size: 1.15rem; letter-spacing: 0.02em; }
.brand-mark { width: 34px; height: 34px; }
.brand span small { color: var(--purple-2); font-weight: 700; }

.nav-toggle {
  display: none;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 0.5rem 0.8rem; font: inherit; font-weight: 600; cursor: pointer;
}
.nav-toggle .bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; vertical-align: middle; margin-right: 0.45rem; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle .bars::before { top: -6px; }
.nav-toggle .bars::after { top: 6px; }

.site-nav ul { list-style: none; display: flex; gap: 0.25rem; margin: 0; padding: 0; }
.site-nav a {
  display: block; padding: 0.5rem 0.85rem; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 0.97rem;
}
.site-nav a:hover { color: #fff; background: var(--surface); }
.site-nav a[aria-current="page"] { color: #fff; background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(217, 70, 239, 0.2)); box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.4); }

@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; align-items: center; }
  .js .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 0.75rem 1.25rem 1.25rem; }
  .js .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 0.6rem; }
  .no-js .site-nav ul { flex-direction: row; flex-wrap: wrap; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: 12px;
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--violet), var(--purple) 55%, var(--magenta)); box-shadow: var(--shadow); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 48px rgba(139, 92, 246, 0.45); }
.btn-ghost { color: var(--text); background: var(--surface); border-color: var(--border); }
.btn-ghost:hover { color: #fff; border-color: var(--purple); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; }

/* Hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple-2); background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(167, 139, 250, 0.3); padding: 0.35rem 0.75rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.gradient-text { background: linear-gradient(100deg, #fff 10%, var(--purple-2) 50%, var(--magenta)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.08rem, 1.8vw, 1.28rem); color: var(--muted); max-width: 60ch; }

/* Phone mockup */
.mockup {
  justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 16;
  border-radius: 34px; padding: 12px;
  background: linear-gradient(160deg, #241a42, #0b0815);
  border: 1px solid var(--border);
  box-shadow: 0 30px 80px rgba(109, 40, 217, 0.35), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.mockup-screen {
  height: 100%; border-radius: 24px; position: relative; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(7, 5, 13, 0.1), rgba(7, 5, 13, 0.85)),
    repeating-linear-gradient(115deg, #2a1d52 0 18px, #20163f 18px 36px);
}
.mockup-screen .tag { position: absolute; top: 14px; left: 14px; font-weight: 900; font-size: 0.8rem; letter-spacing: 0.12em; background: rgba(139, 92, 246, 0.85); padding: 0.2rem 0.5rem; border-radius: 6px; }
.mockup-screen .credit { position: absolute; top: 14px; right: 14px; font-size: 0.72rem; color: #ddd; background: rgba(0, 0, 0, 0.45); padding: 0.2rem 0.5rem; border-radius: 6px; }
.mockup-screen .frame { position: absolute; left: 0; right: 0; top: 34%; height: 30%; background: linear-gradient(135deg, #5b21b6, #a21caf); opacity: 0.9; display: grid; place-items: center; font-weight: 800; color: rgba(255,255,255,0.9); letter-spacing: 0.08em; font-size: 0.85rem; }
.mockup-screen .bottom { position: absolute; left: 12px; right: 12px; bottom: 14px; display: flex; flex-direction: column; gap: 10px; }
.mockup-screen .caption { margin: 0; text-align: center; font-weight: 800; font-size: 1rem; line-height: 1.25; text-shadow: 0 2px 8px #000; }
.mockup-screen .draft { margin: 0; font-size: 0.75rem; line-height: 1.4; color: var(--muted); background: rgba(21, 16, 38, 0.92); border: 1px solid var(--border); border-radius: 10px; padding: 0.45rem 0.6rem; }
.mockup-screen .draft b { color: var(--ok); }

/* Sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: linear-gradient(180deg, rgba(21, 16, 38, 0.55), rgba(21, 16, 38, 0.15)); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head p { color: var(--muted); }

.grid { display: grid; gap: 1.25rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface), rgba(21, 16, 38, 0.7));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; position: relative;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: rgba(167, 139, 250, 0.55); }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.5), rgba(217, 70, 239, 0.3));
  border: 1px solid rgba(167, 139, 250, 0.35);
}
.icon svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.steps li { counter-increment: step; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-family: var(--mono); font-weight: 800; color: var(--purple-2); margin-bottom: 0.4rem; }
.steps li p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* Status badges */
.badge { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; padding: 0.22rem 0.6rem; border-radius: 999px; border: 1px solid; vertical-align: middle; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge-available { color: var(--ok); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); }
.badge-experimental { color: var(--warn); border-color: rgba(251, 191, 36, 0.4); background: rgba(251, 191, 36, 0.08); }
.badge-planned { color: var(--planned); border-color: rgba(96, 165, 250, 0.4); background: rgba(96, 165, 250, 0.08); }
.card .badge { margin-bottom: 0.9rem; }
.badge-wide { text-transform: none; letter-spacing: 0.01em; white-space: normal; line-height: 1.35; border-radius: 12px; align-items: flex-start; }
.badge-wide::before { margin-top: 0.42em; flex: none; }
.note { color: var(--muted); font-size: 0.92rem; margin: 0.8rem 0 0; }

.legend { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

.feature-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; align-items: start; padding: 2.2rem 0; border-top: 1px solid var(--border); }
.feature-block:first-of-type { border-top: 0; }
@media (max-width: 820px) { .feature-block { grid-template-columns: 1fr; gap: 1rem; } }
.feature-block h2 { font-size: 1.6rem; }
.feature-block ul { margin: 0; padding-left: 1.2rem; color: var(--muted); }
.feature-block li { margin-bottom: 0.45rem; }
.feature-block li strong { color: var(--text); }

/* Callouts */
.callout { border: 1px solid rgba(167, 139, 250, 0.4); background: rgba(139, 92, 246, 0.1); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 1.5rem 0; }
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-weight: 800; color: #fff; margin-bottom: 0.35rem; }

/* Owner-input placeholders: intentionally conspicuous until filled in. */
.todo { background: rgba(251, 191, 36, 0.14); color: var(--warn); border: 1px dashed rgba(251, 191, 36, 0.6); border-radius: 6px; padding: 0 0.35rem; font-weight: 700; }

/* Page header */
.page-hero { padding: clamp(3rem, 7vw, 5rem) 0 2rem; }
.page-hero p { color: var(--muted); max-width: 65ch; font-size: 1.12rem; }

/* Legal documents */
.legal { padding-bottom: 4rem; }
.legal h2 { font-size: 1.45rem; margin-top: 2.4rem; padding-top: 0.5rem; scroll-margin-top: 90px; }
.legal h3 { margin-top: 1.5rem; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.45rem; }
.legal .meta { color: var(--muted); font-size: 0.95rem; }
.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.4rem; margin: 1.5rem 0 1rem; }
.toc ol { margin: 0.4rem 0 0; padding-left: 1.3rem; columns: 2; column-gap: 2rem; }
@media (max-width: 640px) { .toc ol { columns: 1; } }
.toc a { color: var(--muted); }
.toc a:hover { color: #fff; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); border: 1px solid var(--border); padding: 0.05rem 0.35rem; border-radius: 6px; color: #e9d5ff; word-break: break-word; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); margin: 1rem 0 1.5rem; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 560px; }
th, td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { background: var(--surface-2); color: #fff; font-weight: 700; }
tr:last-child td { border-bottom: 0; }
td { color: var(--muted); }

/* CTA band */
.cta { text-align: center; padding: clamp(2.5rem, 6vw, 4rem); border-radius: 22px; border: 1px solid rgba(167, 139, 250, 0.4); background: radial-gradient(600px 240px at 50% 0%, rgba(139, 92, 246, 0.35), transparent 70%), var(--surface); }
.cta p { color: var(--muted); max-width: 60ch; margin-inline: auto; }
.cta .btn-row { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 2.5rem 0 2rem; margin-top: 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h2 { font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--purple-2); margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer p { color: var(--muted); }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.25rem; color: var(--muted); font-size: 0.85rem; }
.footer-legal nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.footer-legal nav a { color: var(--text); font-weight: 600; }

.disclaimer { font-size: 0.85rem; color: var(--muted); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Small utilities (replace former inline styles so the CSP needs no 'unsafe-inline') */
.m-0 { margin: 0; }
.mt-1 { margin-top: 0.9rem; }
.mt-2 { margin-top: 2rem; }
.my-2 { margin-top: 2rem; margin-bottom: 2rem; }
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: 1rem; }
.card-heading { font-size: 1.2rem; }
