:root {
  --raspberry: #F0146E;
  --gunmetal: #20212C;
  --eggplant: #310B37;
  --amethyst: #A445B2;
  --amber: #FFB800;
  --cool-grey: #F4F4F4;
  --border: #E5E7EB;
  --muted: oklch(0.55 0.015 290);
  --muted-light: oklch(0.72 0.01 290);
  --paper: #FAFAFA;
}

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

body {
  font-family: 'Open Sans', sans-serif;
  background: #fff;
  color: var(--gunmetal);
  overflow: hidden;
  height: 100vh;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; letter-spacing: -0.02em; }

/* ───── SLIDESHOW SHELL ───── */
.slideshow {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease;
  padding: 4rem 3rem;
  overflow-y: auto;
}

.slide.active { opacity: 1; visibility: visible; }

.slide-body {
  max-width: 960px;
  width: 100%;
}

/* ───── FIXED NAV BAR ───── */
.slide-chrome {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
}

.chrome-logo img { height: 22px; }

.chrome-dots {
  display: flex;
  gap: 6px;
  align-items: center;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}

.dot.active { background: var(--raspberry); transform: scale(1.3); }
.dot:hover { background: var(--amethyst); }

.chrome-nav {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.chrome-nav button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  color: var(--gunmetal);
}

.chrome-nav button:hover { background: var(--cool-grey); }

.slide-counter {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted-light);
  min-width: 3.5rem;
  text-align: center;
}

/* ───── GRADIENT TOP BAR ───── */
.gradient-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(45deg, var(--raspberry), var(--amethyst));
  z-index: 100;
}

/* ───── SLIDE: TITLE ───── */
.title-slide .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--raspberry);
  margin-bottom: 2rem;
}

.title-slide .eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  background: var(--raspberry);
  flex-shrink: 0;
}

.title-slide h1 {
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 640px;
}

.title-slide h1 em { font-style: normal; color: var(--raspberry); }

.title-slide .subtitle {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--muted);
  margin-top: 2rem;
  max-width: 480px;
  line-height: 1.75;
}

.title-slide .start-hint {
  margin-top: 3rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted-light);
}

.title-slide .start-hint kbd {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  background: var(--cool-grey);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  margin: 0 0.15rem;
}

/* ───── SLIDE: DIAMOND ───── */
.diamond-slide .diamond-svg { width: 100%; max-height: 55vh; }
.diamond-label { font-family: 'Outfit', sans-serif; font-weight: 700; }

/* ───── SLIDE: COMPARISON ───── */
.comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.comparison h2 {
  grid-column: span 2;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.comp-col { padding-top: 1.5rem; border-top: 3px solid; }
.comp-col.explore-col { border-color: var(--raspberry); }
.comp-col.execute-col { border-color: var(--gunmetal); }

.comp-col h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.explore-col h3 { color: var(--raspberry); }
.execute-col h3 { color: var(--gunmetal); }

.comp-col ul { list-style: none; }

.comp-col li {
  padding: 0.5rem 0 0.5rem 1.4rem;
  position: relative;
  font-size: 1rem;
  border-bottom: 1px solid oklch(0.94 0.005 290);
}

.comp-col li:last-child { border-bottom: none; }

.comp-col li::before {
  content: '→';
  position: absolute;
  left: 0;
  font-weight: 600;
}

.explore-col li::before { color: var(--raspberry); }
.execute-col li::before { color: var(--gunmetal); }

/* ───── SLIDE: PROMPT DEMO ───── */
.prompt-slide h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.prompt-slide .lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 520px;
}

.prompt-box {
  background: var(--gunmetal);
  border-radius: 10px;
  padding: 2rem;
}

.prompt-box .box-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}

.prompt-box.explore .box-label { color: var(--raspberry); }
.prompt-box.execute .box-label { color: var(--amber); }

.prompt-box .prompt-text {
  color: rgba(255,255,255,0.85);
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  min-height: 4.5rem;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: currentColor;
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 0; } }

/* ───── SLIDE: EXPLORE RESULTS ───── */
.results-slide h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--raspberry);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.result-item {
  background: white;
  padding: 1.25rem 1.5rem;
}

.result-item .num {
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--raspberry);
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.result-item h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.result-item p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ───── SLIDE: EXECUTE RESULT ───── */
.exec-result {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  max-width: 520px;
}

