/* ============================================================
   PolarisGCS — Zeroth Review Deck
   Palette: whites / blues / near-black, with a warm accent glow
   ============================================================ */

:root {
  --navy: #0b1220;
  --navy-soft: #16233d;
  --blue-deep: #123a8c;
  --blue: #2159d9;
  --blue-bright: #4f8dff;
  --blue-pale: #e7eefc;
  --white: #ffffff;
  --paper: #f6f8fc;
  --warm: #e8a15c;
  --warm-soft: #f3c98d;
  --ink: #0c1526;
  --ink-muted: #4b5972;
  --ink-faint: #8592a8;

  --font: -apple-system, "Segoe UI", "Helvetica Neue", Roboto, Arial, sans-serif;

  --ease: cubic-bezier(0.65, 0.05, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html, body {
  height: 100%;
  background: var(--navy);
}

body {
  font-family: var(--font);
}

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

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  height: 100%;
  padding: 0;
  top: 0 !important;
}

/* ---------- Slide surface ---------- */

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 50% at 82% 12%, rgba(79, 141, 255, 0.16), transparent 60%),
    radial-gradient(ellipse 55% 45% at 8% 92%, rgba(232, 161, 92, 0.14), transparent 60%),
    linear-gradient(150deg, #ffffff 0%, #f4f7fd 45%, #eef2fa 100%);
}

.stage::before {
  /* faint technical grid, robotics/cloud texture */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 18, 32, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 18, 32, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 40%, black 30%, transparent 78%);
  pointer-events: none;
}

.stage-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6.5vw;
  box-sizing: border-box;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin: 0 0 1.1rem 0;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--warm));
  display: inline-block;
  border-radius: 2px;
}

.headline {
  font-size: 3.6rem;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0 0 1.3rem 0;
  max-width: 15ch;
}

.headline .accent {
  background: linear-gradient(100deg, var(--blue-deep) 0%, var(--blue-bright) 60%, var(--warm) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subhead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 42ch;
  margin: 0 0 2rem 0;
  line-height: 1.5;
}

.bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.05rem;
  max-width: 46ch;
}

.bullets li {
  position: relative;
  padding-left: 1.9rem;
  font-size: 1.32rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 12px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--blue-bright));
}

.bullets li span.dim {
  display: block;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-faint);
  margin-top: 0.15rem;
}

.content-col {
  max-width: 55%;
  position: relative;
  z-index: 4;
}

/* ---------- Title slide ---------- */

.slide-title .stage-inner {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 11vh 4vw 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.6rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--blue-deep);
}

.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--blue-bright), var(--blue-deep));
  box-shadow: 0 0 0 5px rgba(79, 141, 255, 0.14);
}

.title-headline {
  font-size: 4.6rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 1rem 0;
  line-height: 1.05;
}

.title-headline .accent {
  background: linear-gradient(100deg, var(--blue-deep), var(--blue-bright) 55%, var(--warm) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-sub {
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--ink-muted);
  max-width: 46ch;
  margin: 0;
}

.title-tags {
  margin-top: 2.6rem;
  display: flex;
  gap: 0.7rem;
  justify-content: center;
  flex-wrap: wrap;
}

.tag {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--blue-deep);
  background: var(--blue-pale);
  border: 1px solid rgba(33, 89, 217, 0.18);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
}

/* ---------- Domain slide ---------- */

.domain-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  max-width: 50ch;
}

.domain-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  border-radius: 16px;
  border: 1px solid rgba(11, 18, 32, 0.07);
  background: rgba(255, 255, 255, 0.55);
}

.domain-item .num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-faint);
  min-width: 1.6em;
}

.domain-item .label {
  font-weight: 700;
  color: var(--ink);
}

.domain-item.primary {
  padding: 1.5rem 1.7rem;
  background: linear-gradient(120deg, rgba(33, 89, 217, 0.1), rgba(79, 141, 255, 0.06));
  border: 1px solid rgba(33, 89, 217, 0.28);
  box-shadow: 0 12px 28px -18px rgba(18, 58, 140, 0.55);
}

