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

:root {
  --bg-primary: #080808;
  --bg-secondary: #0d0d0d;
  --bg-card: #111111;
  --bg-glass: rgba(17, 17, 17, 0.7);
  --text-primary: #f0f0f0;
  --text-secondary: #999999;
  --text-muted: #666666;
  --accent: #c85a17;
  --accent-light: #e87a2e;
  --accent-glow: rgba(200, 90, 23, 0.3);
  --accent-gradient: linear-gradient(135deg, #c85a17, #e87a2e, #f09030);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(200, 90, 23, 0.2);
  --shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  --shadow-accent: 0 0 40px rgba(200, 90, 23, 0.15);
  --radius: 16px;
  --radius-sm: 8px;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 64px;
  --section-padding: 120px 0;
}

html {
  scroll-behavior: smooth;
  background: var(--bg-primary);
}

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

::selection {
  background: var(--accent);
  color: #fff;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--text-muted);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Navigation ─── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 24px;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 1px 0 var(--border);
}

.nav-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.nav-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

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

/* ─── Hero Section ─── */

.hero-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-pinned {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: var(--bg-primary);
}

.hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

.hero-overlay.fade-out {
  opacity: 0;
}

.hero-badge {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
  text-shadow: 0 0 40px var(--accent-glow);
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 4px;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5);
}

.hero-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(16px, 3vw, 36px);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 8px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-tagline {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 2px;
  max-width: 500px;
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.scroll-indicator span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-mouse {
  opacity: 0.5;
}

.scroll-dot {
  animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(8px); opacity: 0.3; }
}

.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 10;
}

.hero-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent-gradient);
  transition: width 0.05s linear;
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ─── Sections Common ─── */

.section {
  padding: var(--section-padding);
  background: var(--bg-primary);
  position: relative;
  z-index: 2;
}

.section:nth-child(odd) {
  background: var(--bg-secondary);
}

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

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

.section-label::before,
.section-label::after {
  content: '—';
  margin: 0 12px;
  opacity: 0.5;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: 1px;
}

.section-subtitle {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

.text-accent {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Heritage ─── */

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

.heritage-image {
  position: relative;
}

.heritage-image-frame {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.heritage-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius);
  background: var(--bg-card);
}

.heritage-svg {
  width: 100%;
  height: 100%;
  color: var(--text-muted);
}

.heritage-year {
  position: absolute;
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: 700;
  color: rgba(200, 90, 23, 0.08);
  bottom: -10px;
  right: 20px;
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

.heritage-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.section-text {
  font-size: 15px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.8;
}

.heritage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.heritage-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.heritage-stat-number {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
}

.heritage-stat-label {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ─── Design ─── */

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

.design-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}

.design-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.design-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.design-card:hover::before {
  opacity: 1;
}

.design-icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.8;
}

.design-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.design-card-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Engineering ─── */

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

.engineering-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  position: relative;
}

.engineering-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.engineering-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: rgba(200, 90, 23, 0.15);
  margin-bottom: 16px;
  line-height: 1;
}

.engineering-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.engineering-text {
  font-size: 14px;
  font-weight: 300;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Details ─── */

.details-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.detail-item {
  position: relative;
  cursor: pointer;
  group: true;
}

.detail-visual {
  aspect-ratio: 4 / 3;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, transform 0.4s ease;
  position: relative;
}

.detail-visual:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
  transform: scale(1.02);
}

.detail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.detail-visual:hover .detail-img {
  transform: scale(1.05);
}

.detail-placeholder {
  width: 60%;
  height: 60%;
  color: var(--text-muted);
  opacity: 0.5;
}

.detail-placeholder svg {
  width: 100%;
  height: 100%;
}

.detail-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.7);
  padding: 4px 12px;
  border-radius: 4px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ─── Performance ─── */

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

.performance-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.performance-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-accent);
  box-shadow: var(--shadow-accent);
}

.performance-value {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  line-height: 1;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.performance-unit {
  font-size: 20px;
  font-weight: 400;
  color: var(--accent);
  margin-left: 4px;
}

.performance-label {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.performance-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
}

/* ─── CTA ─── */

.cta-section {
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(200, 90, 23, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-badge {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.cta-text {
  font-size: 16px;
  font-weight: 300;
  color: var(--text-secondary);
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  border-radius: 4px;
  transition: all 0.4s ease;
  cursor: pointer;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(200, 90, 23, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(200, 90, 23, 0.4);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

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

.btn-outline:hover {
  color: var(--text-primary);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

/* ─── Footer ─── */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 80px 0 40px;
}

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

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 4px;
  margin-bottom: 12px;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.footer-text {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 300;
  font-style: italic;
}

.footer-heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-bottom: 16px;
}

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

.footer-links-group a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.3s ease;
  font-weight: 300;
}

.footer-links-group a:hover {
  color: var(--text-primary);
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.3s ease;
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(200, 90, 23, 0.08);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-legal a:hover {
  color: var(--text-primary);
}

/* ─── Reveal Animation ─── */

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .heritage-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .design-grid,
  .engineering-grid,
  .performance-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .details-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 80px 0;
  }

  .nav-links {
    display: none;
  }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(8, 8, 8, 0.98);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .nav-toggle {
    display: flex;
  }

  .hero-title {
    letter-spacing: 2px;
  }

  .hero-subtitle {
    letter-spacing: 4px;
  }

  .design-grid,
  .engineering-grid,
  .performance-grid {
    grid-template-columns: 1fr;
  }

  .details-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .heritage-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .footer-legal {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .details-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .heritage-stats {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .section-label::before,
  .section-label::after {
    display: none;
  }
}

/* ─── Loading Screen ─── */

.loading-bar {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #080808;
  gap: 24px;
  transition: opacity 0.8s ease;
}

.loading-bar-inner {
  width: 200px;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 1px;
  overflow: hidden;
}

.loading-progress {
  height: 2px;
  background: linear-gradient(90deg, #c85a17, #e87a2e);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(200, 90, 23, 0.3);
}

.loading-text {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-muted);
}
