@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;600&display=swap');

:root {
  --background-color: #070A12;
  --heading-font: "Space Grotesk", "Helvetica Neue", sans-serif;
  --body-font: "Inter", Helvetica, sans-serif;
  --mono-font: "JetBrains Mono", monospace;

  --base-font-size: 30px;
  --text-size: 18pt;
  --h1-size: 52pt;
  --h2-size: 38pt;
  --h3-size: 22pt;

  --primary-color: #22D3EE;   /* cyan  */
  --secondary-color: #A78BFA; /* violet */
  --accent-color: #A3E635;    /* lime   */
  --text-color: #E7ECF5;
  --muted-color: #8A93A6;
  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.10);
}

/* ---------- backdrop ---------- */
html, body { background: var(--background-color); }

body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(34, 211, 238, 0.20), transparent 60%),
    radial-gradient(40% 44% at 84% 30%, rgba(167, 139, 250, 0.20), transparent 62%),
    radial-gradient(44% 46% at 60% 88%, rgba(163, 230, 53, 0.12), transparent 62%);
  filter: blur(4px);
  animation: drift 20s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 78%);
}
@keyframes drift {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  50%  { transform: translate3d(2%, 1.5%, 0) scale(1.08); }
  100% { transform: translate3d(-1%, 2%, 0) scale(1.03); }
}

/* ---------- base reveal overrides ---------- */
.reveal, .reveal-viewport { background: transparent !important; }

.reveal { font-family: var(--body-font); color: var(--text-color); }

.reveal .slides section {
  padding: 40px 60px;
  text-align: left;
  height: 100%;
  box-sizing: border-box;
}

.reveal h1, .reveal h2, .reveal h3 {
  font-family: var(--heading-font);
  text-transform: none;
  letter-spacing: -0.01em;
  color: var(--text-color);
  line-height: 1.06;
  margin: 0 0 18px;
}
.reveal h1 { font-size: var(--h1-size); }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 26px; }
.reveal h3 { font-size: var(--h3-size); margin-bottom: 8px; }

.reveal h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 5px;
  margin-top: 14px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.reveal p, .reveal li { font-size: var(--text-size); color: var(--text-color); line-height: 1.45; }
.reveal strong { color: #fff; font-weight: 600; }
.reveal em { color: var(--primary-color); font-style: normal; }

.reveal .content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: calc(100% - 120px);
  gap: 14px;
}

.reveal code {
  font-family: var(--mono-font);
  font-size: 0.86em;
  color: var(--accent-color);
  background: rgba(255,255,255,0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ---------- hero ---------- */
.reveal .eyebrow {
  font-family: var(--mono-font);
  font-size: 13pt;
  letter-spacing: 0.42em;
  color: var(--muted-color);
  margin-bottom: 18px;
}
.reveal .hero-title { font-size: 82pt; margin: 0 0 20px; }
.reveal .hero-sub { font-size: 22pt; color: #C9D2E3; max-width: 62%; line-height: 1.42; }

.reveal .grad {
  background: linear-gradient(100deg, #22D3EE 0%, #A78BFA 42%, #A3E635 72%, #22D3EE 100%);
  background-size: 280% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradShift 9s linear infinite;
}
@keyframes gradShift { to { background-position: 280% 0; } }

.reveal .orb {
  position: absolute;
  top: 46%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,0.30), rgba(167,139,250,0.14) 45%, transparent 70%);
  filter: blur(28px);
  pointer-events: none;
  animation: pulse 6s ease-in-out infinite;
  z-index: -1;
}
.reveal .orb.small { width: 420px; height: 420px; }
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
  50%      { transform: translate(-50%, -50%) scale(1.12); opacity: 1; }
}

/* ---------- pills ---------- */
.reveal .pill-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.reveal .pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15pt;
  padding: 12px 22px;
  border-radius: 999px;
  color: #DCE3F0;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(6px);
}
.reveal .pill i { color: var(--primary-color); }
.reveal .pill code { background: transparent; padding: 0; }