.domain-item.primary .label {
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(100deg, var(--blue-deep), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.domain-item.primary .num {
  color: var(--blue-deep);
}

.domain-item:not(.primary) .label {
  font-size: 1.28rem;
}

/* ---------- Architecture slide ---------- */

.slide-architecture .stage-inner {
  align-items: center;
  justify-content: flex-start;
  padding-top: 13vh;
}

.flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 1.6rem;
  max-width: 92%;
}

.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  width: 150px;
}

.flow-icon {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #ffffff, var(--blue-pale));
  border: 1px solid rgba(33, 89, 217, 0.22);
  box-shadow: 0 14px 26px -16px rgba(18, 58, 140, 0.45);
  font-size: 1.7rem;
}

.flow-node .flow-label {
  font-weight: 800;
  font-size: 1rem;
  color: var(--ink);
  text-align: center;
}

.flow-node .flow-sub {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-align: center;
  letter-spacing: 0.02em;
}

.flow-arrow {
  flex: 1;
  height: 2px;
  min-width: 26px;
  background: repeating-linear-gradient(
    90deg,
    var(--blue-bright) 0 8px,
    transparent 8px 14px
  );
  position: relative;
  margin: 0 0.35rem;
  top: -14px;
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--blue-bright);
  border-right: 2px solid var(--blue-bright);
  transform: translateY(-50%) rotate(45deg);
}

.flow-caption {
  margin-top: 2.4rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink-muted);
}

.flow-caption b {
  color: var(--ink);
}

/* ---------- Closing slide ---------- */

.slide-closing .stage-inner {
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding-top: 14vh;
}

.closing-headline {
  font-size: 4.1rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 0.6rem 0;
}

.closing-headline .accent {
  background: linear-gradient(100deg, var(--blue-deep), var(--blue-bright) 55%, var(--warm) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.closing-sub {
  font-size: 1.2rem;
  color: var(--ink-muted);
  font-weight: 500;
}

/* ---------- Slide index badge ---------- */

.slide-badge {
  position: absolute;
  bottom: 2.2rem;
  left: 6.5vw;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  z-index: 4;
}

/* ---------- Fragment-esque content entrance ---------- */

.reveal .slides section .content-col > * ,
.reveal .slides section .stage-inner > .brand-mark,
.reveal .slides section .stage-inner > .title-headline,
.reveal .slides section .stage-inner > .title-sub,
.reveal .slides section .stage-inner > .title-tags,
.reveal .slides section .closing-headline,
.reveal .slides section .closing-sub,
.reveal .slides section .flow,
.reveal .slides section .flow-caption {
  opacity: 0;
  transform: translateY(16px);
}

.reveal .slides section.present .content-col > *,
.reveal .slides section.present .stage-inner > .brand-mark,
.reveal .slides section.present .stage-inner > .title-headline,
.reveal .slides section.present .stage-inner > .title-sub,
.reveal .slides section.present .stage-inner > .title-tags,
.reveal .slides section.present .closing-headline,
.reveal .slides section.present .closing-sub,
.reveal .slides section.present .flow,
.reveal .slides section.present .flow-caption {
  animation: rise-in 0.7s var(--ease-soft) forwards;
}

.reveal .slides section.present .content-col > *:nth-child(1) { animation-delay: 0.05s; }
.reveal .slides section.present .content-col > *:nth-child(2) { animation-delay: 0.14s; }
.reveal .slides section.present .content-col > *:nth-child(3) { animation-delay: 0.23s; }
.reveal .slides section.present .content-col > *:nth-child(4) { animation-delay: 0.32s; }

.reveal .slides section.present .stage-inner > .brand-mark   { animation-delay: 0.05s; }
.reveal .slides section.present .stage-inner > .title-headline { animation-delay: 0.16s; }
.reveal .slides section.present .stage-inner > .title-sub    { animation-delay: 0.30s; }
.reveal .slides section.present .stage-inner > .title-tags   { animation-delay: 0.44s; }
.reveal .slides section.present .flow                        { animation-delay: 0.16s; }
.reveal .slides section.present .flow-caption                { animation-delay: 0.5s; }
.reveal .slides section.present .closing-headline             { animation-delay: 0.08s; }
.reveal .slides section.present .closing-sub                  { animation-delay: 0.22s; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Progress / controls restyle ---------- */

.reveal .progress {
  color: var(--blue-bright);
  height: 3px;
}

.reveal .controls {
  color: var(--blue-deep);
}
