/* ===========================================================
   OpenFab marketing site — open-fab.ai
   Dark, modern, single-page. Vanilla CSS, no build step.
   =========================================================== */

:root {
  --bg:        #070b14;
  --bg-2:      #0b1120;
  --bg-3:      #0e1626;
  --panel:     #0f1828;
  --line:      #1c2940;
  --line-2:    #25344f;
  --ink:       #e8eef9;
  --ink-2:     #aebbd4;
  --ink-3:     #7e8db0;
  --green:     #34e0a1;
  --green-d:   #1f8f68;
  --purple:    #9d8cff;
  --cyan:      #56c7e6;
  --warn:      #e6c454;
  --bad:       #f0808a;
  --mono:      'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --maxw:      1160px;
  --radius:    16px;
  --shadow:    0 20px 60px -20px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: var(--mono); font-size: .9em; color: var(--green); background: rgba(52,224,161,.08); padding: .1em .4em; border-radius: 6px; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.container.narrow { max-width: 820px; }
.center { text-align: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: .1px;
  padding: 13px 24px; border-radius: 12px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn.sm { padding: 9px 16px; font-size: 14px; border-radius: 10px; }
.btn.primary {
  background: linear-gradient(135deg, var(--green) 0%, #2bb88a 100%);
  color: #04140d; box-shadow: 0 10px 30px -8px rgba(52,224,161,.5);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(52,224,161,.6); }
.btn.ghost { background: rgba(255,255,255,.03); color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { background: rgba(255,255,255,.07); border-color: var(--green-d); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(7,11,20,.6); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); background: rgba(7,11,20,.85); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 14px 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; }
.brand-mark { font-size: 20px; filter: drop-shadow(0 0 10px rgba(52,224,161,.5)); }
.brand-name { letter-spacing: -.3px; }
.accent { color: var(--green); }
.nav-links { display: flex; gap: 26px; margin-left: 8px; flex: 1; }
.nav-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.lang-switch { font-size: 13.5px; font-weight: 600; color: var(--ink-2); padding: 8px 12px; border-radius: 9px; border: 1px solid var(--line-2); transition: color .15s, border-color .15s, background .15s; white-space: nowrap; }
.lang-switch:hover { color: var(--green); border-color: var(--green-d); background: rgba(52,224,161,.06); }
.inline-link { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(52,224,161,.4); transition: border-color .15s; }
.inline-link:hover { border-bottom-color: var(--green); }
.nav-burger { display: none; background: none; border: none; color: var(--ink); font-size: 22px; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 150px 0 90px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(52,224,161,.16), transparent 55%),
              radial-gradient(ellipse at 70% 40%, rgba(157,140,255,.14), transparent 60%);
  filter: blur(20px);
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 2px; color: var(--green); margin-bottom: 22px; }
.hero h1 { font-size: 60px; line-height: 1.04; font-weight: 900; letter-spacing: -1.6px; margin: 0 0 22px; }
.grad { background: linear-gradient(115deg, var(--green) 0%, var(--cyan) 50%, var(--purple) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.lede { font-size: 18.5px; color: var(--ink-2); margin: 0 0 30px; max-width: 560px; }
.lede strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; margin-bottom: 30px; flex-wrap: wrap; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--ink-3); }
.hero-meta span { font-weight: 500; }

.shot-frame { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--bg-3); box-shadow: var(--shadow); }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.shot-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.shot-bar i:first-child { background: #f0808a; } .shot-bar i:nth-child(2) { background: #e6c454; } .shot-bar i:nth-child(3) { background: #34e0a1; }
.shot-bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.shot-frame img { width: 100%; }

/* ---------- standards bar ---------- */
.standards { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); padding: 30px 0; }
.standards-label { text-align: center; color: var(--ink-3); font-size: 13.5px; margin: 0 0 16px; }
.standards-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.standards-row span { font-family: var(--mono); font-weight: 600; font-size: 17px; color: var(--ink-2); letter-spacing: .5px; opacity: .85; transition: color .2s, opacity .2s; }
.standards-row span:hover { color: var(--green); opacity: 1; }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin: 0 0 52px; }
.section-head.center, .section.alt .section-head { }
.kicker { font-family: var(--mono); font-size: 12.5px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--green); margin-bottom: 14px; }
.kicker.center { text-align: center; }
.section h2 { font-size: 38px; line-height: 1.12; font-weight: 800; letter-spacing: -.8px; margin: 0 0 16px; }
.section-sub { font-size: 17.5px; color: var(--ink-2); margin: 0; }

/* ---------- card grids ---------- */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card-ic {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 11px;
  background: linear-gradient(135deg, rgba(52,224,161,.16), rgba(157,140,255,.14));
  border: 1px solid var(--line-2); font-size: 20px; margin-bottom: 16px; color: var(--green);
}
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -.2px; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

.pull {
  margin-top: 40px; padding: 30px 34px; border-left: 3px solid var(--green);
  background: linear-gradient(90deg, rgba(52,224,161,.06), transparent);
  border-radius: 0 14px 14px 0; font-size: 19px; color: var(--ink); line-height: 1.6;
}
.pull strong { color: var(--green); font-weight: 700; }

