/* Google Fonts - Rounded sans-serif style matching the UI */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

:root {
  /* Flat UI Navy Colors from Screenshot */
  --bg-primary: #0F121C;
  /* Deepest Navy background */
  --bg-secondary: #1F2536;
  /* Card backgrounds */

  /* Text */
  --text-primary: #FFFFFF;
  --text-secondary: #94A3B8;
  /* Slate gray for secondary text */

  /* Primary UI Buttons / Accents */
  --accent-action: #60A5FA;
  /* Cornflower/Sky blue used for "Play Today" */
  --accent-action-hover: #3B82F6;

  /* Feature Colors from Game Tiles */
  --color-coral: #F87171;
  /* Red/Coral tile */
  --color-teal: #34D399;
  /* Mint/Teal tile */
  --color-blue: #60A5FA;
  /* Blue tile */
  --color-gold: #F59E0B;
  /* Orange/Gold used for hints/rewards */

  /* Shadows and Borders */
  --card-border: rgba(255, 255, 255, 0.05);
  /* Very faint border */
  --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  --card-radius: 20px;
  /* Generous rounded corners from screenshot */

  /* Typography */
  --font-main: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Spacing & Layout */
  --max-width: 1200px;
  --spacing-base: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

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

/* Base structural classes */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* App-style Cards */
.app-card {
  background-color: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 24px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Base Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 14px;
  /* Slightly less round than cards, like UI */
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
  gap: 10px;
}

.btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
  border-radius: 10px;
}

/* Primary "Play Today" style button */
.btn-primary {
  background-color: var(--accent-action);
  color: #0B1120;
  /* Dark text on bright button for contrast */
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.3);
}

.btn-primary:hover {
  background-color: var(--accent-action-hover);
  transform: translateY(-2px);
}

/* Secondary/Outline style button (Like "Continue") */
.btn-outline {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Typography Enhancements */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

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

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

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

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

.text-muted {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Tag/Badge (Like the "2 days" pill) */
.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(245, 158, 11, 0.15);
  /* Gold tint */
  color: var(--color-gold);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Navigation */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-primary);
}

.logo h2 {
  margin-bottom: 0;
}

.app-icon-small {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:not(.btn):hover {
  color: var(--text-primary);
}

/* Hero Section */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
}

.hero-content {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 40px 24px 80px;
}

.hero-text {
  flex: 1;
  max-width: 600px;
}

.hero-text h1 {
  font-size: 4rem;
  margin-bottom: 24px;
}

/* Colored accent in header */
.hero-text h1 span.coral {
  color: var(--color-coral);
}

.hero-text h1 span.teal {
  color: var(--color-teal);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 500;
}

.cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

.mockup-img {
  max-width: 90%;
  border-radius: 36px;
  /* Heavy phone radius */
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.dual-mockups {
  align-items: center;
}

.mockup-img-tall {
  max-width: 45%;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  border: 4px solid var(--bg-secondary);
  transition: transform 0.3s ease;
}

.mockup-img-tall:hover {
  transform: translateY(-5px);
  z-index: 3 !important;
}

/* Features Section (Using the App Card style) */
.features-section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 2.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  /* Tighter gap matching the UI list view */
}

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  /* Align left like the UI cards */
}

.feature-card.centered {
  align-items: center;
  text-align: center;
}

.feature-icon-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  width: 100%;
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

/* Tile color variants for icons */
.bg-coral-light {
  background-color: rgba(248, 113, 113, 0.15);
  color: var(--color-coral);
}

.bg-teal-light {
  background-color: rgba(52, 211, 153, 0.15);
  color: var(--color-teal);
}

.bg-blue-light {
  background-color: rgba(96, 165, 250, 0.15);
  color: var(--color-blue);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Legal Pages Styling */
.legal-content.container {
  max-width: 800px;
  padding: 80px 24px;
}

/* Re-using app-card for legal document housing */
.legal-panel {
  padding: 48px;
}

.legal-panel h1 {
  font-size: 2.5rem;
  margin-bottom: 12px;
  color: var(--color-blue);
}

.legal-panel h2 {
  font-size: 1.6rem;
  margin-top: 48px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.legal-panel h3 {
  font-size: 1.25rem;
  margin-top: 32px;
  color: var(--text-primary);
}

.legal-panel p,
.legal-panel ul {
  color: var(--text-secondary);
  margin-bottom: 16px;
  font-size: 1.05rem;
  font-weight: 500;
}

.legal-panel ul {
  padding-left: 24px;
  margin-bottom: 24px;
}

.legal-panel li {
  margin-bottom: 8px;
}

.legal-panel a {
  color: var(--color-blue);
  text-decoration: none;
  font-weight: 600;
}

.legal-panel a:hover {
  text-decoration: underline;
}

/* Footer Section */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--card-border);
  margin-top: 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
  flex-wrap: wrap;
  gap: 32px;
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
}

.footer-links-group h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
}

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

.footer-links-group li {
  margin-bottom: 12px;
}

.footer-links-group a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
  font-weight: 600;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--card-border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3.2rem;
  }

  .cta-group {
    justify-content: center;
  }

  .mockup-img {
    margin-top: 32px;
  }
}

@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
  }

  .legal-panel {
    padding: 32px 24px;
  }

  .legal-panel h1 {
    font-size: 2rem;
  }
}