:root {
  --bg: #0b1220;
  --bg-2: #111b30;
  --ink: #0f172a;
  --muted: #5b6678;
  --line: #e3e8ef;
  --soft: #f5f7fb;
  --accent: #2563eb;
  --accent-2: #22d3ee;
  --radius: 14px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand:hover { text-decoration: none; }
.brand-text { font-size: 1.35rem; font-weight: 700; letter-spacing: -.03em; display: flex; flex-direction: column; line-height: 1; }
.brand-text small { font-size: .58rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: #94a3b8; margin-top: 3px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a { color: #cbd5e1; font-size: .95rem; font-weight: 500; }
.menu a:hover { color: #fff; text-decoration: none; }

.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: #fff; margin: 6px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 10px; font-weight: 600; font-size: 1rem;
  color: #fff; background: linear-gradient(135deg, var(--accent), #1d4ed8); border: 1px solid transparent;
  box-shadow: 0 8px 24px -8px rgba(37, 99, 235, .6); transition: transform .15s, box-shadow .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 12px 28px -8px rgba(37, 99, 235, .7); }
.btn-small { padding: 9px 18px; font-size: .92rem; color: #fff !important; box-shadow: none; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); box-shadow: none; }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(34, 211, 238, .18), transparent 60%),
    radial-gradient(700px 420px at 0% 0%, rgba(37, 99, 235, .25), transparent 60%),
    var(--bg);
  padding: 96px 0 88px;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.hero .eyebrow { color: var(--accent-2); }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
.grad { background: linear-gradient(90deg, #60a5fa, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.18rem; color: #cbd5e1; max-width: 560px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 34px; }
.hero-points li { position: relative; padding-left: 26px; color: #94a3b8; font-size: .97rem; margin-bottom: 8px; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--accent-2); border-bottom: 2px solid var(--accent-2); transform: rotate(-45deg); }

.code-card {
  background: linear-gradient(180deg, #14213d, #0e1830);
  border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); overflow: hidden;
}
.code-top { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.code-top i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.code-top i:nth-child(1) { background: #f87171; }
.code-top i:nth-child(2) { background: #fbbf24; }
.code-top i:nth-child(3) { background: #34d399; }
.code-top span { margin-left: 10px; font: .8rem var(--mono); color: #64748b; }
.code-card pre { margin: 0; padding: 22px 22px 26px; font: .92rem/1.8 var(--mono); color: #cbd5e1; overflow-x: auto; }
.c-k { color: #7dd3fc; }
.c-s { color: #4ade80; }
.c-m { color: #64748b; }

/* Strip */
.strip { background: var(--bg-2); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); }
.strip-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip-grid div { display: flex; flex-direction: column; }
.strip-grid strong { font-size: 1rem; }
.strip-grid span { color: #94a3b8; font-size: .88rem; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--soft); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2, .about h2, .contact h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: #c7d4ea; box-shadow: 0 18px 40px -18px rgba(15, 23, 42, .25); }
.card h3 { font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(34, 211, 238, .18));
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.steps li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.step-n { display: block; font: 700 .85rem var(--mono); color: var(--accent); margin-bottom: 14px; }
.steps h3 { font-size: 1.05rem; }
.steps p { color: var(--muted); font-size: .92rem; margin: 0; }

.tech { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.tech h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; background: #fff; }

.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.about p { color: var(--muted); font-size: 1.05rem; }
.values { display: grid; gap: 16px; }
.values li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 10px; padding: 18px 20px; color: var(--muted); font-size: .95rem; }
.values strong { display: block; color: var(--ink); margin-bottom: 2px; font-size: 1rem; }

.cta { background: var(--bg); color: #fff; }
.cta .eyebrow { color: var(--accent-2); }
.cta p { color: #cbd5e1; }
.contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.details { margin: 0; display: grid; gap: 14px; }
.details div { padding: 18px 22px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.details dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #64748b; margin-bottom: 4px; }
.details dd { margin: 0; color: #fff; }
.details a { color: #7dd3fc; }

/* Footer */
.site-footer { background: #070d19; color: #64748b; font-size: .88rem; padding: 26px 0; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.foot p { margin: 0; }
.foot a { color: #94a3b8; }

.notfound { background: var(--bg); color: #fff; }
.nf { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; }
.nf .eyebrow { color: var(--accent-2); }
.nf p:not(.eyebrow) { color: #cbd5e1; margin-bottom: 28px; }

:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .about, .contact { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 520px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tech { grid-template-columns: repeat(2, 1fr); }
  .strip-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid rgba(255, 255, 255, .08); padding: 8px 24px 20px;
    display: none;
  }
  .menu.open { display: flex; }
  .menu a { padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, .06); }
  .menu .btn { margin-top: 14px; text-align: center; border: 0; }
  .hero { padding: 64px 0 56px; }
  .section { padding: 64px 0; }
  .cards, .steps, .tech { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
