/* Video Progress Bar */
#videoProgress {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  position: relative;
  z-index: 10;
}

/* ---------- TRACK ---------- */
/* Chrome, Edge, Safari */
#videoProgress::-webkit-slider-runnable-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
  transition: background 0.3s ease;
}

#videoProgress:hover::-webkit-slider-runnable-track {
  background: rgba(255, 255, 255, 0.4);
}

/* Firefox */
#videoProgress::-moz-range-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 9999px;
}

/* ---------- THUMB ---------- */
/* Chrome, Edge, Safari */
#videoProgress::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  margin-top: -6px;
}

#videoProgress::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8);
}

#videoProgress:active::-webkit-slider-thumb {
  transform: scale(1.3);
  box-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 28px rgba(255, 255, 255, 0.9);
}

/* Firefox */
#videoProgress::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 12px rgba(255, 255, 255, 0.6);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#videoProgress::-moz-range-thumb:hover {
  transform: scale(1.2);
  box-shadow: 0 0 12px rgba(255, 255, 255, 1), 0 0 20px rgba(255, 255, 255, 0.8);
}

#videoProgress:active::-moz-range-thumb {
  transform: scale(1.3);
  box-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 28px rgba(255, 255, 255, 0.9);
}

/* ---------- FOCUS STATE ---------- */
#videoProgress:focus {
  outline: none;
}

#videoProgress:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 16px rgba(255, 255, 255, 1), 0 0 24px rgba(255, 255, 255, 0.9);
}

/* ============================
   ACCESSIBILITY
   ============================ */

/* Skip-to-content link (visible on Tab) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #FBBF24;
  color: #0a0f1a;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 0.75rem 0.75rem;
  z-index: 9999;
  text-decoration: none;
  font-size: 0.875rem;
  transition: top 0.2s ease;
}
.skip-link:focus {
  top: 0;
}

/* Focus-visible ring for all interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid #FBBF24;
  outline-offset: 2px;
}

/* Remove default outline so only focus-visible triggers it */
a:focus:not(:focus-visible),
button:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible),
textarea:focus:not(:focus-visible) {
  outline: none;
}

/* ============================
   PREMIUM FINTECH FOUNDATIONS
   ============================ */

/* Noise/grain texture overlay (Stripe-style premium feel) */
.noise-overlay::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Animated gradient border (rotating glow border) */
@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotate-border {
  to { --border-angle: 360deg; }
}

.gradient-border {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1.5rem;
  overflow: hidden;
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--border-angle), transparent 40%, #FBBF24 50%, #a855f7 60%, transparent 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: rotate-border 6s linear infinite;
}

/* Glass card effect */
.glass-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Headline glow */
.headline-glow {
  text-shadow: 0 0 80px rgba(251, 191, 36, 0.15);
}

/* Animated gradient orbs (more dramatic, 4 orbs) */
@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
  33% { transform: translate(40px, -60px) scale(1.15); opacity: 0.8; }
  66% { transform: translate(-30px, 30px) scale(0.9); opacity: 0.5; }
}
@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  33% { transform: translate(-40px, 40px) scale(0.85); opacity: 0.7; }
  66% { transform: translate(30px, -50px) scale(1.1); opacity: 0.4; }
}
@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  50% { transform: translate(60px, 20px) scale(1.2); opacity: 0.5; }
}
@keyframes float-4 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
  50% { transform: translate(-50px, -30px) scale(0.8); opacity: 0.6; }
}

/* Gold CTA button with glow */
.btn-gold {
  background: linear-gradient(135deg, #FBBF24, #f59e0b);
  color: #0a0f1a;
  font-weight: 600;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 0 12px rgba(251, 191, 36, 0.15);
}

.btn-gold:hover {
  filter: brightness(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), 0 0 20px rgba(251, 191, 36, 0.25);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Gradient section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.2), rgba(168, 85, 247, 0.15), transparent);
}

