:root {
  --bg: #0b0b0f;
  --bg-elev: #12121a;
  --surface: #14141d;
  --border: #23232d;
  --border-strong: #2f2f3c;
  --fg: #f5f5f7;
  --muted: #9a9aa8;
  --muted-2: #71717f;
  --accent: #7c5cff;
  --accent-2: #a48bff;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --radius: 14px;
  --radius-lg: 20px;
  --wrap: 1100px;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

@supports (font-variation-settings: normal) {
  :root { --font-sans: "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(124, 92, 255, 0.08), transparent 55%);
  z-index: 0;
}

main, .footer, .nav { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; }

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

/* ---- Nav ---- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 180ms ease, border-color 180ms ease, backdrop-filter 180ms ease;
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(11, 11, 15, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom-color: var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  box-shadow: 0 0 24px rgba(124, 92, 255, 0.55);
}

.brand-name { font-size: 15px; }

.nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  transition: color 140ms ease;
}

.nav-links a:hover { color: var(--fg); }

/* ---- Hero ---- */

.hero {
  padding: 96px 0 112px;
}

.eyebrow {
  margin: 0 0 16px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.headline {
  margin: 0;
  font-size: clamp(40px, 7.5vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
}

.accent {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 60%, #e8dfff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 24px 0 0;
  max-width: 620px;
  font-size: clamp(17px, 1.9vw, 19px);
  color: var(--muted);
}

.cta-row {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease, color 140ms ease;
  will-change: transform;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 8px 32px -12px rgba(124, 92, 255, 0.7);
}

.btn-primary:hover {
  background: var(--accent-2);
}

.btn-ghost {
  color: var(--fg);
  border-color: var(--border-strong);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--muted);
  background: var(--bg-elev);
}

.btn-big {
  padding: 20px 28px;
  font-size: 18px;
  letter-spacing: -0.005em;
}

.arrow {
  display: inline-block;
  transition: transform 180ms ease;
}

.btn:hover .arrow { transform: translateX(3px); }

/* ---- Sections ---- */

section { padding: 96px 0; }

.section-head { margin-bottom: 48px; max-width: 720px; }

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.section-head .lede { margin-top: 16px; }

/* ---- Services ---- */

.services {
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.012));
}

.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 780px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

.card {
  position: relative;
  padding: 36px 32px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-index {
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.card p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
}

.chips {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
}

/* ---- About ---- */

.about { border-top: 1px solid var(--border); }

.about-inner { display: grid; gap: 32px; }

@media (min-width: 860px) {
  .about-inner { grid-template-columns: 1fr 1.4fr; align-items: start; gap: 80px; }
  .about .section-head { margin-bottom: 0; }
}

.about-body p {
  margin: 0 0 18px;
  font-size: 18px;
  color: var(--muted);
  max-width: 56ch;
}

.about-body p:last-child { margin-bottom: 0; }

/* ---- Contact ---- */

.contact {
  border-top: 1px solid var(--border);
  text-align: center;
}

.contact-inner .section-head {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
}

.contact-inner .lede { margin-left: auto; margin-right: auto; }

/* ---- Footer ---- */

.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  font-size: 13px;
  color: var(--muted-2);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

@media (min-width: 680px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 500;
}

.footer-legal {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.footer-legal .dot { color: var(--muted-2); }

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
