:root {
  --bg: #fbfaf8;
  --surface: #ffffff;
  --surface-2: #f3f1ec;
  --text: #1c1d21;
  --muted: #5d6068;
  --line: #e4e1da;
  --accent: #d6245f;
  --accent-soft: #fbe6ee;
  --ink: #12233f;
  --radius: 14px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111318;
    --surface: #181b22;
    --surface-2: #1f232c;
    --text: #eceef2;
    --muted: #a3a8b3;
    --line: #2c313c;
    --accent: #ff5a8f;
    --accent-soft: #3a1a27;
    --ink: #eceef2;
  }
}
:root[data-theme="dark"] {
  --bg: #111318;
  --surface: #181b22;
  --surface-2: #1f232c;
  --text: #eceef2;
  --muted: #a3a8b3;
  --line: #2c313c;
  --accent: #ff5a8f;
  --accent-soft: #3a1a27;
  --ink: #eceef2;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

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

/* Header */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.brand span { color: var(--accent); }
nav.main { display: flex; gap: 22px; font-size: 15px; }
nav.main a { color: var(--muted); }
nav.main a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 760px) { nav.main { display: none; } }

.btn {
  display: inline-block; padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; font-size: 15px;
  border: 1px solid var(--accent);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.small { padding: 8px 16px; font-size: 14px; }

/* Sections */
section { padding: 84px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  color: var(--accent); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin: 0 0 10px;
}
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.2; }
h1 { font-size: clamp(34px, 5.4vw, 56px); margin: 0 0 20px; }
h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 14px; }
h3 { font-size: 19px; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; }
.section-intro { color: var(--muted); max-width: 640px; margin: 0 0 40px; }

/* Hero */
.hero { padding: 96px 0 84px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.stat { border-top: 2px solid var(--accent); padding-top: 12px; }
.stat b { display: block; font-size: 28px; color: var(--ink); }
.stat span { color: var(--muted); font-size: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cards */
.grid { display: grid; gap: 18px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid.three, .grid.two { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px;
}
.card p { margin: 0; color: var(--muted); }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.card .num { font-family: "JetBrains Mono", monospace; color: var(--accent); font-size: 13px; margin-bottom: 14px; display: block; }

/* Pricing */
.price-card { display: flex; flex-direction: column; }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.price { font-size: 34px; font-weight: 700; color: var(--ink); margin: 10px 0 2px; }
.price small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-card ul { flex: 1; margin-bottom: 22px; }
.note { font-size: 14px; color: var(--muted); margin-top: 22px; }

/* Process */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { counter-increment: s; padding: 22px; background: var(--surface-2); border-radius: var(--radius); }
.step::before {
  content: "0" counter(s); font-family: "JetBrains Mono", monospace;
  color: var(--accent); font-weight: 700; display: block; margin-bottom: 8px;
}
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* Timeline */
.timeline { display: grid; gap: 0; }
.job { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 26px 0; border-top: 1px solid var(--line); }
.job:first-child { border-top: 0; padding-top: 0; }
.job .when { font-family: "JetBrains Mono", monospace; font-size: 13px; color: var(--muted); }
.job .where { font-weight: 600; color: var(--text); font-size: 15px; }
.job h3 { margin-bottom: 4px; }
.job ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
@media (max-width: 700px) { .job { grid-template-columns: 1fr; gap: 6px; } }

/* Skills */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-family: "JetBrains Mono", monospace; font-size: 13px;
  padding: 6px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text);
}

/* Contact */
.contact-box {
  background: var(--ink); color: #fff; border-radius: 20px; padding: 48px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px;
}
:root[data-theme="dark"] .contact-box { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .contact-box { background: var(--surface-2); } }
.contact-box h2 { color: #fff; }
.contact-box p { color: #c9cfdb; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: grid; gap: 2px; }
.contact-list small { color: #9aa3b5; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.contact-list a, .contact-list span { color: #fff; font-weight: 600; word-break: break-word; }
@media (max-width: 760px) { .contact-box { grid-template-columns: 1fr; padding: 32px 22px; } }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--accent); font-weight: 700; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: 10px 0 0; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px 0; font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer.site a { color: var(--muted); }

/* Legal pages */
.legal { padding: 64px 0 84px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--text); }
.legal .updated { color: var(--muted); font-size: 14px; }
