/* ==========================================================================
   Collins Njuguna Ndung'u — Portfolio & Presentation Pitch
   Design: Andrew Alekseev Figma Pitch Template + iOS Human Interface Guidelines
   ========================================================================== */

:root {
  /* Obsidian & Apple Pro Palette */
  --bg-pitch: #000000;
  --bg-surface: #0a0b10;
  --bg-card: rgba(16, 18, 26, 0.65);
  --bg-card-hover: rgba(22, 25, 36, 0.85);
  --bg-island: rgba(18, 20, 30, 0.75);
  --bg-element: rgba(255, 255, 255, 0.05);
  --bg-element-hover: rgba(255, 255, 255, 0.1);

  /* Hairline & Specular Borders */
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-rim: rgba(255, 255, 255, 0.14);
  --border-focus: rgba(99, 102, 241, 0.5);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #98a2b3;
  --text-tertiary: #667085;
  --text-inverse: #000000;

  /* Accents */
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-neon: #00E575;
  --accent-neon-glow: rgba(0, 229, 117, 0.4);
  --accent-ios-green: #30D158;

  /* Typography */
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "SF Pro Display", sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Continuous Squircle Radii */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* iOS Physics */
  --spring-tap: cubic-bezier(0.2, 0, 0, 1);
  --spring-slide: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  font-family: var(--font-display);
  background-color: var(--bg-pitch);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  background-color: var(--bg-pitch);
}

/* Subtle Apple Ambient Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(6, 182, 212, 0.05) 35%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   iOS Dynamic Island Navigation
   ========================================================================== */
.site-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 980px;
  z-index: 100;
  backdrop-filter: blur(32px) saturate(190%);
  -webkit-backdrop-filter: blur(32px) saturate(190%);
  background: var(--bg-island);
  border: 1px solid var(--border-rim);
  border-radius: var(--radius-full);
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.3s var(--spring-slide);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-avatar-mini {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
}

.nav-brand-text {
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: -0.02em;
}

.nav-brand-tag {
  font-size: 0.65rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  display: block;
}

/* iOS Segmented Navigation Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  background: rgba(0, 0, 0, 0.3);
  padding: 3px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  transition: all var(--spring-tap);
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mode-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--spring-tap);
}

.mode-toggle-btn:hover {
  background: var(--accent-indigo);
  color: #ffffff;
}

.mode-toggle-btn:active {
  transform: scale(0.96);
}

.nav-github-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--spring-tap);
}

.nav-github-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.nav-github-btn:active {
  transform: scale(0.96);
}

/* ==========================================================================
   Figma Presentation Boards / Slides Layout
   ========================================================================== */
.presentation-board {
  min-height: calc(100vh - 100px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 60px;
  position: relative;
}

.slide-canvas {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid var(--border-rim);
  border-radius: var(--radius-xl);
  padding: 38px 46px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

/* Board Header Meta (Figma Presentation Style) */
.board-meta-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline);
}

.board-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.board-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-family: var(--font-mono);
}

/* ==========================================================================
   Hero Cover Slide (Andrew Alekseev Inspired Layout)
   ========================================================================== */
.hero-canvas {
  text-align: center;
  padding: 70px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-avatar-wrapper {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 28px;
}

.hero-avatar-glow {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 180deg at 50% 50%, #6366f1, #06b6d4, #10b981, #6366f1);
  filter: blur(14px);
  opacity: 0.4;
}

.hero-avatar {
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: #10121a;
  z-index: 2;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8);
}

.hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #ffffff;
}

.hero-subtitle {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 700px;
  margin: 0 auto 16px;
  letter-spacing: -0.015em;
}

.hero-location-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin-bottom: 26px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.04);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-hairline);
}

.hero-bio {
  max-width: 720px;
  margin: 0 auto 36px;
  font-size: 1.08rem;
  color: #cbd5e1;
  line-height: 1.75;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--spring-tap);
  border: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  background: #f1f5f9;
  transform: translateY(-1px);
}

