:root {
  --accent: #e74c3c;
  --accent-dark: #c0392b;
  --accent-light: #f1948a;
  --accent-glow: rgba(231, 76, 60, 0.35);
  --bg: #09090b;
  --bg-elevated: #111113;
  --bg-card: rgba(22, 22, 26, 0.72);
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 1.25rem; }

a { color: inherit; text-decoration: none; }

.text-gradient {
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Background mesh */
.page-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 20% -5%, rgba(231, 76, 60, 0.18), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(231, 76, 60, 0.08), transparent 50%),
    radial-gradient(ellipse 60% 40% at 50% 100%, rgba(255, 255, 255, 0.03), transparent 60%),
    var(--bg);
}

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(9, 9, 11, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 1rem;
}
.logo {
  display: flex; align-items: center; gap: .55rem;
  font-size: 1.1rem; font-weight: 600;
}
.logo-mark { font-size: 1.35rem; }
.nav { display: none; gap: 1.75rem; font-size: .9rem; color: var(--text-muted); }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; gap: .5rem; align-items: center; }

@media (min-width: 768px) { .nav { display: flex; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .6rem 1.15rem; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .9rem; border: 1px solid transparent; cursor: pointer;
  transition: all .2s ease; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff; box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--text); background: rgba(255,255,255,.04); }
.btn-glass {
  background: rgba(255,255,255,.06);
  border-color: var(--border);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-glass:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.15); }
.btn-white { background: #fff; color: var(--bg); font-weight: 700; }
.btn-white:hover { background: #f4f4f5; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* Hero */
.hero { padding: 5rem 0 4rem; }
.hero-grid {
  display: grid; gap: 3.5rem; align-items: center;
}
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; } }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .4rem .9rem; border-radius: 999px;
  background: rgba(231, 76, 60, .12);
  border: 1px solid rgba(231, 76, 60, .25);
  color: var(--accent-light); font-size: .78rem;
  font-weight: 600; margin-bottom: 1.25rem; letter-spacing: .02em;
}
.hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.25rem);
  font-weight: 800; line-height: 1.1; margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}
.hero-lead {
  font-size: 1.08rem; color: var(--text-muted);
  max-width: 520px; margin-bottom: 1.75rem; line-height: 1.7;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-perks {
  list-style: none; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  font-size: .85rem; color: var(--text-muted);
}
.hero-perks li {
  display: flex; align-items: center; gap: .4rem;
}
.hero-perks li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #2ecc71; flex-shrink: 0;
}