/* Dot grid pattern for features background */
.dot-grid {
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============================
   PHASE 1: PAGE ENTRANCE & HERO
   ============================ */

/* Page curtain (fade from dark) */
.page-curtain {
  position: fixed;
  inset: 0;
  background: #0a0f1a;
  z-index: 9999;
  pointer-events: none;
  animation: curtain-lift 1s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
}
@keyframes curtain-lift { to { opacity: 0; visibility: hidden; } }

/* Hero word-by-word reveal */
.reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  padding-bottom: 0.15em;
  color: #fff;
  animation: word-rise 0.6s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes word-rise { to { opacity: 1; transform: translateY(0); } }

/* Hero fade-up for subtitle, pills, CTAs */
.hero-fade-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fade-up 0.8s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
}
@keyframes fade-up { to { opacity: 1; transform: translateY(0); } }

/* Headline gradient shimmer */
@keyframes gradient-shimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.headline-shimmer {
  animation: gradient-shimmer 6s ease-in-out infinite;
}

/* ============================
   PHASE 2: SCROLL-DRIVEN
   ============================ */

/* Scroll-reveal system */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll progress bar */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #FBBF24, #f59e0b, #FBBF24);
  z-index: 9999;
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* ============================
   PHASE 3: MICRO-INTERACTIONS
   ============================ */

/* Button ripple effect */
.btn-gold, .btn-ghost {
  position: relative;
  overflow: hidden;
}
.btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transform: scale(0);
  animation: ripple-out 0.6s ease-out forwards;
  pointer-events: none;
}
@keyframes ripple-out { to { transform: scale(4); opacity: 0; } }

/* Enhanced glass-card hover */
.glass-card {
  position: relative;
}
.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), rgba(168, 85, 247, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.glass-card:hover::before {
  opacity: 1;
}
.glass-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(251, 191, 36, 0.15);
  box-shadow: 0 8px 32px rgba(251, 191, 36, 0.08),
              0 0 0 1px rgba(251, 191, 36, 0.05),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-6px);
}

/* Card icon scale on hover */
.card-icon {
  transition: transform 0.5s cubic-bezier(0.22, 0.61, 0.36, 1),
              box-shadow 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.glass-card:hover .card-icon {
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.2);
}

/* Hamburger → X animation */
.hamburger span {
  display: block;
  transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile menu slide (replaces instant show/hide) */
.nav-menu {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity 0.3s ease;
}
.nav-menu.menu-open {
  max-height: 300px;
  opacity: 1;
}

/* ============================
   PHASE 4: AMBIENT & POLISH
   ============================ */


/* Back-to-top button */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease,
              background 0.3s ease;
  z-index: 90;
}
.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: rgba(251, 191, 36, 0.15);
  border-color: rgba(251, 191, 36, 0.3);
}
.back-to-top svg.progress-ring {
  position: absolute;
  top: 0;
  left: 0;
  transform: rotate(-90deg);
}

/* ============================
   BETA LIVE ANNOUNCEMENTS
   ============================ */

/* Pulsing "Beta is Live" badge */
.beta-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: #FBBF24;
}
.beta-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.6);
  animation: beta-dot-pulse 1.5s ease-in-out infinite;
}
@keyframes beta-dot-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}

/* ============================
   ARCHITECTURE SECTION
   ============================ */

.arch-page { position: relative; z-index: 1; }

/* Architecture Hero */
.arch-hero {
  text-align: center;
  padding: 0 24px 20px;
}
.arch-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(251,191,36,0.08);
  border: 1px solid rgba(251,191,36,0.2);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: 0.75rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #FBBF24;
  font-weight: 600;
  margin-bottom: 28px;
}
.arch-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #FBBF24;
  animation: arch-pulse-dot 2s infinite;
}
@keyframes arch-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.arch-title {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.arch-subtitle {
  max-width: 520px;
  margin: 0 auto;
  color: #94a3b8;
  font-size: 1.05rem;
  line-height: 1.7;
  font-weight: 300;
}

/* Architecture Layout */
.arch-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 60px;
  padding: 60px 32px 60px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 3D Stack */
.stack-wrapper {
  perspective: 900px;
  width: 340px;
  height: 440px;
}
.stack-container {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: rotateX(58deg) rotateZ(-45deg);
  animation: arch-float 7s ease-in-out infinite;
}
@keyframes arch-float {
  0%, 100% { transform: rotateX(58deg) rotateZ(-45deg) translateY(0); }
  50%      { transform: rotateX(58deg) rotateZ(-45deg) translateY(-16px); }
}

.layer {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.07);
  transition: all 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s ease, filter 0.4s ease;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  overflow: hidden;
}

