/* ── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #0a0a0f;
  --bg-card:   #12121a;
  --bg-elevated: #1a1a26;
  --border:    rgba(255, 255, 255, 0.06);
  --text:      #e8e8f0;
  --text-muted:#8888a0;
  --cyan:      #00f0ff;
  --magenta:   #ff00aa;
  --purple:    #a855f7;
  --green:     #00ff88;
  --font:      'Inter', system-ui, sans-serif;
  --mono:      'JetBrains Mono', monospace;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

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

/* ── Ambient background ───────────────────────────────────── */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.bg-glow--cyan {
  width: 600px;
  height: 600px;
  background: rgba(0, 240, 255, 0.12);
  top: -200px;
  left: -100px;
}

.bg-glow--magenta {
  width: 500px;
  height: 500px;
  background: rgba(255, 0, 170, 0.1);
  bottom: -150px;
  right: -100px;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ── Header ───────────────────────────────────────────────── */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo__icon {
  color: var(--cyan);
  text-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(0, 240, 255, 0.4);
  font-size: 1.3rem;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

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

.header__actions {
  display: flex;
  gap: 0.75rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
}

.btn--ghost {
  background: transparent;
  color: var(--text-muted);
}

.btn--ghost:hover { color: var(--text); }

.btn--primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #0a0a0f;
  box-shadow:
    0 0 20px rgba(0, 240, 255, 0.3),
    0 0 60px rgba(168, 85, 247, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 30px rgba(0, 240, 255, 0.5),
    0 0 80px rgba(168, 85, 247, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.btn--outline:hover {
  border-color: rgba(0, 240, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  border-radius: 10px;
}

.btn__arrow { transition: transform 0.2s; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.06);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  margin-bottom: 2rem;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.08);
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}

.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--magenta) 50%, var(--purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.3));
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero__cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.hero__stats {
  display: flex;
  gap: 3rem;
  justify-content: center;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat__value {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
}

.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ── Preview window ───────────────────────────────────────── */
.preview {
  position: relative;
  z-index: 1;
  padding: 0 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.preview__window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 120px rgba(0, 240, 255, 0.06),
    0 0 200px rgba(168, 85, 247, 0.04);
}

.preview__chrome {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot--red    { background: #ff5f57; }
.dot--yellow { background: #febc2e; }
.dot--green  { background: #28c840; }

.preview__url {
  margin-left: 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 1rem;
  border-radius: 6px;
  flex: 1;
}

.preview__body {
  display: flex;
  min-height: 280px;
}

.preview__sidebar {
  width: 60px;
  padding: 1rem 0.75rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.preview__nav-item {
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.preview__nav-item--active {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.15);
  border: 1px solid rgba(0, 240, 255, 0.2);
}

.preview__content {
  flex: 1;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.preview__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.preview__card--glow {
  box-shadow:
    0 0 40px rgba(0, 240, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.preview__card-header {
  width: 40%;
  height: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  margin-bottom: 1.25rem;
}

.preview__chart {
  display: flex;
  align-items: flex-end;
  gap: 0.6rem;
  height: 100px;
}

.preview__chart .bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(to top, var(--cyan), var(--purple));
  opacity: 0.7;
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.preview__cards-row {
  display: flex;
  gap: 1rem;
}

.preview__card--sm {
  flex: 1;
  height: 60px;
}

/* ── Features ─────────────────────────────────────────────── */
.features {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--text-muted);
  margin-bottom: 3rem;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  text-align: left;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 40px rgba(0, 240, 255, 0.05);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

.feature-card__icon--cyan {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
  color: var(--cyan);
}

.feature-card__icon--magenta {
  background: rgba(255, 0, 170, 0.1);
  box-shadow: 0 0 25px rgba(255, 0, 170, 0.15);
  color: var(--magenta);
}

.feature-card__icon--purple {
  background: rgba(168, 85, 247, 0.1);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.15);
  color: var(--purple);
}

.feature-card__icon--green {
  background: rgba(0, 255, 136, 0.1);
  box-shadow: 0 0 25px rgba(0, 255, 136, 0.15);
  color: var(--green);
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.feature-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── CTA ──────────────────────────────────────────────────── */
.cta {
  position: relative;
  z-index: 1;
  padding: 3rem 2rem 6rem;
  max-width: 700px;
  margin: 0 auto;
}

.cta__card {
  text-align: center;
  padding: 3.5rem 2.5rem;
  background: linear-gradient(135deg, rgba(0, 240, 255, 0.05), rgba(168, 85, 247, 0.05));
  border: 1px solid rgba(0, 240, 255, 0.12);
  border-radius: 20px;
  box-shadow:
    0 0 80px rgba(0, 240, 255, 0.08),
    0 0 120px rgba(168, 85, 247, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.cta__card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta__card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.cta__note {
  display: block;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--text-muted);
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer__links a:hover { color: var(--text); }

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(136, 136, 160, 0.6);
  margin-top: 0.5rem;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav { display: none; }

  .hero__stats { gap: 1.5rem; }

  .hero__cta { flex-direction: column; align-items: center; }

  .preview__sidebar { display: none; }

  .footer {
    flex-direction: column;
    text-align: center;
  }

  .footer__links { justify-content: center; }
}

/* ── Auth modal ───────────────────────────────────────────── */
.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-modal[hidden] { display: none; }

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(4px);
}

.auth-modal__card {
  position: relative;
  width: 100%;
  max-width: 380px;
  margin: 1rem;
  padding: 2rem;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.auth-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.auth-modal__close:hover { color: var(--text); }

.auth-form h3 {
  margin-bottom: 1.25rem;
  font-size: 1.15rem;
}

.auth-form label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.auth-form input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--cyan);
}

.auth-form .btn { width: 100%; justify-content: center; margin-top: 0.25rem; }

.auth-form__msg {
  min-height: 1.2em;
  font-size: 0.82rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

.auth-form__switch {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: center;
}

.auth-form__switch a { color: var(--text); text-decoration: underline; }
