/* ==========================================================================
   DotsPo — Minimalist, High-Aesthetic Design System
   ========================================================================== */

:root {
  /* Brand Palette */
  --dot-blue: #5B92E5;
  --dot-coral: #EE6D6B;
  --dot-yellow: #E6A217;
  --dot-green: #68A86C;
  --dot-purple: #B85D94;

  --accent-dark: #1E293B;
  --accent-blue: #2563EB;
  --accent-glow: rgba(91, 146, 229, 0.15);

  /* Surfaces & Typography */
  --bg-page: #FDFDFD;
  --bg-subtle: #F8FAFC;
  --bg-card: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.82);
  --bg-phone: #FFFFFF;

  --text-main: #0F172A;
  --text-secondary: #475569;
  --text-muted: #94A3B8;

  --border-hairline: rgba(15, 23, 42, 0.06);
  --border-light: rgba(15, 23, 42, 0.09);
  --border-focus: rgba(91, 146, 229, 0.4);

  --shadow-sm: 0 2px 8px -2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 10px 30px -6px rgba(15, 23, 42, 0.07), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-glow: 0 16px 36px -10px rgba(91, 146, 229, 0.28);

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-full: 9999px;

  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: var(--font-sans);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  min-height: 100vh;
}

/* Responsive Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.text-center {
  text-align: center;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
}

/* Section Title Accents */
.section-badge-wrapper {
  margin-bottom: 48px;
}

.section-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-blue);
  background: rgba(37, 99, 235, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.125rem;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-secondary);
  font-weight: 400;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-hairline);
  transition: all var(--transition-normal);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-app-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 5px rgba(15, 23, 42, 0.1));
  transition: transform var(--transition-bounce), filter var(--transition-normal);
}

.nav-brand:hover .nav-app-icon {
  transform: scale(1.08) rotate(-3deg);
  filter: drop-shadow(0 4px 10px rgba(91, 146, 229, 0.25));
}

.dotspo-logo-svg {
  width: 140px;
  height: auto;
  display: block;
}

.dotspo-logo-svg circle {
  transition: transform var(--transition-bounce), opacity var(--transition-fast);
}

.nav-brand:hover .dotspo-logo-svg circle {
  animation: logoDotBounce 0.6s ease infinite alternate;
}

.nav-brand:hover .letter-d circle { animation-delay: 0.05s; }
.nav-brand:hover .letter-o:first-of-type circle { animation-delay: 0.12s; }
.nav-brand:hover .letter-t circle { animation-delay: 0.18s; }
.nav-brand:hover .letter-s circle { animation-delay: 0.24s; }
.nav-brand:hover .letter-p circle { animation-delay: 0.30s; }
.nav-brand:hover .letter-o:last-of-type circle { animation-delay: 0.36s; }

@keyframes logoDotBounce {
  0% { transform: translateY(0); }
  100% { transform: translateY(-2.5px); }
}

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

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--dot-blue);
  border-radius: 2px;
  transition: width var(--transition-normal);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sound-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.sound-toggle-btn:hover {
  background: #FFFFFF;
  color: var(--dot-blue);
  box-shadow: var(--shadow-sm);
  border-color: var(--border-focus);
}

.sound-toggle-btn.sound-muted {
  color: var(--text-muted);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition-normal);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--text-main);
  color: #FFFFFF;
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.btn-primary:hover {
  background: #2563EB;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-outline {
  background: #FFFFFF;
  color: var(--text-main);
  border: 1.5px solid var(--border-light);
  padding: 12px 24px;
  font-size: 0.95rem;
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  background: var(--bg-subtle);
  border-color: var(--border-medium);
  color: #2563EB;
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}

.btn-icon {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  background: #FFFFFF;
  color: var(--text-main);
  transform: rotate(45deg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 140px;
  padding-bottom: 90px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 10%, rgba(91, 146, 229, 0.05) 0%, transparent 60%);
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(238, 109, 107, 0.08) 0%, rgba(91, 146, 229, 0.06) 50%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-app-intro {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: flex-start;
}

.hero-app-icon {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 10px 22px rgba(91, 146, 229, 0.35));
  display: block;
  flex-shrink: 0;
  transition: transform var(--transition-bounce), filter var(--transition-normal);
}

