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

:root {
  --bg: #1A1A1C;
  --text: #F5F5F0;
  --accent: #22D3EE;
  --card-bg: #242426;
  --border: #3A3A3C;
  --muted: #6E6E70;
  --header-bg: rgba(26, 26, 28, 0.85);
  --legal-text: #C0C0BC;
  --btn-text: #000;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: Georgia, 'Times New Roman', serif;
  --max-width: 1120px;
}

/* Light theme */
[data-theme="light"] {
  --bg: #F5F7FA;
  --text: #1A1A1C;
  --card-bg: #FFFFFF;
  --border: #E5E7EB;
  --muted: #6B7280;
  --header-bg: rgba(245, 247, 250, 0.85);
  --legal-text: #4B5563;
  --btn-text: #000;
}

/* System preference auto-detect (default) */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F5F7FA;
    --text: #1A1A1C;
    --card-bg: #FFFFFF;
    --border: #E5E7EB;
    --muted: #6B7280;
    --header-bg: rgba(245, 247, 250, 0.85);
    --legal-text: #4B5563;
    --btn-text: #000;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s, color 0.3s;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
}

/* === Layout === */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header === */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}

nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

nav a:hover {
  color: var(--text);
  opacity: 1;
}

/* Theme toggle button */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  background: var(--card-bg);
}

/* === Hero === */
.hero {
  text-align: center;
  padding: 100px 24px 80px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero h1 span {
  color: var(--accent);
}

.hero .tagline {
  font-size: 1.35rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 500;
}

.hero .description {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: var(--btn-text);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.25);
}

/* === Section === */
.section {
  padding: 80px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  text-align: center;
  margin-bottom: 48px;
  font-weight: 700;
}

/* === Features === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s, background 0.3s;
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.feature-card .icon {
  font-size: 1.75rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* === How It Works === */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 16px;
}

.step h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 280px;
  margin: 0 auto;
}

/* === Pricing === */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 720px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  position: relative;
  transition: background 0.3s;
}

.pricing-card.featured {
  border-color: var(--accent);
}

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

.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-bottom: 4px;
  font-weight: 700;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.pricing-card .price-period {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 24px;
}

.pricing-card ul li {
  padding: 6px 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.pricing-card ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 700;
}

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

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

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

.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

.footer-copy {
  color: var(--muted);
  font-size: 0.85rem;
}

/* === Legal Pages === */
.legal {
  padding: 60px 0 80px;
  max-width: 720px;
  margin: 0 auto;
}

.legal h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.legal .last-updated {
  color: var(--muted);
  font-size: 0.85rem;
  margin-bottom: 40px;
}

.legal h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  margin-top: 36px;
  margin-bottom: 12px;
  font-weight: 600;
}

.legal p,
.legal ul {
  color: var(--legal-text);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 20px;
}

.legal ul li {
  margin-bottom: 6px;
}

/* === Support Page === */
.support-hero {
  text-align: center;
  padding: 60px 0 40px;
}

.support-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.support-hero p {
  color: var(--muted);
  font-size: 1.05rem;
}

.support-contact {
  text-align: center;
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 48px;
  transition: background 0.3s;
}

.support-contact h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.support-contact a {
  font-size: 1.1rem;
  font-weight: 600;
}

.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}

.faq-item:first-child {
  border-top: 1px solid var(--border);
}

.faq-item h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  margin-bottom: 8px;
  font-weight: 600;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.app-info {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .hero .tagline {
    font-size: 1.1rem;
  }

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

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

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

  .section {
    padding: 56px 0;
  }

  nav {
    gap: 16px;
  }

  nav a {
    font-size: 0.8rem;
  }

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

@media (max-width: 480px) {
  .hero {
    padding: 64px 16px 56px;
  }

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

  .site-header .container {
    height: 56px;
  }

  .logo {
    font-size: 1.25rem;
  }
}
