:root {
  --bg: #0b1220;
  --bg-alt: #0f1a2e;
  --card: #14203a;
  --line: #22314f;
  --text: #e6edf7;
  --muted: #9fb0c9;
  --accent: #22d3ee;
  --accent-2: #6366f1;
  --ok: #34d399;
  --warn: #fbbf24;
  --radius: 14px;
  --maxw: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #04121a; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(11, 18, 32, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 1.15rem; }
.brand b { color: var(--accent); font-weight: 700; }
.brand:hover { text-decoration: none; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--text); transition: transform .2s, opacity .2s; }

/* buttons */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 1rem; cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #04121a; transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(34, 211, 238, .25); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-sm { padding: 8px 14px; font-size: .9rem; color: #04121a !important; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: var(--accent); }

/* hero */
.hero { padding: 72px 0 56px; background:
  radial-gradient(900px 400px at 85% -10%, rgba(99, 102, 241, .25), transparent 60%),
  radial-gradient(700px 360px at 0% 0%, rgba(34, 211, 238, .14), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 700; margin-bottom: .8em; }
.grad { background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0; }
.hero-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; color: var(--muted); font-size: .95rem; }
.hero-points li::before { content: "\2713"; color: var(--ok); margin-right: 10px; }
.term { background: #08101d; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #0c172a; color: var(--muted); font-size: .8rem; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: inline-block; }
.term-bar span { margin-left: 8px; }
.term pre { margin: 0; padding: 18px; overflow-x: auto; font: 13.5px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.term .c { color: #64748b; } .term .k { color: var(--accent-2); } .term .s { color: var(--text); }
.term .ok { color: var(--ok); } .term .w { color: var(--warn); }

/* sections */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head p:last-child { color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: var(--accent); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: .96rem; }
.ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; font-size: 1.4rem; margin-bottom: 14px;
  background: linear-gradient(135deg, rgba(34, 211, 238, .18), rgba(99, 102, 241, .18)); color: var(--accent); }
.tags { color: var(--accent) !important; font-size: .8rem !important; margin: 14px 0 0; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.split p { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 16px 62px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 16px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #04121a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: .95rem; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: f; }
.flow li { counter-increment: f; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: relative; }
.flow li::before { content: counter(f, decimal-leading-zero); color: var(--accent); font-size: .8rem; font-weight: 700; }
.flow b { display: block; margin-top: 2px; }
.flow span { color: var(--muted); font-size: .9rem; }

.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.check { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; color: var(--muted); }
.check li { padding-left: 28px; position: relative; }
.check li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }

.stack { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.stack h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips span { border: 1px solid var(--line); background: var(--card); padding: 5px 12px; border-radius: 999px; font-size: .88rem; }

details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; color: var(--accent); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-grid > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 20px 0 0; color: var(--muted); display: grid; gap: 8px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.field { margin-bottom: 16px; }
label { display: block; font-size: .9rem; margin-bottom: 6px; font-weight: 600; }
.opt { color: var(--muted); font-weight: 400; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line); background: #0b1526; color: var(--text); font: inherit; }
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(34, 211, 238, .2); }
.field.invalid input, .field.invalid textarea { border-color: #f87171; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.status { margin: 14px 0 0; min-height: 1.4em; font-size: .95rem; }
.status.ok { color: var(--ok); } .status.err { color: #f87171; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 24px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-start; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer nav a { color: var(--muted); }
.copy { margin-top: 28px; color: var(--muted); font-size: .85rem; }

/* reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .flow { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 20px 16px; display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; text-align: center; border: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .section { padding: 56px 0; }
  .hero { padding: 48px 0 40px; }
}
@media (max-width: 480px) { .flow { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .btn { transition: none; }
}
