/* CrewHub Field Operations Platform — Presentation Styles */

:root {
  --bg-dark: #0a0f1a;
  --bg-card: #111827;
  --bg-elevated: #1a2332;
  --gold: #2dd4bf;
  --gold-soft: rgba(45, 212, 191, 0.15);
  --gold-glow: rgba(45, 212, 191, 0.35);
  --accent-blue: #3b82f6;
  --accent-teal: #14b8a6;
  --accent-purple: #8b5cf6;
  --accent-green: #22c55e;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255, 255, 255, 0.08);
  --slide-padding: clamp(2rem, 5vw, 4rem);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html, body {
  height: 100%;
  overflow: hidden;
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

/* ── Deck shell ── */
.deck {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

.slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: var(--slide-padding);
  opacity: 0;
  visibility: hidden;
  transform: translateX(60px);
  transition: opacity 0.55s ease, transform 0.55s ease, visibility 0.55s;
  overflow-y: auto;
  background: var(--bg-dark);
}

.slide.active {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  z-index: 2;
}

.slide.prev {
  opacity: 0;
  transform: translateX(-60px);
  z-index: 1;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 0%, rgba(45, 212, 191, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 90% 100%, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
  pointer-events: none;
}

.slide-inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* ── Typography ── */
.slide-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.slide-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 2rem;
}

h3.section-heading {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

/* ── Title slide ── */
.slide-title-hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--gold-soft);
  border: 1px solid rgba(45, 212, 191, 0.3);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--gold) 0%, #5eead4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-tagline {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
  margin-bottom: 2.5rem;
}

.hero-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(45%, 520px);
  opacity: 0.9;
}

/* ── Grid layouts ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}

.card:hover {
  border-color: rgba(45, 212, 191, 0.25);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.card-icon.gold { background: var(--gold-soft); color: var(--gold); }
.card-icon.blue { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.card-icon.teal { background: rgba(20, 184, 166, 0.15); color: var(--accent-teal); }
.card-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--accent-purple); }
.card-icon.green { background: rgba(34, 197, 94, 0.15); color: var(--accent-green); }
.card-icon.orange { background: rgba(245, 158, 11, 0.15); color: var(--accent-orange); }
.card-icon.red { background: rgba(239, 68, 68, 0.15); color: var(--accent-red); }

.card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Benefit cards ── */
.benefit-card {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--border);
}

.benefit-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gold-soft);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.benefit-card h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.benefit-card p { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.5; }

/* ── Feature list ── */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.feature-list li i {
  color: var(--gold);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* ── Diagram container ── */
.diagram-wrap {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  overflow: hidden;
}

.diagram-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* ── Chart bars ── */
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  height: 180px;
  padding-top: 1rem;
}

.chart-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar {
  width: 100%;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--gold) 0%, rgba(45, 212, 191, 0.4) 100%);
  transition: height 0.8s ease;
  min-height: 4px;
}

.chart-bar.secondary {
  background: linear-gradient(180deg, var(--accent-blue) 0%, rgba(59, 130, 246, 0.4) 100%);
}

.chart-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
}

.chart-value {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
}

/* ── Metric row ── */
.metrics-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.metric-pill {
  flex: 1;
  min-width: 140px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  text-align: center;
}

.metric-pill .value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.metric-pill .label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── Industry pills ── */
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.industry-pill {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: border-color 0.2s, background 0.2s;
}

.industry-pill:hover {
  border-color: var(--gold);
  background: var(--gold-soft);
}

.industry-pill i { color: var(--gold); }

/* ── Two-column content ── */
.split-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  flex: 1;
  align-items: start;
}

@media (max-width: 900px) {
  .split-content { grid-template-columns: 1fr; }
}

/* ── Workflow steps ── */
.workflow-steps {
  display: flex;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.workflow-step {
  flex: 1;
  min-width: 140px;
  text-align: center;
  position: relative;
  padding: 0 0.5rem;
}

.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -8px;
  width: 16px;
  height: 2px;
  background: var(--gold);
  opacity: 0.5;
}

.step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gold-soft);
  border: 2px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
  font-size: 1.25rem;
  color: var(--gold);
}

