/* ================================================
   WHEELIE — 70s Retro Marketing Site
   ================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Righteous&family=Outfit:wght@300;400;500;600;700&display=swap');

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette — warm 70s */
  --color-bg:           #1a1412;
  --color-bg-light:     #2a2220;
  --color-surface:      #322a28;
  --color-surface-hover:#3d3432;

  --color-orange:       #d4603a;
  --color-orange-light: #e8764f;
  --color-red:          #c0392b;
  --color-red-dark:     #922b21;
  --color-mustard:      #d4a534;
  --color-mustard-light:#e6bc4a;
  --color-olive:        #6b8c42;
  --color-teal:         #3a8c8c;
  --color-cream:        #f5e6d3;
  --color-white:        #ffffff;
  --color-text:         #f0e0d0;
  --color-text-muted:   #a89888;

  /* Gradients */
  --gradient-hero:      linear-gradient(135deg, var(--color-orange) 0%, var(--color-mustard) 50%, var(--color-olive) 100%);
  --gradient-warm:      linear-gradient(135deg, var(--color-red) 0%, var(--color-orange) 100%);
  --gradient-sunset:    linear-gradient(180deg, var(--color-orange) 0%, var(--color-red-dark) 100%);

  /* Typography */
  --font-display: 'Righteous', cursive;
  --font-body:    'Outfit', sans-serif;

  /* Spacing */
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  1.5rem;
  --space-lg:  2.5rem;
  --space-xl:  4rem;
  --space-2xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 50%;

  /* Shadows */
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow: 0 0 40px rgba(212,96,58,0.3);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

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

a {
  color: var(--color-orange-light);
  text-decoration: none;
  transition: color 0.3s var(--ease-out);
}
a:hover {
  color: var(--color-mustard);
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section-label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-mustard);
  margin-bottom: var(--space-xs);
}

.section-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 600px;
}

/* ---------- Scroll Animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-sm) 0;
  transition: background 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: rgba(26, 20, 18, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--color-orange);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}
.nav-logo .logo-wheel {
  width: 36px;
  height: 36px;
  animation: spin 8s linear infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}
.nav-links a {
  color: var(--color-text);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-orange);
  transition: width 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--color-orange-light); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--gradient-warm);
  color: var(--color-white) !important;
  padding: 0.6rem 1.5rem;
  border-radius: var(--radius-lg);
  font-weight: 600;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.nav-cta::after { display: none; }
.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  color: var(--color-white) !important;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  width: 26px;
  height: 3px;
  background: var(--color-text);
  border-radius: 2px;
  transition: 0.3s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 var(--space-2xl);
  overflow: hidden;
}

/* Wavy decorative stripes behind hero */
.hero-stripes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}
.hero-stripes svg {
  position: absolute;
  width: 120%;
  left: -10%;
}
.hero-stripes .stripe-1 { top: -5%; }
.hero-stripes .stripe-2 { top: 5%; }
.hero-stripes .stripe-3 { top: 15%; }

.hero .container {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

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

.hero-badge {
  display: inline-block;
  background: rgba(212, 96, 58, 0.15);
  border: 1px solid rgba(212, 96, 58, 0.3);
  color: var(--color-orange-light);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-lg);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.hero h1 {
  font-size: clamp(2.8rem, 7vw, 4.5rem);
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
  line-height: 1.05;
}
.hero h1 span {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: 1.2rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.btn:hover {
  transform: translateY(-3px);
}

.btn-primary {
  background: var(--gradient-warm);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(212, 96, 58, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 8px 30px rgba(212, 96, 58, 0.5);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid rgba(255,255,255,0.1);
}
.btn-secondary:hover {
  background: var(--color-surface-hover);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

/* Hero wheel visual */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero-wheel-container {
  position: relative;
  width: 400px;
  height: 400px;
}

.hero-wheel {
  width: 100%;
  height: 100%;
  animation: spin 20s linear infinite;
  filter: drop-shadow(0 0 60px rgba(212, 96, 58, 0.3));
}

.hero-wheel-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 96, 58, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-full);
  z-index: -1;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ---------- Wave Divider ---------- */
.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  margin-top: -1px;
}
.wave-divider svg {
  width: 100%;
  height: 80px;
  display: block;
}

/* ---------- How It Works ---------- */
.how-it-works {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-light);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-xl);
}

