/* Alpha Edge Racing Limited – Sovereign Institutional Dark Mode */

:root {
  --bg: #0D1117;
  --bg-card: #161b22;
  --text: #e6edf3;
  --text-muted: #8b949e;
  --accent: #C5A059;
  --accent-hover: #d4b068;
  --racing-green: #004225;
  --border: rgba(197, 160, 89, 0.25);
  --border-green: rgba(0, 66, 37, 0.5);
  --font-heading: "Cinzel", Georgia, serif;
  --font-body: "Montserrat", system-ui, sans-serif;
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --radius: 2px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  color: var(--accent-hover);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* ----- Header ----- */
.header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid var(--border-green);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.logo:hover {
  color: var(--accent-hover);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-list a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.nav-list a:hover {
  color: var(--accent);
}

.btn {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

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

.btn-nav {
  padding: var(--space-sm) var(--space-lg);
  background: transparent;
  color: var(--accent) !important;
  border: 1px solid var(--accent);
}
.btn-nav:hover {
  background: var(--accent);
  color: var(--bg) !important;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: var(--space-sm);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text);
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}

@media (max-width: 768px) {
  .header {
    background: var(--bg);
  }
  .nav-list {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-xl);
    background: var(--bg);
    gap: var(--space-md);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    border-bottom: 1px solid var(--border-green);
  }
  .nav-list.open {
    transform: translateX(0);
  }
  .menu-toggle {
    display: flex;
  }
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--bg) 0%, transparent 50%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 var(--space-lg);
  color: var(--accent);
  letter-spacing: 0.02em;
}

.hero-lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  max-width: 38ch;
  color: var(--text-muted);
  margin: 0 0 var(--space-xl);
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* ----- Sections ----- */
.logic {
  padding: var(--space-3xl) 0;
}

.section-header {
  margin-bottom: var(--space-2xl);
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  margin: 0;
  color: var(--accent);
  letter-spacing: 0.02em;
}

.edge-copy {
  max-width: 42rem;
  margin: 0 auto var(--space-2xl);
}

.edge-lead {
  font-family: var(--font-body);
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text);
  margin: 0 0 var(--space-md);
  line-height: 1.65;
}

.edge-copy p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.65;
}

.edge-pillars {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.edge-pillars li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.65;
}

.edge-pillars li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--accent);
}

.edge-pillars li strong {
  color: var(--accent);
  font-weight: 500;
}

.edge-close {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text) !important;
  margin: 0 !important;
}

.logic-proof {
  margin-top: var(--space-2xl);
}

.logic-proof-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 380px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
}

.logic-proof-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 var(--space-sm);
  letter-spacing: 0.05em;
}

.logic-proof-hint {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
  max-width: 32ch;
}

.logic-proof-hint code {
  font-size: 0.75rem;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: var(--radius);
}

/* ----- Stable (The Operational Framework) ----- */
.stable {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) 0;
}

/* Mathematical Path image: converging white rails on dirt gallops. Add images/operational-framework.jpg */
.stable-bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  background-size: cover;
  background-position: center;
  filter: blur(8px);
  transform: scale(1.05);
}

.stable-overlay {
  position: absolute;
  inset: 0;
  background: rgba(13, 17, 23, 0.82);
  pointer-events: none;
}

.stable-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 36rem;
  margin: 0 auto;
}

.stable-title {
  margin-bottom: var(--space-sm);
}

.stable-subhead {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 var(--space-xl);
  letter-spacing: 0.02em;
}

.stable-copy {
  text-align: left;
}

.stable-copy p {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  line-height: 1.65;
}

.stable-requirements {
  list-style: none;
  margin: 0 0 var(--space-lg);
  padding: 0;
}

.stable-requirements li {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
  padding-left: 1.25rem;
  position: relative;
  line-height: 1.65;
}

.stable-requirements li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 4px;
  height: 4px;
  background: var(--racing-green);
}

.stable-requirements li strong {
  color: var(--accent);
  font-weight: 500;
}

.stable-close {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text) !important;
  margin: 0 !important;
  text-align: center;
}

/* ----- Media / Video ----- */
.media {
  padding: var(--space-3xl) 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border-green);
}

.media-top {
  padding-top: calc(72px + var(--space-lg));
  padding-bottom: var(--space-lg);
  background: var(--bg);
  border-top: none;
}

.video-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.site-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.site-video-iframe {
  border: none;
}

.video-caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: var(--space-md) 0 0;
}

.video-caption strong {
  color: var(--text-muted);
}

/* ----- Waitlist ----- */
.waitlist {
  padding: var(--space-3xl) 0;
}

.waitlist-box {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(0, 66, 37, 0.1);
}

.waitlist-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin: 0 0 var(--space-md);
  color: var(--accent);
  letter-spacing: 0.02em;
  text-align: center;
}

.waitlist-lead {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 300;
  color: var(--text-muted);
  margin: 0 0 var(--space-xl);
  text-align: center;
}

.waitlist-form .waitlist-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.waitlist-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.waitlist-form input::placeholder {
  color: var(--text-muted);
}
.waitlist-form input:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.waitlist-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0 0 var(--space-md);
}

.waitlist-legal {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
  opacity: 0.8;
}

/* ----- Footer ----- */
.footer {
  background: #000000;
  padding: var(--space-xl) 0;
  border-top: 1px solid var(--border-green);
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}
.footer-badge:hover {
  opacity: 1;
}

.footer-badge img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 90px;
  object-fit: contain;
  filter: brightness(0) invert(0.85);
}
.footer-badge:hover img {
  filter: brightness(0) invert(1);
}

.footer-legal {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  margin: 0 0 var(--space-sm);
  text-align: center;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-links {
  margin: 0;
  text-align: center;
}

.footer-links a {
  font-size: 0.6875rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-links a:hover {
  color: var(--accent);
}

/* ----- Scroll reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
