:root {
  --bg: #0b0d12;
  --bg-soft: #121621;
  --bg-glow: radial-gradient(1100px 600px at 15% 10%, rgba(47, 143, 255, 0.2), transparent 60%),
    radial-gradient(900px 500px at 85% 20%, rgba(255, 154, 80, 0.18), transparent 55%),
    radial-gradient(900px 800px at 45% 80%, rgba(106, 255, 196, 0.14), transparent 60%);
  --text: #f5f7ff;
  --muted: #9aa5bb;
  --accent: #69f0c3;
  --accent-2: #ff9a50;
  --accent-3: #5b8cff;
  --border: rgba(255, 255, 255, 0.12);
  --glass: rgba(10, 12, 20, 0.72);
  --shadow: rgba(3, 6, 16, 0.6);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  height: 100%;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.page {
  background: var(--bg-glow);
  min-height: 100vh;
  position: relative;
}

canvas#hero-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.material-symbols-rounded {
  font-variation-settings: "FILL" 0, "wght" 600, "GRAD" 0, "opsz" 24;
  font-size: 22px;
  line-height: 1;
}

.slide-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 10px;
  padding: 10px 8px;
  background: rgba(10, 12, 20, 0.55);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
  z-index: 9;
  backdrop-filter: blur(10px);
}

.slide-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.slide-dot:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text);
}

.slide-dot.active {
  background: linear-gradient(135deg, var(--accent-3), var(--accent));
  color: #0a0d14;
  border-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 30px rgba(91, 140, 255, 0.45);
}

.icon-badge {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(91, 140, 255, 0.16);
  color: #5b8cff;
  box-shadow: 0 12px 28px rgba(4, 8, 20, 0.5);
}

/* Keep material icons visually centered inside the badge */
.icon-badge .material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.icon-badge.accent-cyan {
  background: rgba(105, 240, 195, 0.16);
  color: #69f0c3;
}

.icon-badge.accent-blue {
  background: rgba(91, 140, 255, 0.16);
  color: #5b8cff;
}

.icon-badge.accent-orange {
  background: rgba(255, 154, 80, 0.16);
  color: #ff9a50;
}

.icon-badge.accent-purple {
  background: rgba(139, 123, 255, 0.16);
  color: #8b7bff;
}

.icon-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  backdrop-filter: blur(18px);
  background: rgba(8, 10, 16, 0.6);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

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

.logo {
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-links a.active {
  color: var(--text);
}

.progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-3));
  width: 0%;
  transition: width 0.2s ease;
}

.fullscreen-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.fullscreen-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

main {
  position: relative;
  z-index: 2;
  /* Reduce top offset so the first slide sits closer to the top; header still clears */
  padding-top: 70px;
}

section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
  display: grid;
  gap: 32px;
  align-items: center;
}

.slide {
  min-height: 100vh;
  padding: 100px 24px;
}


.hero {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.hero h1 {
  font-size: clamp(32px, 5vw, 64px);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.hero h1 .subtitle {
  font-size: clamp(30px, 1.6vw, 60px);
  color: var(--accent-2);
  font-weight: 500;
  margin-top: 8px;
  display: block;
  line-height: 1.3;
  opacity: 0.8;
}

.hero p {
  color: var(--muted);
  font-size: 17px;
  margin-top: 18px;
}



.btn {
  border: 1px solid var(--border);
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, border 0.3s ease, background 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

.highlight {
  color: var(--accent-2);
}

.stats-panel .stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
}

.stats-panel .stat-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--glass);
  box-shadow: 0 20px 30px var(--shadow);
  display: grid;
  gap: 8px;
}

.stats-panel .stat-card h3 {
  font-size: 22px;
  margin-bottom: 4px;
}

.stats-panel .stat-card p {
  font-size: 13px;
  color: var(--muted);
}

.panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  background: var(--glass);
  box-shadow: 0 20px 40px var(--shadow);
}

.panel h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 16px;
}

.panel p {
  color: var(--muted);
  font-size: 16px;
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.three-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.modules-chart-panel {
  display: grid;
  gap: 16px;
  align-content: start;
}

.modules-chart-shell {
  background: linear-gradient(135deg, rgba(105, 240, 195, 0.18), rgba(91, 140, 255, 0.14));
}

.module-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 12px;
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(105, 240, 195, 0.45);
}

.legend-ai {
  background: #69f0c3;
}

.legend-data {
  background: #5b8cff;
}

.legend-jobs {
  background: #ff9a50;
}

.legend-map {
  background: #8b7bff;
}

.chip-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
}

.chart {
  width: 100%;
  min-height: 280px;
}

.chart-tall {
  min-height: 420px;
}