.step-card {
  text-align: center;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
  position: relative;
}
.step-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.step-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-sm);
  line-height: 1;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.step-card h3 {
  font-size: 1.4rem;
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}

.step-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* Connector arrows between steps */
.step-connector {
  display: none;
}

/* ---------- Features ---------- */
.features {
  padding: var(--space-2xl) 0;
}

.features-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}
.features-header .section-subtitle {
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}

.feature-card {
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.05);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: rgba(212, 96, 58, 0.2);
}

.feature-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: rgba(212, 96, 58, 0.12);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}
.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

/* ---------- Showcase / App Preview ---------- */
.showcase {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-light);
  overflow: hidden;
}

.showcase .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.showcase-content {
  max-width: 500px;
}

.showcase-content .section-title {
  margin-bottom: var(--space-sm);
}

.showcase-content p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  font-size: 1.05rem;
}

.showcase-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.showcase-features li {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text);
  font-size: 1rem;
}
.showcase-features .check {
  color: var(--color-olive);
  font-size: 1.2rem;
}

.showcase-visual {
  display: flex;
  justify-content: center;
}
.showcase-mockup {
  max-width: 320px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 2px solid rgba(255,255,255,0.08);
}

/* ---------- Testimonials ---------- */
.testimonials {
  padding: var(--space-2xl) 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid rgba(255,255,255,0.05);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.testimonial-stars {
  color: var(--color-mustard);
  font-size: 1.1rem;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  color: var(--color-text);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.7;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: auto;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--color-white);
}

.testimonial-name {
  font-weight: 600;
  color: var(--color-cream);
  font-size: 0.9rem;
}

/* ---------- CTA Section ---------- */
.cta-section {
  padding: var(--space-2xl) 0;
  background: var(--color-bg-light);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 96, 58, 0.1) 0%, transparent 70%);
  border-radius: var(--radius-full);
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section .section-title {
  margin-bottom: var(--space-sm);
}

.cta-section .section-subtitle {
  margin: 0 auto var(--space-lg);
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.footer {
  padding: var(--space-xl) 0 var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand {
  max-width: 300px;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--color-orange);
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--color-cream);
  margin-bottom: var(--space-sm);
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.footer-col a:hover {
  color: var(--color-orange-light);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}
.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: background 0.3s, color 0.3s;
}
.footer-social a:hover {
  background: var(--color-orange);
  color: var(--color-white);
}

/* ---------- Legal Pages (Privacy, Terms) ---------- */
.legal-page {
  padding: 120px 0 var(--space-2xl);
}

.legal-page h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-cream);
  margin-bottom: var(--space-xs);
}

.legal-page .legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: var(--space-xl);
}

.legal-page h2 {
  font-size: 1.4rem;
  color: var(--color-orange-light);
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
}

.legal-page p,
.legal-page ul {
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-sm);
}

.legal-page ul {
  padding-left: var(--space-md);
}
.legal-page li {
  margin-bottom: var(--space-xs);
}

.legal-page a {
  color: var(--color-orange-light);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-content {
    max-width: 100%;
  }
  .hero-tagline {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-wheel-container {
    width: 300px;
    height: 300px;
  }
  .steps-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .showcase .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .showcase-content {
    max-width: 100%;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    padding: 80px var(--space-lg) var(--space-lg);
    gap: var(--space-md);
    transition: right 0.4s var(--ease-out);
    box-shadow: -4px 0 30px rgba(0,0,0,0.5);
  }
  .nav-links.open {
    right: 0;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  .hero {
    min-height: auto;
    padding: 100px 0 var(--space-xl);
  }
  .hero h1 { font-size: 2.4rem; }

  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }
}
