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

:root {
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-alt: #F1F5F9;
  --primary: #4F46E5;
  --primary-hover: #4338CA;
  --primary-pressed: #3730A3;
  --secondary: #C7D2FE;
  --text: #0F172A;
  --text-secondary: #475569;
  --border: #E7E5E4;
  --success: #22C55E;
  --warning: #F59E0B;
  --error: #EF4444;
  --tip-great: #4CAF50;
  --tip-good: #9ACD32;
  --tip-avg: #FFD700;
  --tip-poor: #FF6B35;
  --tip-none: #FF4444;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

a {
  color: var(--primary);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 15px;
  border-radius: 10px;
  padding: 10px 24px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  text-align: center;
}

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

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-lg {
  padding: 14px 32px;
  font-size: 17px;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}

.btn-sm:hover {
  background: var(--primary-hover);
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.08);
  padding: 10px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
}

.nav-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

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

.nav-links a {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 15px;
  transition: color 0.2s;
}

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

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  padding: 140px 0 80px;
  background: linear-gradient(160deg, #FAFAF9 0%, #EEF2FF 50%, #E0E7FF 100%);
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-size: 48px;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-text h1 em {
  color: var(--primary);
  font-style: normal;
  position: relative;
}

.hero-text h1 em::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--secondary);
  border-radius: 2px;
}

.hero-subtitle {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.hero-platforms {
  font-size: 13px;
  color: var(--text-secondary);
}

.hero-image {
  flex: 0 0 auto;
}

.hero-logo {
  width: 320px;
  height: 320px;
  object-fit: contain;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 20px 40px rgba(79, 70, 229, 0.15));
}

/* ===== Problem / Solution ===== */
.problem {
  padding: 80px 0;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.problem-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}

.problem-card.solution {
  border-color: var(--secondary);
  background: linear-gradient(180deg, #EEF2FF, #FFFFFF);
}

.problem-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.problem-card h3 {
  font-size: 22px;
  margin-bottom: 12px;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

/* ===== Section Titles ===== */
.section-title {
  font-size: 36px;
  text-align: center;
  margin-bottom: 12px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== How It Works ===== */
.how-it-works {
  padding: 80px 0;
  background: var(--surface-alt);
}

.flow {
  max-width: 680px;
  margin: 0 auto;
}

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

.flow-number {
  flex: 0 0 48px;
  height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 20px;
  margin-top: 2px;
}

.flow-content h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.flow-content p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
}

.flow-connector {
  width: 2px;
  height: 32px;
  background: var(--secondary);
  margin-left: 23px;
}

/* Tip legend & badges */
.tip-legend {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.tip-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.tip-great, .tip-badge.tip-great { color: var(--tip-great); background: rgba(76, 175, 80, 0.12); }
.tip-good, .tip-badge.tip-good { color: var(--tip-good); background: rgba(154, 205, 50, 0.15); }
.tip-avg, .tip-badge.tip-avg { color: #B8960F; background: rgba(255, 215, 0, 0.15); }
.tip-poor, .tip-badge.tip-poor { color: var(--tip-poor); background: rgba(255, 107, 53, 0.12); }
.tip-none, .tip-badge.tip-none { color: var(--tip-none); background: rgba(255, 68, 68, 0.12); }

/* ===== Features ===== */
.features {
  padding: 80px 0;
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.1);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--secondary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
  color: var(--primary);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.65;
}

/* ===== Screenshots ===== */
.screenshots {
  padding: 80px 0;
  background: var(--surface-alt);
}

.screenshot-wrapper {
  position: relative;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
}

.screenshot-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screenshot-overlay span {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.85);
  padding: 16px 48px;
  border-radius: 14px;
  border: 2px solid var(--secondary);
}

.screenshot-placeholder {
  aspect-ratio: 9 / 16;
  background: var(--surface);
  border: 2px dashed var(--border);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-secondary);
}

.placeholder-inner svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.placeholder-inner span {
  font-size: 14px;
  font-weight: 600;
}

/* ===== Download CTA ===== */
.download {
  padding: 100px 0;
  background: linear-gradient(160deg, #EEF2FF 0%, #E0E7FF 50%, #C7D2FE 100%);
}

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

.download-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin-bottom: 24px;
  box-shadow: 0 8px 24px rgba(79, 70, 229, 0.15);
}

.download h2 {
  font-size: 32px;
  margin-bottom: 12px;
}

.download p {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 28px;
}

.download-note {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.footer-brand strong {
  display: block;
  font-size: 15px;
}

.footer-brand span {
  font-size: 13px;
  color: var(--text-secondary);
}

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

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.2s;
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 8px;
}

/* ===== Contact Page ===== */
.contact-page {
  padding: 120px 0 80px;
  min-height: calc(100vh - 100px);
  display: flex;
  align-items: center;
}

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 40px;
}

.contact-card.thankyou-card {
  text-align: center;
  padding: 64px 40px;
}

.contact-header {
  text-align: center;
  margin-bottom: 36px;
}

.thankyou-card .contact-header {
  margin-bottom: 0;
}

.contact-icon-circle {
  width: 56px;
  height: 56px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.contact-icon-circle svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.contact-icon-circle.success {
  background: rgba(34, 197, 94, 0.12);
}

.contact-icon-circle.success svg {
  color: var(--success);
}

.contact-header h1 {
  font-size: 28px;
  margin-bottom: 8px;
}

.contact-header p {
  color: var(--text-secondary);
  font-size: 15px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #94A3B8;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  appearance: none;
  cursor: pointer;
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top: 6px solid var(--text-secondary);
  pointer-events: none;
}

.contact-submit {
  width: 100%;
  margin-top: 4px;
}

/* ===== Toast Notification ===== */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  background: var(--surface);
  border: 2px solid var(--success);
  border-radius: 12px;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast svg {
  width: 22px;
  height: 22px;
  color: var(--success);
  flex-shrink: 0;
}

.toast span {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-text h1 {
    font-size: 36px;
  }

  .hero-container {
    flex-direction: column;
    text-align: center;
  }

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

  .hero-actions {
    justify-content: center;
  }

  .hero-logo {
    width: 220px;
    height: 220px;
  }

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

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

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

@media (max-width: 640px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

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

  .nav-toggle {
    display: flex;
  }

  .hero {
    padding: 120px 0 60px;
  }

  .hero-text h1 {
    font-size: 30px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

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

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

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

  .flow-step {
    gap: 16px;
  }

  .tip-legend {
    justify-content: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}
