/* OnDeck Marketing Website Styles */
/* Brand colors from BRAND_STANDARDS.md */

:root {
  /* Primary Colors */
  --ocean-teal: hsl(174, 90%, 32%);
  --ocean-teal-light: hsl(174, 90%, 42%);
  --ocean-teal-dark: hsl(174, 90%, 25%);
  --field-green: hsl(142, 71%, 45%);
  --sunset-orange: hsl(38, 92%, 50%);
  --error-red: hsl(0, 84%, 60%);

  /* Light Mode Neutrals */
  --background: hsl(220, 20%, 97%);
  --card: hsl(0, 0%, 100%);
  --border: hsl(220, 15%, 88%);
  --muted: hsl(220, 15%, 92%);
  --foreground: hsl(220, 25%, 10%);
  --muted-foreground: hsl(220, 10%, 46%);

  /* Spacing */
  --radius: 0.75rem;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --background: hsl(222, 30%, 8%);
    --card: hsl(222, 25%, 12%);
    --border: hsl(222, 20%, 18%);
    --muted: hsl(222, 20%, 18%);
    --foreground: hsl(210, 20%, 95%);
    --muted-foreground: hsl(215, 15%, 55%);
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--foreground);
}

h1 { font-size: 2.5rem; font-weight: 900; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  color: var(--muted-foreground);
}

a {
  color: var(--ocean-teal);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--ocean-teal-light);
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--foreground);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--muted-foreground);
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

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

.nav a.active {
  color: var(--ocean-teal);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.mobile-menu-btn svg {
  width: 24px;
  height: 24px;
  stroke: var(--foreground);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem;
    gap: 1rem;
  }

  .nav.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--ocean-teal);
  color: white;
}

.btn-primary:hover {
  background: var(--ocean-teal-dark);
  color: white;
}

.btn-secondary {
  background: var(--muted);
  color: var(--foreground);
}

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

.btn-outline {
  background: transparent;
  color: var(--ocean-teal);
  border: 2px solid var(--ocean-teal);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-outline::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--ocean-teal);
  transition: left 0.3s ease;
  z-index: -1;
}

.btn-outline:hover::before {
  left: 0;
}

.btn-outline:hover {
  color: white;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-disabled {
  opacity: 0.7;
  cursor: not-allowed;
  position: relative;
}

/* Coming Soon Badge */
.coming-soon-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--sunset-orange);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-store {
  position: relative;
  background: var(--foreground);
  color: var(--background);
  padding: 0.875rem 1.5rem;
}

.btn-store:hover {
  background: var(--muted-foreground);
  color: var(--background);
}

/* Hero Section */
.hero {
  padding: 8rem 0 4rem;
  text-align: center;
  background: linear-gradient(180deg, var(--card) 0%, var(--background) 100%);
  position: relative;
  overflow: hidden;
}

.hero-dark {
  background: hsl(222, 30%, 8%);
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-dark h1,
.hero-dark .subtitle {
  color: white;
}

.hero-dark .subtitle {
  color: rgba(255, 255, 255, 0.85);
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  background: hsl(30, 40%, 25%); /* Warm fallback while image loads */
}

.hero-background img,
.hero-background picture {
  width: 100%;
  height: 100%;
}

.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.hero-background::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.6) 0%,
    rgba(0, 0, 0, 0.5) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 1;
}

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

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.hero .subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.95);
  max-width: 650px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero {
    padding: 7rem 0 3rem;
  }

  .hero-dark {
    min-height: auto;
    padding: 8rem 0 4rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }
}

/* Section */
.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  max-width: 600px;
  margin: 0 auto;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all 0.2s ease;
}

.card:hover {
  border-color: var(--ocean-teal);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Feature Cards */
.feature-card {
  text-align: center;
  padding: 2rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, var(--ocean-teal), var(--field-green));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  stroke: white;
}

