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

:root {
  --bg:       #080B12;
  --surface:  #101622;
  --surface2: #0C111A;
  --border:   #1E2D3D;
  --blue:     #3B82F6;
  --violet:   #7C5CFC;
  --text:     #E2E8F0;
  --muted:    #64748B;
  --green:    #22C55E;
  --font:     'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:     'JetBrains Mono', 'Fira Code', monospace;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background:
    radial-gradient(1100px 480px at 50% -120px, rgba(59,130,246,0.10), transparent 70%),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.gradient {
  background: linear-gradient(135deg, #3B82F6, #7C5CFC);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(8,11,18,0.78); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo-wordmark { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.logo-open { color: var(--text); } .logo-thunder { color: var(--blue); } .logo-dev { color: var(--muted); font-weight: 500; }
.header-nav { display: flex; align-items: center; gap: 22px; }
.header-nav a { font-size: 14px; color: var(--muted); transition: color .15s; }
.header-nav a:hover { color: var(--text); }
.header-cta {
  padding: 7px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text) !important;
}
.header-cta:hover { border-color: var(--blue); }
@media (max-width: 720px) { .header-nav a:not(.header-cta) { display: none; } }

/* Hero */
.hero { padding: 72px 0 40px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: 12px; color: var(--blue);
  border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; margin-bottom: 22px;
  background: var(--surface2);
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; }
.hero-sub { max-width: 600px; margin: 18px auto 28px; font-size: 17px; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 16px; font-size: 13px; font-family: var(--mono); color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600;
  padding: 12px 22px; border-radius: 10px; cursor: pointer; transition: opacity .15s, border-color .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #3B82F6, #7C5CFC); color: #fff; box-shadow: 0 8px 30px rgba(59,130,246,0.22); }
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--surface2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.section-sub { color: var(--muted); margin: 8px 0 28px; font-size: 15px; }

/* Downloads */
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .dl-grid { grid-template-columns: 1fr; } }
.dl-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px;
  display: flex; flex-direction: column; gap: 6px; transition: border-color .15s, transform .1s;
}
.dl-card.current { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 14px 40px rgba(59,130,246,0.12); }
.dl-os { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; }
.dl-os svg { color: var(--text); }
.dl-meta { font-size: 12.5px; color: var(--muted); min-height: 18px; }
.dl-badge { align-self: flex-start; font-size: 10.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--blue); background: rgba(59,130,246,0.12); border-radius: 999px; padding: 2px 9px; margin-top: 2px; }
.dl-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.dl-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 14px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--border); background: transparent; color: var(--text); transition: border-color .15s, background .15s;
}
.dl-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.dl-btn:hover { border-color: var(--blue); }
.dl-sub { font-size: 12px; color: var(--muted); text-align: center; }
.dl-disclaimer { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Callout + code */
.callout { margin-top: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.callout-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.callout p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.code {
  background: #060910; border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px;
  overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #CBD5E1;
}
.code code { white-space: pre; }

/* Trust grid */
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 880px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trust-grid { grid-template-columns: 1fr; } }
.trust-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; }
.trust-icon { color: var(--green); font-size: 13px; margin-bottom: 8px; }
.trust-item h3 { font-size: 14.5px; font-weight: 600; margin-bottom: 6px; }
.trust-item p { font-size: 13px; color: var(--muted); }

/* Steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.step-title { font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.step-note { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Guides */
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 880px) { .guide-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .guide-grid { grid-template-columns: 1fr; } }
.guide-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px;
  transition: border-color .15s, transform .1s; display: block;
}
.guide-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.guide-kicker { font-family: var(--mono); font-size: 11.5px; color: var(--blue); margin-bottom: 8px; }
.guide-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.guide-card p { font-size: 13px; color: var(--muted); }
.guides-foot { margin-top: 22px; font-size: 13.5px; color: var(--muted); }
.guides-foot a { color: var(--blue); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 26px 0 44px; }
.footer-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: 12.5px; font-family: var(--mono); color: var(--muted); }

