/* =========================
   Root tokens
   ========================= */

:root {
  /* Colors */
  --bg: #09090b;
  --text: #f0f8ff;
  --muted: rgba(240, 248, 255, 0.72);
  --brand: rgb(77, 240, 255);
  --line: rgba(240, 248, 255, 0.12);

  /* Gradients */
  --brand-gradient: linear-gradient(
    90deg,
    #e9fdff 0%,
    #9af7ff 38%,
    #4df0ff 68%,
    #12cfe0 100%
  );

  --hero-gradient: radial-gradient(
    ellipse at center,
    #0f2a2e 0%,
    #081a1d 42%,
    #040c0e 72%,
    #000000 100%
  );

  /* Typography scale */
  --h1: clamp(2.5rem, 4.5vw, 4.0625rem);  /* 40px → 65px */
  --h2: clamp(1.5rem, 3vw, 2rem);         /* 24px → 32px */
  --h3: clamp(1.125rem, 1.8vw, 1.25rem);  /* 18px → 20px */
  --sub: clamp(1rem, 2vw, 1.25rem);       /* 16px → 20px */
  --p: clamp(1rem, 1.2vw, 1.05rem);       /* 16px → ~17px */

  /* Spacing system */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  /* Layout */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;
  --container-xxl: 1500px;
  --container-gutter: clamp(16px, 4vw, 32px);

  /* UI */
  --radius: 16px;
  --ease-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

/* =========================
   Reset & base
   ========================= */

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

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Aeonik Pro", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

/* =========================
   Typography
   ========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  margin: 0;
}

h1 {
  font-size: var(--h1);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.75em;
  font-weight: 700;
}

h2 {
  font-size: var(--h2);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  font-weight: 600;
}

h3 {
  font-size: var(--h3);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin-bottom: 0.25em;
  font-weight: 600;
}

p {
  font-size: var(--p);
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 var(--space-3);
}

.text-brand {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================
   Layout
   ========================= */

.container {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--container-gutter);
}

@media (min-width: 576px) {
  .container { max-width: var(--container-sm); }
}

@media (min-width: 768px) {
  .container { max-width: var(--container-md); }
}

@media (min-width: 992px) {
  .container { max-width: var(--container-lg); }
}

@media (min-width: 1200px) {
  .container { max-width: var(--container-xl); }
}

@media (min-width: 1400px) {
  .container { max-width: var(--container-xxl); }
}

.section {
  margin-bottom: var(--space-6);
}

/* =========================
   Full-bleed sections
   ========================= */

.full-bleed {
  position: relative;
  width: 100%;
}

/* =========================
   Grid system
   ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-3);
}

/* =========================
   Footer
   ========================= */

footer {
  border-top: 1px solid var(--line);
  padding: var(--space-4) 0;
  color: var(--muted);
  font-size: 0.875rem;
}
