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

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg: #0f172a;
  --bg-card: #1e293b;
  --bg-input: #334155;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --border: #475569;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 8px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--primary-dark);
}

img {
  max-width: 100%;
  display: block;
}

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

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-decoration: none;
  text-align: center;
}

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

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

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

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

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

.btn-cta,
.nav-links .btn-cta {
  background: var(--warning);
  color: var(--text);
  padding: 8px 20px;
  font-size: 0.9rem;
}

.btn-cta:hover,
.nav-links .btn-cta:hover {
  background: #e08e0a;
  color: var(--text);
}

/* === Navigation === */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}

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

.nav-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.5px;
  text-decoration: none;
}

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

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

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

  .nav-toggle {
    display: block;
  }
}

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

.section-alt {
  background: var(--bg-card);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

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

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-title .highlight {
  color: var(--primary);
}

.hero-tagline {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* === Cards === */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

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

.card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.section-alt .card {
  background: var(--bg);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  flex-shrink: 0;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === Audience Cards === */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.audience-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.2s, border-color 0.2s;
}

.audience-card:hover {
  transform: translateY(-2px);
  border-color: var(--border);
}

.audience-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.15);
  color: var(--primary);
  margin: 0 auto 16px;
}

.audience-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.audience-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* === How It Works === */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
}

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

.step-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
  max-width: 300px;
  margin: 0 auto;
}

/* === About === */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: left;
}

.about-content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 16px;
}

.about-content strong {
  color: var(--text);
}

/* === Footer === */
.site-footer {
  padding: 24px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
}

.footer-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

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

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

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

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

.footer-mop {
  display: inline-block;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.footer-mop:hover {
  opacity: 1;
}

.footer-mop img {
  height: 64px;
  width: auto;
  border-radius: 4px;
}

@media (min-width: 768px) {
  .footer-row {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* === Document Pages (Privacy, Terms) === */
.doc-content {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 32px 40px;
  max-width: 720px;
  margin: 0 auto;
}

.doc-content h1 {
  font-size: 1.75rem;
  margin-bottom: 24px;
}

.doc-content h2 {
  font-size: 1.2rem;
  margin-top: 28px;
  margin-bottom: 12px;
}

.doc-content h3 {
  font-size: 1.05rem;
  margin-top: 20px;
  margin-bottom: 8px;
}

.doc-content p {
  margin-bottom: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.doc-content ul,
.doc-content ol {
  margin-bottom: 12px;
  padding-left: 24px;
  color: var(--text-muted);
}

.doc-content li {
  margin-bottom: 6px;
  line-height: 1.5;
}

.doc-content strong {
  color: var(--text);
}

.doc-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

.doc-content a {
  color: var(--primary);
}

.doc-content a:hover {
  color: var(--primary-dark);
}

@media (max-width: 767px) {
  .doc-content {
    padding: 24px 20px;
  }
}
