@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #071A2B;
  --deep-ocean: #0B2942;
  --surface: #102F4A;
  --card-bg: #163B58;
  --ice-highlight: #DFF7FF;
  --accent-primary: #00D4A8;
  --accent-secondary: #38BDF8;
  --explorer-orange: #FF8A3D;
  --signal-yellow: #FACC15;
  --soft-purple: #A78BFA;
  --text-main: #F8FAFC;
  --text-secondary: #C5D5E5;
  --text-muted: #8FA8BC;
  --border: rgba(255,255,255,0.12);
  --glow: rgba(0,212,168,0.25);
  
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 600;
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--ice-highlight);
}

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

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography */
.text-center { text-align: center; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 2rem; }
.mb-4 { margin-bottom: 3rem; }
.mt-4 { margin-top: 3rem; }

.section-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 1rem;
}

.h1-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: -1px;
}

.h2-title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.h3-title {
  font-size: 1.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-family: var(--font-heading);
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  border: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--glow);
}

.btn-primary:hover {
  background: var(--ice-highlight);
  box-shadow: 0 0 30px rgba(223, 247, 255, 0.4);
  color: var(--bg-primary);
}

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

.btn-outline:hover {
  border-color: var(--accent-secondary);
  background: rgba(56, 189, 248, 0.05);
  color: var(--accent-secondary);
}

/* Navigation - Floating Command Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 26, 43, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.header.scrolled {
  padding: 0.5rem 0;
  background: rgba(7, 26, 43, 0.95);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.brand span {
  color: var(--accent-primary);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: var(--transition);
  box-shadow: 0 0 10px var(--glow);
}

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

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Layout Sections */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background: var(--deep-ocean);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  padding-top: 80px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 70% 50%, rgba(11, 41, 66, 0.4) 0%, var(--bg-primary) 70%);
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-text {
  font-size: 1.1rem;
  margin: 1.5rem 0 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1rem;
}

.hero-visual {
  position: relative;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.hero-image-wrapper::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(45deg, rgba(0,212,168,0.1), transparent);
  pointer-events: none;
}

.floating-card {
  position: absolute;
  background: rgba(16, 47, 74, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.3);
  animation: float 6s ease-in-out infinite;
}

.floating-card.c1 { top: -20px; right: -20px; }
.floating-card.c2 { bottom: 40px; left: -30px; animation-delay: 2s; }

.tech-badge {
  width: 40px;
  height: 40px;
  background: var(--card-bg);
  border: 1px solid var(--accent-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
}

/* Quest Matrix - Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }

.quest-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.quest-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 2px; height: 0;
  background: var(--accent-primary);
  transition: var(--transition);
  box-shadow: 0 0 15px var(--glow);
}

.quest-card:hover {
  background: var(--card-bg);
  transform: translateY(-5px);
  border-color: rgba(255,255,255,0.2);
}

.quest-card:hover::before {
  height: 100%;
}

.card-icon {
  width: 60px;
  height: 60px;
  background: rgba(11, 41, 66, 0.8);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--accent-secondary);
  font-size: 1.5rem;
}

.quest-card h3 {
  margin-bottom: 1rem;
}

.quest-card p {
  color: var(--text-muted);
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Vehicle Care Map */
.care-map {
  position: relative;
  max-width: 800px;
  margin: 4rem auto;
  padding-left: 2rem;
}

.care-map::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-primary), var(--accent-secondary), var(--soft-purple));
  opacity: 0.3;
}

.map-node {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 2rem;
}

.map-node::before {
  content: '';
  position: absolute;
  top: 0; left: -2.35rem;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent-primary);
  box-shadow: 0 0 10px var(--glow);
  z-index: 2;
}

.map-content {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  position: relative;
}

.map-content::after {
  content: '';
  position: absolute;
  top: 8px; left: -20px;
  border-width: 10px 20px 10px 0;
  border-style: solid;
  border-color: transparent var(--surface) transparent transparent;
}

/* Interior / Fleet Zones (Alternating features) */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

.feature-row:nth-child(even) .feature-image {
  order: 2;
}

.feature-row:nth-child(even) .feature-text {
  order: 1;
}

.feature-image img {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.feature-list {
  list-style: none;
  margin-top: 1.5rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
  background: rgba(16, 47, 74, 0.4);
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.05);
}

.feature-list li::before {
  content: '✓';
  color: var(--accent-primary);
  font-weight: bold;
}

/* Forms - Contact Terminal */
.terminal-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 3rem;
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.terminal-form::before {
  content: 'ENQUIRY_TERMINAL_V1.0';
  position: absolute;
  top: -10px; left: 20px;
  background: var(--bg-primary);
  padding: 0 10px;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: var(--accent-secondary);
  letter-spacing: 2px;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  background: var(--deep-ocean);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  font-family: var(--font-body);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(0,212,168,0.1);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* FAQ Accordion */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: none;
  border: none;
  color: var(--text-main);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-icon {
  color: var(--accent-primary);
  transition: var(--transition);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: var(--transition);
  background: var(--deep-ocean);
}

.faq-answer-inner {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
}

/* Page Header (Inner pages) */
.page-header {
  padding: 160px 0 80px;
  text-align: center;
  background: linear-gradient(to bottom, var(--deep-ocean), var(--bg-primary));
  border-bottom: 1px solid var(--border);
}

/* Footer */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-desc {
  color: var(--text-muted);
  max-width: 400px;
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  color: var(--text-main);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-primary);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(11, 41, 66, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--accent-primary);
  padding: 1.5rem;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s ease-in-out;
  display: flex;
  justify-content: center;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-content {
  max-width: 1200px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cookie-text p {
  font-size: 0.9rem;
}

.cookie-btns {
  display: flex;
  gap: 1rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--surface);
  border: 1px solid var(--accent-secondary);
  border-radius: 50%;
  color: var(--accent-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 900;
  font-size: 1.5rem;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--accent-secondary);
  color: var(--bg-primary);
}

/* Animations */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
  100% { transform: translateY(0px); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease-out;
}

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

/* Legal Content Pages */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.legal-content h2 { margin: 2rem 0 1rem; }
.legal-content p { margin-bottom: 1rem; color: var(--text-secondary); }
.legal-content ul { margin: 1rem 0 1rem 2rem; color: var(--text-secondary); }
.legal-content li { margin-bottom: 0.5rem; }

/* Responsive */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text { margin: 1.5rem auto 2.5rem; }
  .hero-actions { justify-content: center; }
  .floating-card { display: none; }
  .feature-row { grid-template-columns: 1fr; gap: 2rem; }
  .feature-row:nth-child(even) .feature-image,
  .feature-row:nth-child(even) .feature-text { order: unset; }
  .cookie-content { flex-direction: column; text-align: center; }
}

@media (max-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: 100%;
    width: 100%;
    height: calc(100vh - 80px);
    background: var(--bg-primary);
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    transition: var(--transition);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; text-align: center; }
  .footer-desc { margin: 0 auto; }
}

@media (max-width: 480px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 4rem 0; }
  .btn { width: 100%; }
  .cookie-btns { flex-direction: column; width: 100%; }
  .cookie-btns .btn { width: 100%; }
  .terminal-form { padding: 1.5rem; }
}