*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #0057ff;
  --blue-hover: #004de0;
  --blue-faint: rgba(0,87,255,.09);
  --green: #00b862;
  --display: 'Barlow Condensed', sans-serif;
  --body: 'DM Sans', sans-serif;
  --mono: 'DM Mono', monospace;
}
[data-theme="dark"] {
  --bg: #090909;
  --bg-2: #111111;
  --bg-3: #181818;
  --border: rgba(255,255,255,.1);
  --border-hi: rgba(255,255,255,.18);
  --text: #f0f0f0;
  --text-2: #cccccc;
  --text-3: #999999;
  --nav-bg: rgba(9,9,9,.94);
}
[data-theme="light"] {
  --bg: #f2f4f7;
  --bg-2: #ffffff;
  --bg-3: #edf0f4;
  --border: rgba(0,0,0,.09);
  --border-hi: rgba(0,0,0,.17);
  --text: #0d0d0d;
  --text-2: #2a2a2a;
  --text-3: #5a5a5a;
  --nav-bg: rgba(242,244,247,.95);
  --blue-faint: rgba(0,87,255,.06);
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg); color: var(--text); font-family: var(--body);
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
nav {
  position: sticky; top: 0; z-index: 10; height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; background: var(--nav-bg);
  border-bottom: 1px solid var(--border); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand strong { font-family: var(--display); font-size: 19px; letter-spacing: .06em; color: var(--blue); }
.brand span { font-family: var(--mono); color: var(--text-3); font-size: 11px; letter-spacing: .12em; border-left: 1px solid var(--border-hi); padding-left: 14px; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.hamburger, .mobile-menu { display: none; }
.hamburger {
  width: 42px; height: 42px; border-radius: 6px;
  background: transparent; border: 1px solid var(--border-hi);
  color: var(--text); cursor: pointer; align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
}
.hamburger span {
  width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .15s, opacity .15s;
}
nav.menu-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
nav.menu-open .hamburger span:nth-child(2) { opacity: 0; }
nav.menu-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: absolute; top: calc(100% + 8px); left: 1rem; right: 1rem;
  padding: 10px; border: 1px solid var(--border); border-radius: 8px;
  background: var(--bg-2); box-shadow: 0 16px 42px rgba(0,0,0,.35);
}
.mobile-menu a, .mobile-menu button {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border-radius: 6px; color: var(--text-2);
  text-decoration: none; font-size: 14px; border: none; background: transparent;
  font-family: var(--body); cursor: pointer; text-align: left;
}
.mobile-menu a:hover, .mobile-menu button:hover { background: var(--blue-faint); color: var(--blue); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 18px;
  border-radius: 4px; font-size: 14px; font-weight: 500; text-decoration: none;
  border: 1px solid var(--border-hi); color: var(--text-2); line-height: 1;
}
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.hero {
  position: relative; overflow: hidden; padding: 92px 2.5rem 70px;
  border-bottom: 1px solid var(--border);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 70% 55% at 60% 20%, rgba(0,87,255,.12), transparent 68%);
}
.hero-inner, main, footer { position: relative; z-index: 1; max-width: 900px; margin: 0 auto; }
.eyebrow {
  font-family: var(--mono); color: var(--blue); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: .02em; line-height: 1.02; }
h1 { font-size: clamp(46px, 7vw, 80px); margin-bottom: 24px; }
h1 em { color: var(--blue); font-style: normal; }
.lead { max-width: 680px; color: var(--text-3); font-size: 18px; line-height: 1.8; }
main { padding: 68px 2.5rem 88px; }
article { max-width: 780px; }
section { margin-top: 46px; }
h2 { font-size: 38px; margin-bottom: 14px; }
h3 { font-size: 27px; margin: 28px 0 8px; }
p, li { color: var(--text-2); margin-bottom: 16px; }
ul, ol { padding-left: 22px; margin-bottom: 18px; }
a { color: var(--blue); }
.note {
  margin: 28px 0; padding: 18px 20px; border: 1px solid rgba(0,87,255,.35);
  background: rgba(0,87,255,.09); border-radius: 8px; color: var(--text-2);
}
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.card { border: 1px solid var(--border); background: var(--bg-2); border-radius: 8px; padding: 20px; }
.card h3 { margin-top: 0; }
.cta {
  margin-top: 48px; padding: 28px; border-radius: 8px;
  border: 1px solid rgba(0,87,255,.35); background: var(--bg-2);
}
.cta p { color: var(--text-3); }
footer {
  border-top: 1px solid var(--border); padding: 34px 2.5rem;
  font-family: var(--mono); color: var(--text-3); font-size: 12px;
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  nav {
    height: 64px; min-height: 64px; gap: 10px; padding: 0 1rem;
    overflow: visible;
  }
  .brand { min-width: 0; padding-right: 132px; }
  .brand strong { font-size: 16px; white-space: nowrap; }
  .brand span { display: none; }
  .nav-actions {
    position: fixed; left: calc(100vw - 58px); top: 12px; transform: none; z-index: 11;
    width: 42px; flex-shrink: 0; display: flex; gap: 0;
  }
  .nav-actions > * { min-width: 0; }
  .nav-actions .btn:first-child { display: none; }
  .nav-actions .btn-primary { display: none; }
  .hamburger { display: flex; background: var(--blue); border-color: var(--blue); color: #fff; }
  .mobile-menu { position: fixed; top: 72px; left: 1rem; right: 1rem; z-index: 11; }
  nav.menu-open .mobile-menu { display: grid; gap: 4px; }
  .btn { min-height: 42px; padding: 10px 14px; text-align: center; }
  .hero { padding: 70px 1.25rem 52px; }
  h1 { font-size: 38px; line-height: 1; margin-bottom: 20px; letter-spacing: 0; }
  h2 { font-size: 31px; line-height: 1.05; }
  h3 { font-size: 24px; }
  .lead { font-size: 16px; line-height: 1.75; }
  main { padding-top: 54px; padding-bottom: 70px; }
  main, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .grid { grid-template-columns: 1fr; }
  .card, .note, .cta { padding: 18px; }
  .cta .btn { width: 100%; }
}
@media (max-width: 380px) {
  h1 { font-size: 35px; }
  h2 { font-size: 28px; }
}
