:root {
  --bg: #0b0d14;
  --bg-alt: #0f1220;
  --card: #12151f;
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #f2f3f7;
  --text-dim: #a3a8bd;
  --text-dimmer: #6b7086;
  --accent-1: #8b5cf6;
  --accent-2: #3b82f6;
  --accent-grad: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --radius: 16px;
  --header-h: 76px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 760px; }

/* Background glow */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
}
.bg-glow--1 {
  width: 500px; height: 500px;
  top: -150px; right: -100px;
  background: var(--accent-1);
}
.bg-glow--2 {
  width: 600px; height: 600px;
  bottom: 10%; left: -200px;
  background: var(--accent-2);
  opacity: 0.2;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 20, 0.7);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  flex-shrink: 0;
}
.brand__dot { color: var(--accent-1); }

.nav {
  display: flex;
  gap: 32px;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: 1px solid var(--card-border);
  border-radius: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 18px;
  margin: 0 auto;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent-grad);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(139, 92, 246, 0.75); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
}
.btn--ghost:hover { border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.03); }
.btn--outline {
  background: rgba(255,255,255,0.02);
  color: var(--text);
  border: 1px solid var(--card-border);
  width: 100%;
}
.btn--outline:hover { border-color: var(--accent-1); color: #fff; background: rgba(139,92,246,0.08); }
.btn--full { width: 100%; }
.btn--lg { padding: 15px 24px; font-size: 1rem; }
.btn--sm { padding: 10px 18px; font-size: 0.875rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@media (max-width: 720px) {
  .header__actions .btn--sm:not(.install-btn) { display: none; }
}

.install-btn[hidden] { display: none; }

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  padding: 110px 0 80px;
  text-align: center;
}
.hero__inner { max-width: 840px; margin: 0 auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 22px;
  letter-spacing: -0.02em;
}
.text-gradient {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 34px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat__num {
  font-size: 1.9rem;
  font-weight: 800;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat__label {
  font-size: 0.85rem;
  color: var(--text-dimmer);
  margin-top: 4px;
}

/* Sections */
.section {
  position: relative;
  z-index: 1;
  padding: 90px 0;
}
.section--alt {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 15%, rgba(255,255,255,0.015) 85%, transparent);
}
.section h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 800;
  margin: 0 0 14px;
  letter-spacing: -0.01em;
  max-width: 680px;
}
.section__lead {
  color: var(--text-dim);
  font-size: 1.05rem;
  max-width: 620px;
  margin-bottom: 48px;
}

/* Cards / solutions */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 980px) {
  .cards { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
}
.card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(139, 92, 246, 0.12);
  color: var(--accent-1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 {
  font-size: 1.2rem;
  margin: 0 0 10px;
  font-weight: 700;
}
.card p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin: 0 0 18px;
}
.card__list {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex-grow: 1;
}
.card__list li {
  font-size: 0.88rem;
  color: var(--text-dim);
  padding-left: 22px;
  position: relative;
}
.card__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-grad);
}
.card__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.card__actions .btn { flex: 1; }

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
}
.feature {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.015);
}
.feature__icon { font-size: 1.6rem; margin-bottom: 12px; }
.feature h4 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; }
.feature p { margin: 0; color: var(--text-dim); font-size: 0.9rem; }

/* Form */
.form {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 36px;
}
.form__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 640px) {
  .form__grid { grid-template-columns: 1fr; }
  .form { padding: 24px; }
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form__grid .field { margin-bottom: 0; }
.field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dim);
}
.field input,
.field select,
.field textarea {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent-1);
  background: rgba(255,255,255,0.05);
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; }
.field select option { background: var(--card); color: var(--text); }

.form__note {
  min-height: 20px;
  margin: 14px 0 0;
  font-size: 0.88rem;
  text-align: center;
}
.form__note[data-state="success"] { color: #4ade80; }
.form__note[data-state="error"] { color: #f87171; }
.form__note[data-state="loading"] { color: var(--text-dim); }

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--card-border);
  padding: 60px 0 24px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.footer__brand { max-width: 280px; }
.footer__brand .brand__name { display: block; margin-top: 12px; font-size: 1.1rem; }
.footer__brand p { color: var(--text-dimmer); font-size: 0.9rem; margin-top: 10px; }
.footer__links {
  display: flex;
  gap: 64px;
  flex-wrap: wrap;
}
.footer__links h5 {
  margin: 0 0 14px;
  font-size: 0.85rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.footer__links a {
  display: block;
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.92rem;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer__links a:hover { color: var(--text); }
.footer__bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 24px;
  text-align: center;
}
.footer__bottom p { margin: 0; color: var(--text-dimmer); font-size: 0.85rem; }

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile nav */
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: rgba(11, 13, 20, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    padding: 20px 24px 30px;
    gap: 4px;
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--card-border);
  }
}
