:root {
  --bg: #fafaf9;
  --surface: #ffffff;
  --text: #1c1917;
  --muted: #57534e;
  --border: #e7e5e4;
  --accent: #2563eb;
  --accent-text: #ffffff;
  --radius: 14px;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0a09;
    --surface: #1c1917;
    --text: #f5f5f4;
    --muted: #a8a29e;
    --border: #292524;
    --accent: #60a5fa;
    --accent-text: #0c0a09;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* Header */
header {
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { font-weight: 700; font-size: 1.1rem; color: var(--text); letter-spacing: -0.01em; }
.logo:hover { text-decoration: none; }
nav a { color: var(--muted); margin-left: 24px; font-size: 0.95rem; }
nav a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 96px 0 80px; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
}
.hero p { color: var(--muted); font-size: 1.15rem; margin-top: 20px; max-width: 56ch; }

.btn {
  display: inline-block;
  margin-top: 32px;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
}
.btn:hover { text-decoration: none; opacity: 0.9; }

/* Sections */
section { padding: 64px 0; }
section h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 8px; }
section .lead { color: var(--muted); margin-bottom: 32px; max-width: 60ch; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.97rem; }

.steps { counter-reset: step; }
.steps .card h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-right: 10px;
  border-radius: 50%;
  background: var(--accent); color: var(--accent-text);
  font-size: 0.85rem;
}

.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.9rem;
  color: var(--muted);
}

.about p { max-width: 65ch; color: var(--muted); }

.contact-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.contact-box p { color: var(--muted); }
.contact-box .mail { font-size: 1.25rem; font-weight: 600; display: inline-block; margin-top: 12px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 32px; }
footer .container {
  display: flex; flex-wrap: wrap; gap: 16px;
  justify-content: space-between;
  color: var(--muted); font-size: 0.9rem;
}
footer a { color: var(--muted); margin-left: 20px; }
footer a:first-child { margin-left: 0; }

/* Legal pages */
.legal { padding: 64px 0; max-width: 760px; }
.legal h1 { font-size: 2rem; margin-bottom: 32px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 8px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 8px; }
.legal ul { padding-left: 20px; }

@media (max-width: 600px) {
  nav a { margin-left: 16px; }
  nav a.hide-mobile { display: none; }
  .hero { padding: 64px 0 48px; }
  .contact-box { padding: 28px 20px; }
}