.feature-icon-img {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon-img img {
  transform: scale(1.05);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
}

/* Before/After Container */
.before-after-container {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.before-after-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Card Hover Effects */
.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

/* Staggered Grid Animation */
.features-grid .card,
.pain-points-grid .card {
  opacity: 0;
  transform: translateY(20px);
}

.features-grid .card.animate-in,
.pain-points-grid .card.animate-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}

.features-grid .card:nth-child(1) { transition-delay: 0ms; }
.features-grid .card:nth-child(2) { transition-delay: 100ms; }
.features-grid .card:nth-child(3) { transition-delay: 200ms; }
.features-grid .card:nth-child(4) { transition-delay: 300ms; }

.pain-points-grid .card:nth-child(1) { transition-delay: 0ms; }
.pain-points-grid .card:nth-child(2) { transition-delay: 100ms; }
.pain-points-grid .card:nth-child(3) { transition-delay: 200ms; }

/* Section Divider - Wave */
.section-divider-wave {
  width: 100%;
  height: 60px;
  margin: -1px 0;
  overflow: hidden;
  background: transparent;
}

.section-divider-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Legacy image divider (deprecated) */
.section-divider {
  width: 100%;
  height: 40px;
  margin: -1px 0;
  overflow: hidden;
}

.section-divider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Problem/Solution Section */
.problem-section {
  background: var(--card);
}

.pain-points {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pain-point {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pain-point-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: hsl(0, 84%, 95%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pain-point-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--error-red);
}

.solution-point-icon {
  background: hsl(142, 71%, 92%);
}

.solution-point-icon svg {
  stroke: var(--field-green);
}

/* How It Works */
.steps {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.step {
  text-align: center;
  max-width: 280px;
}

.step-number {
  width: 56px;
  height: 56px;
  background: var(--ocean-teal);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1rem;
}

.step h3 {
  margin-bottom: 0.5rem;
}

.step-connector {
  display: none;
}

@media (min-width: 992px) {
  .step-connector {
    display: block;
    width: 80px;
    height: 2px;
    background: var(--border);
    margin-top: 28px;
  }
}

/* Pricing Cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.pricing-card {
  padding: 2.5rem;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--ocean-teal);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ocean-teal);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 1rem;
  border-radius: 999px;
}

.pricing-tier {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ocean-teal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
}

.pricing-price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--muted-foreground);
}

.pricing-features {
  list-style: none;
  margin: 2rem 0;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  color: var(--muted-foreground);
}

.pricing-features li svg {
  width: 20px;
  height: 20px;
  stroke: var(--field-green);
  flex-shrink: 0;
}

.pricing-features li.disabled {
  opacity: 0.5;
}

.pricing-features li.disabled svg {
  stroke: var(--muted-foreground);
}

/* Founding Member Pricing */
.pricing-price-original {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  text-decoration: line-through;
  margin-right: 0.5rem;
}

.founding-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--ocean-teal), var(--field-green));
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.pricing-toggle {
  display: flex;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 2rem;
  background: var(--muted);
  padding: 0.25rem;
  border-radius: 999px;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-toggle-btn {
  padding: 0.5rem 1.25rem;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--muted-foreground);
  transition: all 0.2s ease;
}

.pricing-toggle-btn.active {
  background: var(--card);
  color: var(--foreground);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pricing-toggle-btn:hover:not(.active) {
  color: var(--foreground);
}

.save-badge {
  background: var(--field-green);
  color: white;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  margin-left: 0.25rem;
  text-transform: uppercase;
  vertical-align: middle;
}

.pricing-subtitle {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  margin-top: 0.25rem;
}

.limited-time {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(var(--field-green-rgb, 34, 197, 94), 0.1);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--field-green);
}

.limited-time svg {
  width: 16px;
  height: 16px;
  stroke: var(--field-green);
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--ocean-teal), hsl(174, 90%, 25%));
  color: white;
  text-align: center;
  padding: 4rem 0;
}

.cta-banner h2 {
  color: white;
  margin-bottom: 1rem;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2rem;
}

.cta-banner .btn {
  background: white;
  color: var(--ocean-teal);
}

.cta-banner .btn:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* Footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

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

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.footer-column h4 {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--foreground);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

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

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-links a:hover {
  background: var(--ocean-teal);
}

.social-links a:hover svg {
  stroke: white;
}

.social-links svg {
  width: 20px;
  height: 20px;
  stroke: var(--muted-foreground);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  font-size: 0.875rem;
}

