/* ===== VARIABLES ===== */
:root {
  --color-bg: #0f172a;
  /* Slate 900 */
  --color-bg-card: #1e293b;
  /* Slate 800 */
  --color-bg-card-hover: #334155;
  /* Slate 700 */

  --color-primary: #3b82f6;
  /* Blue 500 */
  --color-primary-dark: #2563eb;
  /* Blue 600 */
  --color-primary-light: #60a5fa;
  /* Blue 400 */

  --color-accent: #10b981;
  /* Emerald 500 */
  --color-accent-light: #34d399;

  --color-text: #f8fafc;
  /* Slate 50 */
  --color-text-muted: #94a3b8;
  /* Slate 400 */
  --color-border: #334155;
  /* Slate 700 */

  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-accent: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-light) 100%);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

/* ===== CONTAINER ===== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

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

.section-subtitle {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 56px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
}

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

.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-bg-card);
  color: var(--color-text);
  border-color: var(--color-border);
}

.btn-secondary:hover {
  background: var(--color-bg-card-hover);
  border-color: var(--color-text-muted);
}

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

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.1);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.125rem;
}

/* ===== BADGES ===== */
.beta-badge,
.hero-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.beta-badge {
  background: rgba(16, 185, 129, 0.1);
  color: var(--color-accent);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.hero-badge {
  background: rgba(59, 130, 246, 0.1);
  color: var(--color-primary-light);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ===== HERO ===== */
.hero {
  padding: 120px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background accent */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero h1 {
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  max-width: 680px;
  margin: 0 auto 40px;
  color: var(--color-text-muted);
}

.hero-hint {
  margin-top: 16px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  opacity: 0.8;
}

/* ===== FEATURES GRID ===== */
.features {
  padding: 80px 0;
  border-bottom: 1px solid var(--color-border);
}

.features-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.feature {
  background: var(--color-bg);
  padding: 24px;
  border-radius: var(--radius-lg);
  text-align: left;
  transition: transform 0.2s;
}

.feature-emoji {
  font-size: 2rem;
  margin-bottom: 16px;
  display: inline-block;
  background: var(--color-bg-card);
  padding: 12px;
  border-radius: 12px;
}

.feature h3 {
  margin-bottom: 8px;
}

/* ===== STORY ===== */
.story-section {
  padding: 100px 0;
  background: var(--color-bg-card);
}

.story-block {
  max-width: 720px;
  margin: 0 auto;
}

.story-text {
  font-size: 1.125rem;
}

.story-highlight {
  background: rgba(59, 130, 246, 0.1);
  border-left: 4px solid var(--color-primary);
  padding: 24px;
  margin: 32px 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--color-text);
}

/* ===== STATUS CARD ===== */
.status-section {
  padding: 60px 0;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.status-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.status-badge {
  background: var(--color-bg-card);
  padding: 8px 16px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ===== TECH SECTION ===== */
.tech-section {
  padding: 100px 0;
  background: var(--color-bg);
}

.tech-chapter {
  background: var(--color-bg-card);
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  margin-bottom: 24px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.chapter-icon {
  margin-right: 12px;
  vertical-align: middle;
}

/* ===== PROBLEMS ===== */
.problems {
  padding: 100px 0;
}

.problems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.problem-card {
  background: var(--color-bg-card);
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.problem-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

/* ===== SOLUTION ===== */
.solution {
  padding: 100px 0;
  background: var(--color-bg-card);
  position: relative;
  overflow: hidden;
}

.solution-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  /* Text | Image */
  gap: 64px;
  align-items: center;
}

.solution-text {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.solution-item {
  display: flex;
  gap: 20px;
}

.solution-icon {
  width: 48px;
  height: 48px;
  background: var(--color-bg);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  border: 1px solid var(--color-border);
}

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

.phone-screenshot {
  max-width: 320px;
  width: 100%;
  border-radius: 20px;
  border: 8px solid #000;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ===== SCREENSHOTS (NEW) ===== */
.screenshots {
  padding: 100px 0;
  text-align: center;
  background: var(--color-bg);
}

.screenshots-gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.app-screenshot {
  max-width: 300px;
  border-radius: 24px;
  border: 6px solid #1e293b;
  box-shadow: var(--shadow-xl);
}

.web-screenshot {
  max-width: 600px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-xl);
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: 100px 0;
  text-align: center;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-top: 48px;
}

.step-number {
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto 24px;
}

/* ===== PRICING ===== */
.pricing {
  padding: 100px 0;
  background: var(--color-bg-card);
  /* Alternating bg */
}

.pricing-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  max-width: 760px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--color-bg);
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
}

.pricing-card-featured {
  border: 2px solid var(--color-primary);
  background: rgba(59, 130, 246, 0.05);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: white;
  padding: 4px 16px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-text);
  margin: 16px 0;
}

.pricing-period {
  color: var(--color-text-muted);
  font-size: 1rem;
  font-weight: 400;
}

.pricing-features {
  list-style: none;
  margin: 32px 0;
  flex-grow: 1;
}

.pricing-features li {
  padding: 8px 0;
  color: var(--color-text-muted);
}

.pricing-features li strong {
  color: var(--color-text);
}

/* ===== FOOTER ===== */
.final-cta {
  padding: 120px 0;
  text-align: center;
  background: var(--color-bg);
}

.footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .solution-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .solution-item {
    flex-direction: column;
    align-items: center;
  }

  .solution-text {
    order: 2;
  }

  .solution-phone {
    order: 1;
    margin-bottom: 32px;
  }

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

  .hero h1 {
    font-size: 2.5rem;
  }

  .screenshots-gallery {
    gap: 24px;
  }
}