:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #0a0a0a;
  color: #f5f5f5;
  --fire: #ff4500;
  --ember: #ff8c00;
  --gold: #ffd700;
  --obsidian: #0a0a0a;
  --obsidian-2: #111;
  --obsidian-3: #181818;
  --ash: #888;
  --ash-light: #aaa;
  --white: #f5f5f5;
  --line: rgba(255,255,255,.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 82% -8%, rgba(255,69,0,.28), transparent 34%),
    radial-gradient(circle at 7% 25%, rgba(255,140,0,.12), transparent 26%),
    linear-gradient(135deg, #0a0a0a 0%, #111 62%, #170906 100%);
  color: var(--white);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .34;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.05'/%3E%3C/svg%3E");
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
  animation: gridDrift 18s linear infinite;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 72px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0 52px;
}

.brand {
  color: #fff;
  font-weight: 950;
  letter-spacing: 4px;
  text-decoration: none;
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255,69,0,.45);
}
.brand span { color: var(--fire); }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.nav-links a,
.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--ash-light);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform .2s ease, border-color .2s ease, background .2s ease, color .2s ease;
}
.nav-links a:hover,
.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255,69,0,.55);
  background: rgba(255,69,0,.1);
  color: #fff;
}
.btn-primary {
  background: var(--fire);
  border-color: var(--fire);
  color: #fff;
  box-shadow: 0 18px 50px rgba(255,69,0,.24);
}

.page-hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  display: grid;
  align-items: center;
  padding: clamp(40px, 8vw, 86px);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(255,69,0,.22), transparent 28%),
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028));
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px));
}
.page-hero::before {
  content: attr(data-bg);
  position: absolute;
  right: -3vw;
  bottom: -40px;
  color: rgba(255,69,0,.045);
  font-size: clamp(120px, 22vw, 260px);
  font-weight: 950;
  letter-spacing: -10px;
  line-height: .8;
  pointer-events: none;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--fire);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
}
.eyebrow::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--fire);
  box-shadow: 0 0 16px rgba(255,69,0,.8);
}

h1 {
  max-width: 850px;
  margin: 18px 0;
  color: #fff;
  font-size: clamp(54px, 10vw, 118px);
  line-height: .86;
  letter-spacing: -4px;
  text-transform: uppercase;
}
h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(25px, 4vw, 42px);
  line-height: 1;
  letter-spacing: -1px;
  text-transform: uppercase;
}
p, li {
  color: var(--ash-light);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--ember); }
.meta { color: rgba(255,255,255,.42); font-size: 12px; letter-spacing: 2px; text-transform: uppercase; }

.content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  margin-top: 28px;
}
.page-card,
.wide-card {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.06);
  background: var(--obsidian-2);
}
.page-card::before,
.wide-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--fire), transparent);
  transition: opacity .25s ease;
}
.page-card:hover::before,
.wide-card:hover::before { opacity: 1; }
.page-card:hover,
.wide-card:hover { background: var(--obsidian-3); }
.wide-card {
  margin-top: 2px;
}
.page-card .num {
  display: block;
  margin-bottom: 28px;
  color: rgba(255,69,0,.22);
  font-size: 62px;
  font-weight: 950;
  line-height: .8;
}

.founder-badge {
  width: 168px;
  height: 168px;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255,69,0,.45);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,69,0,.09);
  box-shadow: 0 0 60px rgba(255,69,0,.18);
  animation: floatBadge 4s ease-in-out infinite;
}
.founder-badge strong { display: block; font-size: 34px; }
.founder-badge span { display: block; color: var(--ash); font-size: 11px; letter-spacing: 3px; text-transform: uppercase; text-align: center; }

.hero-row {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(26px, 5vw, 58px);
}

.cta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(255,69,0,.22);
  background: rgba(255,69,0,.055);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.38);
  font-size: 12px;
}
footer a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  margin-right: 16px;
}
footer a:hover { color: var(--fire); }

.reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(10px);
  transition: opacity .7s ease var(--reveal-delay, 0ms), transform .7s ease var(--reveal-delay, 0ms), filter .7s ease var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: blur(0);
}
.is-pressed { transform: scale(.97) !important; }

@keyframes gridDrift { to { background-position: 48px 48px; } }
@keyframes floatBadge { 50% { transform: translateY(-10px); } }

@media (max-width: 780px) {
  .top-nav,
  .hero-row,
  .cta-strip {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .content-grid { grid-template-columns: 1fr; }
  .page-hero { min-height: auto; padding: 34px 24px; }
  h1 { letter-spacing: -2px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
