:root {
  --bg: #01050e;
  --bg-light: #1e293b;
  --bg-card: linear-gradient(145deg, #1a2744, #151e36);
  --accent: #00e5ff;
  --gold: #f4a261;
  --red: #e63946;
  --white: #ffffff;
  --sub: #80deea;
  --sub-dim: rgba(128, 222, 234, 0.6);
  --border: rgba(244, 162, 97, 0.15);
  --font-heading: "Russo One", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--white);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== HEX OVERLAY ===== */
.hex-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='100'%3E%3Cpath d='M28 66L0 50V16L28 0l28 16v34L28 66zm0 34L0 84V50l28-16 28 16v34L28 100z' fill='none' stroke='%23F4A261' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 56px 100px;
}

/* ===== SCAN LINE ===== */
.scan-line {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 100;
  opacity: 0.3;
  animation: scanDown 8s linear infinite;
  pointer-events: none;
}
@keyframes scanDown {
  0% {
    top: -2px;
  }
  100% {
    top: 100vh;
  }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 200;
  background: rgba(255, 255, 255, 0.05);
}
.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--accent);
}

/* ===== SLIDE COUNTER ===== */
.slide-counter {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--sub-dim);
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
}
.slide-counter .current {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.slide-counter .separator {
  color: rgba(255, 255, 255, 0.2);
  margin: 0 0.2rem;
}
.slide-counter .total {
  color: rgba(255, 255, 255, 0.3);
}

/* ===== NAV DOTS ===== */
.nav-dots {
  position: fixed;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  cursor: pointer;
  transition: all 0.4s;
  position: relative;
}
.nav-dot:hover {
  border-color: var(--accent);
}
.nav-dot.active {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.nav-dot .dot-label {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: var(--sub-dim);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 229, 255, 0.15);
}
.nav-dot:hover .dot-label {
  opacity: 1;
}

/* ===== NAV ARROWS ===== */
.nav-arrows {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  gap: 0.5rem;
}
.nav-arrow {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(15, 23, 42, 0.8);
  color: var(--accent);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
}
.nav-arrow:hover {
  border-color: var(--accent);
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.15);
}
.nav-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  border-color: rgba(255, 255, 255, 0.1);
}

/* ===== PRESENTATION ===== */
.presentation {
  position: relative;
  width: 100%;
  height: 100vh;
  z-index: 10;
}

/* ===== SLIDES ===== */
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(30px) scale(0.98);
  transition: all 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 2rem;
}
.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.slide.exit-up {
  opacity: 0;
  transform: translateY(-30px) scale(0.98);
}
.slide.exit-down {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.slide-inner {
  max-width: 1150px;
  width: 100%;
  position: relative;
}

/* ===== SLIDE BG NUM ===== */
.slide-bg-num {
  position: absolute;
  top: -2rem;
  right: -1rem;
  font-family: var(--font-heading);
  font-size: clamp(5rem, 12vw, 12rem);
  color: rgba(244, 162, 97, 0.035);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ===== SLIDE NUM BADGE ===== */
.slide-num-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.2);
  border-radius: 6px;
  padding: 2px 10px;
  letter-spacing: 0.1em;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  font-weight: 400;
}
h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  text-align: center;
  color: var(--white);
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.7rem);
  color: var(--gold);
  border-bottom: 1px solid rgba(244, 162, 97, 0.3);
  padding-bottom: 0.5rem;
  margin-bottom: 1.3rem;
  margin-top: 2.2rem;
  line-height: 1.25;
}
h3 {
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  color: var(--accent);
  margin-bottom: 0.5rem;
  margin-top: 1.2rem;
}
.subtitle {
  text-align: center;
  font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.center {
  text-align: center;
}
p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--sub);
}
p strong {
  color: var(--white);
  font-weight: 600;
}

/* ===== STAR LOGO ===== */
.logo-star {
  display: inline-block;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.4));
  animation: starPulse 3s ease-in-out infinite;
}
@keyframes starPulse {
  0%,
  100% {
    filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 35px rgba(230, 57, 70, 0.7));
  }
}

