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

:root {
  --void: #000;
  --surface: #0a0a0a;
  --card-bg: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(255,255,255,0.15);
  --text: rgba(255,255,255,0.95);
  --muted: rgba(255,255,255,0.45);
  --dim: rgba(255,255,255,0.22);
  --red: #dc2626;
  --red-glow: rgba(220,38,38,0.2);
  --blue: #3b82f6;
  --blue-glow: rgba(59,130,246,0.2);
  --purple: #a855f7;
  --purple-glow: rgba(168,85,247,0.2);
  --text-secondary: rgba(255,255,255,0.85);
  --border-subtle: rgba(255,255,255,0.06);
  --font: -apple-system, "SF Pro Display", BlinkMacSystemFont, system-ui, sans-serif;
  --mono: "SF Mono", "Fira Code", ui-monospace, monospace;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  background: var(--void);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── NAVIGATION ─── */
nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 52px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 32px;
  background: rgba(0,0,0,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  justify-self: start;
}

.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  /* invert black background so logo shows as white mark on dark nav */
  filter: brightness(0) invert(1);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 7px 18px;
  border-radius: 980px;
  background: #fff;
  color: #000;
  text-decoration: none;
  transition: opacity 0.2s;
  justify-self: end;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── EYEBROW ─── */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}
.eyebrow-blue   { color: var(--blue); }
.eyebrow-purple { color: var(--purple); }
.eyebrow-white  { color: var(--dim); }

/* ─── TYPOGRAPHY ─── */
.hero-wordmark {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1.0;
  color: #fff;
}

h1 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -1.5px;
  line-height: 1.06;
}

h2 {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 700;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

p {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.65;
}

/* ─── SECTION LAYOUT ─── */
section {
  padding: 96px 48px;
}

.section-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ─── BUTTONS ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  border-radius: 980px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}
.btn:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-primary { background: #fff; color: #000; }
.btn-outline  { background: transparent; color: #fff; border: 1px solid var(--border-bright); }
.btn-red      { background: var(--red); color: #fff; }
.btn-blue     { background: var(--blue); color: #fff; }
.btn-purple   { background: var(--purple); color: #fff; }

/* ─── CARDS ─── */
.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color 0.2s;
}
.card:hover { border-color: var(--border-bright); }

/* ─── DIVIDER ─── */
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 48px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-logo-img {
  height: 34px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 1;
}

.footer-wordmark {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
  text-decoration: none;
}

.footer-tagline {
  font-size: 12px;
  color: var(--dim);
  line-height: 1.65;
  max-width: 260px;
  margin: 0;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col-head {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.footer-col a {
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.4;
}

.footer-col a:hover { color: var(--muted); }

.footer-bar {
  border-top: 1px solid var(--border-subtle);
  padding: 18px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-copy {
  font-size: 11px;
  color: var(--dim);
}

/* Nav collapses at a wider breakpoint to prevent CTA/link overlap on tablets */
@media (max-width: 900px) {
  nav { grid-template-columns: 1fr auto; padding: 0 20px; }
  .nav-links { display: none; }
}

@media (max-width: 768px) {
  /* Footer: single column, all items centered */
  footer { padding: 48px 24px 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .footer-brand { align-items: center; }
  .footer-logo-img { margin: 0 auto; }
  .footer-tagline { margin: 0 auto; max-width: 100%; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-col { align-items: center; }
  .footer-bar { text-align: center; }
  .footer-copy { text-align: center; }
}

/* ─── SECTION DIVIDER ─── */
.section-divider {
  position: relative;
  height: 7px;
  overflow: hidden;
  pointer-events: none;
}
.section-divider-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}
.section-divider.is-visible .section-divider-line { transform: scaleX(1); }
.section-divider::after {
  content: '';
  position: absolute;
  top: 0;
  left: -160px;
  width: 160px;
  height: 7px;
  border-radius: 980px;
  background: linear-gradient(to right, transparent, var(--red) 50%, transparent);
  filter: blur(2px);
  opacity: 0;
}
.section-divider.is-visible::after {
  animation: divider-sweep 1.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}
@keyframes divider-sweep {
  0%   { left: -160px; opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}

/* ─── SPOTLIGHT BORDER CARD ─── */
.card-spotlight { position: relative; }
.card-spotlight::before {
  content: '';
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: radial-gradient(
    350px circle at var(--mouse-x, -500px) var(--mouse-y, -500px),
    rgba(255,255,255,0.32) 0%,
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s;
}
.card-spotlight:hover::before { opacity: 1; }

/* ─── EXPANDING RING BUTTON ─── */
@keyframes ring-expand {
  from { transform: translate(-50%, -50%) scale(0.85); opacity: 1; }
  to   { transform: translate(-50%, -50%) scale(2.2);  opacity: 0; }
}
.btn-ring {
  position: fixed;
  border-radius: 980px;
  border: 1.5px solid rgba(255,255,255,0.75);
  pointer-events: none;
  z-index: 9999;
  animation: ring-expand 0.55s cubic-bezier(0.2, 0.6, 0.4, 1) forwards;
}
