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

:root {
  --bg-primary: #FDFBF7; /* Warm white/cream alabaster */
  --bg-secondary: #F6F3EC; /* Slightly darker warm gray */
  --text-primary: #1F2937; /* Slate charcoal */
  --text-secondary: #4B5563; /* Medium gray */
  --emerald: #059669; /* Rich forest emerald */
  --emerald-light: rgba(5, 150, 105, 0.1);
  --gold: #B45309; /* Deep ochre gold */
  --gold-light: rgba(180, 83, 9, 0.08);
  --border-color: rgba(31, 41, 55, 0.08);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, serif;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.06);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
}

/* Background Glowing Orbs (Premium visual depth) */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.5;
}

.glow-1 {
  top: 10%;
  right: -5%;
  width: 45vw;
  height: 45vw;
  background: radial-gradient(circle, rgba(5, 150, 105, 0.12) 0%, rgba(253, 251, 247, 0) 70%);
}

.glow-2 {
  top: 60%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(180, 83, 9, 0.08) 0%, rgba(253, 251, 247, 0) 70%);
}

/* Typography Utilities */
.italic-serif {
  font-family: var(--font-serif);
  font-style: italic;
}

.text-gold {
  color: var(--gold);
}

.text-emerald {
  color: var(--emerald);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--text-primary);
  color: #ffffff;
}

.btn-primary:hover {
  background-color: var(--emerald);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.15);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border-color: var(--border-color);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background-color: rgba(31, 41, 55, 0.02);
  transform: translateY(-2px);
}