/* ===== NEO CARD ===== */
.neo-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 16px;
  padding: 1.2rem;
  position: relative;
  overflow: hidden;
  box-shadow:
    6px 6px 14px rgba(0, 0, 0, 0.5),
    -2px -2px 8px rgba(255, 255, 255, 0.015),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 20px rgba(0, 229, 255, 0.02);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.neo-card:hover {
  transform: translateY(-3px);
  border-color: rgba(244, 162, 97, 0.3);
  box-shadow:
    8px 8px 20px rgba(0, 0, 0, 0.5),
    -2px -2px 10px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 30px rgba(244, 162, 97, 0.08);
}
.neo-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  height: 6px;
  background: repeating-conic-gradient(var(--accent) 0% 25%, transparent 0% 50%)
    0 0 / 3px 3px;
  opacity: 0.25;
}
.neo-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: repeating-conic-gradient(var(--gold) 0% 25%, transparent 0% 50%) 0
    0 / 3px 3px;
  opacity: 0.25;
}
.neo-card .card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.6rem;
  font-size: 1rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--accent);
}
.neo-card.gold-icon .card-icon {
  background: rgba(244, 162, 97, 0.1);
  border-color: rgba(244, 162, 97, 0.2);
  color: var(--gold);
}
.neo-card.red-icon .card-icon {
  background: rgba(230, 57, 70, 0.1);
  border-color: rgba(230, 57, 70, 0.2);
  color: var(--red);
}
.neo-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.neo-card.gold-icon h4 {
  color: var(--gold);
}
.neo-card p {
  color: var(--sub);
  font-size: 0.8rem;
  line-height: 1.55;
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* ===== NUMBER STAT ===== */
.number-stat {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--gold);
  line-height: 1;
  margin: 0.2rem 0;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  margin: 1rem 0;
  border-radius: 12px;
  border: 1px solid rgba(0, 229, 255, 0.1);
  background: linear-gradient(
    145deg,
    rgba(26, 39, 68, 0.5),
    rgba(21, 30, 54, 0.5)
  );
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 500px;
}
th {
  padding: 0.5rem 0.7rem;
  text-align: right;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  background: rgba(0, 229, 255, 0.03);
  white-space: nowrap;
}
td {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--sub);
  text-align: right;
  white-space: nowrap;
}
td:first-child,
th:first-child {
  text-align: left;
  font-weight: 500;
  white-space: normal;
}
tr:last-child td {
  border-bottom: none;
}
tr.highlight-row {
  background: rgba(0, 229, 255, 0.04);
}
tr.gold-row {
  background: rgba(244, 162, 97, 0.05);
}
tr.red-row {
  background: rgba(230, 57, 70, 0.05);
}
td .iconify,
th .iconify {
  margin-right: 0.35rem;
}

.accent {
  color: var(--accent);
}
.gold {
  color: var(--gold);
  font-weight: 700;
}
.red {
  color: var(--red);
}

/* ===== NOTE BOX ===== */
.note {
  background: rgba(0, 229, 255, 0.04);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 0.8rem 1.1rem;
  margin: 1rem 0;
  color: var(--accent);
  font-size: 0.82rem;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.note .iconify {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== ASSUMPTION LIST ===== */
.assume-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.assume-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0.9rem;
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 12px;
  font-size: 0.82rem;
  color: var(--sub);
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.assume-list li .assume-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--accent);
}
.assume-list li strong {
  color: var(--white);
  font-weight: 600;
}

/* ===== SCROLLBAR ===== */
.slide::-webkit-scrollbar {
  width: 4px;
}
.slide::-webkit-scrollbar-track {
  background: transparent;
}
.slide::-webkit-scrollbar-thumb {
  background: rgba(0, 229, 255, 0.2);
  border-radius: 2px;
}

/* ===== ANIMATIONS ===== */
.slide.active .anim-up {
  animation: animUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.anim-up {
  opacity: 0;
  transform: translateY(20px);
}
@keyframes animUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.slide.active .anim-up:nth-child(1) {
  animation-delay: 0.05s;
}
.slide.active .anim-up:nth-child(2) {
  animation-delay: 0.12s;
}
.slide.active .anim-up:nth-child(3) {
  animation-delay: 0.19s;
}
.slide.active .anim-up:nth-child(4) {
  animation-delay: 0.26s;
}
.slide.active .anim-up:nth-child(5) {
  animation-delay: 0.33s;
}
.slide.active .anim-up:nth-child(6) {
  animation-delay: 0.4s;
}
.slide.active .anim-up:nth-child(7) {
  animation-delay: 0.47s;
}
.slide.active .anim-up:nth-child(8) {
  animation-delay: 0.54s;
}

/* ===== KBD HINT ===== */
.kbd-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.12);
  display: flex;
  gap: 0.4rem;
  align-items: center;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  font-size: 0.55rem;
  background: rgba(255, 255, 255, 0.02);
}

/* ===== METRIC CARD ===== */
.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.8rem;
  margin: 1rem 0;
}
.metric-card {
  background: var(--bg-card);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 14px;
  padding: 1rem;
  text-align: center;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 5px;
  height: 5px;
  background: repeating-conic-gradient(var(--accent) 0% 25%, transparent 0% 50%)
    0 0 / 2.5px 2.5px;
  opacity: 0.25;
}
.metric-card .metric-value {
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}
.metric-card .metric-label {
  font-size: 0.7rem;
  color: var(--sub-dim);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .slide {
    padding: 1rem;
  }
  .slide-bg-num {
    font-size: 4rem;
    top: -0.5rem;
    right: -0.5rem;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .metric-row {
    grid-template-columns: 1fr 1fr;
  }
  .nav-dots {
    display: none;
  }
  .slide-counter {
    bottom: 1rem;
    left: 1rem;
  }
  .nav-arrows {
    bottom: 1rem;
    right: 1rem;
  }
  .neo-card {
    padding: 0.9rem;
  }
  .kbd-hint {
    display: none;
  }
  th,
  td {
    padding: 0.35rem 0.5rem;
    font-size: 0.65rem;
  }
  .assume-list li {
    padding: 0.5rem 0.7rem;
    font-size: 0.75rem;
  }
}
@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .metric-row {
    grid-template-columns: 1fr 1fr;
  }
  h1 {
    font-size: 1.4rem;
  }
  h2 {
    font-size: 1rem;
  }
}
