:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --card: #151924;
  --line: #232838;
  --text: #e8eaf0;
  --muted: #9aa1b2;
  --accent: #7c8cff;
  --accent-2: #4fd1c5;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #a3aeff; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent); color: #000; padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; letter-spacing: 0.02em; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 6px; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 15px;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--bg-2); }
.nav a.cta { color: #0b0d12; background: var(--accent); font-weight: 600; }
.nav a.cta:hover { background: #a3aeff; color: #0b0d12; }

/* Hero */
.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 640px; height: 640px;
  background: radial-gradient(closest-side, rgba(124, 140, 255, 0.22), transparent);
  pointer-events: none;
}
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: 16px; font-weight: 600;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); max-width: 18ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 10px;
  font-weight: 600; text-decoration: none; border: 1px solid var(--line); color: var(--text);
  background: var(--bg-2); font-size: 16px; cursor: pointer; font-family: inherit;
}
.btn:hover { border-color: #3a4160; color: var(--text); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #0b0d12; }
.btn.primary:hover { background: #a3aeff; color: #0b0d12; }

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--muted); max-width: 62ch; margin: 0; }

.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(124, 140, 255, 0.12); color: var(--accent); margin-bottom: 16px;
}
.card .icon svg { width: 22px; height: 22px; }

/* Project feature */
.project {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 32px;
}
.project img { border-radius: 12px; border: 1px solid var(--line); }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 4px 10px; border-radius: 999px; background: rgba(79, 209, 197, 0.12); color: var(--accent-2);
  margin-bottom: 12px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; padding: 0; list-style: none; }
.tags li { font-size: 13px; padding: 4px 10px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.feature-list { padding-left: 20px; color: var(--muted); margin: 0 0 24px; }
.feature-list li { margin-bottom: 6px; }
.feature-list strong { color: var(--text); font-weight: 600; }

/* Steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: step; }
.steps li .card::before {
  content: counter(step, decimal-leading-zero); display: block; font-weight: 700; color: var(--accent); margin-bottom: 8px;
  font-variant-numeric: tabular-nums;
}

/* CTA band */
.cta-band {
  text-align: center; padding: 56px 24px; border-radius: 20px;
  background: linear-gradient(135deg, rgba(124, 140, 255, 0.16), rgba(79, 209, 197, 0.10));
  border: 1px solid var(--line);
}
.cta-band p { color: var(--muted); max-width: 56ch; margin: 0 auto 24px; }

/* Forms */
.form { display: grid; gap: 18px; }
.form .row { display: grid; gap: 18px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
label { font-weight: 600; font-size: 15px; }
.hint { font-size: 14px; color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line);
  border-radius: 10px; padding: 12px 14px;
}
textarea { min-height: 170px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(124, 140, 255, 0.25); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.check input { width: auto; margin-top: 5px; }
.notice { padding: 14px 16px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); }
.notice.error { border-color: #a14a4a; background: rgba(161, 74, 74, 0.15); }

.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin-top: 40px; font-size: 1.4rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .project { grid-template-columns: 1fr; padding: 24px; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .site-header .wrap { height: auto; padding-top: 10px; padding-bottom: 10px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