/* ---------- split (gap section) ---------- */
.split { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.split-col.hi { border-color: var(--green-d); background: linear-gradient(180deg, rgba(52,224,161,.07), var(--panel)); box-shadow: 0 16px 50px -24px rgba(52,224,161,.5); }
.split-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; display: inline-block; padding: 5px 11px; border-radius: 8px; }
.split-tag.bad { color: var(--bad); background: rgba(240,128,138,.1); }
.split-tag.good { color: var(--green); background: rgba(52,224,161,.12); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 26px; margin-bottom: 12px; font-size: 14.5px; color: var(--ink-2); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks.bad li::before { content: "✕"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }
.ticks.good li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

/* ---------- spec cycle ---------- */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; counter-reset: c; }
.cycle li { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px 16px; }
.cycle li:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--green-d); font-weight: 700; z-index: 2; }
.cycle .cn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: rgba(52,224,161,.12); color: var(--green); font-family: var(--mono); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.cycle h4 { margin: 0 0 6px; font-size: 15px; font-weight: 700; }
.cycle p { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.5; }

/* ---------- feature rows ---------- */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; padding: 38px 0; }
.feature.reverse .feature-text { order: 2; }
.feat-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.feature-text h3 { font-size: 27px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 14px; line-height: 1.18; }
.feature-text p { font-size: 16px; color: var(--ink-2); margin: 0; }
.feature-shot img { border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); }

/* ---------- architecture ---------- */
.arch { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 26px; }
.arch img { margin: 0 auto; max-height: 520px; width: auto; }
.matrix { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.matrix-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.matrix-col h4 { margin: 0 0 14px; font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.matrix-col h4 span { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); font-weight: 500; }
.matrix-col p { font-size: 13px; color: var(--ink-3); margin: 14px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 500; padding: 6px 12px; border-radius: 8px; background: var(--bg-3); border: 1px solid var(--line-2); color: var(--ink-2); }
.chip i { font-style: normal; color: var(--green); font-size: 11px; margin-left: 5px; }

/* ---------- self-host band ---------- */
.selfhost .big { font-size: 21px; color: var(--ink); max-width: 760px; margin: 18px auto 0; }
.selfhost h2 { font-size: 40px; }

/* ---------- governance ---------- */
.gov { display: flex; align-items: center; gap: 26px; margin-top: 34px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 34px; }
.gov-badge { flex: none; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 16px; font-family: var(--mono); font-weight: 700; font-size: 20px; color: var(--green); background: linear-gradient(135deg, rgba(52,224,161,.14), rgba(157,140,255,.12)); border: 1px solid var(--line-2); }
.gov p { margin: 0; font-size: 16px; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 110px 0; overflow: hidden; border-top: 1px solid var(--line); }
.cta-glow { position: absolute; bottom: -300px; left: 50%; transform: translateX(-50%); width: 1000px; height: 700px; background: radial-gradient(ellipse at center, rgba(52,224,161,.18), transparent 60%); filter: blur(30px); pointer-events: none; }
.cta h2 { font-size: 44px; margin: 12px 0 14px; }
.cta p.center { font-size: 18px; color: var(--ink-2); margin: 0 0 28px; }
.codeblock { background: #060a12; border: 1px solid var(--line-2); border-radius: 14px; padding: 22px 26px; text-align: left; max-width: 660px; margin: 0 auto 26px; box-shadow: var(--shadow); }
.codeblock code { display: block; background: none; padding: 0; color: var(--ink); font-size: 14px; line-height: 1.9; white-space: pre-wrap; }
.c-cmt { color: var(--ink-3); }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.fineprint { font-size: 13px; color: var(--ink-3); margin: 26px auto 0; max-width: 620px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px; }
.footer-brand { display: flex; flex-direction: column; }
.footer-brand .brand-mark { font-size: 22px; }
.footer-brand .brand-name { font-size: 20px; font-weight: 800; margin-top: -28px; margin-left: 32px; }
.footer-brand p { color: var(--ink-3); font-size: 14px; margin: 14px 0 0; max-width: 320px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-cols h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--ink-3); margin: 0 0 14px; }
.footer-cols a { display: block; color: var(--ink-2); font-size: 14.5px; margin-bottom: 9px; transition: color .15s; }
.footer-cols a:hover { color: var(--green); }
.footer-base { display: flex; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; font-family: var(--mono); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { font-size: 46px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: repeat(2, 1fr); }
  .cycle li::after { display: none; }
  .matrix { grid-template-columns: 1fr; }
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 24px; }
  .feature.reverse .feature-text { order: 0; }
  .gov { flex-direction: column; text-align: center; }
  .nav-links { display: none; }
}
@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .hero h1 { font-size: 36px; }
  .section h2 { font-size: 29px; }
  .grid-4, .grid-3 { grid-template-columns: 1fr; }
  .cycle { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 18px 28px; gap: 16px; }
  .cta h2 { font-size: 32px; }
}

/* OpenFab Web — browser section */
.browser-steps { max-width: 640px; margin: 22px auto 6px; padding-left: 22px; display: grid; gap: 10px; }
.browser-steps li { color: var(--muted, #8b97a8); line-height: 1.55; }
.browser-steps li strong { color: var(--ink, #e7ecf3); }
.cta-actions.center { justify-content: center; display: flex; }
.fineprint.center { text-align: center; }
