:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --line: rgba(255, 255, 255, 0.08);
  --text: #ededef;
  --muted: #9a9aa3;
  --accent: #7c9cff;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, ui-serif, serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.nav, main > section, .footer {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { color: var(--accent); }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 14px; color: var(--muted); }
.nav nav a:hover { color: var(--text); }
.nav-cta { color: var(--text) !important; border: 1px solid var(--line); padding: 7px 14px; border-radius: 999px; }
.nav-cta:hover { border-color: rgba(255,255,255,0.24); }

/* Hero */
.hero { padding-top: 120px; padding-bottom: 120px; }
.eyebrow { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
h1 em { font-style: italic; color: var(--accent); }
.lede { max-width: 580px; margin-top: 32px; font-size: 19px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 44px; }
.btn { display: inline-flex; align-items: center; height: 48px; padding: 0 22px; border-radius: 999px; font-size: 15px; font-weight: 500; transition: background 160ms ease, border-color 160ms ease; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #ffffff; }
.btn-ghost { border: 1px solid var(--line); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.24); }

/* Sections */
main > section:not(.hero) { padding-top: 96px; padding-bottom: 96px; border-top: 1px solid var(--line); }
.section-title { font-size: 13px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 48px; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.grid article { background: var(--bg); padding: 40px 32px 44px; }
.num { font-family: var(--serif); font-style: italic; color: var(--accent); font-size: 18px; }
.grid h3 { font-family: var(--serif); font-weight: 400; font-size: 34px; letter-spacing: -0.015em; margin: 18px 0 14px; }
.grid p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.steps li { counter-increment: s; display: flex; flex-direction: column; gap: 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s, decimal-leading-zero); font-size: 13px; color: var(--accent); font-variant-numeric: tabular-nums; }
.steps strong { font-weight: 500; font-size: 18px; }
.steps span { color: var(--muted); font-size: 15px; }

.about-text { font-family: var(--serif); font-size: clamp(24px, 3vw, 34px); line-height: 1.35; letter-spacing: -0.01em; max-width: 900px; }

.contact { text-align: left; }
.contact h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 5vw, 60px); letter-spacing: -0.02em; line-height: 1.08; max-width: 760px; }
.contact-mail { display: inline-block; margin-top: 32px; font-size: 20px; color: var(--accent); border-bottom: 1px solid rgba(124,156,255,0.35); padding-bottom: 2px; }
.contact-mail:hover { border-bottom-color: var(--accent); }

.footer { display: flex; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }

@media (max-width: 880px) {
  .grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .nav nav a:not(.nav-cta) { display: none; }
  .hero { padding-top: 72px; padding-bottom: 88px; }
}
@media (max-width: 520px) {
  .steps { grid-template-columns: 1fr; }
  .footer { flex-direction: column; }
}