.btn-neon {
  background: var(--accent-neon);
  color: #000000;
  font-weight: 700;
  box-shadow: 0 4px 18px var(--accent-neon-glow);
}

.btn-neon:hover {
  background: #1aff85;
  box-shadow: 0 6px 26px rgba(0, 229, 117, 0.55);
  transform: translateY(-1px);
}

.btn-neon svg {
  stroke: #000000;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-rim);
  color: var(--text-primary);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

/* Hero Stats Strip (Apple HIG Grouped Panel) */
.hero-stats-panel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-hairline);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-hairline);
  overflow: hidden;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.hero-stat-cell {
  background: var(--bg-surface);
  padding: 20px 16px;
  text-align: center;
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}

.stat-label {
  font-size: 0.74rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ==========================================================================
   Editorial Split-Screen Project Boards (Figma Showcase Aesthetics)
   ========================================================================== */
.editorial-board {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 48px;
  align-items: center;
}

.editorial-content {
  display: flex;
  flex-direction: column;
}

.editorial-header-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.editorial-category-chip {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-rim);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.editorial-status-chip {
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #c7d2fe;
}

.editorial-title {
  font-size: clamp(1.8rem, 2.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 5px;
  color: var(--text-primary);
}

.editorial-subtitle {
  font-size: 0.98rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 12px;
}

.editorial-description {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.65;
  margin-bottom: 16px;
}

/* iOS Grouped Specs Container */
.editorial-specs-group {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  margin-bottom: 16px;
}

.editorial-payment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
  font-size: 0.85rem;
}

.editorial-payment-item strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.payment-pill-highlight {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.8rem;
}

.editorial-stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.stack-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.editorial-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Hero Presentation Board Clearance */
.hero-presentation-board {
  padding-top: 130px;
  padding-bottom: 60px;
  min-height: 100vh;
}

/* Payment Gateway Highlight Box (Figma & iOS HIG) */
.editorial-payment-box {
  background: rgba(0, 229, 117, 0.08);
  border: 1px solid rgba(0, 229, 117, 0.28);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.payment-badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 229, 117, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-neon);
  flex-shrink: 0;
}

.payment-badge-text strong {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-neon);
  margin-bottom: 2px;
  font-family: var(--font-mono);
}

.payment-badge-text span {
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
}

/* Editorial Metrics Strip */
.editorial-metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.editorial-metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.metric-lbl {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Studio Window Frame (macOS & iOS HIG Showcase Viewport) */
.studio-window-frame {
  background: #0b0d14;
  border: 1px solid var(--border-rim);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  flex-direction: column;
  transition: transform var(--spring-slide), border-color var(--spring-slide);
}

.studio-window-frame:hover {
  border-color: rgba(0, 229, 117, 0.35);
}

.studio-window-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(18, 21, 31, 0.95);
  border-bottom: 1px solid var(--border-hairline);
}

.window-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}

.traffic-light {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.traffic-light.red { background: #ff5f56; }
.traffic-light.yellow { background: #ffbd2e; }
.traffic-light.green { background: #27c93f; }

.window-address-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  padding: 4px 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  max-width: 320px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.window-viewport {
  position: relative;
  overflow: hidden;
  background: #050608;
  cursor: pointer;
}

.window-viewport img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s var(--spring-slide);
}

.window-viewport:hover img {
  transform: scale(1.02);
}

/* Interactive Gallery Tab Switcher right on the slide */
.studio-gallery-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(14, 16, 24, 0.95);
  border-top: 1px solid var(--border-hairline);
  overflow-x: auto;
}

.studio-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.76rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--spring-tap);
}

.studio-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.studio-tab-btn.active {
  background: rgba(0, 229, 117, 0.16);
  border-color: rgba(0, 229, 117, 0.45);
  color: var(--accent-neon);
}


/* ==========================================================================
   Engineering Process & Pipeline Slide (Figma Frame 15 "Processes")
   ========================================================================== */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin: 36px 0 20px;
}

.process-node {
  position: relative;
  display: flex;
  flex-direction: column;
}