.workflow-step h4 {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.workflow-step p {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── Comparison table ── */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table th {
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.compare-table td:first-child { color: var(--text-secondary); }

.compare-table .check { color: var(--accent-green); }
.compare-table .cross { color: var(--text-muted); }

.compare-table tr.highlight td {
  background: var(--gold-soft);
  color: var(--text-primary);
  font-weight: 500;
}

/* ── CTA slide ── */
.cta-slide {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-title span { color: var(--gold); }

.cta-sub {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, #0d9488 100%);
  color: #0a0f1a;
  box-shadow: 0 4px 24px var(--gold-glow);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px var(--gold-glow); }

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ── Navigation ── */
.nav-controls {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1rem;
  z-index: 100;
  background: rgba(10, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1rem;
}

.nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.nav-btn:hover:not(:disabled) {
  background: var(--gold-soft);
  border-color: var(--gold);
  color: var(--gold);
}

.nav-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.slide-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--accent-blue));
  transition: width 0.4s ease;
  z-index: 100;
}

/* ── Logo watermark ── */
.slide-logo {
  position: absolute;
  top: var(--slide-padding);
  right: var(--slide-padding);
  z-index: 2;
  display: flex;
  align-items: center;
  line-height: 0;
}

.slide-logo img {
  height: 28px;
  width: auto;
  display: block;
}

.hero-logo {
  height: clamp(48px, 8vw, 64px);
  width: auto;
  margin-bottom: 2rem;
}

.cta-logo {
  height: clamp(56px, 10vw, 80px);
  width: auto;
  margin-bottom: 1.5rem;
}

/* ── Module tag ── */
.module-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  background: var(--gold-soft);
  color: var(--gold);
  margin-bottom: 0.5rem;
}

/* ── Print / overview mode hint ── */
.keyboard-hint {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  font-size: 0.7rem;
  color: var(--text-muted);
  z-index: 99;
}

.keyboard-hint kbd {
  display: inline-block;
  padding: 0.15rem 0.4rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.65rem;
}

.interest-cta {
  position: fixed;
  left: 1.25rem;
  bottom: 1.5rem;
  z-index: 101;
  display: inline-flex;
  align-items: center;
  padding: 0.7rem 1.05rem;
  background: linear-gradient(135deg, var(--gold) 0%, #0d9488 100%);
  color: #0a0f1a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: 10px;
  box-shadow: 0 8px 24px var(--gold-glow);
}

.interest-cta:hover { color: #0a0f1a; transform: translateY(-1px); }

@media (max-width: 720px) {
  .interest-cta {
    left: 0.75rem;
    bottom: 4.75rem;
    font-size: 0.72rem;
    padding: 0.55rem 0.8rem;
  }
}

/* ── Animations on active slide ── */
.slide.active .animate-in {
  animation: fadeUp 0.6s ease forwards;
  opacity: 0;
}

.slide.active .animate-in:nth-child(1) { animation-delay: 0.05s; }
.slide.active .animate-in:nth-child(2) { animation-delay: 0.12s; }
.slide.active .animate-in:nth-child(3) { animation-delay: 0.19s; }
.slide.active .animate-in:nth-child(4) { animation-delay: 0.26s; }
.slide.active .animate-in:nth-child(5) { animation-delay: 0.33s; }
.slide.active .animate-in:nth-child(6) { animation-delay: 0.40s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Architecture nodes ── */
.arch-layer {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  align-items: stretch;
}

.arch-label {
  width: 100px;
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: flex;
  align-items: center;
}

.arch-nodes {
  flex: 1;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.arch-node {
  flex: 1;
  min-width: 100px;
  padding: 0.6rem 0.8rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
}

.arch-node.highlight {
  border-color: var(--gold);
  background: var(--gold-soft);
  color: var(--gold);
  font-weight: 600;
}

/* ── Screenshots ── */
.screenshot-frame {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.screenshot-frame img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.screenshot-caption {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.55rem;
  line-height: 1.4;
}

.shot-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 100px;
  background: rgba(10, 15, 26, 0.85);
  border: 1px solid rgba(45, 212, 191, 0.35);
  color: var(--gold);
}

.phone-pair {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: flex-start;
}

.phone-shot {
  width: min(220px, 46%);
  border-radius: 28px;
  overflow: hidden;
  border: 2px solid rgba(45, 212, 191, 0.4);
  background: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.phone-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.split-shot {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

@media (max-width: 900px) {
  .split-shot { grid-template-columns: 1fr; }
  .phone-shot { width: min(180px, 44%); }
}

/* ── Tech stack ── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.tech-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.05rem;
}

.tech-card .layer {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.tech-card h4 {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.tech-card p {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

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

/* ── Module map ── */
.module-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.module-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.module-chip i {
  color: var(--gold);
  margin-top: 0.15rem;
  width: 1rem;
  text-align: center;
}

.module-chip h4 {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.module-chip p {
  font-size: 0.7rem;
  color: var(--text-muted);
  line-height: 1.35;
}

.module-chip.new {
  border-color: rgba(45, 212, 191, 0.35);
  background: var(--gold-soft);
}

.pill-new {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-left: 0.35rem;
}

@media (max-width: 900px) {
  .module-map { grid-template-columns: 1fr 1fr; }
}
