*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--color-bg-deep);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 18% 18%, rgba(91, 33, 182, 0.22), transparent 28rem),
    radial-gradient(circle at 82% 32%, rgba(13, 148, 136, 0.13), transparent 25rem),
    linear-gradient(180deg, #080C14 0%, #0A111D 48%, #05080F 100%);
  line-height: 1.6;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img,
svg,
canvas { max-width: 100%; }

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

button,
input,
select,
textarea { font: inherit; }

button { cursor: pointer; }

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

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1;
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3.3rem, 8vw, 6.5rem);
  margin-bottom: 1.2rem;
}

h2 {
  font-size: clamp(2.3rem, 5vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 0.65rem;
}

p { color: var(--color-text-muted); }

.section {
  position: relative;
  padding: 7rem 0;
}

.section-inner {
  width: min(calc(100% - 2rem), var(--max-width));
  margin: 0 auto;
}

.section-kicker,
.tech-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 2rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: #C4B5FD;
  font: 700 0.78rem/1 var(--font-code);
  text-transform: uppercase;
  background: rgba(91, 33, 182, 0.12);
}

.section-title {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.site-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(91, 33, 182, 0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 33, 182, 0.13) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.018), rgba(255,255,255,0.018) 1px, transparent 1px, transparent 4px);
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

@media (max-width: 820px) {
  .section { padding: 5rem 0; }
  .split-layout { grid-template-columns: 1fr; }
}
