/* MachVault Landing — premium aviation dark theme */

:root {
  --bg-deep: #0a0a0a;
  --bg-mid: #141414;
  --bg-card: #111111;
  --racing-red: #e10600;
  --racing-red-dim: #8b0000;
  --racing-red-glow: rgba(225, 6, 0, 0.35);
  --tan-accent: #c4a574;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --border: rgba(225, 6, 0, 0.15);
  --border-focus: rgba(225, 6, 0, 0.45);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: "Rajdhani", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-stat: "Bebas Neue", sans-serif;
  --max-width: 1100px;
  --header-h: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--racing-red);
  text-decoration: none;
  transition: color 0.2s, opacity 0.2s;
}

a:hover {
  color: #ff2a1f;
}

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

.container {
  width: min(100% - 2rem, var(--max-width));
  margin-inline: auto;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  text-decoration: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dim));
  border-radius: 8px;
  box-shadow: 0 0 20px var(--racing-red-glow);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text-primary);
}

.nav-cta {
  padding: 0.45rem 1rem;
  border: 1px solid var(--border-focus);
  border-radius: 999px;
  color: var(--racing-red) !important;
  background: rgba(225, 6, 0, 0.08);
}

.nav-cta:hover {
  background: rgba(225, 6, 0, 0.16);
  color: #ff3a2f !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
}

.speed-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, transparent 40%, rgba(225, 6, 0, 0.04) 50%, transparent 60%),
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 80px,
      rgba(225, 6, 0, 0.06) 80px,
      rgba(225, 6, 0, 0.06) 81px
    );
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-focus), transparent);
}

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

.hero-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tan-accent);
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid rgba(196, 165, 116, 0.3);
  border-radius: 999px;
  background: rgba(196, 165, 116, 0.06);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.5rem;
}

.hero-title-line {
  display: block;
}

.hero-title-line.accent {
  color: var(--racing-red);
  text-shadow: 0 0 40px var(--racing-red-glow);
}

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 3vw, 1.4rem);
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.hero-desc {
  max-width: 560px;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
}

.btn-icon {
  width: 18px;
  height: 18px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dim));
  color: #fff;
  box-shadow: 0 4px 24px var(--racing-red-glow);
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--racing-red-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-focus);
  color: var(--text-primary);
  background: rgba(225, 6, 0, 0.06);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 480px;
}

.stat-card {
  padding: 1rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.stat-value {
  display: block;
  font-family: var(--font-stat);
  font-size: 2.25rem;
  line-height: 1;
  color: var(--racing-red);
  letter-spacing: 0.02em;
}

.stat-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 0.35rem;
}

/* Sections */

.section {
  padding: 5rem 0;
  position: relative;
}

.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--racing-red);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  max-width: 640px;
}

.section-lead {
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 2.5rem;
  font-size: 1.05rem;
}

/* Features */

.features {
  background: linear-gradient(180deg, var(--bg-deep) 0%, #0d0d0d 50%, var(--bg-deep) 100%);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  padding: 1.75rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.feature-card:hover {
  border-color: var(--border-focus);
  box-shadow: 0 8px 32px rgba(225, 6, 0, 0.12);
  transform: translateY(-3px);
}

.feature-num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-family: var(--font-stat);
  font-size: 1.5rem;
  color: rgba(225, 6, 0, 0.25);
  letter-spacing: 0.05em;
}

.feature-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(225, 6, 0, 0.1);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* About */

.about {
  background: var(--bg-deep);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.about-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.about-tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--tan-accent) !important;
  margin-top: 1.5rem !important;
}

.disclaimer-card {
  padding: 1.75rem;
  background: var(--bg-mid);
  border: 1px solid rgba(196, 165, 116, 0.25);
  border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(196, 165, 116, 0.06);
}

.disclaimer-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--tan-accent);
  margin-bottom: 0.75rem;
}

.disclaimer-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.disclaimer-card p:last-child {
  margin-bottom: 0;
}

/* Privacy */

.privacy {
  background: linear-gradient(180deg, var(--bg-deep), #0c0c0c);
}

.privacy-meta {
  color: var(--tan-accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.25rem;
}

.policy-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.policy-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.policy-card p,
.policy-card li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.policy-card ul {
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.policy-card li {
  margin-bottom: 0.35rem;
}

/* Contact */

.contact {
  background: var(--bg-deep);
}

.contact-note {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.contact-card {
  padding: 1.5rem;
  background: var(--bg-mid);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.contact-card:hover {
  border-color: var(--border-focus);
}

.contact-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.contact-card a {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

.contact-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Footer */

.site-footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: #080808;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 0.85rem;
  max-width: 480px;
  margin: 0 auto 1.25rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-nav a:hover {
  color: var(--racing-red);
}

.footer-legal {
  font-size: 0.75rem;
  color: rgba(168, 168, 168, 0.6);
}

/* Mobile */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem;
    background: rgba(10, 10, 10, 0.97);
    border-bottom: 1px solid var(--border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 0.85rem 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 0.5rem;
    border-bottom: none;
  }

  .hero-stats {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 400px) {
  .hero-stats {
    grid-template-columns: 1fr;
  }
}