.layer-network {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Bottom - Green */
.layer-bottom {
  background: linear-gradient(135deg, rgba(52,211,153,0.08), rgba(16,185,129,0.03));
  border-color: rgba(52,211,153,0.2);
  box-shadow: 0 0 40px rgba(52,211,153,0.12), inset 0 0 30px rgba(52,211,153,0.06), 0 20px 60px rgba(0,0,0,0.4);
  transform: translateZ(0px);
  z-index: 1;
}

/* Middle - Blue */
.layer-middle {
  background: linear-gradient(135deg, rgba(56,189,248,0.08), rgba(14,165,233,0.03));
  border-color: rgba(56,189,248,0.25);
  box-shadow: 0 0 40px rgba(56,189,248,0.15), inset 0 0 30px rgba(56,189,248,0.06), 0 20px 60px rgba(0,0,0,0.4);
  transform: translateZ(90px);
  z-index: 2;
  animation: arch-hover-mid 5s ease-in-out infinite alternate;
}
@keyframes arch-hover-mid {
  0%   { transform: translateZ(90px); }
  100% { transform: translateZ(108px); }
}

/* Top - Gold */
.layer-top {
  background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(245,158,11,0.04));
  border-color: rgba(251,191,36,0.3);
  box-shadow: 0 0 50px rgba(251,191,36,0.2), inset 0 0 40px rgba(251,191,36,0.08), 0 20px 60px rgba(0,0,0,0.4);
  transform: translateZ(180px);
  z-index: 3;
  animation: arch-hover-top 5s ease-in-out infinite alternate;
  animation-delay: 0.6s;
}
@keyframes arch-hover-top {
  0%   { transform: translateZ(180px); }
  100% { transform: translateZ(205px); }
}

/* Layer content */
.layer-content {
  position: relative;
  z-index: 1;
  transform: rotateZ(45deg) rotateX(-45deg) translateZ(70px);
  text-align: center;
  pointer-events: none;
  transition: transform 0.5s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
}
.layer:hover .layer-content {
  transform: rotateZ(45deg) rotateX(1deg) translateZ(120px) scale(1.15);
}
.layer-icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
  display: block;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.4));
}
.layer:hover .layer-icon { transform: translateY(-4px) scale(1.15); }
.layer-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: block;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
  transition: text-shadow 0.4s ease;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.layer-top:hover .layer-title { text-shadow: 0 0 12px rgba(251,191,36,0.6), 0 2px 8px rgba(0,0,0,0.5); }