/* Waterfall Diagram */
.waterfall-diagram {
  max-width: 600px;
  margin: 3rem auto;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.waterfall-step {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.waterfall-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 20px;
  top: 100%;
  height: 20px;
  width: 2px;
  background: var(--ocean-teal);
}

.waterfall-badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.waterfall-badge.starter {
  background: var(--ocean-teal);
  color: white;
}

.waterfall-badge.bench {
  background: var(--field-green);
  color: white;
}

.waterfall-badge.open {
  background: var(--muted);
  color: var(--muted-foreground);
}

.waterfall-content h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.waterfall-content p {
  font-size: 0.875rem;
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.faq-question {
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.faq-answer {
  color: var(--muted-foreground);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Values Grid */
.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

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

.value-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.value-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--ocean-teal), var(--field-green));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.value-icon svg {
  width: 28px;
  height: 28px;
  stroke: white;
}

.value-content h3 {
  margin-bottom: 0.5rem;
}

/* Contact Page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 800px;
  margin: 0 auto;
}

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

.contact-info-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.contact-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--muted);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--ocean-teal);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.animate-slide-up {
  animation: slideUp 0.5s ease-out forwards;
  opacity: 1 !important;
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-teal { color: var(--ocean-teal); }
.text-green { color: var(--field-green); }
.bg-muted { background: var(--muted); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* ========================================
   Animated Waterfall Diagram
   ======================================== */

.waterfall-animated {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 400px;
  margin: 0 auto;
  padding: 2rem;
  position: relative;
}

/* Match Card */
.wf-match-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--card);
  border: 2px solid var(--ocean-teal);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wf-match-icon {
  font-size: 1.5rem;
}

.wf-match-text {
  font-weight: 600;
  color: var(--foreground);
  font-size: 1rem;
}

/* Arrows */
.wf-arrow {
  color: var(--ocean-teal);
  margin: 0.5rem 0;
}

.wf-arrow svg {
  display: block;
}

/* Cascade Arrow with Label */
.wf-cascade {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.75rem 0;
  color: var(--field-green);
}

.wf-cascade-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--field-green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
  background: linear-gradient(135deg, var(--ocean-teal), var(--field-green));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Tier Containers */
.wf-tier {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 280px;
}

.wf-tier-label {
  font-weight: 700;
  font-size: 1rem;
  color: var(--ocean-teal);
  margin-bottom: 0.25rem;
}

.wf-tier-subtitle {
  font-size: 0.75rem;
  color: var(--muted-foreground);
  margin-bottom: 1rem;
}

.wf-tier-captain .wf-tier-label {
  color: var(--sunset-orange);
}

.wf-tier-bench .wf-tier-label {
  color: var(--field-green);
}

/* Players Container */
.wf-players {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

/* Individual Player */
.wf-player {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.wf-player-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--muted) 0%, var(--border) 100%);
  border: 2px solid var(--border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.wf-avatar {
  width: 28px;
  height: 28px;
  color: var(--muted-foreground);
  opacity: 0.6;
}

.wf-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wf-player:hover .wf-player-circle {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation Initial States (CSS fallback) */
.waterfall-animated [data-wf="match"],
.waterfall-animated [data-wf="arrow-1"],
.waterfall-animated [data-wf="captain"],
.waterfall-animated [data-wf="arrow-2"],
.waterfall-animated [data-wf="starters"],
.waterfall-animated [data-wf="cascade"],
.waterfall-animated [data-wf="bench"],
.waterfall-animated [data-wf="arrow-final"],
.waterfall-animated [data-wf="success"] {
  opacity: 0;
  transform: translateY(20px);
}

.waterfall-animated .wf-player-status,
.waterfall-animated .wf-notification {
  transform: scale(0);
  opacity: 0;
}

.waterfall-animated .wf-replay-btn {
  opacity: 0;
}

/* Show elements when animation complete or no-JS */
.waterfall-animated.wf-complete [data-wf],
.waterfall-animated.wf-complete .wf-player-status,
.waterfall-animated.wf-complete .wf-notification,
.waterfall-animated.wf-complete .wf-replay-btn {
  opacity: 1;
  transform: none;
}

/* Player Status Badges */
.wf-player-status {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  border: 2px solid var(--card);
  z-index: 2;
}

.wf-status-accepted {
  background: var(--field-green);
  color: white;
}

.wf-status-declined {
  background: var(--error-red);
  color: white;
}

.wf-status-timeout {
  background: var(--sunset-orange);
  color: white;
}

/* Notification Ping */
.wf-notification {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ocean-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  border: 2px solid var(--card);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(15, 168, 158, 0.4);
}

/* Slow players fade out */
.wf-player-slow {
  transition: opacity 0.3s ease;
}

/* Success State */
.wf-success {
  text-align: center;
}

.wf-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, var(--ocean-teal), var(--field-green));
  color: white;
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(15, 168, 158, 0.3);
}

.wf-success-count {
  font-size: 1.5rem;
  font-weight: 900;
}

.wf-success-text {
  font-weight: 600;
  font-size: 1rem;
}

.wf-success-check {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.wf-success-caption {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  color: var(--muted-foreground);
  font-style: italic;
}

/* Replay Button */
.wf-replay-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.5rem 1rem;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted-foreground);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wf-replay-btn:hover {
  background: var(--card);
  color: var(--foreground);
  border-color: var(--ocean-teal);
}

.wf-replay-btn svg {
  width: 16px;
  height: 16px;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .waterfall-animated {
    padding: 1rem;
  }

  .wf-tier {
    min-width: 240px;
    padding: 1rem;
  }

  .wf-player-circle {
    width: 40px;
    height: 40px;
  }

  .wf-players {
    gap: 0.75rem;
  }

  .wf-player-status {
    width: 20px;
    height: 20px;
    font-size: 0.625rem;
  }

  .wf-notification {
    width: 24px;
    height: 24px;
    font-size: 0.75rem;
  }
}

/* ========================================
   About / Founder Story Section
   ======================================== */

.about-story {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.about-image img {
  width: 100%;
  height: auto;
  display: block;
}

.about-content h2 {
  margin-bottom: 1.5rem;
}

.about-content p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

.about-signature {
  font-weight: 600;
  color: var(--ocean-teal);
  margin-top: 1.5rem;
}

@media (max-width: 768px) {
  .about-story {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }

  .about-image {
    max-width: 300px;
    margin: 0 auto;
  }
}

/* ========================================
   FAQ Accordion
   ======================================== */

.faq-accordion .faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  background: var(--card);
  overflow: hidden;
}

.faq-accordion .faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--foreground);
  text-align: left;
  transition: background 0.2s ease;
}