.hero-app-icon:hover {
  transform: scale(1.08) rotate(-2deg);
  filter: drop-shadow(0 14px 28px rgba(91, 146, 229, 0.5));
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-green);
  box-shadow: 0 0 8px var(--dot-green);
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.gradient-text {
  background: linear-gradient(135deg, var(--dot-blue) 0%, var(--dot-purple) 50%, var(--dot-coral) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
}

.hero-cta-group {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.app-store-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #000000;
  color: #FFFFFF;
  padding: 9px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.store-badge:hover {
  background: #1E293B;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: #FFFFFF;
}

.store-badge-light {
  background: rgba(255, 255, 255, 0.95);
  color: #0F172A;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.store-badge-light:hover {
  background: #FFFFFF;
  color: var(--accent-blue);
}

.store-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.badge-small {
  font-size: 0.65rem;
  opacity: 0.8;
  letter-spacing: 0.02em;
}

.badge-large {
  font-size: 0.95rem;
  font-weight: 700;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
}

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

.stat-number {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

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

/* ==========================================================================
   Hero Visual / Phone Mockup
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-frame {
  position: relative;
  width: 300px;
  height: 615px;
  background: #0F172A;
  border-radius: 46px;
  padding: 10px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  display: flex;
  flex-direction: column;
}

.phone-notch {
  width: 100px;
  height: 20px;
  background: #0F172A;
  border-radius: 0 0 14px 14px;
  margin: 0 auto;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-screen {
  background: #FFFFFF;
  border-radius: 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px 16px 16px;
  position: relative;
}

.phone-screen-image {
  padding: 0;
}

.phone-screenshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-radius: 36px;
}

.screen-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.screen-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #1E40AF;
  background: #EFF6FF;
  padding: 4px 10px;
  border-radius: 20px;
}

.dot-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563EB;
}

.screen-moves {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.moves-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.moves-count {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-main);
}

.screen-level-banner {
  background: #FAF8F5;
  border: 1px solid #EFE9DE;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 14px;
  text-align: center;
}

.level-title {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.level-target {
  display: block;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.hero-mini-board-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-board {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 250px;
  user-select: none;
}

.hero-dot-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hero-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}

.hero-dot:hover {
  transform: scale(1.18);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.screen-footer-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding-top: 10px;
  border-top: 1px solid var(--border-hairline);
}

/* Floating Mockup Cards */
.floating-card {
  position: absolute;
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border-hairline);
  animation: floatBob 4s ease-in-out infinite alternate;
  z-index: 20;
}

.floating-clue {
  top: 100px;
  left: -48px;
}

.floating-combo {
  bottom: 80px;
  right: -36px;
  animation-delay: -2s;
}

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

.clue-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #FEF3C7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.clue-meta {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #B45309;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.clue-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
}

.combo-pill {
  font-size: 0.72rem;
  font-weight: 800;
  background: #FFF1F2;
  color: #E11D48;
  padding: 4px 8px;
  border-radius: 8px;
}

.combo-text {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   Interactive Demo Section
   ========================================================================== */
.demo-section {
  padding: 100px 0;
  background: #FAFAFC;
  position: relative;
  border-top: 1px solid var(--border-hairline);
  border-bottom: 1px solid var(--border-hairline);
}

.demo-card-container {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: stretch;
  max-width: 1000px;
  margin: 0 auto;
}

.demo-game-shell {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
}

.game-hud {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-hairline);
  margin-bottom: 20px;
}

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

.hud-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.hud-value {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.hud-targets {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.target-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.target-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.target-blue { background: var(--dot-blue); }
.target-coral { background: var(--dot-coral); }

.target-val {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}

.board-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 380px;
  margin: 0 auto;
  user-select: none;
  touch-action: none;
}

.line-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.dots-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 12px;
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 10;
}

.grid-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.puzzle-dot {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.15s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.puzzle-dot:hover {
  transform: scale(1.15);
}

.puzzle-dot.dot-active {
  transform: scale(1.28);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.9), 0 0 16px rgba(0, 0, 0, 0.2);
}

.puzzle-dot.dot-popping {
  animation: dotPop 0.28s forwards ease-in-out;
}

@keyframes dotPop {
  0% { transform: scale(1.2); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.8; }
  100% { transform: scale(0); opacity: 0; }
}

.game-footer-bar {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hint-text {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--dot-blue);
  animation: pulseDot 1.5s infinite;
}

@keyframes pulseDot {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.8; }
}