.layer-middle:hover .layer-title { text-shadow: 0 0 12px rgba(56,189,248,0.6), 0 2px 8px rgba(0,0,0,0.5); }
.layer-bottom:hover .layer-title { text-shadow: 0 0 12px rgba(52,211,153,0.6), 0 2px 8px rgba(0,0,0,0.5); }
.layer-subtitle {
  font-size: 0.7rem;
  opacity: 0.7;
  font-weight: 400;
  display: block;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.5px;
  transition: opacity 0.4s ease;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
.layer:hover .layer-subtitle { opacity: 1; }

/* Dim siblings on hover (layer hover) */
.stack-container:hover .layer { opacity: 0.3; filter: blur(1px) brightness(0.6); }
.stack-container:hover .layer:hover { opacity: 1; filter: blur(0px) brightness(1); }

/* Dim siblings on hover (card hover → layers) */
.stack-container.card-hovering .layer { opacity: 0.3; filter: blur(1px) brightness(0.6); }
.stack-container.card-hovering .layer.layer-highlighted { opacity: 1; filter: blur(0px) brightness(1); }
/* Ephemeral conduit lifecycle — spawn, live, despawn, repeat */
.conduit-ephemeral {
  animation: conduit-lifecycle 5s ease-in-out infinite;
}
@keyframes conduit-lifecycle {
  0%   { opacity: 0; transform: translateZ(0px) rotateX(90deg) scaleY(0.3); }
  10%  { opacity: 1; transform: translateZ(0px) rotateX(90deg) scaleY(1); }
  80%  { opacity: 1; transform: translateZ(0px) rotateX(90deg) scaleY(1); }
  95%  { opacity: 0; transform: translateZ(0px) rotateX(90deg) scaleY(0.3); }
  100% { opacity: 0; transform: translateZ(0px) rotateX(90deg) scaleY(0.3); }
}

.stack-container:hover .conduit { opacity: 0.2; transition: opacity 0.4s ease; }
.stack-container:not(:hover) .conduit { transition: opacity 0.4s ease; }

/* Glow on hover */
.layer-top:hover  { box-shadow: 0 0 80px rgba(251,191,36,0.45), inset 0 0 50px rgba(251,191,36,0.15), 0 20px 60px rgba(0,0,0,0.5); }
.layer-middle:hover { box-shadow: 0 0 70px rgba(56,189,248,0.4), inset 0 0 40px rgba(56,189,248,0.12), 0 20px 60px rgba(0,0,0,0.5); }
.layer-bottom:hover { box-shadow: 0 0 70px rgba(52,211,153,0.4), inset 0 0 40px rgba(52,211,153,0.12), 0 20px 60px rgba(0,0,0,0.5); }

/* Inter-Layer Data Conduits */
.conduit {
  position: absolute;
  width: 1px;
  height: 180px;
  transform-style: preserve-3d;
  transform-origin: center top;
  transform: translateZ(0px) rotateX(90deg);
  z-index: 10;
  pointer-events: none;
}
.conduit-line {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(52,211,153,0.15), rgba(56,189,248,0.15) 50%, rgba(251,191,36,0.15));
  border-radius: 1px;
  animation: conduit-breathe 4s ease-in-out infinite;
}
.conduit-glow {
  position: absolute;
  width: 7px;
  left: -3px;
  inset-block: 0;
  background: linear-gradient(to bottom, rgba(52,211,153,0.03), rgba(56,189,248,0.03) 50%, rgba(251,191,36,0.03));
  filter: blur(3px);
  border-radius: 4px;
}
@keyframes conduit-breathe {
  0%, 100% { opacity: 0.5; }
  50%      { opacity: 1; }
}

