:root {
  --bg: #0a0e14;
  --bg-alt: #0e1420;
  --surface: #131a26;
  --surface-2: #18202e;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8edf4;
  --text-dim: #97a3b5;
  --accent: #34d399;
  --accent-2: #38bdf8;
  --accent-grad: linear-gradient(135deg, #34d399, #38bdf8);
  --radius: 16px;
  --font-body: "Inter", system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.container { width: min(1120px, 92%); margin: 0 auto; }

.accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.3s, padding 0.3s, box-shadow 0.3s;
}
.header.scrolled {
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(14px);
  padding: 12px 0;
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.logo-mark {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--accent-grad);
  color: #06131f;
  font-size: 1.15rem;
  font-weight: 800;
}
.logo-text .accent { color: transparent; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) {
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s;
}
.nav a:not(.btn):hover { color: var(--text); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; flex-direction: column; gap: 5px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 9px 18px; font-size: 0.875rem; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--accent-grad);
  color: #05131e;
  box-shadow: 0 8px 24px rgba(52, 211, 153, 0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(52, 211, 153, 0.35); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.03); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.07); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 160px 0 110px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 400px at 15% 20%, rgba(52, 211, 153, 0.12), transparent 65%),
    radial-gradient(700px 500px at 85% 30%, rgba(56, 189, 248, 0.12), transparent 65%),
    radial-gradient(500px 400px at 60% 90%, rgba(99, 102, 241, 0.08), transparent 70%);
}
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 40%, transparent 100%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; margin-bottom: 22px; }
.hero .lead { color: var(--text-dim); font-size: 1.15rem; max-width: 34em; margin-bottom: 32px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.hero-stats { display: flex; gap: 40px; list-style: none; flex-wrap: wrap; }
.hero-stats strong { display: block; font-family: var(--font-display); font-size: 1.25rem; }
.hero-stats span { color: var(--text-dim); font-size: 0.85rem; }

.code-card {
  background: rgba(19, 26, 38, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  font-size: 0.9rem;
  transform: rotate(1.2deg);
}
.code-dots { display: flex; gap: 7px; margin-bottom: 16px; }
.code-dots span { width: 11px; height: 11px; border-radius: 50%; background: #2a3547; }
.code-dots span:nth-child(1) { background: #f87171; }
.code-dots span:nth-child(2) { background: #fbbf24; }
.code-dots span:nth-child(3) { background: #34d399; }
.code-card pre { overflow-x: auto; font-family: "JetBrains Mono", "Fira Code", ui-monospace, monospace; line-height: 1.7; color: #c9d4e3; }
.c-key { color: #c084fc; }
.c-var { color: #38bdf8; }
.c-str { color: #34d399; }
.c-fn { color: #fbbf24; }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 14px; }
.section-sub { color: var(--text-dim); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(52, 211, 153, 0.35);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: rgba(52, 211, 153, 0.1);
  color: var(--accent);
  margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.94rem; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
.about-copy h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 20px; }
.about-copy p { color: var(--text-dim); margin-bottom: 18px; }
.check-list { list-style: none; margin-top: 10px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--text);
}
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--accent-grad);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9.5 17l-4.7-4.7 1.8-1.8 2.9 2.9 7.4-7.4 1.8 1.8z'/%3E%3C/svg%3E") center/14px no-repeat;
}
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.fact {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.fact h3 { font-size: 1rem; margin-bottom: 6px; color: var(--accent); }
.fact p { color: var(--text-dim); font-size: 0.9rem; }
.fact p b, .fact p strong { color: var(--text); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  list-style: none;
  counter-reset: step;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  position: relative;
  overflow: hidden;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 700;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0.55;
  display: block;
  margin-bottom: 12px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 0.9rem; }

/* ---------- CTA / Contact ---------- */
.section-cta {
  background:
    radial-gradient(600px 400px at 20% 20%, rgba(52, 211, 153, 0.08), transparent 60%),
    radial-gradient(600px 400px at 80% 80%, rgba(56, 189, 248, 0.08), transparent 60%),
    var(--bg-alt);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.cta-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 16px; }
.cta-copy > p { color: var(--text-dim); margin-bottom: 34px; }
.contact-list { list-style: none; display: grid; gap: 18px; }
.contact-list .c-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 4px;
}
.contact-list a { color: var(--text); }
.contact-list a:hover { color: var(--accent-2); }

.cta-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--text-dim); }
.field input,
.field textarea {
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.15);
}
.form-note { text-align: center; color: var(--text-dim); font-size: 0.8rem; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-name { font-family: var(--font-display); font-weight: 600; }
.footer-meta { color: var(--text-dim); font-size: 0.8rem; }
.footer-address { color: var(--text-dim); font-size: 0.85rem; text-align: center; }
.footer-copy { color: var(--text-dim); font-size: 0.85rem; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding: 140px 0 80px; }
  .hero-visual { max-width: 520px; }
  .about-grid { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-grid { grid-template-columns: 1fr; gap: 44px; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }

  .nav {
    position: fixed;
    inset: 64px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(10, 14, 20, 0.97);
    backdrop-filter: blur(14px);
    padding: 20px 6% 24px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { width: 100%; padding: 10px 0; font-size: 1.05rem; }
  .nav .btn { margin-top: 10px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 420px) {
  .about-facts { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
}
