/* WolfBuild — FRAMEX black & white system.
   Pure black, white type, hairline borders. Space Grotesk + JetBrains Mono. */

:root {
  --bg: #000;
  --bg-soft: #0a0a0a;
  --bg-card: #0d0d0d;
  --fg: #fff;
  --muted: #a1a1aa;
  --faint: #71717a;
  --border: rgba(255, 255, 255, .1);
  --border-strong: rgba(255, 255, 255, .22);
  --radius: 10px;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: #fff; color: #000; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; color: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 200; background: #fff; color: #000; padding: 8px 14px; border-radius: 6px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 8px; font-weight: 600; font-size: 15px;
  line-height: 1.2; white-space: nowrap; transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e4e4e7; }
.btn-ghost { border: 1px solid var(--border-strong); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }

/* ── Eyebrow / headings ──────────────────── */
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(44px, 6.4vw, 76px); }
h2 { font-size: clamp(30px, 4vw, 46px); margin: 14px 0 0; }
h3 { font-size: 20px; }
.h1-outline {
  color: transparent;
  -webkit-text-stroke: 1.5px #fff;
}
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); border-block: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-sub { color: var(--muted); font-size: 17px; margin-top: 16px; max-width: 640px; }

/* ── Nav ─────────────────────────────────── */
[hidden] { display: none !important; }
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #000;
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--border-strong); border-radius: 8px; }
.brand-name-thin { font-weight: 400; color: var(--muted); }
.brand-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--border); border-radius: 99px; padding: 3px 8px; margin-left: 2px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { font-size: 14.5px; color: var(--muted); transition: color .15s; }
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 20px; height: 2px; background: #fff; }
.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 20px 20px; border-top: 1px solid var(--border); }
.mobile-menu a:not(.btn) { padding: 10px 4px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:not(.btn):hover { color: #fff; }
.mobile-menu .btn { margin-top: 12px; }
.mobile-menu.open { display: flex; }

/* ── Hero (minimal, centred) ─────────────── */
.hero { padding: 88px 0 64px; text-align: center; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 50% -5%, rgba(255,255,255,.07), transparent 60%);
}
.hero-inner { max-width: 820px; margin-inline: auto; position: relative; }
.hero-eyebrow { justify-content: center; margin-bottom: 22px; }
.hero h1 { font-size: clamp(48px, 7vw, 84px); }
.lede { color: var(--muted); font-size: 18px; margin: 20px auto 36px; max-width: 560px; }
.hero-prompt {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-strong); border-radius: 14px; padding: 10px 10px 10px 18px;
  background: var(--bg-card); max-width: 720px; margin-inline: auto; text-align: left;
}
.hero-prompt:focus-within { border-color: #fff; }
.prompt-add { width: 34px; height: 34px; flex-shrink: 0; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); font-size: 20px; line-height: 1; display: grid; place-items: center; transition: all .15s; }
.prompt-add:hover { color: #fff; border-color: #fff; }
.hero-prompt input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; font-size: 16px; color: #fff; }
.hero-prompt input::placeholder { color: var(--faint); }
.prompt-go { width: 44px; height: 44px; flex-shrink: 0; border-radius: 50%; background: #fff; color: #000; font-size: 19px; display: grid; place-items: center; transition: background .15s; }
.prompt-go:hover { background: #e4e4e7; }
.hero-types { display: flex; justify-content: center; gap: 28px; margin-top: 30px; flex-wrap: wrap; }
.hero-types button { display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); transition: color .15s; }
.hero-types button:hover { color: #fff; }
.type-icon { width: 52px; height: 52px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-card); color: var(--muted); transition: all .15s; }
.hero-types button:hover .type-icon { border-color: #fff; color: #fff; }
.hero-example { display: block; margin: 26px auto 0; font-size: 14px; color: var(--muted); transition: color .15s; }
.hero-example:hover { color: #fff; }
.hero-example span { display: inline-block; margin-left: 4px; }
.hero-scroll { display: grid; place-items: center; width: 40px; height: 40px; margin: 40px auto 0; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--muted); font-size: 17px; animation: bob 2.2s ease-in-out infinite; }
.hero-scroll:hover { color: #fff; border-color: #fff; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ── Watch it build ──────────────────────── */
.section-head-center { text-align: center; margin-inline: auto; }
.section-head-center .eyebrow { justify-content: center; }
.section-head-center .section-sub { margin-inline: auto; }
.demo-wide { max-width: 880px; margin-inline: auto; }
.demo-wide .demo-tabs { justify-content: center; }

/* ── Demo window ─────────────────────────── */
.demo-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.demo-tab {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
  padding: 8px 14px; border: 1px solid var(--border); border-radius: 99px; color: var(--muted);
  transition: all .15s;
}
.demo-tab:hover { color: #fff; border-color: var(--border-strong); }
.demo-tab.active { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.demo-window, .code-window { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-card); overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: #111; }
.window-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--border-strong); }
.window-dot:first-child { background: #fff; border-color: #fff; }
.window-title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-body { display: grid; grid-template-columns: 1fr 1fr; min-height: 300px; }
.demo-log { padding: 18px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.9; color: var(--muted); border-right: 1px solid var(--border); overflow: hidden; }
.demo-log .ln { display: block; opacity: 0; animation: fadeUp .4s forwards; }
.demo-log .ln b { color: #fff; font-weight: 500; }
.demo-log .ln .ok { color: #fff; }
.demo-log .ln .dim { color: var(--faint); }
.demo-preview { padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.demo-preview .pv-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.demo-preview h4 { font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.demo-preview p { color: var(--muted); font-size: 13.5px; }
.pv-blocks { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.pv-block { height: 14px; border: 1px solid var(--border); border-radius: 5px; background: linear-gradient(90deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); }
.pv-block:nth-child(2) { width: 72%; }
.pv-block:nth-child(3) { width: 48%; }
.pv-cta { align-self: flex-start; background: #fff; color: #000; font-weight: 700; font-size: 13px; padding: 9px 16px; border-radius: 7px; }
.demo-status { display: flex; align-items: center; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--muted); background: #0a0a0a; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: pulse 1.6s infinite; }
.demo-time { margin-left: auto; color: var(--faint); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ── Cards ───────────────────────────────── */
.cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); padding: 26px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.card-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 9px; margin-bottom: 18px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.card-tags span { font-family: var(--font-mono); font-size: 11px; letter-spacing: .04em; border: 1px solid var(--border); border-radius: 99px; padding: 3px 9px; color: var(--muted); }

/* ── Steps ───────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: step; }
.step { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; background: var(--bg); position: relative; }
.step-num { font-family: var(--font-mono); font-size: 13px; color: #000; background: #fff; border-radius: 6px; padding: 4px 9px; font-weight: 700; }
.step h3 { margin: 18px 0 10px; font-size: 22px; }
.step p { color: var(--muted); font-size: 15px; }
.step-example { margin-top: 16px; padding: 14px; border-left: 2px solid #fff; background: var(--bg-card); font-size: 14px; color: #e4e4e7; font-style: italic; }
.step-list { list-style: none; margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.step-list li { font-size: 14.5px; color: var(--muted); padding-left: 22px; position: relative; }
.step-list li::before { content: "→"; position: absolute; left: 0; color: #fff; }

/* ── Playground ──────────────────────────── */
.playground { border: 1px solid var(--border-strong); border-radius: 14px; background: var(--bg-card); padding: 28px; }
.pg-input-row { display: flex; gap: 10px; }
.pg-input-row input { flex: 1; min-width: 0; background: #000; border: 1px solid var(--border-strong); border-radius: 9px; padding: 13px 16px; font-size: 15.5px; outline: 0; }
.pg-input-row input:focus { border-color: #fff; }
.pg-input-row input::placeholder { color: var(--faint); }
.pg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pg-chips button { font-size: 13.5px; color: var(--muted); border: 1px solid var(--border); border-radius: 99px; padding: 7px 13px; transition: all .15s; }
.pg-chips button:hover { color: #fff; border-color: var(--border-strong); }
.pg-chips button.selected { background: #fff; color: #000; border-color: #fff; font-weight: 600; }
.pg-output { margin-top: 22px; border-top: 1px solid var(--border); padding-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pg-log { font-family: var(--font-mono); font-size: 12.5px; line-height: 2; color: var(--muted); }
.pg-log .ln { display: block; opacity: 0; animation: fadeUp .4s forwards; }
.pg-log .ok { color: #fff; }
.pg-result { border: 1px solid var(--border-strong); border-radius: 10px; padding: 20px; background: #000; }
.pg-result h4 { font-size: 21px; margin-bottom: 6px; }
.pg-result p { color: var(--muted); font-size: 14px; }
.pg-result .card-tags { margin-top: 14px; }
.pg-result .pg-link { display: inline-block; margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: #fff; border-bottom: 1px solid #fff; padding-bottom: 2px; }

/* ── Split / under the hood ──────────────── */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.check-list { list-style: none; margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.check-list li { padding-left: 30px; position: relative; color: var(--muted); font-size: 15.5px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; display: grid; place-items: center; border: 1px solid var(--border-strong); border-radius: 50%; font-size: 11px; color: #fff; }
.check-list strong { color: #fff; font-weight: 600; }
.code-body { padding: 20px; font-family: var(--font-mono); font-size: 13px; line-height: 1.9; overflow-x: auto; white-space: pre; color: var(--muted); }
.code-body .c-dim { color: var(--faint); }
.code-body .c-ok { color: #fff; }
.code-body .c-warn { color: #d4d4d8; }
.code-body .c-bright { color: #fff; font-weight: 700; }

/* ── Examples ────────────────────────────── */
.examples-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.example { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--bg-card); transition: border-color .2s, transform .2s; }
.example:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.example-preview { height: 190px; padding: 18px; position: relative; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.preview-a { background: linear-gradient(135deg, #111, #000 70%); }
.preview-b { background: linear-gradient(135deg, #1a1a1a, #050505 70%); }
.preview-c { background: linear-gradient(135deg, #0d0d0d, #000 60%); }
.mock-browser { display: flex; gap: 5px; }
.mock-browser span { width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--border-strong); }
.mock-browser span:first-child { background: #fff; border-color: #fff; }
.mock-title { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; margin-top: 12px; }
.mock-sub { color: var(--muted); font-size: 13.5px; }
.mock-row { display: flex; gap: 8px; margin-top: auto; }
.mock-row span { flex: 1; height: 26px; border: 1px solid var(--border); border-radius: 6px; background: rgba(255,255,255,.05); }
.mock-cta { align-self: flex-start; background: #fff; color: #000; font-weight: 700; font-size: 12.5px; padding: 8px 14px; border-radius: 6px; }
.example-body { padding: 22px; }
.example-body h3 { margin-bottom: 6px; }
.example-body > p { color: var(--muted); font-size: 14.5px; }
.link-btn { margin-top: 16px; font-size: 14px; font-weight: 600; border-bottom: 1px solid #fff; padding-bottom: 2px; }
.link-btn:hover { color: var(--muted); }

/* ── Pricing ─────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; background: var(--bg-card); display: flex; flex-direction: column; }
.price-featured { background: #fff; color: #000; border-color: #fff; }
.price-featured .price-desc, .price-featured .price-list li { color: #3f3f46; }
.price-featured .price-list li::before { color: #000; border-color: #a1a1aa; }
.price-tier { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.price-featured .price-tier { color: #52525b; }
.price-badge { background: #000; color: #fff; border-radius: 99px; padding: 3px 9px; font-size: 10.5px; letter-spacing: .08em; }
.price-amount { font-size: 42px; font-weight: 700; letter-spacing: -0.03em; margin: 14px 0 4px; }
.price-amount span { font-size: 15px; font-weight: 400; color: var(--muted); }
.price-featured .price-amount span { color: #71717a; }
.price-desc { color: var(--muted); font-size: 14.5px; }
.price-list { list-style: none; margin: 22px 0 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.price-list li { font-size: 14.5px; color: var(--muted); padding-left: 26px; position: relative; }
.price-list li::before { content: "✓"; position: absolute; left: 0; font-size: 12px; color: #fff; }
.price-featured .price-list li { color: #3f3f46; }
.price-featured .btn-ghost { border-color: #000; color: #000; }
.price-featured .btn-ghost:hover { background: #000; color: #fff; }
.price-featured .btn-primary { background: #000; color: #fff; }
.price-featured .btn-primary:hover { background: #27272a; }
.pricing-note { text-align: center; color: var(--faint); font-size: 13.5px; margin-top: 26px; }

/* ── FAQ ─────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); overflow: hidden; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-icon { font-family: var(--font-mono); font-weight: 400; color: var(--muted); transition: transform .2s; flex-shrink: 0; }
.faq[open ] .faq-icon { transform: rotate(45deg); color: #fff; }
.faq p { padding: 0 22px 22px; color: var(--muted); font-size: 15px; max-width: 640px; }

/* ── CTA band ────────────────────────────── */
.cta-band { border-top: 1px solid var(--border); padding: 96px 0; background: var(--bg-soft); text-align: center; }
.cta-inner h2 { font-size: clamp(32px, 4.6vw, 52px); }
.cta-inner p { color: #d4d4d8; font-size: 17px; margin: 16px auto 30px; max-width: 520px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ──────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 300px; }
.footer-copy { color: var(--faint); font-size: 13px; }
.footer-head { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 16px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 14.5px; color: var(--muted); }
.footer-col a:hover { color: #fff; }

/* ── Reveal on scroll ────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll { animation: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ──────────────────────────── */
@media (max-width: 1020px) {
  .cards-grid, .steps, .examples-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .section { padding: 72px 0; }
  .hero { padding: 72px 0 64px; }
  .hero-types { gap: 16px; }
  .type-icon { width: 46px; height: 46px; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .brand-tag { display: none; }
  .cards-grid, .steps, .examples-grid, .pricing-grid { grid-template-columns: 1fr; }
  .demo-body, .pg-output { grid-template-columns: 1fr; }
  .demo-log { border-right: 0; border-bottom: 1px solid var(--border); }
  .pg-input-row { flex-direction: column; }
  .pg-input-row .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}