/* Conduit dots */
.conduit-dot {
  position: absolute;
  left: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  animation: arch-dot-pulse 2.5s ease-in-out infinite;
}
.conduit-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  filter: blur(3px);
}
.conduit-dot-bottom { top: 0; background: #34d399; }
.conduit-dot-bottom::after { background: rgba(52,211,153,0.3); }
.conduit-dot-mid { top: 50%; margin-top: -3px; background: #38bdf8; }
.conduit-dot-mid::after { background: rgba(56,189,248,0.3); }
.conduit-dot-top { bottom: 0; background: #FBBF24; }
.conduit-dot-top::after { background: rgba(251,191,36,0.3); }
@keyframes arch-dot-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

/* Traveling packets */
.conduit-packet {
  position: absolute;
  left: 50%;
  width: 5px; height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  filter: blur(0.5px);
}
.conduit-packet::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  filter: blur(4px);
}
.packet-up { animation: packet-travel-up 3s ease-in-out infinite; }
.packet-up-slow { animation: packet-travel-up 4.5s ease-in-out infinite; }
.packet-down { animation: packet-travel-down 3.5s ease-in-out infinite; }
.packet-down-slow { animation: packet-travel-down 5s ease-in-out infinite; }

@keyframes packet-travel-up {
  0%   { top: 0%;  opacity: 0; background: #34d399; box-shadow: 0 0 8px #34d399; }
  10%  { opacity: 1; background: #34d399; box-shadow: 0 0 10px #34d399; }
  45%  { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
  85%  { opacity: 1; background: #FBBF24; box-shadow: 0 0 10px #FBBF24; }
  95%  { top: 98%; opacity: 0; background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }
  100% { top: 98%; opacity: 0; }
}
@keyframes packet-travel-down {
  0%   { top: 98%; opacity: 0; background: #FBBF24; box-shadow: 0 0 8px #FBBF24; }
  10%  { opacity: 1; background: #FBBF24; box-shadow: 0 0 10px #FBBF24; }
  45%  { background: #38bdf8; box-shadow: 0 0 10px #38bdf8; }
  85%  { opacity: 1; background: #34d399; box-shadow: 0 0 10px #34d399; }
  95%  { top: 0%; opacity: 0; background: #34d399; box-shadow: 0 0 8px #34d399; }
  100% { top: 0%; opacity: 0; }
}

/* Detail Cards */
.arch-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 380px;
}
.arch-detail-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 16px;
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
  cursor: default;
}
.arch-detail-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 100%;
  border-radius: 3px 0 0 3px;
}
.arch-detail-card:hover, .arch-detail-card.active {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
  transform: translateX(6px);
}
.arch-detail-card.arch-gold::before { background: #FBBF24; }
.arch-detail-card.arch-blue::before { background: #38bdf8; }
.arch-detail-card.arch-green::before { background: #34d399; }
.arch-detail-card.arch-gold.active { border-color: rgba(251,191,36,0.35); box-shadow: 0 0 20px rgba(251,191,36,0.08), inset 0 0 20px rgba(251,191,36,0.03); }
.arch-detail-card.arch-blue.active { border-color: rgba(56,189,248,0.35); box-shadow: 0 0 20px rgba(56,189,248,0.08), inset 0 0 20px rgba(56,189,248,0.03); }
.arch-detail-card.arch-green.active { border-color: rgba(52,211,153,0.35); box-shadow: 0 0 20px rgba(52,211,153,0.08), inset 0 0 20px rgba(52,211,153,0.03); }

/* Dim non-active cards */
.arch-details:has(.active) .arch-detail-card:not(.active) { opacity: 0.35; }

.arch-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.arch-card-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.arch-gold .arch-card-icon { background: rgba(251,191,36,0.15); }
.arch-blue .arch-card-icon { background: rgba(56,189,248,0.12); }
.arch-green .arch-card-icon { background: rgba(52,211,153,0.10); }

.arch-detail-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
}
.arch-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.6rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.5;
}
.arch-detail-card p {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.65;
  font-weight: 300;
}

/* Metrics Bar */
.arch-metrics {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  padding: 0 32px 20px;
  max-width: 900px;
  margin: 0 auto;
}
.arch-metric { text-align: center; }
.arch-metric-value {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -1px;
  background: linear-gradient(135deg, #FBBF24, #38bdf8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.arch-metric-label {
  font-size: 0.72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 4px;
  font-weight: 500;
}

/* Architecture Responsive */
@media (max-width: 800px) {
  .arch-section { flex-direction: column; gap: 40px; padding: 40px 20px 60px; }
  .stack-wrapper { transform: scale(0.85); }
  .arch-details { max-width: 100%; }
  .arch-metrics { gap: 28px; }
}

/* Typeform glassmorphic wrapper */
.typeform-glass {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 1.5rem;
  max-width: 600px;
  min-height: 720px;
  margin: 0 auto;
  padding: 2rem;
}

.typeform-glass iframe {
  min-height: 680px !important;
  scrollbar-width: none;
}

.typeform-glass iframe::-webkit-scrollbar {
  display: none;
}
