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

/* ─── Design tokens (neon-glow theme) ─── */
:root {
  --bg-deep:       #0d0e10;
  --bg-secondary:  #111214;
  --bg-card:       #1a1b1e;
  --bg-card-hover: #1f2023;
  --bg-input:      #252629;

  --accent:        #00c8ff;
  --accent-hover:  #7b2fff;
  --accent-active: #6620e0;
  --gradient:      linear-gradient(135deg, #00c8ff 0%, #7b2fff 100%);
  --gradient-text: linear-gradient(135deg, #00c8ff 0%, #b060ff 100%);

  --border:        rgba(0, 200, 255, 0.08);
  --border-mid:    rgba(0, 200, 255, 0.15);
  --border-bright: rgba(0, 200, 255, 0.30);
  --glow-cyan:     rgba(0, 200, 255, 0.20);
  --glow-purple:   rgba(123, 47, 255, 0.15);

  --text-normal:   #dbdee1;
  --text-muted:    #949ba4;
  --text-faint:    #5c5f66;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
}

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

/* ─── Animated background ─── */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 600px at 10% 90%,  rgba(0, 200, 255, .07) 0%, transparent 70%),
    radial-gradient(ellipse 700px 500px at 90% 10%,  rgba(123, 47, 255, .06) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 50% 50%,  rgba(0, 200, 255, .03) 0%, transparent 70%);
  animation: bgDrift 25s ease-in-out infinite alternate;
}
@keyframes bgDrift {
  0%   { opacity: 1; transform: scale(1) translate(0, 0); }
  50%  { transform: scale(1.05) translate(-20px, 15px); }
  100% { opacity: .8; transform: scale(1) translate(10px, -10px); }
}

/* Floating grid lines */
.grid-lines {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(0,200,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ─── Wrapper ─── */
.page { position: relative; z-index: 1; }

/* ─── Nav ─── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(13, 14, 16, .7);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 16px;
  color: #fff;
  letter-spacing: -0.5px;
  box-shadow: 0 0 16px var(--glow-cyan);
}
.nav-logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text-normal);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--text-normal); background: rgba(255,255,255,.04); }
.nav-btn {
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--gradient);
  color: #fff;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 0 16px var(--glow-cyan);
}
.nav-btn:hover { opacity: .9; box-shadow: 0 0 24px var(--glow-cyan); }

/* ─── Hero ─── */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 120px 24px 100px;
  max-width: 860px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-mid);
  background: rgba(0, 200, 255, .06);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 32px;
  animation: fadeUp .6s ease-out both;
}
.hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  animation: fadeUp .6s ease-out .1s both;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
  margin-bottom: 48px;
  animation: fadeUp .6s ease-out .2s both;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp .6s ease-out .3s both;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  color: #fff;
  background: var(--gradient);
  box-shadow: 0 0 32px var(--glow-cyan), 0 4px 24px rgba(0,0,0,.4);
  transition: box-shadow .2s, transform .2s, opacity .2s;
}
.btn-primary:hover {
  box-shadow: 0 0 48px var(--glow-cyan), 0 8px 32px rgba(0,0,0,.5);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); opacity: .9; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  color: var(--text-normal);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border-mid);
  transition: background .15s, border-color .15s, transform .2s;
}
.btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: var(--border-bright);
  transform: translateY(-1px);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Preview / Screenshot placeholder ─── */
.hero-preview {
  margin: 80px auto 0;
  max-width: 900px;
  width: 100%;
  padding: 0 24px;
  animation: fadeUp .8s ease-out .4s both;
}
.preview-frame {
  border-radius: 16px;
  border: 1px solid var(--border-mid);
  background: var(--bg-card);
  overflow: hidden;
  box-shadow:
    0 0 0 1px var(--border),
    0 40px 80px rgba(0,0,0,.6),
    0 0 80px var(--glow-cyan);
}
.preview-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-secondary);
}
.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.preview-dot-r { background: #f23f43; }
.preview-dot-y { background: #f0b232; }
.preview-dot-g { background: #23a55a; }
.preview-content {
  display: grid;
  grid-template-columns: 220px 1fr;
  height: 340px;
}
.preview-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.preview-sidebar-header {
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}
.preview-ch {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: default;
}
.preview-ch.active {
  background: rgba(0, 200, 255, .1);
  color: var(--text-normal);
}
.preview-ch-icon { opacity: .5; font-size: 14px; }
.preview-ch.active .preview-ch-icon { opacity: 1; color: var(--accent); }
.preview-main {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
}
.preview-main-header {
  padding: 0 16px;
  height: 48px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-normal);
}
.preview-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.preview-msg {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: #fff;
}
.preview-msg-body { display: flex; flex-direction: column; gap: 3px; }
.preview-msg-name { font-size: 13px; font-weight: 600; }
.preview-msg-text {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}
.preview-input {
  margin: 0 12px 12px;
  background: var(--bg-input);
  border-radius: 8px;
  height: 40px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-faint);
}

/* ─── Features ─── */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 100px 24px;
}
.section-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  color: var(--text-normal);
  letter-spacing: -1px;
  margin-bottom: 16px;
}
.section-desc {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 560px;
  margin: 0 auto 64px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.feature-card:hover {
  border-color: var(--border-mid);
  box-shadow: 0 0 32px var(--glow-cyan), 0 8px 32px rgba(0,0,0,.3);
  transform: translateY(-3px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 200, 255, .1);
  border: 1px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 22px;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-normal);
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── Download CTA ─── */
.cta-section {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px 120px;
}
.cta-card {
  border-radius: 24px;
  border: 1px solid var(--border-mid);
  background: linear-gradient(135deg, rgba(0,200,255,.06) 0%, rgba(123,47,255,.06) 100%);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 60px rgba(0,200,255,.08), 0 0 60px rgba(123,47,255,.06);
}
.cta-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 400px 200px at 20% 0%, rgba(0,200,255,.12) 0%, transparent 70%),
    radial-gradient(ellipse 400px 200px at 80% 100%, rgba(123,47,255,.1) 0%, transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-normal);
  margin-bottom: 14px;
  position: relative;
}
.cta-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 40px;
  position: relative;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
}
.platform-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--text-faint);
  position: relative;
}

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 12px;
  color: #fff;
}
.footer-logo-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-link {
  font-size: 13px;
  color: var(--text-faint);
  text-decoration: none;
  transition: color .15s;
}
.footer-link:hover { color: var(--text-muted); }
.footer-copy {
  font-size: 12px;
  color: var(--text-faint);
}

/* ─── Responsive ─── */
@media (max-width: 700px) {
  nav { padding: 16px 20px; }
  .nav-links .nav-link { display: none; }
  .hero { padding: 80px 20px 60px; }
  .preview-content { grid-template-columns: 1fr; }
  .preview-sidebar { display: none; }
  .cta-card { padding: 40px 24px; }
  footer { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* ─── Scroll-reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
