/* Marathon & Running Race Tracker - Promo Website Styles */
/* Theme extracted from app: Dark Navy + Blue + Gold + Cyan */

:root {
  --color-primary: #003087;
  --color-secondary: #0052CC;
  --color-accent: #00A3E0;
  --color-gold: #FFD700;
  --color-bg: #0A1929;
  --color-bg-lighter: #0F2238;
  --color-surface: #112B46;
  --color-surface-border: rgba(255,255,255,0.10);
  --color-text-primary: #FFFFFF;
  --color-text-secondary: #8899BB;
  --color-text-muted: #5A7A9A;
  --color-success: #28A745;
  --color-error: #DC3545;
  --border-radius: 12px;
  --border-radius-lg: 20px;
  --border-radius-pill: 26px;
  --font-family: 'Roboto', sans-serif;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
}

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

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

a:hover {
  color: var(--color-gold);
}

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

/* ========== NAVIGATION ========== */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 25, 41, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-surface-border);
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand .brand-icon {
  color: var(--color-gold);
  font-size: 22px;
}

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

.nav-links a {
  color: var(--color-text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
}

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

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

@media (max-width: 640px) {
  .nav-hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 16px 24px;
    gap: 0;
    border-bottom: 1px solid var(--color-surface-border);
  }
  .nav-links.open {
    display: flex;
  }
  .nav-links a {
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--color-surface-border);
    display: block;
    width: 100%;
  }
  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* ========== HERO SECTION ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0,48,135,0.25) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0,163,224,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-content {
  flex: 1;
  min-width: 0;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,163,224,0.15);
  color: var(--color-accent);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 14px;
  border-radius: var(--border-radius-pill);
  border: 1px solid rgba(0,163,224,0.3);
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero h1 .highlight {
  color: var(--color-gold);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--color-text-secondary);
  margin-bottom: 32px;
  max-width: 500px;
  line-height: 1.7;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-device {
  flex-shrink: 0;
  width: 280px;
  position: relative;
}

.device-mockup {
  position: relative;
  width: 100%;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(0,48,135,0.2);
  border: 3px solid rgba(255,255,255,0.1);
  background: #000;
}

.device-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .hero {
    min-height: auto;
    padding: 100px 20px 40px;
  }
  .hero-inner {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-device {
    width: 220px;
  }
}

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: var(--font-family);
  line-height: 1;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-primary);
  box-shadow: 0 4px 20px rgba(0,48,135,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0,48,135,0.6);
  color: var(--color-text-primary);
}

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

.btn-secondary:hover {
  background: var(--color-surface);
  border-color: var(--color-accent);
  color: var(--color-text-primary);
}

.btn-gold {
  background: linear-gradient(135deg, var(--color-gold) 0%, #FFA500 100%);
  color: #0A1929;
  box-shadow: 0 4px 20px rgba(255,215,0,0.3);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(255,215,0,0.5);
  color: #0A1929;
}

/* ========== SECTIONS ========== */
.section {
  padding: 80px 24px;
  position: relative;
}

.section-alt {
  background: var(--color-bg-lighter);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

.section-header h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 700;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--color-text-secondary);
  font-size: 16px;
  max-width: 550px;
  margin: 0 auto;
}

/* ========== FEATURES ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius);
  padding: 28px;
  transition: var(--transition);
  text-align: left;
}

.feature-card:hover {
  border-color: rgba(0,163,224,0.3);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
  background: rgba(0,163,224,0.12);
  border: 1px solid rgba(0,163,224,0.2);
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

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

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== SCREENSHOTS CAROUSEL ========== */
.screenshots-section {
  padding: 80px 24px;
  overflow: hidden;
}

.carousel-container {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: var(--border-radius);
}

.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.carousel-device {
  width: 240px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
  border: 3px solid rgba(255,255,255,0.08);
  background: #000;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-device:hover {
  transform: scale(1.02);
}

.carousel-device img {
  display: block;
  width: 100%;
  height: auto;
  filter: blur(8px);
  transition: filter 0.4s ease;
}

.carousel-device img.loaded {
  filter: blur(0);
}

.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 24px;
}

.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  color: var(--color-text-primary);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

.carousel-dots {
  display: flex;
  gap: 8px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-text-muted);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
}

.carousel-dot.active {
  background: var(--color-accent);
  width: 24px;
  border-radius: 4px;
}

.carousel-caption {
  text-align: center;
  margin-top: 16px;
  color: var(--color-text-secondary);
  font-size: 14px;
}

@media (max-width: 640px) {
  .carousel-device {
    width: 200px;
  }
}

/* ========== LIGHTBOX ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: pointer;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 16px;
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
}

/* ========== CTA SECTION ========== */
.cta-section {
  text-align: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,48,135,0.2) 0%, rgba(0,163,224,0.1) 100%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  color: var(--color-text-secondary);
  font-size: 16px;
  margin-bottom: 32px;
  position: relative;
}

/* ========== FOOTER ========== */
.site-footer {
  background: var(--color-bg-lighter);
  border-top: 1px solid var(--color-surface-border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 13px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

.footer-links a {
  color: var(--color-text-secondary);
  font-size: 13px;
}

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

@media (max-width: 640px) {
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* ========== CONTENT PAGES (Privacy, Terms, Contact) ========== */
.page-header {
  padding: 100px 24px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(0,48,135,0.15) 0%, transparent 100%);
}

.page-header h1 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--color-text-secondary);
  font-size: 15px;
}

.page-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.page-content h2 {
  font-size: 22px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--color-accent);
}

.page-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 24px 0 8px;
}

.page-content p {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  line-height: 1.7;
  text-align: left;
}

.page-content ul, .page-content ol {
  color: var(--color-text-secondary);
  margin-bottom: 16px;
  padding-left: 24px;
  text-align: left;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content a {
  color: var(--color-accent);
}

.page-content strong {
  color: var(--color-text-primary);
}

/* ========== CONTACT FORM ========== */
.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info {
  text-align: left;
}

.contact-info h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.contact-info p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  color: var(--color-text-secondary);
  font-size: 14px;
}

.contact-detail-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(0,163,224,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-form {
  background: var(--color-surface);
  border: 1px solid var(--color-surface-border);
  border-radius: var(--border-radius);
  padding: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: 6px;
  text-align: left;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--color-surface-border);
  border-radius: 10px;
  color: var(--color-text-primary);
  font-size: 15px;
  font-family: var(--font-family);
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,163,224,0.15);
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.form-group input[type="file"] {
  padding: 10px;
  font-size: 13px;
}

.form-group input[type="file"]::file-selector-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  margin-right: 10px;
}

.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success .check-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.form-success h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.form-success p {
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ========== PRIVACY ACCEPTANCE BUTTON ========== */
.privacy-accept-btn {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 16px 24px 24px;
  background: linear-gradient(to top, var(--color-bg) 60%, transparent);
  display: flex;
  justify-content: center;
}

.privacy-accept-btn.hidden {
  display: none;
}

.accept-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 400px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: var(--color-text-primary);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0,48,135,0.5);
  transition: var(--transition);
  font-family: var(--font-family);
}

.accept-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(0,48,135,0.7);
}

/* ========== ANIMATIONS ========== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========== STATS BAR ========== */
.stats-bar {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 32px 0;
}

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

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--color-gold);
}

.stat-label {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

@media (max-width: 640px) {
  .stats-bar {
    gap: 24px;
  }
  .stat-value {
    font-size: 24px;
  }
}
