/* RASU — Shared design tokens & primitives */

:root {
  --bg: #f6f5f0;
  --bg-elev: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #1a1a1a;
  --muted: #5a5a55;
  --muted-2: #8a8a82;
  --line: #e6e4dc;
  --line-2: #d4d2c8;

  /* Accent: RASU orange */
  --accent: #ec5b13;
  --accent-ink: #ffffff;
  --accent-soft: #fde6d8;
  --accent-hover: #ff6e26;

  /* Dark inverse for hero/feature blocks */
  --dark: #0a0a0a;
  --dark-2: #161614;
  --on-dark: #f6f5f0;
  --on-dark-muted: #8a8a82;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --font-display: "Space Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-brand: "Montserrat", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --container: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body { overflow-x: hidden; }

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

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

button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.h-display {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: balance;
  margin: 0;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
.h-card {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
}
.lede {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin: 0;
  text-wrap: pretty;
}

.accent-mark {
  background: linear-gradient(transparent 62%, var(--accent) 62%, var(--accent) 92%, transparent 92%);
  padding: 0 0.05em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-on-dark {
  background: var(--accent);
  color: var(--accent-ink);
}
.btn-ghost-on-dark {
  background: transparent;
  color: var(--on-dark);
  border-color: rgba(255,255,255,0.18);
}
.btn-ghost-on-dark:hover { border-color: rgba(255,255,255,0.5); }

.btn .arr {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arr { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  font-family: var(--font-brand);
  font-weight: 900;
  letter-spacing: -0.045em;
  font-size: 26px;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.brand .dot {
  width: 0.2em;
  height: 0.2em;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 0.03em;
  align-self: flex-end;
  margin-bottom: 0.06em;
  box-shadow: none;
}
.brand--on-dark { color: var(--on-dark); }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav a {
  position: relative;
  padding: 10px 14px;
  font-size: 14.5px;
  color: var(--muted);
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a.is-active {
  color: var(--ink);
  background: var(--bg-elev);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav a.is-active::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}
.nav a.is-active { padding-left: 26px; }

.header-cta { display: inline-flex; gap: 10px; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 860px) {
  .site-header .row {
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    min-height: auto;
  }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 18px var(--pad-x) 22px;
    box-shadow: 0 22px 60px rgba(0,0,0,0.08);
    z-index: 60;
  }
  .nav.open {
    display: flex;
  }
  .nav a {
    width: 100%;
    padding: 12px 14px;
    margin: 0;
    border-radius: 12px;
  }
  .nav a.is-active {
    background: var(--bg-elev);
    border-color: var(--line);
    padding-left: 14px;
  }
  .header-cta {
    width: 100%;
    justify-content: flex-end;
  }
  .header-cta .btn {
    width: 100%;
    justify-content: center;
  }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--dark);
  color: var(--on-dark);
  padding: 80px 0 32px;
  margin-top: 120px;
}
.site-footer .grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-footer h4 {
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--on-dark-muted);
  margin: 0 0 18px;
  font-weight: 500;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li a { color: var(--on-dark); opacity: 0.85; font-size: 15px; }
.site-footer li a:hover { opacity: 1; }
.site-footer .big-mark {
  font-family: var(--font-brand);
  font-size: clamp(64px, 10vw, 140px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  font-weight: 900;
  margin-top: 24px;
  color: var(--on-dark);
  display: inline-flex;
  align-items: baseline;
}
.site-footer .big-mark .dot {
  width: 0.18em;
  height: 0.18em;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
  margin-left: 0.03em;
  margin-bottom: 0.06em;
}
.site-footer .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--on-dark-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
@media (max-width: 860px) {
  .site-footer .grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Hero shared ---------- */
.hero {
  padding: clamp(64px, 10vw, 140px) 0 clamp(48px, 6vw, 96px);
  position: relative;
}

/* ---------- Section spacing ---------- */
.section { padding: clamp(72px, 10vw, 140px) 0; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }

/* ---------- Card primitives ---------- */
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.card:hover { border-color: var(--ink); }

/* Striped placeholder image */
.placeholder {
  position: relative;
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(
      135deg,
      color-mix(in oklab, var(--ink) 4%, transparent) 0 8px,
      transparent 8px 16px
    ),
    var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
  padding: 16px;
}
.placeholder--dark {
  background:
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.05) 0 8px,
      transparent 8px 16px
    ),
    var(--dark-2);
  border-color: rgba(255,255,255,0.08);
  color: var(--on-dark);
}
.placeholder .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--ink);
  color: var(--bg);
  padding: 6px 10px;
  border-radius: 999px;
}
.placeholder--dark .tag { background: var(--on-dark); color: var(--ink); }

/* ---------- Utility ---------- */
.row-flex { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.divider { height: 1px; background: var(--line); width: 100%; }

.dark-block {
  background: var(--dark);
  color: var(--on-dark);
}
.dark-block .lede { color: var(--on-dark-muted); }
.dark-block .eyebrow { color: var(--on-dark-muted); }

/* Marquee numbered list */
.numbered {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.numbered li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.numbered li:last-child { border-bottom: 1px solid var(--line); }
.numbered .num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
}
.numbered h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.4vw, 32px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.1;
}
.numbered p { margin: 0; color: var(--muted); max-width: 56ch; }

.dark-block .numbered li { border-color: rgba(255,255,255,0.1); }
.dark-block .numbered .num,
.dark-block .numbered p { color: var(--on-dark-muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: var(--bg-elev);
}
.badge .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* CTA banner */
.cta-banner {
  background: var(--dark);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 96px);
  display: grid;
  gap: 32px;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--accent);
  filter: blur(0px);
  opacity: 0.9;
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