.faq-accordion .faq-question:hover {
  background: var(--muted);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--muted-foreground);
}

.faq-accordion .faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-accordion .faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  color: var(--muted-foreground);
  line-height: 1.7;
  transition: all 0.3s ease;
}

.faq-accordion .faq-item.open .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.25rem;
}

/* ========================================
   Waitlist Form Styles
   ======================================== */

.waitlist-hero {
  min-height: 70vh;
}

.waitlist-form-container {
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-row {
  display: flex;
  gap: 0.75rem;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }
}

.form-field {
  flex: 1;
  position: relative;
}

.form-field input {
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--foreground);
  transition: all 0.2s ease;
  font-family: inherit;
}

.form-field input::placeholder {
  color: var(--muted-foreground);
}

.form-field input:focus {
  outline: none;
  border-color: var(--ocean-teal);
  box-shadow: 0 0 0 3px rgba(15, 168, 158, 0.2);
}

.form-field input.error {
  border-color: var(--error-red);
}

.form-error {
  position: absolute;
  bottom: -1.5rem;
  left: 0;
  font-size: 0.75rem;
  color: #ff6b6b;
  font-weight: 500;
}

.form-disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

/* Honeypot field - hidden from users, visible to bots */
.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Loading state */
.btn-loading {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.spinner circle {
  stroke-dasharray: 60;
  stroke-dashoffset: 45;
}

/* Success state */
.waitlist-success {
  text-align: center;
  padding: 2rem;
  animation: fadeIn 0.5s ease;
}

.success-icon {
  margin-bottom: 1rem;
}

.waitlist-success h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.waitlist-success p {
  color: rgba(255, 255, 255, 0.85);
}
