/* ==========================================================================
   RESUCITER PRODUCT STYLESHEET
   The Evolution of Conway: High-Frequency A2A Exchange & Clearinghouse
   JeiKei Solutions
   ========================================================================== */

:root {
  --res-cyan: #34d8ff;
  --res-cyan-glow: rgba(52, 216, 255, 0.4);
  --res-purple: #a855f7;
  --res-purple-glow: rgba(168, 85, 247, 0.35);
  --res-emerald: #10b981;
  --res-emerald-glow: rgba(16, 185, 129, 0.3);
  --res-amber: #f59e0b;
  --res-bg-deep: #02040a;
  --res-bg-card: rgba(11, 17, 28, 0.72);
  --res-border: rgba(255, 255, 255, 0.1);
  --res-border-glow: rgba(52, 216, 255, 0.35);
}

/* Page Layout */
.resuciter-page {
  background: var(--res-bg-deep);
  color: #e9f1f4;
  overflow-x: hidden;
  position: relative;
}

/* Navigation Active Link */
.nav-dropdown-item.is-active {
  background: rgba(52, 216, 255, 0.12);
  border-color: rgba(52, 216, 255, 0.3);
}

/* Hero Section */
.res-hero {
  position: relative;
  min-height: calc(100vh - 88px);
  padding: 60px 0 90px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
}

.res-hero-content {
  position: relative;
  z-index: 2;
}

.res-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(52, 216, 255, 0.08);
  border: 1px solid rgba(52, 216, 255, 0.28);
  border-radius: 999px;
  font: 600 11px 'Space Grotesk', sans-serif;
  letter-spacing: 0.18em;
  color: var(--res-cyan);
  text-transform: uppercase;
  margin-bottom: 24px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 25px rgba(52, 216, 255, 0.12);
}

.res-badge .dot-live {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.res-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(48px, 6vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  margin: 0 0 24px;
  color: #ffffff;
}

.res-title em {
  font-style: normal;
  background: linear-gradient(135deg, #34d8ff 0%, #a855f7 60%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 35px rgba(52, 216, 255, 0.3);
}

.res-subtitle {
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
  color: #afc0c8;
  max-width: 640px;
  margin: 0 0 36px;
}

.res-subtitle strong {
  color: #ffffff;
}

.res-hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-glow {
  background: linear-gradient(135deg, #34d8ff, #0284c7);
  color: #02040a !important;
  font-weight: 700;
  border: none;
  box-shadow: 0 0 25px rgba(52, 216, 255, 0.4);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 40px rgba(52, 216, 255, 0.7);
  color: #000000 !important;
}

.btn-video {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #ffffff;
  backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.btn-video:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.6);
  transform: translateY(-3px);
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.3);
}

.btn-play-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #a855f7;
  color: #02040a;
  font-size: 11px;
  line-height: 1;
  padding-left: 2px;
}

/* Quick Metrics Bar */
.res-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 20px 24px;
  background: rgba(11, 17, 28, 0.75);
  border: 1px solid var(--res-border);
  border-radius: 16px;
  backdrop-filter: blur(20px);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--res-cyan);
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 11px;
  color: #8fa6b0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Hero Visual & Interactive Canvas */
.res-hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.canvas-container {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(16, 32, 54, 0.6) 0%, rgba(2, 4, 10, 0.95) 75%);
  border: 1px solid rgba(52, 216, 255, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(52, 216, 255, 0.15);
}

#conway-resuciter-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-hud-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
}

.hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-tag {
  font: 600 10px 'Space Grotesk', monospace;
  letter-spacing: 0.15em;
  color: var(--res-cyan);
  background: rgba(2, 4, 10, 0.8);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(52, 216, 255, 0.2);
}

.hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.hud-legend {
  font-size: 10px;
  color: #7b9ca8;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(2, 4, 10, 0.75);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hud-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-conway { width: 6px; height: 6px; border-radius: 1px; background: #00f5a0; box-shadow: 0 0 6px #00f5a0; }
.legend-exchange { width: 6px; height: 6px; border-radius: 50%; background: #34d8ff; box-shadow: 0 0 6px #34d8ff; }

.canvas-controls {
  position: absolute;
  bottom: 14px;
  right: 14px;
  display: flex;
  gap: 8px;
  pointer-events: auto;
}

.ctrl-btn {
  background: rgba(11, 17, 28, 0.85);
  border: 1px solid rgba(52, 216, 255, 0.3);
  color: #e9f1f4;
  font-size: 11px;
  font-family: 'Space Grotesk', sans-serif;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  background: var(--res-cyan);
  color: #02040a;
  box-shadow: 0 0 15px var(--res-cyan-glow);
}

/* Section Common */
.res-section {
  padding: 100px 0;
  position: relative;
  isolation: isolate;
}

.res-section.alt-bg {
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.6) 0%, rgba(11, 19, 30, 0.85) 50%, rgba(7, 12, 20, 0.6) 100%);
  border-block: 1px solid rgba(52, 216, 255, 0.12);
}

