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

/* CSS Variables - Light Theme (Default) */
:root {
  --color-bg: #fafafa;
  --color-surface: #ffffff;
  --color-surface-alt: #f5f5f5;
  --color-text: #1a1a1a;
  --color-text-muted: #666666;
  --color-accent: #fc4c02;
  --color-accent-hover: #e04502;
  --color-border: #e5e5e5;
  --color-success: #10b981;
  --color-error: #ef4444;
  --color-warning: #f59e0b;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-base: all 0.2s ease;
  --transition-slow: all 0.3s ease;
}

/* Dark Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #0a0a0a;
    --color-surface: #1a1a1a;
    --color-surface-alt: #252525;
    --color-text: #fafafa;
    --color-text-muted: #a0a0a0;
    --color-accent: #fc4c02;
    --color-accent-hover: #e04502;
    --color-border: #2a2a2a;
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

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

/* Typography */
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

@media (prefers-color-scheme: light) {
  .header {
    background: rgba(250, 250, 250, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }
}

.header-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  color: var(--color-text);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.logo-text:hover {
  opacity: 0.7;
}

.header-badge {
  background: var(--color-surface-alt);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

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

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.6;
  z-index: 0;
}

/* Hero Background Video & Image */
.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(30%);
  transition: opacity 1s ease-in-out;
  z-index: 1;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/landing_bg.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg);
  filter: grayscale(30%);
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(10, 10, 10, 0.95) 0%,
    rgba(10, 10, 10, 0.85) 50%,
    rgba(10, 10, 10, 0.7) 100%
  );
  z-index: 2;
}

@media (prefers-color-scheme: dark) {
  .hero::before {
    opacity: 1;
    background:
      linear-gradient(180deg, rgba(10,10,10,0.3) 0%, rgba(10,10,10,0.85) 70%, rgba(10,10,10,0.95) 100%),
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23151515" width="1200" height="800"/><g opacity="0.15"><path fill="%23fafafa" d="M0 400L50 390L100 410L150 380L200 420L250 390L300 430L350 400L400 440L450 410L500 450L550 420L600 460L650 430L700 470L750 440L800 480L850 450L900 490L950 460L1000 500L1050 470L1100 510L1150 480L1200 520V800H0Z"/></g></svg>');
    background-size: cover;
    background-position: center;
  }
}

@media (prefers-color-scheme: light) {
  .hero::before {
    background:
      linear-gradient(180deg, rgba(250,250,250,0.8) 0%, rgba(250,250,250,0.95) 70%),
      url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23f5f5f5" width="1200" height="800"/><g opacity="0.4"><path fill="%231a1a1a" d="M0 400L50 390L100 410L150 380L200 420L250 390L300 430L350 400L400 440L450 410L500 450L550 420L600 460L650 430L700 470L750 440L800 480L850 450L900 490L950 460L1000 500L1050 470L1100 510L1150 480L1200 520V800H0Z"/></g></svg>');
    background-size: cover;
    background-position: center;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px 80px;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-accent);
  margin-bottom: 24px;
  display: inline-block;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 7vw, 96px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 32px;
  max-width: 900px;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.5;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: 56px;
  font-weight: 400;
}

/* Forms */
.cta-form {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px;
  max-width: 560px;
}

@media (prefers-color-scheme: dark) {
  .cta-form {
    backdrop-filter: blur(20px);
  }
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-muted);
  margin-bottom: 12px;
  display: block;
}

.phone-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.input-field {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 16px;
  color: var(--color-text);
  font-family: 'Inter', sans-serif;
  transition: var(--transition-base);
  font-weight: 500;
  width: 100%;
}

.input-field:focus {
  outline: none;
  border-color: var(--color-accent);
  background: var(--color-surface-alt);
}

.input-field::placeholder {
  color: var(--color-text-muted);
  opacity: 0.5;
}

.input-ddd {
  flex: 0 0 80px;
  min-width: 80px;
}

.input-phone {
  flex: 1;
  min-width: 0;
}

.validation-message {
  font-size: 13px;
  margin-top: -16px;
  margin-bottom: 16px;
  font-weight: 500;
}

.validation-message.success {
  color: var(--color-success);
}

.validation-message.error {
  color: var(--color-error);
}

.cta-button {
  width: 100%;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 18px 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: 'Inter', sans-serif;
}

