:root {
  color-scheme: dark;
  --bg: #0f172a;
  --surface: #111827;
  --surface-soft: #1f2937;
  --surface-light: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --primary: #8b5cf6;
  --primary-strong: #7c3aed;
  --accent: #7c3aed;
  --accent-soft: rgba(124, 58, 237, 0.18);
  --danger: #fb7185;
  --radius: 30px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, #020617 0%, #070b1c 48%, #090d1f 100%);
  color: var(--text);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
    radial-gradient(rgba(255,255,255,0.1) 1px, transparent 1px);
  background-size: 80px 80px, 150px 150px;
  background-position: 0 0, 40px 40px;
  opacity: 0.35;
  pointer-events: none;
  z-index: 0;
}

img,
svg {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  padding: 1.5rem 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.75));
  border-bottom: 1px solid rgba(124, 58, 237, 0.16);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(18px);
}

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

.brand h1 {
  margin: 0;
  font-size: clamp(1.75rem, 2.5vw, 2.8rem);
}

.brand p {
  margin: 0.5rem 0 0;
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--accent);
}

.hero-section,
.section-light,
.section-dark,
.section-footer {
  padding: 5rem 0;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
}

.section-heading {
  display: grid;
  gap: 1rem;
}

.feature-card h3,
.plan-card h3,
.panel.card h3,
.profile-panel h3 {
  margin-top: 0;
  font-size: 1.5rem;
}

.plan-card {
  display: grid;
  gap: 1.5rem;
}

.plan-card button {
  justify-self: start;
  margin-top: 0;
}

.hero-section {
  min-height: 95vh;
  display: grid;
  place-items: center;
  position: relative;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 15% 25%, rgba(124, 58, 237, 0.22), transparent 20%),
    radial-gradient(circle at 85% 18%, rgba(59, 130, 246, 0.18), transparent 18%),
    radial-gradient(circle at 50% 70%, rgba(236, 72, 153, 0.14), transparent 16%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.3fr 0.95fr;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero-section h2,
.section-heading h2 {
  margin: 1rem 0;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
}

.hero-title {
  white-space: nowrap;
  overflow-wrap: normal;
}

.hero-section p,
.section-heading p,
.feature-card p,
.plan-card p,
.report-content p,
.dashboard-info p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-actions button {
  min-width: 160px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #7c3aed, #38bdf8);
  color: #fff;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid rgba(124, 58, 237, 0.18);
}

.hero-card,
.feature-card,
.plan-card,
.panel.card,
.report-panel,
.profile-panel {
  background: rgba(15, 23, 42, 0.93);
  border: 1px solid rgba(124, 58, 237, 0.24);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}
.feature-gradient {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.32), rgba(15, 23, 42, 0.95));
  border-color: rgba(124, 58, 237, 0.36);
}

.hero-card {
  border-image: linear-gradient(132deg, rgba(56, 189, 248, 0.4), rgba(124, 58, 237, 0.6)) 1;
}

.hero-glow {
  position: relative;
}

.hero-glow::before {
  content: "";
  position: absolute;
  inset: -1.5rem;
  border-radius: inherit;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.18), transparent 55%);
  filter: blur(24px);
  z-index: -1;
}
.card-grid,
.plan-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.plan-grid {
  margin-bottom: 3rem;
}

.report-panel {
  margin-top: 2rem;
}

.hero-pill-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.pill-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 20px;
  border: 1px solid rgba(124, 58, 237, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.pill-card span {
  font-weight: 700;
  color: #fff;
}

.hero-tag {
  display: inline-flex;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--text);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.75rem;
}

.hero-stats div {
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
  border-radius: 18px;
  text-align: center;
}

.hero-stats strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  color: #fff;
}

.hero-stats p {
  margin: 0;
  color: var(--muted);
}

.split-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.section-heading {
  max-width: 46rem;
  margin-bottom: 3rem;
}

.hero-copy {
  display: grid;
  gap: 2rem;
}

.hero-section h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
}

.hero-section p {
  font-size: 1.05rem;
  max-width: 46rem;
}

.feature-card,
.plan-card,
.panel.card,
.report-panel,
.profile-panel {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.plan-card:hover,
.panel.card:hover,
.report-panel:hover,
.profile-panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 45px 120px rgba(0, 0, 0, 0.32);
}

.section-dark {
  background: var(--surface);
}

.section-light {
  background: rgba(255, 255, 255, 0.03);
}

.form-panel label {
  display: block;
  margin-bottom: 1rem;
  color: var(--text);
}

.form-panel input,
.form-panel select {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.9rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.form-panel input:focus,
.form-panel select:focus {
  outline: 2px solid rgba(99, 102, 241, 0.32);
  outline-offset: 2px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.list li {
  margin-bottom: 0.75rem;
  padding: 0.95rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.08);
}

.report-content {
  min-height: 12rem;
  display: grid;
  place-items: center;
}

.profile-panel,
.report-panel {
  min-height: 320px;
}

.toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: var(--text);
  padding: 1rem 1.25rem;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  text-align: center;
}

.section-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .card-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 1rem 0;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-section,
  .section-light,
  .section-dark {
    padding: 2.5rem 0;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }
}
