:root {
  --primary: #A52A2A;
  --primary-dark: #800000;
  --secondary: #D4AF37;
  --bg-soft: #f8fafc;
  --white: #ffffff;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --radius-xl: 32px;
  --radius-lg: 20px;
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --glass: rgba(255, 255, 255, 0.92);
  --glass-border: rgba(255, 255, 255, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-soft);
  color: var(--text-dark);
  font-family: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===========================
   HEADER
=========================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
}

header.scrolled {
  background: var(--glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--glass-border);
}

/* Top bar row */
header .container.nav {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  gap: 20px;
  transition: height 0.4s;
}

header.scrolled .container.nav {
  height: 72px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 50px;
  width: auto;
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  transition: height 0.4s;
}

header.scrolled .logo img {
  height: 42px;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.logo-text {
  font-size: 20px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

.logo-tagline {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 2px;
  white-space: nowrap;
}

/* Nav Right */
.nav-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Desktop Nav Links */
.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  list-style: none;
  background: rgba(0, 0, 0, 0.04);
  padding: 5px;
  border-radius: 100px;
}

.nav-links li a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 100px;
  transition: var(--transition);
  display: block;
  white-space: nowrap;
}

.nav-links li a:hover {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

/* Launch Button */
.btn-launch {
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 100px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(165, 42, 42, 0.25);
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-launch:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(165, 42, 42, 0.35);
}

/* ===========================
   HAMBURGER BUTTON
=========================== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: var(--white);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  padding: 8px;
  flex-shrink: 0;
  transition: var(--transition);
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--primary);
  border-radius: 4px;
  transition: var(--transition);
  transform-origin: center;
}

/* X animation when open */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===========================
   MOBILE MENU
=========================== */
.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
  padding: 20px 24px 24px;
  flex-direction: column;
  gap: 8px;
  border-top: 2px solid var(--primary);
  animation: slideDown 0.3s ease forwards;
}

.mobile-menu.open {
  display: flex;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.mobile-menu ul li a.mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-dark);
  transition: var(--transition);
}

.mobile-menu ul li a.mobile-link:hover {
  background: rgba(165, 42, 42, 0.06);
  color: var(--primary);
}

.mobile-launch {
  justify-content: center;
  width: 100%;
  font-size: 15px;
  padding: 14px;
  border-radius: 14px;
}

/* ===========================
   HERO
=========================== */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  background: radial-gradient(circle at top right, rgba(212, 175, 55, 0.1), transparent 40%),
              radial-gradient(circle at bottom left, rgba(165, 42, 42, 0.08), transparent 40%);
  position: relative;
}

.hero h1 {
  font-size: clamp(2.2rem, 7vw, 4.5rem);
  margin-bottom: 24px;
  color: var(--primary);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s 0.2s forwards;
}

.scroll-cue {
  color: var(--secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ===========================
   DOC SECTIONS
=========================== */
.doc-section {
  padding: 100px 0;
  position: relative;
}

.doc-section:nth-child(even) {
  background: rgba(165, 42, 42, 0.02);
}

.doc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.doc-section:nth-child(even) .doc-grid {
  direction: rtl;
}

.doc-section:nth-child(even) .doc-content {
  direction: ltr;
}

.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.doc-content h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  color: var(--primary-dark);
}

.doc-content p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-weight: 500;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.feature-list li i {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

/* ===========================
   VIDEO PLAYER
=========================== */
.video-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: #000;
  aspect-ratio: 16/9;
  transform: scale(0.97);
  transition: var(--transition);
}

.doc-section:hover .video-wrapper {
  transform: scale(1);
}

.video-wrapper video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ===========================
   FOOTER
=========================== */
footer {
  padding: 60px 0;
  background: var(--text-dark);
  color: var(--white);
  text-align: center;
}

.footer-logo {
  height: 60px;
  margin-bottom: 20px;
  border-radius: 8px;
}

.footer-text {
  opacity: 0.55;
  font-size: 14px;
}

/* ===========================
   ANIMATIONS
=========================== */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===========================
   PROGRESS BAR
=========================== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  width: 0%;
  z-index: 1100;
}

/* ===========================
   RESPONSIVE — TABLET
=========================== */
@media (max-width: 1100px) {
  .nav-links li a {
    padding: 8px 11px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  /* Hide desktop nav pills and button, show hamburger */
  .nav-links,
  .btn-launch {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .doc-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .doc-section:nth-child(even) .doc-grid {
    direction: ltr;
  }

  .doc-content h2 {
    font-size: 2rem;
  }

  header .container.nav {
    height: 76px;
  }
}

/* ===========================
   RESPONSIVE — MOBILE
=========================== */
@media (max-width: 600px) {
  header .container.nav {
    height: 68px;
    padding: 0 16px;
  }

  .logo img {
    height: 40px;
  }

  .logo-text {
    font-size: 17px;
  }

  .logo-tagline {
    font-size: 9px;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .doc-section {
    padding: 60px 0;
  }

  .doc-content h2 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 16px;
  }

  .mobile-menu {
    padding: 16px 16px 20px;
  }
}
