:root {
  --bg: #0b1020;
  --bg-soft: #111933;
  --card: rgba(17, 25, 51, 0.72);
  --line: rgba(148, 163, 184, 0.2);
  --text: #e5e7eb;
  --muted: #a7b0c3;
  --primary: #4f46e5;
  --accent: #06b6d4;
  --success: #22c55e;
  --shadow: 0 20px 45px rgba(2, 6, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100%;
}

.app-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(79, 70, 229, 0.18), transparent 35%),
    radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.2), transparent 35%),
    linear-gradient(180deg, #0b1020, #090d1a);
  z-index: -1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(9, 13, 26, 0.85);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.8);
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
}

.chip.active {
  border-color: rgba(79, 70, 229, 0.6);
  background: rgba(79, 70, 229, 0.25);
}

.presentation {
  max-width: 1080px;
  margin: 22px auto 90px;
  padding: 0 18px;
}

.track {
  display: none;
}

.track.active-track {
  display: block;
}

.slide {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 34px 32px;
  min-height: 65vh;
}

.slide.active {
  display: block;
}

h1, h2, h3 {
  font-family: "Sora", "Inter", sans-serif;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.1;
  margin-bottom: 10px;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  margin-bottom: 12px;
}

h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  font-size: 1.06rem;
  max-width: 840px;
}

ul, ol {
  line-height: 1.75;
  color: #dbe2ef;
  padding-left: 22px;
}

.pill-row {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  border: 1px solid rgba(6, 182, 212, 0.4);
  background: rgba(6, 182, 212, 0.12);
  color: #a5f3fc;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.55);
}

.flow li {
  margin-bottom: 8px;
}

.diagram {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.node {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.75);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 150px;
  text-align: center;
  font-weight: 700;
}

.node small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}

.arrow {
  font-size: 1.35rem;
  color: #93c5fd;
  font-weight: 800;
}

.price-box {
  border: 1px solid rgba(79, 70, 229, 0.45);
  background: rgba(79, 70, 229, 0.16);
  border-radius: 14px;
  padding: 18px;
  max-width: 620px;
}

.price {
  font-family: "Sora", sans-serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  color: #c4b5fd;
  margin: 6px 0 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  border: 1px solid var(--line);
  overflow: hidden;
  border-radius: 12px;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: rgba(79, 70, 229, 0.2);
}

.note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.93rem;
}

.cta-box {
  margin-top: 20px;
  border-left: 4px solid var(--success);
  padding: 14px 16px;
  background: rgba(34, 197, 94, 0.08);
  border-radius: 10px;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  background: rgba(9, 13, 26, 0.95);
  backdrop-filter: blur(8px);
}

.nav-btn {
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
}

#progressText {
  min-width: 160px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 900px) {
  .grid.two, .grid.three {
    grid-template-columns: 1fr;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .slide {
    min-height: auto;
    padding: 24px 20px;
    margin-bottom: 16px;
  }

  .footer {
    gap: 10px;
    padding: 10px;
  }

  .nav-btn {
    padding: 8px 10px;
  }
}
