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

:root {
  --bg:       #0e0e1a;
  --surface:  #13131f;
  --card:     #1a1a2e;
  --card2:    #1e1e30;
  --border:   rgba(255,255,255,0.07);
  --accent:   #7c3aed;
  --accent2:  #9d5cf5;
  --accent3:  #c084fc;
  --text:     #e8e8f0;
  --muted:    #8888aa;
  --radius:   16px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* dot grid overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

/* glow blobs */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(124,58,237,0.22) 0%, transparent 70%),
    radial-gradient(ellipse 50% 45% at 5%  85%, rgba(79,70,229,0.18)  0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 50% 50%, rgba(124,58,237,0.06) 0%, transparent 80%);
  pointer-events: none;
}

/* ensure content renders above pseudo-elements */
nav, section, .stats-bar, footer, .hero {
  position: relative;
  z-index: 1;
}

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

code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  font-size: 0.85em;
  background: rgba(124,58,237,0.18);
  color: var(--accent3);
  padding: 2px 6px;
  border-radius: 5px;
}

pre {
  background: #0a0a14;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  overflow-x: auto;
  margin-top: 10px;
}

pre code {
  background: none;
  padding: 0;
  color: #a8b4d0;
  font-size: 0.88em;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(14,14,26,0.75);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.3px;
}

.dot {
  width: 10px; height: 10px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent2);
}

nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 28px;
}

nav ul a {
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.2s;
}
nav ul a:hover { color: var(--text); }

/* ─── Buttons ─── */
.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 26px;
  border-radius: 12px;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(124,58,237,0.4);
}
.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.55);
}

.btn-ghost {
  display: inline-block;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: 12px;
  border: 1px solid var(--border);
  transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,0.18); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
  padding: 100px 24px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-content {
  flex: 1;
  min-width: 280px;
  max-width: 520px;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--accent3);
  background: rgba(124,58,237,0.15);
  border: 1px solid rgba(124,58,237,0.3);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 24px;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 20px;
}

.grad {
  background: linear-gradient(135deg, var(--accent2) 0%, var(--accent3) 60%, #e879f9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 440px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ─── APP MOCKUP ─── */
.hero-visual {
  position: relative;
  flex-shrink: 0;
}

.glow {
  position: absolute;
  inset: -40px;
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.3) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.app-mockup {
  background: #141420;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 0;
  width: 340px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.05);
  overflow: hidden;
  animation: float 5s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mockup-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px 10px;
  background: #0f0f1c;
  border-bottom: 1px solid var(--border);
}

.mockup-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.9rem;
}

.mockup-dot {
  width: 8px; height: 8px;
  background: var(--accent2);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent2);
}

.mockup-credits {
  font-size: 0.78rem;
  color: #6ee7b7;
  font-weight: 600;
}

.mockup-icons {
  margin-left: auto;
  display: flex;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.mockup-row {
  display: flex;
  gap: 8px;
  padding: 8px 10px 0;
  align-items: center;
}

.mockup-select {
  flex: 1;
  background: #0e0e1c;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 8px;
  color: var(--text);
  padding: 6px 10px;
  font-size: 0.78rem;
  cursor: pointer;
  appearance: none;
}

.mockup-select.full { flex: 1; }

.mockup-icon-btn {
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
}

.mockup-drop {
  margin: 10px 10px;
  background: #0e0e1c;
  border: 1px dashed rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 28px 16px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}

.mockup-status {
  padding: 4px 12px;
  font-size: 0.72rem;
  color: var(--muted);
}

.mockup-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 14px;
}

.mockup-send {
  flex: 1;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: none;
  border-radius: 10px;
  padding: 11px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(124,58,237,0.5);
}

.mockup-footer-icons {
  display: flex;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ─── STATS BAR ─── */
.stats-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  padding: 24px 24px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 8px 40px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-div {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ─── SECTIONS COMMON ─── */
section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent3);
  margin-bottom: 12px;
}

section h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--muted);
  font-size: 1rem;
  max-width: 520px;
  margin-bottom: 48px;
}

/* ─── FEATURES ─── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.accent-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.2) 0%, var(--card) 60%);
  border-color: rgba(124,58,237,0.3);
}

.feature-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
}

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

.cap-icon { font-size: 0.85em; }

/* ─── PROVIDERS ─── */
.providers { background: var(--surface); max-width: 100%; padding: 90px 0; }
.providers > * { max-width: 1100px; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }
.providers h2 { max-width: 1100px; margin: 0 auto; padding: 0 24px; margin-bottom: 40px; }
.providers .section-label { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

.provider-grid {
  max-width: 1100px;
  margin: 40px auto 0;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.provider-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color 0.2s, transform 0.2s;
}
.provider-card:hover {
  border-color: rgba(124,58,237,0.4);
  transform: translateY(-2px);
}

.featured-provider {
  border-color: rgba(124,58,237,0.35);
  background: linear-gradient(135deg, rgba(124,58,237,0.15) 0%, var(--card) 70%);
}

.provider-name {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 8px;
}

.provider-desc {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ─── SHORTCUTS ─── */
.shortcuts { max-width: 700px; }

.shortcut-table {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shortcut-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s;
}
.shortcut-row:hover { border-color: rgba(124,58,237,0.35); }

kbd {
  display: inline-block;
  background: #0e0e1c;
  border: 1px solid rgba(255,255,255,0.15);
  border-bottom-width: 2px;
  border-radius: 7px;
  padding: 4px 10px;
  font-family: 'Cascadia Code', 'Fira Code', monospace;
  font-size: 0.8rem;
  color: var(--accent3);
  min-width: 110px;
  text-align: center;
  white-space: nowrap;
}

.shortcut-row span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ─── INSTALL ─── */
.install { max-width: 800px; }

.steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 40px;
}

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.step-num {
  width: 36px; height: 36px;
  min-width: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  margin-top: 2px;
}

.step-body h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-body p {
  font-size: 0.9rem;
  color: var(--muted);
}

.install-cta {
  margin-top: 48px;
}

/* ─── FOOTER ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 30px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-mid {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-right {
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-right a {
  color: var(--accent3);
}
.footer-right a:hover { text-decoration: underline; }

/* ─── Scroll-in animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

/* ─── Responsive ─── */
@media (max-width: 860px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 90px;
    gap: 48px;
  }
  .sub { margin: 0 auto 36px; }
  .hero-ctas { justify-content: center; }
  .stats-bar { flex-wrap: wrap; gap: 0; }
  .stat { padding: 12px 24px; }
  .stat-div { display: none; }
}

@media (max-width: 500px) {
  .app-mockup { width: 290px; }
  .footer-inner { flex-direction: column; text-align: center; }
  nav ul { gap: 14px; }
  nav ul li:nth-child(1), nav ul li:nth-child(2) { display: none; }
}