.history-banner {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #065F46;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  animation: fadeInUp 0.3s ease;
}

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

/* Companion Card */
.demo-companion-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.companion-tag {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-blue);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.companion-title {
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.companion-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.clue-preview-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 16px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.clue-preview-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #DBEAFE;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.clue-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1E3A8A;
}

.clue-sub {
  font-size: 0.78rem;
  color: #2563EB;
  font-style: italic;
  margin-top: 2px;
}

.companion-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.comp-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.comp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dot-coral);
}

/* ==========================================================================
   Modes Section
   ========================================================================== */
.modes-section {
  padding: 100px 0;
}

.modes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.mode-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1.5px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
}

.mode-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-focus);
}

.mode-card-featured {
  border-color: rgba(30, 64, 175, 0.35);
  box-shadow: 0 16px 36px -8px rgba(30, 64, 175, 0.12);
}

.mode-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.mode-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  border: 1px solid;
}

.mode-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-title {
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.mode-description {
  font-size: 0.94rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.mode-highlights {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
}

.mode-highlights li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.check-icon {
  flex-shrink: 0;
}

/* ==========================================================================
   Historical Stories Section
   ========================================================================== */
.stories-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.stories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.story-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.story-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--story-theme, var(--dot-blue));
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--story-theme);
}

.story-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.story-tagline {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.story-name {
  font-size: 1.45rem;
  margin-top: 2px;
}

.story-lifespan {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  background: var(--bg-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-style: italic;
  color: var(--text-main);
  background: var(--story-bg, #EFF6FF);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--story-theme, var(--dot-blue));
  margin-bottom: 16px;
  line-height: 1.5;
}

.story-summary {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.story-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-hairline);
}

.story-stats {
  display: flex;
  gap: 6px;
}

.badge-mini {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: 6px;
}

.story-clue-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--story-theme, var(--dot-blue));
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-focus);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.feature-description {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Download Banner Section
   ========================================================================== */
.download-banner-section {
  padding: 70px 0 100px;
}

.download-banner-card {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  border-radius: var(--radius-xl);
  padding: 60px 48px;
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.download-banner-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 30%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(91, 146, 229, 0.25) 0%, transparent 70%);
  pointer-events: none;
}

.banner-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.banner-pill {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #93C5FD;
  background: rgba(147, 197, 253, 0.12);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.banner-title {
  font-size: 2.5rem;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.banner-subtitle {
  font-size: 1.1rem;
  color: #94A3B8;
  margin-bottom: 32px;
  line-height: 1.6;
}

.banner-cta-row {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Legal Pages (Privacy & Terms)
   ========================================================================== */
.legal-page-container {
  padding: 130px 24px 90px;
  max-width: 800px;
}

.legal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
}

.legal-header {
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-hairline);
  padding-bottom: 24px;
}

.legal-title {
  font-size: 2.5rem;
  margin-top: 10px;
}

.legal-date {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.legal-content a {
  color: var(--accent-blue);
  text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: #FFFFFF;
  border-top: 1px solid var(--border-hairline);
  padding: 70px 0 30px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-hairline);
  flex-wrap: wrap;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-app-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 2px 4px rgba(15, 23, 42, 0.1));
  flex-shrink: 0;
  display: block;
}

.footer-logo .dotspo-logo-svg {
  width: 130px;
}

.footer-tagline {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border: 1px solid var(--border-hairline);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.footer-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--accent-blue);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 30px;
}

.copyright {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-dot-row {
  display: flex;
  gap: 6px;
}

.fdot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 992px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .hero-content {
    align-items: center;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    align-items: center;
  }

  .demo-card-container {
    grid-template-columns: 1fr;
  }

  .modes-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-container {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: 64px;
  }

  .nav-container {
    height: 64px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    flex-direction: column;
    padding: 24px;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid var(--border-light);
  }

  .nav-links.nav-open {
    display: flex;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .hero-title {
    font-size: 2.6rem;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }

  .floating-card {
    display: none;
  }
}