.exec-result-bar {
  background: var(--gunmetal);
  color: rgba(255,255,255,0.6);
  padding: 0.6rem 1.5rem;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exec-result-bar .amber-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber);
}

.exec-result-body { padding: 1.75rem; }

.mock-title {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.mock-title span {
  font-family: 'Open Sans', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
}

.mock-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.mock-field {
  background: var(--cool-grey);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.55rem 0.75rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.mock-field.full { grid-column: span 2; }

.mock-btn {
  margin-top: 0.7rem;
  padding: 0.65rem;
  background: var(--gunmetal);
  color: white;
  text-align: center;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
}

.exec-result-checks {
  padding: 0.6rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
  color: var(--muted);
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
}

.exec-result-checks span::before { content: '✓ '; color: #16A34A; font-weight: 700; }

.exec-slide h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

/* ───── SLIDE: WHEN TO USE ───── */
.when-slide h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
}

.scenario-list {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.scenario {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 1rem 1.5rem;
  background: white;
  border-bottom: 1px solid var(--border);
}

.scenario:last-child { border-bottom: none; }

.situation {
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
}

.detail {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

.rec {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.rec-explore { background: #FFF0F6; color: var(--raspberry); border: 1px solid #FBBDD9; }
.rec-execute { background: var(--cool-grey); color: var(--gunmetal); border: 1px solid #D1D5DB; }
.rec-both { background: #F5F3FF; color: var(--amethyst); border: 1px solid #DDD6FE; }

/* ───── SLIDE: TRY IT ───── */
.try-slide { background: var(--gunmetal); }
.try-slide .slide-body { max-width: 680px; }

.try-slide h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}

.try-slide .try-sub {
  color: rgba(255,255,255,0.5);
  margin-bottom: 2rem;
  font-size: 1rem;
}

.try-box {
  background: white;
  border-radius: 10px;
  padding: 1.75rem;
}

.try-box textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  resize: none;
  min-height: 72px;
  outline: none;
  color: var(--gunmetal);
  line-height: 1.65;
  padding-bottom: 0.75rem;
  margin-bottom: 0.75rem;
}

.try-box textarea::placeholder { color: #9CA3AF; }

.try-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.try-btn {
  padding: 0.55rem 1.1rem;
  border: none;
  border-radius: 6px;
  font-family: 'Outfit', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.btn-explore { background: var(--raspberry); color: white; }
.btn-execute { background: var(--eggplant); color: white; }
.try-btn:hover { opacity: 0.85; }

.rewrite-output {
  margin-top: 1rem;
  padding: 1.25rem;
  border-radius: 8px;
  font-size: 0.92rem;
  line-height: 1.7;
  display: none;
}

.rewrite-output.show { display: block; }
.rewrite-output.explore-out { background: #FFF0F6; border-left: 3px solid var(--raspberry); }
.rewrite-output.execute-out { background: var(--cool-grey); border-left: 3px solid var(--gunmetal); }

/* ───── CLOSING SLIDE ───── */
.close-slide { background: var(--eggplant); text-align: center; }

.close-slide img { height: 40px; margin-bottom: 2rem; }

.close-slide h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: white;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.close-slide p {
  color: rgba(255,255,255,0.5);
  font-size: 1.05rem;
}

.close-slide a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}

.close-slide a:hover { color: white; }

/* ───── DARK SLIDE CHROME ───── */
.try-slide ~ .slide-chrome,
.slide-chrome.dark {
  background: rgba(32,33,44,0.92);
  border-color: rgba(255,255,255,0.1);
}

.slide-chrome.dark .dot { background: rgba(255,255,255,0.2); }
.slide-chrome.dark .dot.active { background: var(--raspberry); }
.slide-chrome.dark button { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.12); color: white; }
.slide-chrome.dark button:hover { background: rgba(255,255,255,0.15); }
.slide-chrome.dark .slide-counter { color: rgba(255,255,255,0.35); }

/* ───── RESPONSIVE ───── */
@media (max-width: 700px) {
  .comparison { grid-template-columns: 1fr; }
  .comparison h2 { grid-column: span 1; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .scenario { grid-template-columns: 1fr; gap: 0.5rem; }
  .slide { padding: 3rem 1.5rem; }
}
