: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);
  --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 PATTERN OVERLAY ===== */
.hex-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.1;
  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.4;
  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: 10px;
}
.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.65rem;
  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(1, 5, 14, 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 CONTAINER ===== */
.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: 1100px;
  width: 100%;
  position: relative;
}

/* ===== SLIDE BG NUMBER ===== */
.slide-bg-num {
  position: absolute;
  top: -2rem;
  right: -1rem;
  font-family: var(--font-heading);
  font-size: clamp(6rem, 15vw, 14rem);
  color: rgba(244, 162, 97, 0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
}

/* ===== SLIDE NUMBER BADGE ===== */
.slide-num-badge {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  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(2rem, 5vw, 3.5rem);
  text-align: center;
  color: var(--white);
  letter-spacing: 0.05em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h2 {
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold);
  border-bottom: 1px solid rgba(244, 162, 97, 0.3);
  padding-bottom: 0.6rem;
  padding-top: 2.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  margin-bottom: 0.8rem;
  margin-top: 1.5rem;
}

.subtitle {
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-family: var(--font-body);
  font-weight: 300;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.center {
  text-align: center;
}

p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== LOGO IMG ===== */
.logo-img {
  display: inline-block;
  margin-bottom: 1rem;
  border-radius: 12px;
  filter: drop-shadow(0 0 20px rgba(230, 57, 70, 0.4));
  animation: logoPulse 3s ease-in-out infinite;
  object-fit: contain;
}

@keyframes logoPulse {
  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));
  }
}

/* ===== STAR LOGO SVG (legacy) ===== */
.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));
  }
}

@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));
  }
}

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== NEO CARD ===== */
.neo-card {
  background: linear-gradient(145deg, #1a2744, #151e36);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 16px;
  padding: 1.3rem;
  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(-4px);
  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);
}

/* Pixel corners */
.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: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  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: 1.05rem;
  margin-bottom: 0.4rem;
}
.neo-card.gold-icon h4 {
  color: var(--gold);
}
.neo-card.red-icon h4 {
  color: var(--red);
}
.neo-card p {
  color: var(--sub);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ===== NUMBER STAT ===== */
.number-stat {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  line-height: 1;
  margin: 0.3rem 0;
}

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 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.7rem 1rem;
  text-align: left;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(0, 229, 255, 0.15);
  background: rgba(0, 229, 255, 0.03);
}
td {
  padding: 0.65rem 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
tr:last-child td {
  border-bottom: none;
}
tr.highlight-row {
  background: rgba(0, 229, 255, 0.04);
}
tr.red-row {
  background: rgba(230, 57, 70, 0.05);
}

.accent {
  color: var(--accent);
}
.gold {
  color: var(--gold);
}
.red {
  color: var(--red);
}
.highlight {
  color: var(--gold);
  font-weight: 700;
}

td .iconify,
th .iconify {
  margin-right: 0.4rem;
}

/* ===== PHASE TIMELINE ===== */
.phase {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem 1rem 1.5rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 229, 255, 0.03);
  border-radius: 0 12px 12px 0;
  position: relative;
}
.phase::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 1.2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.phase h4 {
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}
.phase p {
  color: var(--sub);
  font-size: 0.85rem;
}

/* ===== NOTE BOX ===== */
.note {
  background: rgba(0, 229, 255, 0.04);
  border: 1px dashed rgba(0, 229, 255, 0.3);
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  margin: 1.2rem 0;
  color: var(--accent);
  font-size: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.note .iconify {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ===== INVESTMENT BOX ===== */
.invest-box {
  border: 2px solid var(--gold);
  border-radius: 20px;
  padding: 1.8rem;
  margin: 1.5rem 0;
  background: rgba(244, 162, 97, 0.04);
  position: relative;
  overflow: hidden;
}
.invest-box::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg 350deg,
    rgba(244, 162, 97, 0.05) 350deg 360deg
  );
  animation: rotateBorder 10s linear infinite;
}
@keyframes rotateBorder {
  to {
    transform: rotate(360deg);
  }
}
.invest-box > * {
  position: relative;
  z-index: 1;
}

/* ===== TEAM LIST ===== */
.team-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}
.team-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem 1rem;
  background: linear-gradient(145deg, #1a2744, #151e36);
  border: 1px solid rgba(0, 229, 255, 0.08);
  border-radius: 12px;
  box-shadow:
    4px 4px 10px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.team-list .team-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.15);
  color: var(--accent);
  flex-shrink: 0;
}
.team-list li strong {
  color: var(--gold);
  font-weight: 600;
}
.team-list li span {
  color: var(--sub);
  font-size: 0.9rem;
}

/* ===== FORTRESS ICON ===== */
.fortress-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 0 15px rgba(244, 162, 97, 0.3));
}

/* ===== 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;
}
.slide::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 229, 255, 0.4);
}

/* ===== 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);
  }
}

/* Animation delays are set via JS for reliability */

/* ===== KEYBOARD HINT ===== */
.kbd-hint {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.15);
  display: flex;
  gap: 0.5rem;
  align-items: center;
}
.kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.03);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .slide {
    padding: 1rem;
  }
  .slide-inner {
    padding: 0;
  }
  .slide-bg-num {
    font-size: 5rem;
    top: -1rem;
    right: -0.5rem;
  }
  .grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
  }
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .nav-dots {
    display: none;
  }
  .slide-counter {
    bottom: 1rem;
    left: 1rem;
  }
  .nav-arrows {
    bottom: 1rem;
    right: 1rem;
  }
  .neo-card {
    padding: 1rem;
  }
  .kbd-hint {
    display: none;
  }
  .team-list li {
    padding: 0.6rem 0.8rem;
  }
}

@media (max-width: 480px) {
  .grid {
    grid-template-columns: 1fr;
  }
  h1 {
    font-size: 1.8rem;
  }
  h2 {
    font-size: 1.2rem;
  }
}
