/* Code-Wizard — static site styles (no build step, no frameworks) */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --ink: #0f172a;
  --ink-soft: #475569;
  --line: #e2e8f0;
  --brand: #5b4bdb;
  --brand-ink: #ffffff;
  --brand-soft: #eeebff;
  --accent: #14b8a6;
  --hero-1: #0b1023;
  --hero-2: #1b1846;
  --radius: 14px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 12px;
}
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 680px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 650; font-size: .98rem;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: #4a3bc7; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 35, .88); backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 26px; align-items: center; }
.nav-links a { color: #cbd5e1; font-size: .94rem; font-weight: 550; }
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links .btn { color: #fff; padding: 8px 16px; }

/* Mobile nav (CSS only) */
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; color: #fff; }
@media (max-width: 860px) {
  .nav-burger { display: block; }
  .nav-links {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: flex-start;
    gap: 0; padding: 8px 20px 20px; background: var(--hero-1); display: none;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .nav-links a { padding: 10px 0; width: 100%; }
  .nav-links .btn { margin-top: 8px; width: auto; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
}

/* Hero */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(91,75,219,.55), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(20,184,166,.28), transparent 60%),
    linear-gradient(160deg, var(--hero-1), var(--hero-2));
  padding: 104px 0 96px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero p.lead { color: #c7d2fe; }
.hero .grad {
  background: linear-gradient(90deg, #a5b4fc, #5eead4);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-badges { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 34px; color: #94a3b8; font-size: .9rem; }
.hero-badges span::before { content: "✓"; color: var(--accent); margin-right: 6px; font-weight: 800; }

.code-card {
  background: rgba(15, 23, 42, .75); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius); box-shadow: 0 30px 60px rgba(0,0,0,.35); overflow: hidden;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem;
}
.code-card .bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.code-card .bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.code-card pre { margin: 0; padding: 18px 20px; color: #e2e8f0; white-space: pre-wrap; line-height: 1.7; }
.code-card .k { color: #a5b4fc; } .code-card .s { color: #5eead4; } .code-card .c { color: #64748b; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero { padding: 72px 0; } }

/* Cards & grids */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 960px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
}
.card p { color: var(--ink-soft); margin: 0; }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 16px;
}
.icon svg { width: 22px; height: 22px; }
.section-head { margin-bottom: 44px; }

/* Split feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--ink-soft); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b4bdb' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist strong { color: var(--ink); }

.video {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); background: #000;
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Steps */
.steps { counter-reset: step; }
.step .num {
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: .9rem; margin-bottom: 14px;
}

/* Case studies */
.case { display: flex; flex-direction: column; }
.case .tag {
  display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand);
  background: var(--brand-soft); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; align-self: flex-start;
}
.case ul { margin: 14px 0 0; padding-left: 18px; color: var(--ink-soft); }
.case ul li { margin-bottom: 6px; }

/* Industries / regions */
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.pill {
  padding: 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line);
  font-weight: 600; font-size: .92rem;
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--hero-2), var(--brand)); color: #fff; border-radius: 20px;
  padding: 52px; display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap;
}
.cta-band p { color: #e0e7ff; margin: 0; max-width: 560px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); }
.contact-lines { display: grid; gap: 6px; font-size: .96rem; }
.contact-lines a { color: #fff; font-weight: 650; }
@media (max-width: 640px) { .cta-band { padding: 32px 24px; } }

/* Footer */
.site-footer { background: var(--hero-1); color: #94a3b8; padding: 56px 0 28px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .9rem; margin: 0 0 12px; }
.site-footer a { color: #cbd5e1; display: block; margin-bottom: 8px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08); margin-top: 40px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* Legal pages */
.page-hero { background: linear-gradient(160deg, var(--hero-1), var(--hero-2)); color: #fff; padding: 64px 0 48px; }
.page-hero p { color: #c7d2fe; margin: 0; }
.legal { max-width: 800px; padding: 56px 20px 88px; margin: 0 auto; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal p, .legal li { color: #334155; }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 6px; }
.note {
  background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 14px 18px;
  border-radius: 8px; color: var(--ink); margin: 24px 0;
}

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound .big { font-size: 5rem; font-weight: 900; color: var(--brand); line-height: 1; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
