:root {
  --purple-700: #5b21b6;
  --purple-600: #6d28d9;
  --purple-500: #7c3aed;
  --purple-100: #ede9fe;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #fafafa;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 12px 40px rgba(91, 33, 182, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

a { color: var(--purple-600); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.site-header {
  background: var(--white);
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--purple-700);
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple-600), var(--purple-500));
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--purple-700);
  border-color: var(--purple-100);
}

.btn-outline {
  border-color: var(--purple-500);
  color: var(--purple-700);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(180deg, var(--purple-100) 0%, var(--bg) 70%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--purple-600);
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0.4rem 0 1rem;
  color: var(--purple-700);
}

.lead { font-size: 1.1rem; color: var(--muted); max-width: 36rem; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }

.note { font-size: 0.85rem; color: var(--muted); margin-top: 0.75rem; }

.hero-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.hero-card-inner h2 { margin-top: 0; color: var(--purple-700); }

.badge {
  display: inline-block;
  background: var(--purple-100);
  color: var(--purple-700);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-card ul { padding-left: 1.2rem; color: var(--muted); }

.features { padding: 3rem 0 4rem; }

.features h2 { text-align: center; color: var(--purple-700); margin-bottom: 2rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-grid article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.25rem;
  border: 1px solid #ececf3;
}

.feature-grid h3 { margin-top: 0; color: var(--purple-700); }

.site-footer {
  border-top: 1px solid #e5e7eb;
  background: var(--white);
  padding: 1.5rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--purple-600);
  font-weight: 500;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav a:not(.btn):not(.nav-auth) { display: none; }
  .hero { padding: 2.25rem 0 2rem; }
  .hero-actions .btn { flex: 1 1 calc(50% - 0.375rem); min-width: 9rem; text-align: center; }
  .features { padding: 2rem 0 2.5rem; }
  .features h2 { font-size: 1.45rem; margin-bottom: 1.25rem; }
  .header-inner { padding: 0.75rem 0; }
  .nav { gap: 0.5rem; justify-content: flex-end; }
  .brand { font-size: 1rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
}

@media (max-width: 480px) {
  .container { width: min(1100px, 94vw); }
  .nav-compact-hide { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; flex: none; }
  h1 { font-size: 1.75rem; }
  .lead { font-size: 1rem; }
}