/* ---------- lists ---------- */
.reveal .reveal-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.reveal .reveal-list li { position: relative; padding-left: 44px; font-size: 20pt; }
.reveal .reveal-list li::before {
  content: "";
  position: absolute;
  left: 6px; top: 0.55em;
  width: 12px; height: 12px;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  box-shadow: 0 0 14px rgba(34,211,238,0.55);
}

.reveal blockquote {
  border-left: 4px solid var(--primary-color);
  padding: 6px 0 6px 24px;
  margin: 30px 0 0;
  font-style: italic;
  font-size: 21pt;
  color: #C9D2E3;
  background: none;
  box-shadow: none;
  width: 100%;
}

/* ---------- cards ---------- */
.reveal .cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.reveal .card {
  padding: 26px 28px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.reveal .card i { font-size: 26pt; color: var(--primary-color); margin-bottom: 14px; display: block; }
.reveal .card h3 { color: #fff; }
.reveal .card p { font-size: 15pt; color: var(--muted-color); margin: 0; }
.reveal .card.visible:hover { transform: translateY(-6px); border-color: rgba(34,211,238,0.55); box-shadow: 0 18px 40px rgba(34,211,238,0.16); }

/* ---------- tools grid ---------- */
.reveal .tools-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.reveal .tool {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 30px 16px;
  border-radius: 16px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform .3s ease, border-color .3s ease;
}
.reveal .tool.visible:hover { transform: translateY(-5px); border-color: rgba(167,139,250,0.55); }
.reveal .tool i { font-size: 30pt; color: var(--secondary-color); }
.reveal .tool p { font-size: 16pt; margin: 0; }

/* ---------- pipeline (auto-animate) ---------- */
.reveal .pipeline { display: flex; gap: 26px; align-items: stretch; }
.reveal .stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 40px 18px;
  border-radius: 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: all .5s ease;
}
.reveal .stage i { font-size: 30pt; color: var(--muted-color); }
.reveal .stage p { font-size: 18pt; margin: 0; }
.reveal .stage.dim { opacity: 0.45; }
.reveal .stage.lit {
  border-color: rgba(163,230,53,0.6);
  box-shadow: 0 0 0 1px rgba(163,230,53,0.25), 0 20px 44px rgba(163,230,53,0.14);
}
.reveal .stage.lit i { color: var(--accent-color); }
.reveal .stage.lit p { color: #fff; }

/* ---------- code badge ---------- */
.reveal .code-badge {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: rgba(4, 7, 14, 0.72);
}
.reveal .code-badge .dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin: 16px 0 0 8px; }
.reveal .code-badge .dot:first-child { margin-left: 18px; }
.reveal .code-badge pre { margin: 12px 0 0; padding: 18px 22px; }
.reveal .code-badge pre code {
  display: block;
  background: none;
  padding: 0;
  color: #B9E6F2;
  font-size: 13pt;
  line-height: 1.6;
  white-space: pre-wrap;
}

/* ---------- text helpers ---------- */
.reveal .lead { font-size: 22pt; color: #C9D2E3; }
.reveal .caption { font-size: 15pt; color: var(--muted-color); margin-top: 22px; }
.reveal .url {
  display: inline-block;
  margin-top: 30px;
  font-family: var(--mono-font);
  font-size: 17pt;
  color: var(--accent-color);
}
.reveal .url i { margin-right: 10px; }

/* ---------- controls / progress ---------- */
.reveal .progress { height: 5px; color: transparent; background: rgba(255,255,255,0.06); }
.reveal .progress span { background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color)); }
.reveal .controls { color: var(--primary-color); }
.reveal .slide-number { background: transparent; color: var(--muted-color); font-family: var(--mono-font); font-size: 14pt; }

/* ---------- export mode (decktape ?export) : freeze motion ---------- */
.exporting, .exporting * { animation: none !important; transition: none !important; }
.exporting .grad { color: #7fd7ea; -webkit-text-fill-color: #7fd7ea; }