.chart-shell {
  position: relative;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(91, 140, 255, 0.18), rgba(255, 154, 80, 0.1));
  box-shadow: 0 26px 60px rgba(6, 12, 28, 0.6);
  overflow: hidden;
}

.chart-shell::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(105, 240, 195, 0.3), transparent 65%);
  opacity: 0.8;
  pointer-events: none;
}

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

.timeline-item {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(12, 18, 30, 0.6);
  display: grid;
  gap: 10px;
}

.timeline-item span {
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

.timeline-item .icon-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
}

.timeline-item .icon-badge {
  flex-shrink: 0;
}

.grid-visuals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.flow {
  display: grid;
  gap: 14px;
  /* 两列显示，手机窄屏时回退到单列 */
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 560px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

.flow-step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.flow-step i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  color: var(--accent-3);
  font-weight: 600;
}

.split-title {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--muted);
}

.callout {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid rgba(102, 242, 194, 0.4);
  background: rgba(102, 242, 194, 0.08);
  color: var(--text);
  font-size: 14px;
}

.arch-grid {
  display: grid;
  gap: 16px;
}

.arch-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

.arch-box {
  border-radius: 14px;
  border: 1px solid var(--border);
  padding: 16px;
  background: rgba(13, 18, 28, 0.7);
  font-size: 14px;
  color: var(--muted);
}

.arch-box strong {
  display: block;
  color: var(--text);
  margin-bottom: 6px;
  font-size: 15px;
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

footer {
  text-align: center;
  padding: 40px 24px 80px;
  color: var(--muted);
  font-size: 13px;
}

/* GDAL Commands Matrix Styles */
.gdal-commands-container {
  position: relative;
  width: 100%;
  height: 500px;
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(10, 15, 25, 0.95), rgba(15, 20, 35, 0.95));
  border-radius: 20px;
  border: 1px solid rgba(105, 240, 195, 0.2);
  overflow: hidden;
  box-shadow:
    0 0 60px rgba(105, 240, 195, 0.15),
    inset 0 0 40px rgba(0, 0, 0, 0.3);
}

.gdal-command-stream {
  position: absolute;
  white-space: nowrap;
  font-family: 'Courier New', monospace;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: streamFlow linear infinite;
  will-change: transform;
  text-shadow: 0 0 8px currentColor;
}

@keyframes streamFlow {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

.gdal-command-item {
  display: inline-block;
  padding: 8px 16px;
  margin: 0 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
}

.gdal-command-item:hover {
  background: rgba(105, 240, 195, 0.15);
  border-color: rgba(105, 240, 195, 0.4);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(105, 240, 195, 0.3);
}

.gdal-command-name {
  font-weight: 700;
  margin-right: 8px;
}

.gdal-command-desc {
  opacity: 0.7;
  font-size: 0.9em;
}

/* Different size variants */
.gdal-size-xs {
  font-size: 11px;
  opacity: 0.5;
}

.gdal-size-sm {
  font-size: 13px;
  opacity: 0.65;
}

.gdal-size-md {
  font-size: 15px;
  opacity: 0.8;
}

.gdal-size-lg {
  font-size: 17px;
  opacity: 0.95;
}

.gdal-size-xl {
  font-size: 19px;
  opacity: 1;
}

/* Color variants */
.gdal-color-cyan {
  color: #00d9ff;
}

.gdal-color-green {
  color: #69f0c3;
}

.gdal-color-blue {
  color: #5b8cff;
}

.gdal-color-purple {
  color: #b794f6;
}

.gdal-color-orange {
  color: #ff9a50;
}

.gdal-color-pink {
  color: #ff6ec7;
}

.gdal-color-yellow {
  color: #ffd93d;
}

/* Grid overlay effect */
.gdal-commands-container::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(105, 240, 195, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 240, 195, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 1;
}

/* Glow effect overlay */
.gdal-commands-container::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(105, 240, 195, 0.1), transparent 70%);
  pointer-events: none;
  z-index: 2;
  animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {

  0%,
  100% {
    opacity: 0.3;
  }

  50% {
    opacity: 0.6;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  header {
    position: static;
  }

  main {
    padding-top: 40px;
  }

  .slide {
    min-height: auto;
    padding: 70px 20px;
  }

  .slide-nav {
    display: none;
  }

  .gdal-commands-container {
    height: 400px;
  }

  .gdal-size-xs {
    font-size: 9px;
  }

  .gdal-size-sm {
    font-size: 11px;
  }

  .gdal-size-md {
    font-size: 13px;
  }

  .gdal-size-lg {
    font-size: 15px;
  }

  .gdal-size-xl {
    font-size: 17px;
  }
}