.cta-button:hover:not(:disabled) {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.cta-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Secondary Link Button */
.secondary-link {
  color: var(--color-text-muted);
  font-size: 16px;
  font-weight: 500;
  padding: 12px;
  text-decoration: none;
  transition: var(--transition-base);
  display: inline-block;
  cursor: pointer;
  background: transparent;
  border: none;
}

.secondary-link:hover {
  color: var(--color-text);
}

.form-privacy {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 16px;
  line-height: 1.5;
}

/* Status Page Container */
.status-container {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  background: var(--color-bg);
  align-items: flex-start;

  @media screen and (min-width: 1024px) {
    align-items: center;
  }
}

.status-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 560px;
  width: 100%;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.status-icon {
  font-size: 64px;
  margin-bottom: 24px;
  display: inline-block;
}

.status-icon.success {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}

.status-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--color-text);
}

.status-message {
  font-size: 18px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.athlete-name {
  color: var(--color-accent);
  font-weight: 600;
}

.info-box {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-accent);
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: left;
}

.info-box p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.info-box p:last-child {
  margin-bottom: 0;
}

.info-box strong {
  color: var(--color-text);
  font-weight: 600;
}

.info-box strong {
  color: var(--color-text);
  font-weight: 600;
}

.error-box {
  background: var(--color-surface-alt);
  border-left: 4px solid var(--color-error);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 32px;
  text-align: left;
}

.error-box p {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 8px;
  font-family: 'Courier New', monospace;
}

.error-box p:last-child {
  margin-bottom: 0;
}

.error-code {
  color: var(--color-error);
  font-weight: 600;
}

.next-steps {
  background: var(--color-surface-alt);
  border-radius: 12px;
  padding: 32px 24px;
  margin-bottom: 32px;
  text-align: left;
}

.next-steps h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.next-steps ul {
  list-style: none;
}

.next-steps li {
  color: var(--color-text-muted);
  font-size: 15px;
  padding: 12px 0;
  padding-left: 32px;
  border-bottom: 1px solid var(--color-border);
  position: relative;
}

.next-steps li:last-child {
  border-bottom: none;
}

.next-steps li::before {
  content: '✓';
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: #10b981;
  color: #0a0a0a;
  border-radius: 50%;
  font-size: 12px;
  font-weight: bold;
}

/* Override for status page - use arrow instead of checkmark */
.status-card .next-steps li::before {
  content: '→';
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  color: var(--color-accent);
  font-size: 18px;
}

@media (prefers-color-scheme: light) {
  .next-steps li::before {
    background: var(--color-accent);
    color: white;
  }

  /* Override for status page in light mode too */
  .status-card .next-steps li::before {
    background: transparent;
    color: var(--color-accent);
  }
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.button {
  display: inline-block;
  padding: 16px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition-base);
  cursor: pointer;
  border: none;
  text-align: center;
}

.button-primary {
  background: var(--color-accent);
  color: white;
}

.button-primary:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
}

.button-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.button-secondary:hover {
  background: var(--color-border);
}

.footer-text {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

.footer-text strong {
  color: var(--color-text);
}

.strava-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface-alt);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  border: 1px solid var(--color-border);
}

/* Footer Container */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 60px 40px;
  margin-top: 0;
}

.footer-content {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

/* Success/Status Page Split Layout */
.success-wrapper,
.status-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 68px; /* Height of fixed header */
}

.success-image-side,
.status-image-side {
  flex: 0 0 50%;
  height: calc(100vh - 68px);
  overflow: hidden;
}

.success-image,
.status-image {
  width: 100%;
  height: 100%;
  background-image: url('https://images.unsplash.com/photo-1513593771513-7b58b6c4af38?w=1200&q=80');
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg);
  filter: grayscale(40%) brightness(0.85);
}

.success-content-side,
.status-content-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero-content {
    padding: 100px 24px 60px;
  }

  .header-inner {
    padding: 16px 24px;
  }

  .cta-form {
    padding: 32px 24px;
  }

  .status-card {
    padding: 40px 24px;
  }

  .phone-input-group {
    flex-direction: row;
  }

  .input-ddd {
    flex: 0 0 70px;
    min-width: 70px;
  }

  .status-title {
    font-size: 28px;
  }

  .status-message {
    font-size: 16px;
  }

  .status-icon {
    font-size: 56px;
  }

  .footer {
    padding: 40px 24px;
    margin-top: 0;
  }

  /* Success/Status page mobile: imagem no topo */
  .success-wrapper,
  .status-wrapper {
    flex-direction: column;
    padding-top: 60px; /* Smaller header on mobile */
  }

  .success-image-side,
  .status-image-side {
    flex: 0 0 30vh; /* Reduced image height on mobile */
    height: 30vh;
  }

  .success-content-side,
  .status-content-side {
    padding: 40px 24px;
    min-height: auto;
  }

  .success-wrapper + .footer,
  .status-wrapper + .footer {
    margin-top: 0;
  }
}

