:root {
  --bg: #0b0f17;
  --bg-alt: #0f1522;
  --panel: #131b2b;
  --line: #1f2a3d;
  --text: #e7edf6;
  --muted: #9aa7bd;
  --brand: #f5a524;
  --brand-2: #38bdf8;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #16233b 0%, var(--bg) 55%);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.btn {
  display: inline-block;
  background: var(--brand);
  color: #1a1204;
  font-weight: 700;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .12s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); background: #ffb638; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); }
.btn-sm { padding: .5rem .9rem; font-size: .9rem; }

/* nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem clamp(1rem, 5vw, 3rem);
  background: rgba(11,15,23,.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.15rem; }
.nav-links { display: flex; align-items: center; gap: 1.4rem; }
.nav-links a { color: var(--muted); font-weight: 600; }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #1a1204; }

/* hero */
.hero { padding: clamp(3.5rem, 9vw, 7rem) clamp(1rem, 5vw, 3rem) 3rem; }
.hero-inner { max-width: var(--maxw); margin: 0 auto; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .18em; font-size: .78rem;
  font-weight: 700; color: var(--brand-2); margin-bottom: 1rem;
}
h1 { font-size: clamp(2.2rem, 6vw, 4rem); max-width: 16ch; }
.lede { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 58ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 2.5rem; }
.stats { display: flex; flex-wrap: wrap; gap: 2.5rem; margin: 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats dt { color: var(--muted); font-size: .85rem; margin-bottom: .2rem; }
.stats dd { margin: 0; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.02em; }

/* sections */
.section { padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 5vw, 3rem); max-width: var(--maxw); margin: 0 auto; }
.section-alt { background: var(--bg-alt); max-width: none; }
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-head { max-width: 46ch; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.section-head p { color: var(--muted); font-size: 1.1rem; margin: 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; transition: border-color .2s ease, transform .12s ease;
}
.card:hover { border-color: #33456a; transform: translateY(-2px); }
.card .ic { font-size: 1.7rem; margin-bottom: .6rem; }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }

.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; }
.tech-item h3 { font-size: 1.15rem; color: var(--brand); }
.tech-item p { color: var(--muted); margin: 0; }

.about { max-width: 60ch; }
.about h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
.about p { color: var(--muted); font-size: 1.08rem; }
.about .btn { margin-top: .5rem; }

/* footer */
.footer { border-top: 1px solid var(--line); background: var(--bg-alt); }
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 2.5rem clamp(1rem, 5vw, 3rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem;
}
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer .fine { color: #6b7890; font-size: .82rem; flex-basis: 100%; margin: .5rem 0 0; }

/* legal pages */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(3rem, 7vw, 5rem) clamp(1rem, 5vw, 2rem); }
.legal h1 { font-size: 2.2rem; }
.legal h2 { font-size: 1.25rem; margin-top: 2rem; }
.legal p, .legal li { color: var(--muted); }
.legal a { color: var(--brand-2); }
.legal .back { display: inline-block; margin-bottom: 2rem; color: var(--muted); font-weight: 600; }

@media (max-width: 640px) {
  .nav-links a:not(.btn) { display: none; }
  .stats { gap: 1.5rem; }
  .stats dd { font-size: 1.4rem; }
}