/* Dashboard preview */
.dashboard-preview { position: relative; }
.preview-glow {
  position: absolute; inset: -20% -10%;
  background: radial-gradient(circle, var(--accent-glow), transparent 65%);
  filter: blur(40px); opacity: .6;
}
.preview-window {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04) inset;
}
.preview-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: rgba(0,0,0,.4);
  border-bottom: 1px solid var(--border);
}
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: #333; }
.preview-bar span:first-child { background: #e74c3c; }
.preview-bar span:nth-child(2) { background: #f39c12; }
.preview-bar span:nth-child(3) { background: #2ecc71; }
.preview-url {
  margin-left: auto; font-size: .7rem; color: var(--text-muted);
  background: rgba(255,255,255,.05); padding: .25rem .65rem; border-radius: 6px;
}
.preview-body { display: flex; min-height: 280px; }
.preview-nav {
  width: 56px; padding: 1rem .75rem;
  display: flex; flex-direction: column; gap: .65rem;
  border-right: 1px solid var(--border);
  background: rgba(0,0,0,.25);
}
.nav-dot { height: 8px; border-radius: 4px; background: rgba(255,255,255,.08); }
.nav-dot.active { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.preview-main { flex: 1; padding: 1.1rem; display: flex; flex-direction: column; gap: .85rem; }
.preview-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.preview-stat { height: 48px; border-radius: 8px; background: linear-gradient(135deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); }
.preview-chart { height: 80px; border-radius: 10px; background: linear-gradient(180deg, rgba(231,76,60,.15), rgba(231,76,60,.02)); border: 1px solid rgba(231,76,60,.12); }
.preview-list { display: flex; flex-direction: column; gap: .5rem; }
.preview-row { height: 36px; border-radius: 8px; background: rgba(255,255,255,.04); }
.preview-row.short { width: 65%; }

/* Stats band */
.stats-band {
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem;
}
@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }
.stat-item { text-align: center; }
.stat-item strong {
  display: block; font-size: 1.75rem; font-weight: 800;
  background: linear-gradient(135deg, #fff, var(--accent-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item span { font-size: .82rem; color: var(--text-muted); }

/* Sections */
.section-kicker {
  font-size: .75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .12em; color: var(--accent-light); margin-bottom: .5rem;
}
.section-title { font-size: clamp(1.75rem, 4vw, 2.25rem); font-weight: 800; margin-bottom: .65rem; letter-spacing: -0.02em; }
.section-sub { color: var(--text-muted); max-width: 560px; line-height: 1.7; }

/* Features */
.features { padding: 5.5rem 0; }
.features-grid {
  display: grid; gap: 1.25rem; margin-top: 2.75rem;
}
@media (min-width: 640px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.65rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(231, 76, 60, .25);
  box-shadow: 0 16px 40px rgba(0,0,0,.3);
}
.feature-icon {
  font-size: 1.65rem; margin-bottom: .85rem;
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: rgba(231, 76, 60, .1); border-radius: 12px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card p { font-size: .9rem; color: var(--text-muted); line-height: 1.65; }

/* Portals */
.portals { padding: 5.5rem 0; background: rgba(255,255,255,.015); }
.portals-grid {
  display: grid; gap: 1.25rem; margin-top: 2.75rem;
}
@media (min-width: 768px) { .portals-grid { grid-template-columns: repeat(3, 1fr); } }

.portal-card {
  display: flex; flex-direction: column;
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .25s;
}
.portal-card:hover {
  border-color: rgba(231, 76, 60, .35);
  transform: translateY(-3px);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.portal-card-icon { font-size: 2rem; margin-bottom: .85rem; }
.portal-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .4rem; }
.portal-card p { font-size: .88rem; color: var(--text-muted); flex: 1; line-height: 1.6; }
.portal-link {
  margin-top: 1.25rem; font-size: .85rem; font-weight: 600;
  color: var(--accent-light);
}

/* Signup */
.signup-section { padding: 5.5rem 0; }
.signup-grid {
  display: grid; gap: 3rem; align-items: start;
}
@media (min-width: 960px) { .signup-grid { grid-template-columns: 1fr 1fr; } }

.check-list { list-style: none; margin-top: 1.75rem; }
.check-list li {
  padding: .45rem 0 .45rem 1.75rem; position: relative;
  color: var(--text-muted); font-size: .95rem;
}
.check-list li::before {
  content: '✓'; position: absolute; left: 0;
  color: #2ecc71; font-weight: 700;
}

.signup-form {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
}
.form-row { margin-bottom: 1rem; }
.form-row.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-row label {
  display: block; font-size: .82rem; font-weight: 500;
  margin-bottom: .4rem; color: var(--text-muted);
}
.form-row input, .form-row textarea {
  width: 100%; padding: .7rem .9rem; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(0,0,0,.35);
  color: var(--text); font-family: inherit; font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(231, 76, 60, .15);
}
.form-legal { font-size: .75rem; color: var(--text-muted); margin-top: .85rem; text-align: center; }
.form-message { padding: .85rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.form-message.success { background: rgba(46,204,113,.12); color: #2ecc71; border: 1px solid rgba(46,204,113,.2); }
.form-message.error { background: rgba(231,76,60,.12); color: #e74c3c; border: 1px solid rgba(231,76,60,.2); }
.hidden { display: none; }

/* CTA band */
.cta-band {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--accent-dark) 0%, var(--accent) 100%);
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1.5rem;
}
.cta-band h2 { font-size: 1.6rem; font-weight: 800; }
.cta-band p { opacity: .92; font-size: .95rem; }

/* Footer */
.footer { padding: 2.5rem 0; border-top: 1px solid var(--border); }
.footer-inner {
  display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 1rem;
  font-size: .85rem; color: var(--text-muted);
}
.footer-brand {
  display: flex; align-items: center; gap: .4rem;
  font-weight: 600; color: var(--text);
}
.footer a { color: var(--accent-light); transition: color .2s; }
.footer a:hover { color: var(--text); }

@media (max-width: 480px) {
  .form-row.two-cols { grid-template-columns: 1fr; }
  .header-actions .btn-ghost { display: none; }
}
