:root {
  color-scheme: dark;
  --bg: #090b16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.075);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f5f3ff;
  --muted: #aaa9bc;
  --violet: #a790ff;
  --blue: #79c8ff;
  --green: #79e5b1;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% -20%, rgba(124, 90, 255, 0.18), transparent 42%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(110px);
  opacity: 0.13;
  pointer-events: none;
}

.ambient-one { top: 12rem; left: -17rem; background: var(--violet); }
.ambient-two { right: -18rem; top: 38rem; background: var(--blue); }

.site-header,
main,
footer {
  width: min(calc(100% - 40px), var(--max));
  margin-inline: auto;
}

.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(167, 144, 255, 0.48);
  border-radius: 50%;
  color: #d2c8ff;
  box-shadow: inset 0 0 18px rgba(167, 144, 255, 0.12);
}

nav { display: flex; gap: 30px; }
nav a { color: var(--muted); font-size: 0.88rem; transition: color 160ms ease; }
nav a:hover, nav a:focus-visible { color: var(--text); }

.hero {
  max-width: 900px;
  padding: 140px 0 112px;
}

.eyebrow,
.section-label {
  color: #c6baff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow { display: flex; align-items: center; gap: 12px; margin: 0 0 26px; }
.eyebrow span { width: 34px; height: 1px; background: var(--violet); }

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 30px;
  font-size: clamp(3.5rem, 9vw, 7.7rem);
  line-height: 0.91;
  letter-spacing: -0.065em;
  font-weight: 650;
}

h1 em {
  font-style: normal;
  color: transparent;
  background: linear-gradient(95deg, #a790ff 8%, #8fcfff 76%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 42px; }

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 650;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover, .button:focus-visible { transform: translateY(-2px); }
.button-primary { color: #0e1020; background: #f2efff; border-color: #f2efff; }
.button-secondary:hover { border-color: rgba(167, 144, 255, 0.65); background: var(--surface); }

.signal {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
  font-size: 0.79rem;
}

.signal > div { display: flex; align-items: center; gap: 10px; color: #d9d8e5; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 15px var(--green); }
.signal-meta { letter-spacing: 0.04em; }

.section { padding: 126px 0; }
.section-heading { max-width: 700px; margin-bottom: 48px; }
.section-label { margin-bottom: 16px; }
h2 { font-size: clamp(2.1rem, 5vw, 4.2rem); line-height: 1.04; letter-spacing: -0.045em; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }

.card {
  min-height: 290px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(145deg, var(--surface-strong), rgba(255,255,255,0.025));
}

.card-index { color: #817f91; font-size: 0.73rem; letter-spacing: 0.12em; }
.card h3 { margin: auto 0 12px; font-size: 1.35rem; letter-spacing: -0.025em; }
.card p { margin-bottom: 0; color: var(--muted); font-size: 0.92rem; }

.notes {
  padding: 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
  gap: 70px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(167, 144, 255, 0.11), rgba(121, 200, 255, 0.04)),
    var(--surface);
}

.notes h2 { margin-bottom: 0; font-size: clamp(2.2rem, 5vw, 4rem); }
.notes > p { margin-bottom: 5px; color: var(--muted); }

footer {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

.brand-footer { color: var(--text); }
footer p { margin-bottom: 0; }

@media (max-width: 760px) {
  .site-header { min-height: 72px; }
  nav { gap: 15px; }
  nav a:nth-child(2) { display: none; }
  .hero { padding: 100px 0 80px; }
  h1 { font-size: clamp(3.35rem, 18vw, 5.2rem); }
  .signal { align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .card-grid { grid-template-columns: 1fr; }
  .card { min-height: 220px; }
  .section { padding: 90px 0; }
  .notes { padding: 38px 26px; grid-template-columns: 1fr; gap: 28px; }
  footer { padding: 48px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 20px; }
}

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