/* ============================================
   MotoDoc Marketing Website
   Dark motorcycle theme with orange accents
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --orange: #FF6600;
  --orange-dark: #E65100;
  --orange-glow: rgba(255, 102, 0, 0.4);
  --orange-subtle: rgba(255, 102, 0, 0.08);
  --black: #000000;
  --dark: #0A0A0A;
  --dark-card: #141414;
  --dark-card-border: #1F1F1F;
  --dark-gray: #1A1A1A;
  --mid-gray: #4D4D4D;
  --silver: #A7A9AC;
  --light-gray: #888;
  --white: #FFFFFF;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Roboto', sans-serif;

  --nav-height: 72px;
  --section-padding: 120px;
  --container-max: 1200px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* --- Utility --- */
.text-orange {
  color: var(--orange);
}

.text-white {
  color: var(--white);
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  transition-delay: 0.2s;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 102, 0, 0.1);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.95);
  box-shadow: 0 4px 30px rgba(255, 102, 0, 0.1);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1001;
}

.nav-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.3s ease;
}

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

.nav-cta {
  background: var(--orange);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease !important;
}

.nav-cta:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--orange-glow);
}

/* Hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  position: relative;
  transition: background 0.3s ease;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-toggle.active .hamburger { background: transparent; }
.nav-toggle.active .hamburger::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .hamburger::after { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  overflow: hidden;
}

.hero-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(circle, rgba(255, 102, 0, 0.12) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 102, 0, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 102, 0, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

.hero-content {
  flex: 1;
  max-width: 560px;
}

.hero-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 2px;
  color: var(--white);
  margin-bottom: 24px;
  text-shadow: 0 0 40px rgba(255, 102, 0, 0.15);
}

.hero-subtitle {
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  color: var(--silver);
  margin-bottom: 40px;
  max-width: 460px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.store-badge {
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: scale(1.05);
}

.badge-svg {
  width: 160px;
  height: 54px;
}

.coming-soon {
  opacity: 0.5;
  cursor: default;
}

.coming-soon:hover {
  transform: none;
}

/* Phone frame */
.hero-phone {
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  width: 280px;
  height: 570px;
  background: #1A1A1A;
  border-radius: 40px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #333,
    0 20px 60px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 102, 0, 0.08);
  overflow: hidden;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background: #1A1A1A;
  border-radius: 0 0 20px 20px;
  z-index: 2;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: top;
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-arrow {
  width: 24px;
  height: 24px;
  border-right: 2px solid var(--orange);
  border-bottom: 2px solid var(--orange);
  transform: rotate(45deg);
  animation: scrollBounce 2s infinite;
  opacity: 0.6;
}

@keyframes scrollBounce {
  0%, 100% { transform: rotate(45deg) translateY(0); opacity: 0.6; }
  50% { transform: rotate(45deg) translateY(8px); opacity: 1; }
}

/* ============================================
   Section Commons
   ============================================ */
.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.section-eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--orange);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 20px;
  text-shadow: 0 0 30px rgba(255, 102, 0, 0.1);
}

.section-subtitle {
  font-size: 17px;
  font-weight: 300;
  color: var(--silver);
  max-width: 560px;
  margin: 0 auto 60px;
  line-height: 1.7;
}

/* ============================================
   Features Section
   ============================================ */
.features {
  padding: var(--section-padding) 0;
  background: var(--dark);
  position: relative;
}

.features::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.3;
}

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

.feature-card {
  background: var(--dark-card);
  border: 1px solid var(--dark-card-border);
  border-radius: 16px;
  padding: 40px 28px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 102, 0, 0.3);
  box-shadow: 0 12px 40px rgba(255, 102, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  background: var(--orange-subtle);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1px;
  margin-bottom: 12px;
  color: var(--white);
}

.feature-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots {
  padding: var(--section-padding) 0;
  background: var(--black);
  position: relative;
}

