/* ==========================================================================
   Zephos: brand tokens. To swap the logo concept, replace /assets/logo.svg
   (and favicon.svg) and change the variables below. Nothing else needs edits.
   Current: concept 08 Grid. Ink #0F0F10, accent #C6F432 (#6F9A00 on light).
   ========================================================================== */
:root {
  --bg:        #0F0F10;
  --bg-raised: #17171A;
  --bg-term:   #121214;
  --line:      #26262B;
  --ink:       #F6F4EF;
  --ink-2:     #B9B7B1;
  --ink-3:     #7C7B77;
  --accent:    #C6F432;
  --accent-ink:#0F0F10;   /* text on accent */
  --accent-soft: rgba(198, 244, 50, .12);
  --fail:      #FF6B5B;
  --warn:      #FFB547;
  --id:        #8AB4FF;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  --maxw: 1120px;
}

@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url("/assets/fonts/martian-mono.woff2") format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--font-sans); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(rgba(246,244,239,.055) 1px, transparent 1.2px);
  background-size: 24px 24px; background-attachment: fixed;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code { font-family: var(--font-mono); font-size: .82em; background: var(--bg-raised); border: 1px solid var(--line); padding: .08em .4em; border-radius: 5px; white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.accent { color: var(--accent); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand img { width: 136px; margin-left: -12px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a { color: var(--ink-2); text-decoration: none; font-size: 15px; }
.nav nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 112px; }
.eyebrow, .kicker { color: var(--accent); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 22px; }
h1 { font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -.035em; font-weight: 650; margin: 0 0 28px; max-width: 20ch; text-wrap: balance; }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); max-width: 60ch; margin: 0 0 36px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 20px; border-radius: 10px; font-weight: 600; font-size: 15.5px; text-decoration: none; transition: transform .15s ease, background-color .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #d4fb52; }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: rgba(15,15,16,.6); }
.btn-ghost:hover { border-color: var(--ink-3); }
.hint { color: var(--ink-3); font-size: 14px; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section-head { margin-bottom: 32px; }
h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 650; margin: 0; }
.section-head .kicker { margin-bottom: 14px; }
.sub { color: var(--ink-2); margin: 12px 0 0; max-width: 58ch; }
h3 { font-size: 20px; letter-spacing: -.01em; line-height: 1.3; margin: 0 0 10px; font-weight: 620; }

.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.card p { color: var(--ink-2); margin: 0; }

/* Product */
.product { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; background: var(--bg-raised); border: 1px solid var(--line); border-radius: 20px; padding: 44px; position: relative; overflow: hidden; }
.product::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--accent), transparent 70%); }
.product-copy > p { color: var(--ink-2); margin: 0 0 16px; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(198,244,50,.28); padding: 6px 12px; border-radius: 999px; margin: 0 0 20px !important; }
.dot { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.product-title { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.03em; margin: 0 0 4px; line-height: 1.1; }
.product-tag { font-size: 20px; color: var(--ink) !important; margin-bottom: 22px !important; }
.ticks { list-style: none; padding: 0; margin: 22px 0 20px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; color: var(--ink-2); }
.ticks li strong { color: var(--ink); font-weight: 600; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .42em; width: 14px; height: 14px; border-radius: 3px; background: var(--accent); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3 3 7-7' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.fine { font-size: 14px; color: var(--ink-3) !important; margin-bottom: 26px !important; }

.term { margin: 0; background: var(--bg-term); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; position: sticky; top: 24px; }
.term-bar { display: flex; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2E2E34; }
.term pre { margin: 0; padding: 20px 20px 22px; font-size: 13px; line-height: 2; color: var(--ink); overflow-x: auto; }
.term .fail { color: var(--fail); font-weight: 700; }
.term .warn { color: var(--warn); font-weight: 700; }
.term .pass { color: var(--accent); font-weight: 700; }
.term .id { color: var(--id); }
.term .rule { display: block; height: 1px; background: var(--line); margin: 10px 0 8px; }
.term figcaption { font-size: 13px; color: var(--ink-3); padding: 0 20px 18px; }
.stacks { grid-column: 1 / -1; margin: 0; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 12.5px; letter-spacing: .02em; }

/* Lab */
.lab { display: flex; align-items: center; gap: 36px; border: 1px dashed #34343A; border-radius: 20px; padding: 36px 40px; }
.lab p { color: var(--ink-2); margin: 12px 0 0; max-width: 52ch; }
.lab .kicker { margin: 0 0 12px; color: var(--accent); }
.lab-grid { flex: none; display: grid; grid-template-columns: repeat(4, 18px); gap: 6px; }
.lab-grid i { width: 18px; height: 18px; border-radius: 4px; background: rgba(246,244,239,.09); }
.lab-grid i.on { background: var(--accent); animation: blink 2.4s steps(1) infinite; }
.lab-grid i.on:nth-child(10) { animation-delay: 1.2s; }
@keyframes blink { 50% { opacity: .25; } }

/* Principles */
.principles { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.principles li { counter-increment: p; padding: 28px 28px 30px 0; border-bottom: 1px solid var(--line); }
.principles li:nth-child(odd) { border-right: 1px solid var(--line); }
.principles li:nth-child(even) { padding-left: 28px; }
.principles h3::before { content: counter(p, decimal-leading-zero); font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-right: 12px; vertical-align: 2px; }
.principles p { color: var(--ink-2); margin: 0; max-width: 46ch; }

/* Footer */
.footer { margin-top: 64px; border-top: 1px solid var(--line); background: rgba(15,15,16,.85); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-top: 36px; padding-bottom: 44px; }
.footer img { width: 116px; margin-left: -10px; }
.footer p { margin: 6px 0 0; }
.links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; text-align: right; }
.links a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid transparent; }
.links a:hover { color: var(--accent); border-bottom-color: currentColor; }

/* Responsive */
@media (max-width: 900px) {
  .grid3 { grid-template-columns: 1fr; }
  .product { grid-template-columns: 1fr; padding: 32px 24px; gap: 32px; }
  .term { position: static; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .hero { padding-top: 48px; padding-bottom: 64px; }
  .section { padding-top: 40px; padding-bottom: 40px; }
  .card { padding: 22px; }
  .wrap { padding-left: 16px; padding-right: 16px; }
  .product { padding: 28px 18px; }
  .term pre { font-size: 11px; line-height: 1.9; padding: 16px 14px; font-stretch: 75%; letter-spacing: -.01em; }
  .lab { flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 24px; }
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li:nth-child(odd), .principles li:nth-child(even) { padding: 24px 0; border-right: 0; }
  .footer-inner { flex-direction: column; }
  .links { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .lab-grid i.on { animation: none; }
}