/* ── Extra accent colors for the scorecard mockup ─────────────────────────── */
:root { --red: #EF6461; --amber: #F5B84B; }

/* ── Problem / StoryBrand ─────────────────────────────────────────────────── */
.problem h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 700; letter-spacing: -0.02em; max-width: 760px; }
.problem-lead { color: var(--muted); font-size: 17px; max-width: 680px; margin: 16px 0 32px; line-height: 1.6; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 20px; }
.problem-num { font-family: var(--mono); font-size: 13px; color: var(--blue); margin-bottom: 12px; }
.problem-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.problem-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* ── See it in action: app mockup in a browser frame ──────────────────────── */
.showcase h2 { font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.app-frame {
  margin: 8px auto 28px; max-width: 920px; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; background: var(--bg); box-shadow: 0 30px 80px rgba(0,0,0,0.45), 0 0 0 1px rgba(59,130,246,0.08);
}
.app-frame-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.app-frame-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.app-frame-bar .dot.r { background: #EF6461; } .app-frame-bar .dot.y { background: #F5B84B; } .app-frame-bar .dot.g { background: #36D399; }
.app-frame-title { margin-left: 10px; font-size: 12px; color: var(--muted); font-family: var(--mono); }
.app-mock { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
@media (max-width: 640px) { .app-mock { grid-template-columns: 1fr; } .mock-side { display: none; } }
.mock-side { background: var(--surface2); border-right: 1px solid var(--border); padding: 16px 12px; }
.mock-logo { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; padding: 4px 8px 16px; }
.mock-nav { font-size: 13px; color: var(--muted); padding: 9px 11px; border-radius: 8px; margin-bottom: 3px; }
.mock-nav.active { background: rgba(59,130,246,0.12); color: var(--text); border: 1px solid rgba(59,130,246,0.25); }
.mock-main { padding: 22px 24px; }
.mock-kicker { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--violet); border: 1px solid var(--border); border-radius: 999px; padding: 4px 11px; margin-bottom: 18px; }
.mock-score-row { display: flex; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.mock-score { width: 96px; height: 96px; border: 1px solid var(--border); border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); }
.mock-score-num { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.mock-score-grade { font-size: 12px; color: var(--muted); }
.mock-stats { display: flex; gap: 12px; flex: 1; flex-wrap: wrap; }
.mock-stat { flex: 1; min-width: 90px; border: 1px solid var(--border); border-radius: 12px; padding: 14px; background: var(--surface); }
.mock-stat-n { font-size: 22px; font-weight: 700; }
.mock-stat-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; margin-top: 2px; }
.mock-bars { display: flex; flex-direction: column; gap: 11px; }
.mock-bar { display: grid; grid-template-columns: 150px 1fr 34px; align-items: center; gap: 12px; }
@media (max-width: 640px) { .mock-bar { grid-template-columns: 110px 1fr 30px; } }
.mock-bar-l { font-size: 12.5px; color: var(--text); }
.mock-bar-t { height: 7px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.mock-bar-t i { display: block; height: 100%; border-radius: 4px; }
.mock-bar-v { font-family: var(--mono); font-size: 13px; font-weight: 600; text-align: right; }

.shot-captions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 800px) { .shot-captions { grid-template-columns: 1fr; } }
.shot-cap { padding: 4px 2px; }
.shot-cap h4 { font-size: 14.5px; font-weight: 600; margin-bottom: 5px; }
.shot-cap p { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ── First-impression tuning: tighter hero, app mockup as the lead ────────── */
.hero { padding: 60px 0 20px; }
.hero h1 { max-width: 880px; margin: 0 auto; }
.showcase-lead { padding-top: 6px; padding-bottom: 52px; }
.showcase-lead h2, .showcase-lead .section-sub { text-align: center; }
.showcase-lead .section-sub { margin-left: auto; margin-right: auto; max-width: 560px; }
.showcase-lead .app-frame { margin-top: 18px; }
/* The mockup is the star; let it breathe and feel "live" */
.app-frame { transition: transform .3s ease, box-shadow .3s ease; }
.app-frame:hover { transform: translateY(-3px); box-shadow: 0 40px 90px rgba(0,0,0,0.5), 0 0 0 1px rgba(59,130,246,0.14); }

/* ── Hero complement line (works with your AI tools) ──────────────────────── */
.hero-tools { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

/* ── Ownership shift: before / after quotes ───────────────────────────────── */
.ownership-shift { display: flex; align-items: stretch; gap: 16px; margin-top: 6px; flex-wrap: wrap; }
.shift-quote {
  flex: 1; min-width: 240px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px 22px 24px; font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
}
.shift-quote.before { color: var(--muted); }
.shift-quote.after { color: var(--text); border-color: rgba(34,197,94,0.35); box-shadow: 0 0 0 1px rgba(34,197,94,0.18); }
.shift-tag { display: block; font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 12px; }
.shift-quote.before .shift-tag { color: var(--red); }
.shift-quote.after .shift-tag { color: var(--green); }
.shift-arrow { display: flex; align-items: center; font-size: 24px; color: var(--muted); }
@media (max-width: 680px) { .shift-arrow { transform: rotate(90deg); justify-content: center; } }

/* Releases & updates */
.update-banner {
  display: flex; align-items: center; gap: 12px; max-width: 720px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 18px; margin-bottom: 28px;
}
.update-banner svg { color: var(--blue); flex-shrink: 0; }
.update-banner p { font-size: 14px; color: var(--muted); margin: 0; }
.release-list { list-style: none; max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.rel-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.rel-head { display: flex; align-items: center; gap: 10px; }
.rel-ver { font-family: var(--mono); font-size: 14px; color: var(--text); font-weight: 500; }
.rel-badge {
  font-size: 11px; font-weight: 600; color: var(--green);
  border: 1px solid var(--green); border-radius: 999px; padding: 1px 9px;
}
.rel-date { margin-left: auto; font-size: 12.5px; color: var(--muted); font-family: var(--mono); }
.rel-title { font-size: 14.5px; font-weight: 600; color: var(--text); margin: 10px 0 4px; }
.rel-notes { margin: 8px 0 0; padding-left: 18px; }
.rel-notes li { font-size: 13.5px; color: var(--muted); margin-bottom: 5px; line-height: 1.5; }
@media (max-width: 680px) { .rel-date { margin-left: 0; width: 100%; } .rel-head { flex-wrap: wrap; } }

/* Showcase 2: system map diagram mock */
.mock-diagram { padding: 18px 20px 8px; }
.mock-diagram svg { width: 100%; height: auto; display: block; }
.dg-edges { color: var(--muted); }
.dg-edge { stroke: #2A3B50; stroke-width: 1.6; fill: none; marker-end: url(#dg-arrow); }
.dg-edge.dash { stroke-dasharray: 5 4; stroke: var(--violet); }
.dg-node rect { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.dg-node.accent rect { stroke: var(--blue); }
.dg-node.green rect { stroke: var(--green); }
.dg-node.ext rect { stroke: var(--violet); stroke-dasharray: 5 4; fill: rgba(124,92,252,0.06); }
.dg-node text { fill: var(--text); font-family: var(--font); font-size: 14px; font-weight: 600; }
.dg-node text.sub { fill: var(--muted); font-size: 11px; font-weight: 500; }

/* ── Repositioning sections ─────────────────────────────────────────────── */

/* What OpenThunder is / is not */
.isnot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.isnot-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px; }
.isnot-card.is { border-color: rgba(34,197,94,0.35); }
.isnot-card.isnot { border-color: rgba(100,116,139,0.4); }
.isnot-head { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.isnot-mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.isnot-mark.yes { background: rgba(34,197,94,0.15); color: var(--green); }
.isnot-mark.no { background: rgba(100,116,139,0.18); color: var(--muted); }
.isnot-card ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.isnot-card li { font-size: 14px; color: var(--text); padding-left: 16px; position: relative; }
.isnot-card.is li::before { content: '\2713'; position: absolute; left: 0; color: var(--green); }
.isnot-card.isnot li::before { content: '\00d7'; position: absolute; left: 0; color: var(--muted); }

/* Use OpenThunder when */
.usewhen-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.usewhen { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; font-size: 14px; color: var(--text); position: relative; padding-left: 38px; }
.usewhen::before { content: '\2192'; position: absolute; left: 16px; top: 17px; color: var(--blue); font-weight: 700; }

/* Comparison table */
.cmp-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { text-align: left; padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--border); }
.cmp th { color: var(--muted); font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; background: var(--surface2); }
.cmp td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.cmp tr:last-child td { border-bottom: none; }
.cmp tr.cmp-self td { background: rgba(59,130,246,0.08); }
.cmp tr.cmp-self td:first-child { color: var(--blue); }

/* What you get */
.give-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.give-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.give-card h3 { font-size: 15px; margin-bottom: 8px; }
.give-card p { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* Turn any repo into a mastery path */
.mp-card { max-width: 720px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 28px; }
.mp-lead { font-weight: 600; margin-bottom: 14px; }
.mp-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 24px; }
.mp-list li { font-size: 14px; color: var(--text); padding-left: 18px; position: relative; }
.mp-list li::before { content: '\2713'; position: absolute; left: 0; color: var(--violet); }
.brand-line { margin-top: 22px; font-size: 16px; font-weight: 600; color: var(--text); }

/* From scan to mastery */
.loop-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: loop; }
.loop-steps li { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.loop-n { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 999px; background: rgba(59,130,246,0.14); color: var(--blue); font-weight: 700; font-size: 14px; }
.loop-steps h4 { font-size: 14px; margin-bottom: 4px; }
.loop-steps p { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

/* Free to paid + final CTA */
.freepaid { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 30px 32px; text-align: center; }
.freepaid h2 { margin-bottom: 12px; }
.freepaid p { max-width: 720px; margin: 0 auto; color: var(--muted); font-size: 15px; line-height: 1.6; }
.final-cta { text-align: center; }
.final-actions { justify-content: center; }
.final-cta .brand-line { margin-top: 20px; }

@media (max-width: 860px) {
  .isnot-grid { grid-template-columns: 1fr; }
  .usewhen-grid { grid-template-columns: 1fr; }
  .give-grid { grid-template-columns: 1fr 1fr; }
  .loop-steps { grid-template-columns: 1fr; }
  .mp-list { grid-template-columns: 1fr; }
}

/* Footer brand logo */
.footer-brand { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.footer-logo { max-width: 240px; height: auto; opacity: .85; display: block; }
@media (max-width: 680px) { .footer-logo { max-width: 180px; margin: 0 auto; } .footer-brand { text-align: center; } }

/* Secondary download link (e.g. Linux .deb) next to the primary button */
.dl-extra { display: inline-flex; align-items: center; justify-content: center; padding: 10px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600; border: 1px solid var(--border); color: var(--muted); }
.dl-extra:hover { border-color: var(--blue); color: var(--text); }
