:root {
  --color-primary: #4f46e5;
  --color-primary-hover: #4338ca;
  --color-accent: #7c3aed;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-info: #3b82f6;
  --color-danger: #ef4444;
  --color-bg: #f9fafb;
  --color-surface: #ffffff;
  --color-border: #e5e7eb;
  --color-text: #111827;
  --color-text-muted: #6b7280;
  --radius: 0.5rem;
  --radius-lg: 1.25rem;
  --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 10px 25px -5px rgba(79,70,229,.15), 0 8px 10px -6px rgba(79,70,229,.1);
  --shadow-lg: 0 20px 40px -10px rgba(79,70,229,.25);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
}

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

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

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

/* ---------- Nav ---------- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

.nav-cta {
  padding: 0.55rem 1.1rem;
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, opacity .15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  padding: 0.9rem 1.9rem;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 6rem;
}

.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}

.hero-blob-1 {
  width: 420px;
  height: 420px;
  background: var(--color-primary);
  top: -160px;
  right: -120px;
}

.hero-blob-2 {
  width: 360px;
  height: 360px;
  background: var(--color-success);
  bottom: -160px;
  left: -140px;
  opacity: 0.25;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  max-width: 46ch;
  margin: 0 auto 2rem;
}

.cta-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

.agree-row {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
  max-width: 42ch;
}

.agree-row input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.agree-row label { cursor: pointer; }

.agree-row a { text-decoration: underline; }

/* ---------- Features ---------- */

.section { padding: 5.5rem 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.25rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin: 0 0 0.75rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.section-head p {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  margin: 0;
}

.feature-icon {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.icon-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.icon-emerald { background: linear-gradient(135deg, #34d399, #10b981); }
.icon-amber { background: linear-gradient(135deg, #fbbf24, #f59e0b); }
.icon-blue { background: linear-gradient(135deg, #60a5fa, #3b82f6); }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  display: flex;
  flex-direction: column;
}

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

.feature-body {
  padding: 1.5rem 1.5rem 0;
}

.feature-heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.6rem;
}

.feature-heading h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-body p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.feature-shot {
  padding: 1.25rem 1.5rem 1.5rem;
}

.feature-shot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.6rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(17,24,39,.1);
}

/* ---------- Final CTA ---------- */

.cta-section {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 45%),
              radial-gradient(circle at 85% 80%, rgba(255,255,255,.14), transparent 40%);
}

.cta-section-inner {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.cta-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  font-weight: 800;
}

.cta-section p {
  margin: 0;
  opacity: 0.92;
}

.cta-section .agree-row {
  color: rgba(255,255,255,.92);
  justify-content: center;
}

.cta-section .agree-row a {
  color: #fff;
}

.cta-section .btn-primary {
  background: #fff;
  color: var(--color-primary);
  box-shadow: 0 10px 25px -5px rgba(0,0,0,.25);
}

.cta-section .btn-primary:hover:not(:disabled) {
  box-shadow: 0 16px 32px -8px rgba(0,0,0,.3);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 3rem 0 2.5rem;
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.footer-brand .brand-mark { width: 22px; height: 22px; }

/* ---------- Legal pages ---------- */

.legal-page {
  padding: 3.5rem 0 5rem;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2.1rem;
  margin: 0 0 0.4rem;
  font-weight: 800;
}

.legal-updated {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin: 0 0 2.5rem;
}

.legal-page h2 {
  font-size: 1.25rem;
  margin: 2.25rem 0 0.75rem;
  font-weight: 700;
}

.legal-page p, .legal-page li {
  color: #374151;
  font-size: 0.98rem;
  line-height: 1.7;
}

.legal-page ul {
  padding-left: 1.3rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  margin-bottom: 2rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .feature-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
