:root {
  --bg: #070b14;
  --surface: #0f1524;
  --surface-soft: #131a2b;
  --text: #e8edf5;
  --muted: #9ea9bb;
  --faint: #5a6578;
  --line: #23304a;
  --accent: #2fd4c7;
  --accent-strong: #23bdb0;
  --accent-glow: rgba(47, 212, 199, 0.12);
  --danger: #f0b6b6;
  --ok: #b8e8c0;
  --radius: 14px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(1000px 500px at 100% -10%, rgba(47, 212, 199, 0.10), transparent 55%),
    radial-gradient(900px 500px at -10% 0%, rgba(66, 119, 255, 0.12), transparent 50%),
    var(--bg);
  color: var(--text);
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* Dot grid background pattern */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(47, 212, 199, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--accent-strong);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.88);
  border-bottom: 1px solid rgba(35, 48, 74, 0.6);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
  transition: opacity 0.2s;
}

.brand:hover {
  color: var(--text);
  opacity: 0.85;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav a.active {
  color: var(--text);
  background: rgba(47, 212, 199, 0.08);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}

.nav-toggle:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle svg {
  display: block;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: linear-gradient(180deg, var(--accent), #25b3a8);
  color: #041014;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 8px 24px rgba(47, 212, 199, 0.25);
}

.btn-primary:hover {
  color: #041014;
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.15) inset,
    0 12px 32px rgba(47, 212, 199, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  border-color: var(--line);
  background: rgba(18, 26, 42, 0.6);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--text);
  background: rgba(47, 212, 199, 0.06);
}

/* ─── Animations ─── */

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

.reveal {
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.reveal-d1 { animation-delay: 0.08s; }
.reveal-d2 { animation-delay: 0.16s; }
.reveal-d3 { animation-delay: 0.24s; }
.reveal-d4 { animation-delay: 0.32s; }
.reveal-d5 { animation-delay: 0.40s; }
.reveal-d6 { animation-delay: 0.48s; }

/* ─── Hero ─── */

.hero {
  padding: 80px 0 64px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 212, 199, 0.3);
  background: rgba(47, 212, 199, 0.06);
  color: #9ce9e2;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.subhead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 50ch;
  line-height: 1.6;
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

/* ─── App Mockup (hero right) ─── */

.app-mockup {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.app-mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  background: rgba(15, 21, 36, 0.9);
  border-bottom: 1px solid var(--line);
}

.app-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line);
}

.app-mockup-dot:nth-child(1) { background: #ff5f57; }
.app-mockup-dot:nth-child(2) { background: #ffbd2e; }
.app-mockup-dot:nth-child(3) { background: #28ca41; }

.app-mockup-title {
  margin-left: 8px;
  font-size: 0.72rem;
  color: var(--faint);
  font-weight: 600;
}

.app-mockup-body {
  padding: 16px;
}

/* Mini KPI row */
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.mock-kpi {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--surface-soft);
}

.mock-kpi-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--faint);
  font-weight: 600;
}

.mock-kpi-value {
  font-size: 1.15rem;
  font-weight: 700;
  margin-top: 2px;
  letter-spacing: -0.02em;
}

.mock-kpi-delta {
  font-size: 0.62rem;
  font-weight: 600;
  margin-top: 1px;
}

.mock-kpi-delta.up { color: var(--ok); }
.mock-kpi-delta.down { color: #f87171; }

/* Mini chart */
.mock-chart {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--surface-soft);
}

.mock-chart-label {
  font-size: 0.62rem;
  color: var(--faint);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.mock-chart svg {
  display: block;
  width: 100%;
  height: auto;
}

/* ─── Sections ─── */

.section {
  padding: 48px 0;
}

.section h2 {
  margin: 0 0 28px;
  font-size: 1.55rem;
  letter-spacing: -0.015em;
}

.section-center {
  text-align: center;
}

.section-center h2 {
  margin-left: auto;
  margin-right: auto;
}

/* ─── Steps (How it works) ─── */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.step:hover {
  border-color: rgba(47, 212, 199, 0.3);
  box-shadow: 0 0 24px var(--accent-glow);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(47, 212, 199, 0.1);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 6px;
  font-size: 1.02rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── Feature cards ─── */

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--radius);
  padding: 22px 20px;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  border-color: rgba(47, 212, 199, 0.25);
  box-shadow: 0 0 20px var(--accent-glow);
  transform: translateY(-2px);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ─── Panel ─── */

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 24px;
}

/* ─── Platforms (download) ─── */

.platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.platform {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 20px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.platform:hover {
  border-color: rgba(47, 212, 199, 0.25);
  box-shadow: 0 0 20px var(--accent-glow);
}

.platform h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

/* ─── Typography helpers ─── */

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.notice {
  border: 1px solid #6a4f25;
  background: rgba(47, 39, 17, 0.5);
  color: #f7e6c0;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.5;
}

.ok { color: var(--ok); }
.warn { color: var(--danger); }

/* ─── Legal pages ─── */

.legal {
  max-width: 860px;
  margin: 40px auto 60px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 32px;
}

.legal h1 {
  margin-top: 0;
  font-size: 1.75rem;
}

.legal h2 {
  margin-top: 32px;
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.6;
}

.legal ul,
.legal ol {
  padding-left: 20px;
}

.legal li + li {
  margin-top: 4px;
}

/* ─── Footer ─── */

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  margin-top: 48px;
  color: var(--faint);
  font-size: 0.82rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand strong {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--faint);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-contact a {
  color: var(--faint);
}

.footer-contact a:hover {
  color: var(--accent);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(7, 11, 20, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px;
    gap: 2px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 10px 12px;
    width: 100%;
  }

  .header-inner {
    position: relative;
  }

  .hero {
    padding: 48px 0 40px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .grid,
  .steps,
  .platforms {
    grid-template-columns: 1fr;
  }

  .mock-kpis {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
    text-align: center;
  }

  .mock-kpis {
    grid-template-columns: 1fr;
  }
}