.screenshots-carousel {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.screenshot-item {
  text-align: center;
}

.phone-frame-small {
  width: 220px;
  height: 450px;
  border-radius: 32px;
  padding: 10px;
}

.phone-frame-small::before {
  width: 96px;
  height: 22px;
  border-radius: 0 0 16px 16px;
}

.phone-frame-small .phone-screen {
  border-radius: 22px;
}

.screenshot-label {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--silver);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
  padding: var(--section-padding) 0;
  background: var(--dark);
  position: relative;
}

.how-it-works::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
  opacity: 0.3;
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.step {
  flex: 1;
  max-width: 280px;
  text-align: center;
  padding: 20px;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.step-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: var(--orange-subtle);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.step-icon svg {
  width: 100%;
  height: 100%;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 10px;
  color: var(--white);
}

.step-desc {
  font-size: 15px;
  font-weight: 300;
  color: var(--silver);
  line-height: 1.7;
}

.step-connector {
  flex-shrink: 0;
  width: 80px;
  padding-top: 120px;
  display: flex;
  align-items: center;
}

.step-connector svg {
  width: 100%;
}

/* ============================================
   Download CTA Section
   ============================================ */
.download-cta {
  padding: var(--section-padding) 0 60px;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-dark) 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta-bg-effects {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.cta-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--white);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
}

.cta-subtitle {
  font-size: 18px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.cta-actions {
  position: relative;
  z-index: 1;
  margin-bottom: 50px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--black);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

.cta-button svg {
  flex-shrink: 0;
}

.cta-phone {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
}

.cta-phone .phone-frame {
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.15),
    0 30px 80px rgba(0, 0, 0, 0.4);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--dark);
  border-top: 1px solid var(--dark-card-border);
  padding: 48px 0 32px;
}

.footer-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.footer-brand {
  margin-bottom: 28px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  margin: 0 auto 8px;
}

.footer-logo-text {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--white);
  display: block;
  margin-bottom: 6px;
}

.footer-tagline {
  font-size: 14px;
  color: var(--silver);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 14px;
  color: var(--silver);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--orange);
}

.footer-bottom p {
  font-size: 13px;
  color: var(--mid-gray);
}

/* ============================================
   Responsive Design
   ============================================ */

/* Tablet */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px;
  }

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

  .hero-container {
    gap: 40px;
  }

  .phone-frame {
    width: 240px;
    height: 490px;
    border-radius: 34px;
  }

  .phone-frame::before {
    width: 100px;
    height: 24px;
  }

  .step-connector {
    width: 50px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --section-padding: 60px;
    --nav-height: 64px;
  }

  /* Mobile nav */
  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.97);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    font-size: 18px;
  }

  .nav-cta {
    padding: 14px 32px;
    font-size: 16px !important;
  }

  /* Hero mobile */
  .hero-container {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
    gap: 40px;
  }

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

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

  .hero-actions {
    justify-content: center;
  }

  .hero-phone {
    order: -1;
  }

  .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 32px;
    margin: 0 auto;
  }

  .phone-frame::before {
    width: 96px;
    height: 22px;
    border-radius: 0 0 16px 16px;
  }

  .hero-scroll-indicator {
    display: none;
  }

  /* Features mobile */
  .features-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 20px auto 0;
  }

  .feature-card {
    padding: 32px 24px;
  }

  /* Screenshots mobile */
  .screenshots-carousel {
    gap: 24px;
  }

  .phone-frame-small {
    width: 180px;
    height: 368px;
    border-radius: 28px;
  }

  /* Steps mobile */
  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step-connector {
    padding-top: 0;
    width: auto;
    height: 40px;
    transform: rotate(90deg);
  }

  /* CTA mobile */
  .cta-phone .phone-frame {
    width: 220px;
    height: 450px;
    border-radius: 32px;
  }

  .cta-button {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .badge-svg {
    width: 140px;
    height: 47px;
  }

  .screenshots-carousel {
    flex-direction: column;
    align-items: center;
  }
}
