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

:root {
  --bg: #f5f5fa;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --red: #dc2626;
  --red-bg: #fef2f2;
  --radius: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-hover: 0 10px 25px rgba(0,0,0,0.08), 0 4px 10px rgba(0,0,0,0.04);
  --dark-bg: #0f1117;
  --dark-accent: #6366f1;
  --cta-bg: #fff3d6;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  padding: 0 2rem;
}

/* Header */
header {
  background: var(--surface);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark-bg);
  text-decoration: none;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  height: 32px;
  width: auto;
  border-radius: 6px;
}

.header-auth {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.auth-btn {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}

.auth-login {
  color: var(--text);
  background: transparent;
}

.auth-login:hover {
  background: var(--bg);
}

.auth-signup {
  color: #fff;
  background: var(--dark-bg);
}

.auth-signup:hover {
  opacity: 0.85;
}

/* Main */
main {
  flex: 1;
}

/* Hero */
.hero {
  padding: 4rem 0 3rem;
  text-align: center;
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--red);
  background: var(--red-bg);
  border: 1px solid #fecaca;
  border-radius: 50px;
  padding: 0.35rem 1rem;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 650px;
  margin: 0 auto;
}

/* Screenshots */
.screenshots {
  padding: 2rem 0 4rem;
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.screenshot-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.screenshot-card img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-caption {
  padding: 1rem 1.2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  font-weight: 500;
}

/* Features */
.features {
  padding: 3rem 0 4rem;
}

.features h2 {
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  box-shadow: var(--shadow);
}

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

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.2px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* CTA */
.cta {
  padding: 2rem 0 4rem;
}

.cta-card {
  background: var(--cta-bg);
  border: 1px solid #f0dca0;
  border-radius: 20px;
  padding: 3rem 2.5rem;
  text-align: center;
}

.cta-card h2 {
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.cta-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  display: inline-block;
  padding: 0.8rem 1.8rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
}

.cta-primary {
  background: var(--dark-accent);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3);
}

.cta-primary:hover {
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4);
}

.cta-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.cta-secondary:hover {
  border-color: var(--text-muted);
}

/* Footer */
footer {
  background: var(--dark-bg);
  text-align: center;
  padding: 1.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

/* Responsive */
@media (max-width: 700px) {
  .hero {
    padding: 3rem 0 2rem;
  }

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

  .hero-subtitle {
    font-size: 1rem;
  }

  .screenshots-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

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

  .features h2 {
    font-size: 1.4rem;
  }

  .cta-card {
    padding: 2rem 1.5rem;
    border-radius: 16px;
  }

  .cta-card h2 {
    font-size: 1.4rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 320px;
    text-align: center;
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .header-auth {
    margin-left: auto;
  }
}
