/* GeoGuesser IQ Landing Page - Apple-Inspired Design */

/* Color Palette from Extension */
:root {
  --red-primary: #CE3736;
  --red-light: #E84746;
  --red-dark: #A02928;
  --green-primary: #3EA228;
  --green-light: #4EC92F;
  --green-dark: #2D7A1E;
  --blue-primary: #2059BB;
  --blue-light: #3470D6;
  --blue-dark: #17428A;

  --rainbow-gradient: linear-gradient(135deg, #CE3736 0%, #3EA228 50%, #2059BB 100%);

  --background: #F9FAFB;
  --surface: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;

  --text-primary: #111827;
  --text-secondary: #6B7280;
  --text-inverse: #FFFFFF;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.1), 0 4px 8px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.12), 0 8px 16px rgba(0, 0, 0, 0.1);

  --font-system: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

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

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

/* Navigation */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: all 0.3s ease;
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 18px;
  color: var(--text-primary);
}

.nav-logo img {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

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

.nav-link {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

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

.nav-link.download-link {
  color: var(--blue-primary);
}

.nav-link.download-link:hover {
  color: var(--blue-dark);
}

/* Hero Section */
.hero {
  position: relative;
  padding: 120px 24px 80px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--gray-50) 100%);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1400px;
  height: 100%;
  background: radial-gradient(circle at 50% 0%, rgba(206, 55, 54, 0.08) 0%, transparent 60%),
              radial-gradient(circle at 0% 50%, rgba(62, 162, 40, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 100% 50%, rgba(32, 89, 187, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  z-index: 10;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  color: var(--blue-primary);
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.gradient-text {
  background: var(--rainbow-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Hero Visual */
.hero-visual {
  max-width: 1000px;
  margin: 80px auto 0;
  position: relative;
  z-index: 10;
}

.video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  background: var(--gray-900);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.browser-mockup {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  border: 1px solid var(--gray-200);
}

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
}

.browser-dots {
  display: flex;
  gap: 8px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gray-300);
}

.browser-dots span:nth-child(1) {
  background: #FF5F57;
}

.browser-dots span:nth-child(2) {
  background: #FFBD2E;
}

.browser-dots span:nth-child(3) {
  background: #28CA42;
}

.browser-url {
  flex: 1;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.browser-content {
  padding: 40px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--gray-50) 100%);
  min-height: 400px;
}

.extension-preview {
  max-width: 380px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.preview-header {
  padding: 20px;
  border-bottom: 1px solid var(--gray-200);
}

.mode-toggle {
  display: flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
}

.mode-btn {
  flex: 1;
  padding: 10px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  border-radius: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
  color: var(--text-secondary);
}

.mode-btn.active {
  background: var(--surface);
  color: var(--red-primary);
  box-shadow: var(--shadow-sm);
}

.preview-content {
  padding: 24px;
}

.analysis-card {
  background: var(--gray-50);
  border-radius: 8px;
  padding: 20px;
}

.analysis-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.clue-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clue-list li {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.clue-list strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: var(--font-system);
}

.btn-primary {
  background: var(--blue-primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1px solid var(--gray-300);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
}

.btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

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

/* Section Header */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.section-description {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features Section */
.features {
  padding: 120px 0;
  background: var(--surface);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 40px;
  border: 2px solid var(--gray-200);
  transition: all 0.3s ease;
}

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

.feature-card.red {
  border-color: rgba(206, 55, 54, 0.2);
}

.feature-card.red:hover {
  border-color: var(--red-primary);
  box-shadow: 0 20px 40px rgba(206, 55, 54, 0.15);
}

.feature-card.green {
  border-color: rgba(62, 162, 40, 0.2);
}

.feature-card.green:hover {
  border-color: var(--green-primary);
  box-shadow: 0 20px 40px rgba(62, 162, 40, 0.15);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 24px;
  background: var(--gray-50);
}

.feature-card.red .feature-icon {
  background: rgba(206, 55, 54, 0.08);
  color: var(--red-primary);
}

.feature-card.green .feature-icon {
  background: rgba(62, 162, 40, 0.08);
  color: var(--green-primary);
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
}

.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  font-weight: 700;
}

.feature-card.red .feature-list li::before {
  color: var(--red-primary);
}

.feature-card.green .feature-list li::before {
  color: var(--green-primary);
}

/* How It Works Section */
.how-it-works {
  padding: 120px 0;
  background: var(--gray-50);
}

.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.step {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step-number {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--rainbow-gradient);
  color: var(--text-inverse);
  font-size: 24px;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.step-content {
  flex: 1;
  padding-top: 8px;
}

.step-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.step-description {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Why Section */
.why {
  padding: 120px 0;
  background: var(--surface);
}

.why-content {
  max-width: 900px;
  margin: 0 auto;
}

.why-reasons {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}

.reason {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px;
  background: var(--gray-50);
  border-radius: 16px;
  transition: all 0.2s ease;
}

.reason:hover {
  background: var(--surface);
  box-shadow: var(--shadow-md);
  transform: translateX(8px);
}

.reason-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--surface);
  color: var(--blue-primary);
  box-shadow: var(--shadow-sm);
}

.reason-content h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.reason-content p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Download Section */
.download {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--gray-50) 0%, var(--surface) 100%);
}

.download-card {
  max-width: 900px;
  margin: 0 auto;
  background: var(--rainbow-gradient);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 10;
}

.download-title {
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-inverse);
}

.download-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.download-card .btn-primary {
  background: var(--surface);
  color: var(--blue-primary);
}

.download-card .btn-primary:hover {
  background: var(--gray-50);
  transform: translateY(-2px) scale(1.05);
}

.download-note {
  margin-top: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.download-features {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.download-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-inverse);
  font-size: 15px;
  font-weight: 500;
}

.download-feature svg {
  flex-shrink: 0;
}

/* Footer */
.footer {
  padding: 48px 0;
  background: var(--gray-900);
  color: var(--text-inverse);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

.footer-brand img {
  filter: brightness(0) invert(1);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 8px;
}

.built-by {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
}

.creator-link {
  color: var(--blue-light);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  font-family: 'Georgia', 'Times New Roman', serif;
  font-style: italic;
}

.creator-link:hover {
  color: var(--text-inverse);
  text-decoration: underline;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--surface);
  border-radius: 20px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: modalSlideUp 0.3s ease;
}

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

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--green-primary);
  color: var(--text-inverse);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(62, 162, 40, 0.3);
}

.modal-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.modal-description {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.modal-steps {
  text-align: left;
  margin: 24px 0;
  padding: 24px;
  background: var(--gray-50);
  border-radius: 12px;
  list-style-position: inside;
}

.modal-steps li {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.modal-steps li:last-child {
  margin-bottom: 0;
}

.modal-steps strong {
  color: var(--text-primary);
  font-weight: 600;
}

.modal-steps a {
  color: var(--blue-primary);
  text-decoration: none;
}

.modal-steps a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 14px;
  }

  .hero {
    padding: 100px 16px 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-stats {
    gap: 32px;
  }

  .browser-content {
    padding: 20px;
  }

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

  .step {
    flex-direction: column;
    gap: 20px;
  }

  .download-card {
    padding: 40px 24px;
  }

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

  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-content {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    padding: 12px 16px;
  }

  .nav-links {
    display: none;
  }

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

  .section-title {
    font-size: 28px;
  }

  .feature-card {
    padding: 28px;
  }
}

/* Smooth Animations */
@media (prefers-reduced-motion: no-preference) {
  .feature-card,
  .reason,
  .btn {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Print Styles */
@media print {
  .nav,
  .hero-cta,
  .download,
  .footer,
  .modal {
    display: none;
  }
}