.process-node-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #090a10;
  border: 2px solid var(--accent-neon);
  box-shadow: 0 0 14px var(--accent-neon-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--accent-neon);
  margin-bottom: 14px;
  flex-shrink: 0;
}

.process-node-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--spring-tap), border-color var(--spring-tap), background var(--spring-tap);
}

.process-node-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 229, 117, 0.4);
  background: rgba(255, 255, 255, 0.05);
}

.process-stage-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.process-stage-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.3;
}

.process-stage-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.process-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: auto;
}

.process-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.68rem;
  font-family: var(--font-mono);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  color: #cbd5e1;
}

@media (max-width: 1024px) {
  .process-timeline {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   iOS Segmented Control Filter Tabs
   ========================================================================== */
.segmented-control-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.segmented-control {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-rim);
  padding: 4px;
  border-radius: var(--radius-full);
  gap: 4px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--spring-tap);
}

.seg-btn:hover {
  color: var(--text-primary);
}

.seg-btn.active {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   Technical Arsenal Board (Apple Developer Specs Layout)
   ========================================================================== */
.tech-matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.tech-spec-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform var(--spring-tap);
}

.tech-spec-panel:hover {
  transform: translateY(-2px);
  border-color: var(--border-rim);
}

.tech-spec-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.tech-spec-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tech-spec-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-size: 0.8rem;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  transition: all var(--spring-tap);
}

.tech-spec-pill:hover {
  background: rgba(99, 102, 241, 0.18);
  border-color: rgba(99, 102, 241, 0.35);
  color: #ffffff;
}

/* ==========================================================================
   Background / About Board
   ========================================================================== */
.about-split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.about-headline-col h2 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.about-body-col {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.8;
}

.about-body-col p {
  margin-bottom: 18px;
}

.about-key-principles {
  margin-top: 24px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 20px;
}

.about-key-principles strong {
  display: block;
  color: #ffffff;
  margin-bottom: 6px;
}

.about-key-principles span {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ==========================================================================
   Outro / Contact Board
   ========================================================================== */
.contact-canvas {
  text-align: center;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.contact-canvas h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.contact-canvas p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 32px;
}

.contact-actions-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
}

/* ==========================================================================
   Interactive Case Study Modal (iOS Sheet with Grab Handle)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--spring-slide);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #0c0e15;
  border: 1px solid var(--border-rim);
  border-radius: var(--radius-xl);
  max-width: 920px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transform: translateY(24px);
  transition: transform 0.35s var(--spring-slide);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-sheet-pill {
  width: 44px;
  height: 5px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 3px;
  margin: 0 auto 16px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hairline);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  z-index: 10;
  transition: all var(--spring-tap);
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.modal-close-btn:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 32px 40px 44px;
}

.modal-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.modal-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.modal-subtitle {
  font-size: 1.05rem;
  color: var(--accent-cyan);
  margin-bottom: 24px;
}

.modal-gallery {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}

.modal-screenshot-card {
  background: #050608;
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.modal-screenshot-img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
  object-position: top;
  border-bottom: 1px solid var(--border-hairline);
}

.modal-screenshot-caption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.modal-payment-banner {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 22px;
  font-size: 0.9rem;
}

.modal-payment-banner strong {
  color: #34d399;
}

.modal-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 24px 0 10px;
}

.modal-simple-desc {
  font-size: 0.96rem;
  color: #cbd5e1;
  line-height: 1.7;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--accent-indigo);
  margin-bottom: 22px;
}

.modal-steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.modal-step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.55;
}

.step-number {
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-weight: 700;
  font-size: 0.74rem;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.modal-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.modal-metric-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: center;
}

.modal-metric-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 2px;
}

.modal-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
}



/* Toast */
.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #10b981;
  color: #064e3b;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 2000;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-msg.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-hairline);
  padding: 40px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 960px) {
  .editorial-board {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .about-split-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .hero-stats-panel {
    grid-template-columns: repeat(2, 1fr);
  }
  .slide-canvas {
    padding: 36px 24px;
  }
  .nav-links {
    display: none;
  }
}
