/* ==========================================================================
   racely.ai Shared Styles
   ========================================================================== */

/* CSS Variables
   ========================================================================== */

:root {
  --racely-black: #060809;
  --racely-red: #E63946;
  --racely-white: #F2F2F2;
  --racely-muted: #9CA3AF;
  --content-width: 1160px;
}

/* Base Styles
   ========================================================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
  background: var(--racely-black);
  color: var(--racely-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .hero-title, .section-title, .logo-text, .step-title {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
}

a {
  color: inherit;
}

/* Container
   ========================================================================== */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 80px 20px 120px;
}

/* Navigation & Header
   ========================================================================== */

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--racely-muted);
  text-decoration: none;
  margin-bottom: 48px;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.back-link:hover {
  color: var(--racely-white);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  opacity: 0.9;
}

.logo-image {
  height: 48px;
  width: auto;
}

.logo-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

/* Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out,
              background-color 0.15s ease-out, border-color 0.15s ease-out;
  white-space: nowrap;
  background: transparent;
}

.btn-primary {
  background: var(--racely-red);
  color: #fff;
  box-shadow: 0 4px 12px rgba(230, 57, 70, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
  background: #ff4c59;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.5);
  }
  50% {
    box-shadow: 0 6px 30px rgba(230, 57, 70, 0.7);
  }
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--racely-white);
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.4);
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--racely-white);
  border-color: rgba(242,242,242,0.5);
}

.btn-ghost:hover {
  border-color: var(--racely-white);
  background: rgba(0,0,0,0.4);
}

/* For pricing page - full width button on rounded cards */
.btn-primary.stripe-checkout-btn,
.pricing-card .btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background: var(--racely-red);
  color: white;
  border: none;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
}

.btn-primary.stripe-checkout-btn:hover,
.pricing-card .btn:hover {
  background: #ff4c59;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(230,57,70,0.3);
}

/* Page Header
   ========================================================================== */

.page-header {
  margin-bottom: 48px;
}

.page-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.page-subtitle {
  font-size: 1rem;
  color: var(--racely-muted);
  line-height: 1.6;
}

/* Sections
   ========================================================================== */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--racely-black);
}

main {
  background: #050609;
}

section {
  scroll-margin-top: 80px;
}

.section-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 72px 20px;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: var(--racely-muted);
  margin-bottom: 8px;
}

.section-title {
  font-size: 1.8rem;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.2px;
}

.section-subtitle {
  color: #D1D5DB;
  margin-bottom: 48px;
  font-size: 0.98rem;
  line-height: 1.65;
}

/* Typography
   ========================================================================== */

.eyebrow {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: rgba(242,242,242,0.8);
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.8);
}

/* Dividers & Separators
   ========================================================================== */

.brand-divider {
  height: 1px;
  background: rgba(230, 57, 70, 0.25);
  margin: 80px auto;
  max-width: 600px;
  box-shadow: 0 0 8px rgba(230, 57, 70, 0.2);
}

.subsection-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 48px auto 40px;
  max-width: 800px;
}

/* Footer Styles
   ========================================================================== */

footer {
  background: linear-gradient(135deg, rgba(6,8,9,0.95), rgba(6,8,9,0.55));
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 40px;
  position: relative;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(230, 57, 70, 0.3) 50%,
    transparent
  );
}

/* Note: Footer internal styles are in footer.css */

/* Utility Classes
   ========================================================================== */

.highlight {
  background: rgba(230, 57, 70, 0.1);
  border-left: 3px solid var(--racely-red);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 4px;
}

.highlight p {
  margin-bottom: 0;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(34,197,94,0.08);
  border: 1px solid rgba(34,197,94,0.5);
}

.trust-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(242,242,242,0.15);
  font-size: 0.78rem;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(148,163,184,0.7);
  font-size: 0.78rem;
  margin-right: 4px;
}

.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--racely-red);
}

.badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: 999px;
  padding: 4px 8px;
  border: 1px solid rgba(148,163,184,0.9);
  color: #E5E7EB;
  white-space: nowrap;
}

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

@media (max-width: 960px) {
  .section-inner {
    padding: 56px 18px;
  }

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

@media (max-width: 768px) {
  .page-title {
    font-size: 2rem;
  }

  .container {
    padding: 60px 20px 80px;
  }
}

@media (max-width: 720px) {
  .container {
    padding: 60px 20px 80px;
  }
}

@media (max-width: 480px) {
  :root {
    --content-width: 100%;
  }

  .logo-image {
    height: 40px;
  }

  .section-inner {
    padding: 48px 16px;
  }

  .pill {
    font-size: 0.72rem;
    padding: 5px 8px;
  }
}
