:root {
  --bg: #0a0a0f;
  --bg-alt: #12121a;
  --card: #16161f;
  --line: #262633;
  --text: #e8e8f0;
  --muted: #9a9ab0;
  --accent: #ff4f7b;
  --accent-2: #7c5cff;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; }
[x-cloak] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity .25s ease;
}
body.is-ready { opacity: 1; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { max-width: 720px; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { font-weight: 800; text-decoration: none; letter-spacing: -.01em; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero {
  padding: clamp(72px, 12vw, 140px) 0;
  background:
    radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--accent-2) 25%, transparent), transparent 70%),
    radial-gradient(50% 70% at 0% 100%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%);
}
.eyebrow { color: var(--accent); font-weight: 600; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 4rem); max-width: 18ch; letter-spacing: -.02em; }
.lead { color: var(--muted); font-size: 1.15rem; max-width: 56ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.btn {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font: inherit;
}
.btn--primary { background: var(--accent); color: #fff; font-weight: 600; }
.btn--primary:hover { filter: brightness(1.1); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section p { color: var(--muted); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 28px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: transform .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.card__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
  background: color-mix(in srgb, var(--accent-2) 20%, transparent); color: var(--text);
  font-weight: 700; margin-bottom: 14px;
}
.card h3 { font-size: 1.15rem; }
.card p { margin: 0; }

.contact-list { list-style: none; padding: 0; margin: 20px 0; font-size: 1.1rem; }
.contact-list a { color: var(--text); }

.form { display: grid; gap: 14px; margin-top: 24px; }
.form label { display: grid; gap: 6px; font-weight: 500; }
.form input, .form textarea {
  font: inherit; color: var(--text); background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form .btn { justify-self: start; }

.state { text-align: center; padding: 48px 16px; color: var(--muted); }

.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .9rem; }

/* Mobile */
@media (max-width: 720px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 16px; border-top: 1px solid var(--line); }
}

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