/* Header & Navigation */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(253, 251, 247, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.logo-accent {
  color: var(--emerald);
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

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

/* Hero Section */
.hero {
  padding: 6rem 2rem 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.badge-premium {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background-color: var(--gold-light);
  color: var(--gold);
  border: 1px solid rgba(180, 83, 9, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

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

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background-color: var(--border-color);
}

/* Phone Mockup (Light Luxury Style) */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup-wrapper {
  position: relative;
  width: 320px;
}

.phone-mockup {
  background: #ffffff;
  border-radius: 40px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0, 0, 0, 0.04), 0 20px 40px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.phone-screen {
  background: var(--bg-secondary);
  border-radius: 32px;
  height: 520px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
}

.app-header {
  padding: 1.5rem 1rem 1rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.app-logo {
  color: var(--emerald);
  font-size: 1.25rem;
}

.app-level {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-progress-bar {
  width: 60%;
  height: 4px;
  background: rgba(0,0,0,0.05);
  border-radius: 100px;
  overflow: hidden;
}

.app-progress {
  height: 100%;
  background: var(--emerald);
  border-radius: 100px;
}

.app-card-stage {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  gap: 1.5rem;
}

.coach-bubble {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255,255,255,0.9);
  font-size: 0.75rem;
  line-height: 1.4;
  text-align: center;
  max-width: 90%;
  color: var(--text-secondary);
}

.card-pair {
  display: flex;
  gap: 0.5rem;
}

.game-card {
  width: 70px;
  height: 100px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  font-weight: 700;
}

.spade-card {
  color: var(--text-primary);
}

.gold-card {
  border-color: var(--gold);
  background: var(--gold-light);
  color: var(--gold);
}

.card-value {
  font-size: 1.25rem;
  line-height: 1;
}

.card-suit {
  align-self: flex-end;
  font-size: 1.5rem;
  line-height: 1;
}

.app-footer {
  padding: 1rem;
  background: #ffffff;
  border-top: 1px solid var(--border-color);
}

.app-btn-row {
  display: flex;
  gap: 0.5rem;
}

.app-btn {
  flex: 1;
  padding: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.app-btn.active {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.8rem 1.2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  max-width: 220px;
  animation: float 6s ease-in-out infinite;
}

.badge-1 {
  top: 15%;
  left: -20%;
  animation-delay: 0s;
}

.badge-2 {
  bottom: 15%;
  right: -20%;
  animation-delay: 3s;
}

.badge-icon {
  font-size: 1.5rem;
}

.badge-text h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.badge-text p {
  font-size: 0.65rem;
  color: var(--text-secondary);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Section Common Styles */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.section-header {
  max-width: 650px;
  margin-bottom: 4rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Methodology Section */
.methodology {
  background-color: var(--bg-secondary);
}

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

.timeline-item {
  background: #ffffff;
  padding: 2.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.timeline-number {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 1.5rem;
  -webkit-text-stroke: 1px var(--gold);
  color: transparent;
}

.timeline-content h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.timeline-content p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Simulator Section */
.simulator-section {
  background-color: var(--bg-primary);
}

.simulator-board {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.partner-state {
  display: flex;
  justify-content: center;
  align-items: center;
}

.partner-avatar {
  font-size: 2.5rem;
  background: var(--bg-secondary);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.partner-info {
  margin-left: 1rem;
}

.partner-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bid-balloon {
  background: var(--text-primary);
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.85rem;
  margin-top: 0.2rem;
  display: inline-block;
}

.hand-label {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
  text-align: center;
}

.cards-display {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.5rem 0;
  border-top: 1px dashed var(--border-color);
  border-bottom: 1px dashed var(--border-color);
}

.suit-group {
  display: flex;
  margin-right: -0.5rem;
}

.playing-card {
  width: 64px;
  height: 90px;
  background: #ffffff;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.5rem;
  margin-right: -1.2rem;
  transition: transform 0.2s ease, margin-right 0.2s ease;
  cursor: default;
  user-select: none;
}

.playing-card:hover {
  transform: translateY(-15px) rotate(2deg);
  margin-right: -0.2rem;
  z-index: 10;
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}

.playing-card.spade,
.playing-card.club {
  color: var(--text-primary);
}

.playing-card.heart,
.playing-card.diamond {
  color: #BE123C; /* Rich red */
}

.card-corner {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
}

.card-center {
  align-self: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.simulator-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.simulator-actions h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.bid-buttons {
  display: flex;
  gap: 1rem;
}

.bid-btn {
  background: #ffffff;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.bid-btn:hover {
  border-color: var(--text-primary);
  background-color: var(--bg-secondary);
  transform: translateY(-2px);
}

.bid-btn.active {
  background: var(--text-primary);
  color: white;
  border-color: var(--text-primary);
}

.bid-btn.correct {
  background: var(--emerald);
  color: white;
  border-color: var(--emerald);
}

.bid-btn.incorrect {
  background: #BE123C;
  color: white;
  border-color: #BE123C;
}

/* Coach Feedback Box */
.coach-feedback-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  opacity: 1;
  transform: scale(1);
}

.coach-feedback-box.hidden {
  display: none;
  opacity: 0;
  transform: scale(0.95);
}

.coach-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.coach-icon {
  font-size: 1.25rem;
}

.coach-title {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.coach-text {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Features Section */
.features-section {
  background-color: var(--bg-secondary);
}

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

.feature-card {
  background: #ffffff;
  padding: 3rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(255, 255, 255, 0.8);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  display: inline-block;
}

.feature-card h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

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

/* Download CTA Section */
.download-section {
  background-color: var(--bg-primary);
}

.download-card {
  background: radial-gradient(circle at top right, var(--bg-secondary) 0%, #ffffff 80%);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 4.5rem 3rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.download-title {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.download-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.store-button {
  background: var(--text-primary);
  color: white;
  border-radius: var(--radius-md);
  padding: 0.8rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  border: 1px solid transparent;
}

.store-button:hover {
  background: var(--emerald);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(5, 150, 105, 0.15);
}

.store-icon {
  font-size: 2rem;
}

.store-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.store-text span {
  font-size: 0.75rem;
  opacity: 0.8;
}

.store-text strong {
  font-size: 1.1rem;
  font-weight: 700;
}

/* Footer styling */
.footer {
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 5rem 2rem 2.5rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto 4rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 3rem;
}

.footer-brand {
  max-width: 320px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.footer-logo {
  color: var(--emerald);
}

.footer-tagline {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-links-group {
  display: flex;
  gap: 5rem;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-col a {
  text-decoration: none;
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: var(--transition);
}

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

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .hero-container {
    gap: 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .header-container {
    padding: 1rem;
  }
  .nav {
    display: none;
  }
  .hero-container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  .hero-visual {
    order: -1;
  }
  .hero-ctas {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .download-card {
    padding: 3rem 1.5rem;
  }
  .download-title {
    font-size: 2.25rem;
  }
  .footer-container {
    flex-direction: column;
    gap: 2rem;
  }
  .footer-links-group {
    gap: 3rem;
  }
}