.res-header-center {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 60px;
}

.res-header-center h2 {
  font-size: clamp(34px, 4.2vw, 54px);
  margin: 12px 0 18px;
  color: #ffffff;
}

.res-header-center p {
  color: #9fb4bd;
  font-size: 17px;
  line-height: 1.65;
}

/* ==========================================================================
   VIDEO SHOWCASE SECTION (PROMOTIONAL TEASER)
   ========================================================================== */
.video-showcase-container {
  max-width: 1020px;
  margin: 0 auto;
}

.video-console {
  background: linear-gradient(135deg, rgba(20, 30, 48, 0.7), rgba(9, 14, 24, 0.95));
  border: 1px solid rgba(52, 216, 255, 0.3);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(52, 216, 255, 0.15);
  position: relative;
}

/* Console Top Chrome */
.console-chrome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px;
  background: rgba(2, 4, 10, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.console-dots {
  display: flex;
  gap: 8px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.console-dots span:nth-child(1) { background: #ef4444; }
.console-dots span:nth-child(2) { background: #f59e0b; }
.console-dots span:nth-child(3) { background: #10b981; }

.console-title {
  font: 600 11px 'Space Grotesk', monospace;
  letter-spacing: 0.15em;
  color: #8fa6b0;
}

.console-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px 'Space Grotesk', monospace;
  color: #34d8ff;
  background: rgba(52, 216, 255, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(52, 216, 255, 0.25);
}

/* Video Stage Area */
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  background: #010206;
  overflow: hidden;
  cursor: pointer;
}

.video-poster-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.6s ease;
}

.video-stage:hover .video-poster-img {
  transform: scale(1.02);
  filter: brightness(0.85) contrast(1.1);
}

/* Scanline and Grid Overlay */
.video-scanlines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 4px, 6px 100%;
  z-index: 2;
  opacity: 0.6;
}

/* Big Interactive Play Button */
.video-play-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  background: radial-gradient(circle, rgba(2, 4, 10, 0.4) 0%, rgba(2, 4, 10, 0.8) 85%);
  transition: background 0.3s ease;
}

.video-stage:hover .video-play-center {
  background: radial-gradient(circle, rgba(2, 4, 10, 0.2) 0%, rgba(2, 4, 10, 0.65) 85%);
}

.play-ring-outer {
  position: relative;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(52, 216, 255, 0.2), rgba(168, 85, 247, 0.3));
  border: 2px solid rgba(52, 216, 255, 0.8);
  box-shadow: 0 0 35px rgba(52, 216, 255, 0.5), inset 0 0 20px rgba(52, 216, 255, 0.3);
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
}

.video-stage:hover .play-ring-outer {
  transform: scale(1.12);
  border-color: #ffffff;
  box-shadow: 0 0 50px rgba(52, 216, 255, 0.8), 0 0 80px rgba(168, 85, 247, 0.5);
}

.play-ring-outer::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  border: 1px dashed rgba(52, 216, 255, 0.4);
  animation: spin-slow 20s linear infinite;
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

.play-icon-svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
  margin-left: 4px;
}

.play-label {
  margin-top: 18px;
  font: 700 13px 'Space Grotesk', sans-serif;
  letter-spacing: 0.16em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 0, 0, 0.9);
}

.play-status-sub {
  margin-top: 4px;
  font-size: 11px;
  color: var(--res-cyan);
  background: rgba(2, 4, 10, 0.8);
  padding: 3px 12px;
  border-radius: 999px;
  border: 1px solid rgba(52, 216, 255, 0.25);
}

/* Video Frame Drop-in Slot (Hidden until user loads or clicks) */
.video-active-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  z-index: 10;
  display: none;
  background: #000;
}

.video-active-frame.is-playing {
  display: block;
}

