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

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --text: #0f172a;
  --text-muted: #475569;
  --border: #e2e8f0;
  --primary: #4338ca;
  --primary-dark: #312e81;
  --accent: #06b6d4;
  --radius: 12px;
  --max-w: 1120px;
}

html {
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.18rem;
  color: var(--text);
  text-decoration: none !important;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--text-muted);
  font-weight: 500;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
}

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

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

.btn-outline {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--bg-soft);
}

.btn-lg {
  padding: 13px 24px;
  font-size: 1rem;
}

/* Hero */
.hero {
  padding: 88px 0 76px;
  background: radial-gradient(circle at top right, rgba(67, 56, 202, 0.08), transparent 45%),
              radial-gradient(circle at bottom left, rgba(6, 182, 212, 0.07), transparent 45%);
  border-bottom: 1px solid var(--border);
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.3rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero p {
  font-size: 1.12rem;
  color: var(--text-muted);
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.trust-row {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #ffffff;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-muted);
}

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

.section-soft {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head h2 {
  font-size: 2rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

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

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

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

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

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.card h3 {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background: #eef2ff;
  padding: 4px 10px;
  border-radius: 6px;
  margin-bottom: 14px;
}

/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pricing-card.featured {
  border-color: var(--primary);
  box-shadow: 0 12px 30px rgba(67, 56, 202, 0.1);
}

.price {
  font-size: 2.3rem;
  font-weight: 800;
  margin: 14px 0 6px;
  color: var(--text);
}

.price span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.feature-list {
  list-style: none;
  margin: 20px 0 28px;
}

.feature-list li {
  padding: 6px 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  border-bottom: 1px solid #f1f5f9;
}

.feature-list li:last-child {
  border-bottom: none;
}

/* Legal & Support Pages */
.doc-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}

.doc-wrap h1 {
  font-size: 2.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.doc-meta {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.doc-wrap h2 {
  font-size: 1.32rem;
  margin-top: 32px;
  margin-bottom: 12px;
  color: var(--text);
}

.doc-wrap h3 {
  font-size: 1.06rem;
  margin-top: 20px;
  margin-bottom: 8px;
  color: var(--text);
}

.doc-wrap p, .doc-wrap li {
  color: #334155;
  font-size: 0.98rem;
  margin-bottom: 12px;
}

.doc-wrap ul, .doc-wrap ol {
  padding-left: 22px;
  margin-bottom: 16px;
}

.callout {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  padding: 18px 20px;
  margin: 22px 0;
}

/* Login box */
.auth-box {
  max-width: 440px;
  margin: 72px auto 96px;
  padding: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #ffffff;
}

.auth-box h1 {
  font-size: 1.55rem;
  margin-bottom: 8px;
}

.auth-box p {
  font-size: 0.94rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 56px 0 36px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid #1e293b;
}

.footer-brand {
  color: #ffffff;
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.site-footer h4 {
  color: #ffffff;
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: #94a3b8;
  font-size: 0.85rem;
}

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