/* Video Chapters Bar */
.video-chapters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(5, 9, 16, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.chapter-btn {
  padding: 18px 20px;
  background: transparent;
  border: none;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  color: #afc0c8;
  text-align: left;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.chapter-btn:last-child {
  border-right: none;
}

.chapter-btn:hover, .chapter-btn.is-active {
  background: rgba(52, 216, 255, 0.08);
  color: #ffffff;
}

.chapter-time {
  font: 600 10px 'Space Grotesk', monospace;
  color: var(--res-cyan);
  letter-spacing: 0.1em;
}

.chapter-title {
  font-size: 13px;
  font-weight: 600;
}

.chapter-desc {
  font-size: 11px;
  color: #7b9ca8;
}

/* Video Interactive Demo Modal */
.demo-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 10, 0.88);
  backdrop-filter: blur(20px);
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.demo-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.demo-modal-dialog {
  width: min(940px, 100%);
  background: #080f1a;
  border: 1px solid rgba(52, 216, 255, 0.35);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 50px rgba(52, 216, 255, 0.2);
  overflow: hidden;
  position: relative;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: rgba(2, 4, 10, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-header h3 {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 18px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
}

.modal-body {
  padding: 24px;
}

/* Simulation Terminal inside Modal */
.terminal-window {
  background: #02040a;
  border: 1px solid rgba(52, 216, 255, 0.2);
  border-radius: 12px;
  padding: 20px;
  font-family: 'Space Grotesk', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #a7f3d0;
  min-height: 280px;
  max-height: 420px;
  overflow-y: auto;
}

.terminal-line { margin: 4px 0; }
.term-cyan { color: #34d8ff; }
.term-purple { color: #c084fc; }
.term-yellow { color: #fde047; }
.term-muted { color: #64748b; }

.modal-footer {
  padding: 16px 24px;
  background: rgba(2, 4, 10, 0.8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #8fa6b0;
}

/* ==========================================================================
   THE CONWAY EVOLUTION THESIS: COMPARISON MATRIX
   ========================================================================== */
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}

.thesis-card {
  border-radius: 20px;
  padding: 38px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.thesis-conway {
  background: linear-gradient(135deg, rgba(20, 24, 34, 0.8), rgba(11, 14, 20, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.thesis-resuciter {
  background: linear-gradient(135deg, rgba(16, 32, 54, 0.85), rgba(7, 14, 26, 0.95));
  border: 1px solid rgba(52, 216, 255, 0.35);
  box-shadow: 0 0 40px rgba(52, 216, 255, 0.08);
}

.thesis-resuciter:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 216, 255, 0.6);
  box-shadow: 0 0 50px rgba(52, 216, 255, 0.18);
}

.thesis-tag {
  font: 700 11px 'Space Grotesk', monospace;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: inline-block;
}

.thesis-conway .thesis-tag { color: #94a3b8; }
.thesis-resuciter .thesis-tag { color: var(--res-cyan); }

.thesis-card h3 {
  font-size: 28px;
  margin: 0 0 16px;
  color: #ffffff;
}

.thesis-card p.card-lead {
  font-size: 15px;
  color: #9fb4bd;
  line-height: 1.6;
  margin-bottom: 24px;
}

.comparison-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #cbd5e1;
}

.comp-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  margin-top: 1px;
}

.comp-icon.cross {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.comp-icon.check {
  background: rgba(52, 216, 255, 0.15);
  color: #34d8ff;
  border: 1px solid rgba(52, 216, 255, 0.4);
  box-shadow: 0 0 10px rgba(52, 216, 255, 0.25);
}

/* ==========================================================================
   ANCHOR SERVICES (6 PILLARS)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--card-accent, #34d8ff), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 216, 255, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(52, 216, 255, 0.12);
}

.service-card:hover::before {
  opacity: 1;
}

.service-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(52, 216, 255, 0.1);
  border: 1px solid rgba(52, 216, 255, 0.25);
  display: grid;
  place-items: center;
  font-size: 22px;
}

.service-code {
  font: 600 11px 'Space Grotesk', monospace;
  color: #7b9ca8;
  letter-spacing: 0.1em;
}

.service-card h3 {
  font-size: 21px;
  margin: 0 0 12px;
  color: #ffffff;
}

.service-card p {
  color: #a0b4be;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 20px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.service-tags span {
  font: 500 11px 'Space Grotesk', monospace;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  color: #8fa6b0;
}

/* ==========================================================================
   HANDSHAKE TIMELINE (x402 SLA)
   ========================================================================== */
.handshake-timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 40px;
  position: relative;
}

.step-card {
  background: rgba(11, 17, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 20px 16px;
  text-align: center;
  position: relative;
  transition: all 0.25s ease;
}

.step-card:hover {
  border-color: var(--res-cyan);
  background: rgba(52, 216, 255, 0.06);
  transform: translateY(-2px);
}

.step-num {
  font: 700 11px 'Space Grotesk', monospace;
  color: var(--res-cyan);
  margin-bottom: 8px;
}

.step-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.step-meta {
  font-size: 11px;
  color: #8fa6b0;
  line-height: 1.4;
}

/* ==========================================================================
   INTERACTIVE SDK CODE TABS
   ========================================================================== */
.sdk-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
}

.sdk-info h3 {
  font-size: 32px;
  margin: 0 0 16px;
  color: #ffffff;
}

.sdk-info p {
  color: #9fb4bd;
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 24px;
}

.sdk-features {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sdk-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #e2e8f0;
}

.sdk-features .dot-cyan {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--res-cyan);
  box-shadow: 0 0 8px var(--res-cyan);
}

.code-box {
  background: #02040a;
  border: 1px solid rgba(52, 216, 255, 0.25);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
}

.code-tabs {
  display: flex;
  background: rgba(11, 17, 28, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 6px 12px 0;
}

.tab-btn {
  background: transparent;
  border: none;
  color: #8fa6b0;
  font: 600 12px 'Space Grotesk', sans-serif;
  padding: 10px 18px;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.is-active {
  color: var(--res-cyan);
  border-bottom-color: var(--res-cyan);
}

.code-display {
  padding: 24px;
  margin: 0;
  font-family: 'Fira Code', 'Space Grotesk', monospace;
  font-size: 13px;
  line-height: 1.7;
  color: #e2e8f0;
  overflow-x: auto;
}

/* ==========================================================================
   ROADMAP / ARCHITECTURE HIGHLIGHTS
   ========================================================================== */
.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.roadmap-card {
  background: rgba(11, 17, 28, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 26px;
  position: relative;
}

.roadmap-card.is-current {
  border-color: rgba(52, 216, 255, 0.4);
  background: linear-gradient(135deg, rgba(16, 32, 54, 0.6), rgba(11, 17, 28, 0.8));
  box-shadow: 0 0 30px rgba(52, 216, 255, 0.1);
}

.roadmap-phase {
  font: 700 11px 'Space Grotesk', monospace;
  color: var(--res-cyan);
  margin-bottom: 10px;
}

.roadmap-card h4 {
  font-size: 18px;
  margin: 0 0 10px;
  color: #ffffff;
}

.roadmap-card p {
  font-size: 13px;
  color: #8fa6b0;
  line-height: 1.6;
}

/* Final CTA */
.res-cta-box {
  background: radial-gradient(circle at center, rgba(16, 42, 68, 0.7) 0%, rgba(2, 4, 10, 0.95) 80%);
  border: 1px solid rgba(52, 216, 255, 0.35);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.8), 0 0 60px rgba(52, 216, 255, 0.15);
  max-width: 900px;
  margin: 0 auto;
}

.res-cta-box h2 {
  font-size: clamp(34px, 4.5vw, 56px);
  margin: 0 0 16px;
  color: #ffffff;
}

.res-cta-box p {
  font-size: 18px;
  color: #afc0c8;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

/* ==========================================================================
   RESPONSIVENESS (MOBILE & TABLET)
   ========================================================================== */
@media (max-width: 1024px) {
  .res-hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
    gap: 40px;
  }
  .res-hero-visual {
    order: -1;
  }
  .canvas-container {
    max-width: 420px;
  }
  .thesis-grid {
    grid-template-columns: 1fr;
  }
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .handshake-timeline {
    grid-template-columns: repeat(3, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sdk-container {
    grid-template-columns: 1fr;
  }
  .video-chapters {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .res-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid {
    grid-template-columns: 1fr;
  }
  .handshake-timeline {
    grid-template-columns: repeat(2, 1fr);
  }
  .roadmap-grid {
    grid-template-columns: 1fr;
  }
  .video-chapters {
    grid-template-columns: 1fr;
  }
  .chapter-btn {
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .res-hero-actions {
    flex-direction: column;
  }
  .res-hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .res-metrics-bar {
    grid-template-columns: 1fr;
  }
  .handshake-timeline {
    grid-template-columns: 1fr;
  }
}
