/* ==========================================================================
   RAMAN TIWARI - FREELANCE PORTFOLIO & CLIENT CONVERSION ENGINE
   Design System: Modern Hyper-Engineered Dark/Light Aesthetic
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  /* Ultra-Clean Royal White & Pure Luxury Gold (Zero Dark Mode) */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-glass: rgba(255, 255, 255, 0.94);
  --bg-input: #f8fafc;
  
  --border-subtle: rgba(212, 175, 55, 0.22);
  --border-glow: rgba(212, 175, 55, 0.45);
  --border-accent: rgba(212, 175, 55, 0.35);
  --border-royal: rgba(180, 83, 9, 0.3);

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  /* Pure Royal Gold Accents */
  --royal-gold: #b45309;
  --royal-gold-bright: #d97706;
  --royal-gold-dark: #92400e;
  --royal-sapphire: #b45309;
  --royal-indigo: #b45309;
  --royal-amethyst: #d97706;
  --royal-emerald: #059669;

  --accent-cyan: #b45309;
  --accent-indigo: #d97706;
  --accent-purple: #b45309;
  --accent-emerald: #059669;
  --accent-amber: #d97706;
  --accent-rose: #e11d48;
  
  --gradient-primary: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --gradient-royal-gold: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  --gradient-indigo: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  --gradient-emerald: linear-gradient(135deg, #10b981 0%, #059669 100%);
  --gradient-card: linear-gradient(180deg, rgba(212, 175, 55, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  
  /* Royal Shadows & Glows on White */
  --glow-gold: 0 0 25px rgba(212, 175, 55, 0.22);
  --glow-cyan: 0 0 25px rgba(212, 175, 55, 0.2);
  --glow-indigo: 0 0 25px rgba(212, 175, 55, 0.2);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 0 12px rgba(212, 175, 55, 0.08);
  --shadow-royal: 0 16px 36px -8px rgba(0, 0, 0, 0.07), 0 0 20px rgba(212, 175, 55, 0.12);
  --shadow-dropdown: 0 15px 30px -10px rgba(0, 0, 0, 0.1);

  /* Layout & Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --container-max: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition-smooth: all 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--bg-primary);
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-overflow-scrolling: touch;
}

/* Background Ambient Glow */
.ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-glow::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 15%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.05) 0%, rgba(212, 175, 55, 0.02) 45%, rgba(255, 255, 255, 0) 70%);
  filter: blur(85px);
  animation: float-aura-1 12s ease-in-out infinite alternate;
}

.ambient-glow::after {
  content: '';
  position: absolute;
  top: 25%;
  right: 10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.04) 0%, rgba(229, 192, 123, 0.02) 50%, rgba(255, 255, 255, 0) 70%);
  filter: blur(95px);
  animation: float-aura-2 14s ease-in-out infinite alternate;
}

@keyframes float-aura-1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}

@keyframes float-aura-2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -30px) scale(1.08); }
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-smooth);
}

code, pre {
  font-family: var(--font-mono);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

.text-gradient {
  background: linear-gradient(135deg, #b45309 0%, #d97706 60%, #92400e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-emerald {
  background: var(--gradient-emerald);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Navigation Bar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition-smooth);
  padding-top: env(safe-area-inset-top, 0px);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: var(--gradient-indigo);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.brand-tag {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 6, 0.1);
  color: var(--royal-gold);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-weight: 600;
  margin-left: 0.25rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.925rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.theme-toggle-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-glow);
  transform: rotate(15deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-primary);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(180, 83, 9, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
  color: #ffffff;
}

.btn-secondary {
  background: #ffffff;
  color: var(--text-primary);
  border-color: var(--border-subtle);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--border-glow);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.btn-accent {
  background: #10b981;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25);
}

.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
  color: #ffffff;
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.65rem 1.35rem;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-copy {
  background: #f8fafc;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.btn-copy:hover {
  background: #ffffff;
  color: var(--royal-gold);
  border-color: var(--border-glow);
}

/* Availability Pill */
.availability-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.7rem;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #059669;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.status-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  position: relative;
}

.status-dot::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  opacity: 0.35;
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 2.25rem 0 1.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.25rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.025em;
  margin-bottom: 0.85rem;
  color: var(--text-primary);
}

.hero-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.35rem;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero-proof-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.proof-chip {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.proof-chip strong {
  color: var(--text-primary);
}

.proof-chip i {
  color: var(--royal-gold);
}

/* ==========================================================================
   DYNAMIC 1-BY-1 CREATION STUDIO (HERO FLAGSHIP)
   ========================================================================== */
/* ==========================================================================
   DYNAMIC 1-BY-1 CREATION STUDIO (HERO FLAGSHIP)
   ========================================================================== */
.hero-pipeline-card {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.05), 0 0 25px rgba(212, 175, 55, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.pipeline-header {
  background: #f8fafc;
  padding: 0.6rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  flex-wrap: wrap;
}

.pipeline-dots {
  display: flex;
  gap: 6px;
}

.p-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

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

.matrix-title-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.matrix-live-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--royal-gold);
}

.pulse-gold {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal-gold);
  box-shadow: 0 0 6px var(--royal-gold);
  animation: dot-pulse 1.8s infinite;
}

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

/* 2x2 Equal Size Synchronous Grid */
.pipeline-stage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
}

/* Individual Equal-Sized Hero Synchronous Card */
.hero-sync-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
  min-height: 205px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hero-sync-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.16);
}

.sync-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.sync-card-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sync-speed-tag {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 20px;
  background: rgba(217, 119, 6, 0.1);
  color: var(--royal-gold);
  border: 1px solid rgba(217, 119, 6, 0.25);
  white-space: nowrap;
}

.sync-card-canvas {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 0.55rem;
  overflow: hidden;
}

.sync-card-footer {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

.mini-spec {
  font-size: 0.62rem;
  color: var(--text-secondary);
  font-weight: 600;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* --- Card 1: Web Engine Details --- */
.mini-browser-bar {
  background: #f8fafc;
  border-radius: 4px;
  padding: 2px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.58rem;
  color: var(--text-secondary);
  border: 1px solid #e2e8f0;
  margin-bottom: 5px;
}

.m-dots {
  display: flex;
  gap: 3px;
}

.m-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #cbd5e1;
}

.m-url {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
}

.text-gold {
  color: var(--royal-gold);
}

.m-status {
  font-size: 0.52rem;
  font-weight: 700;
  color: #059669;
}

.mini-web-wireframe {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}

.m-nav {
  height: 8px;
  background: linear-gradient(90deg, #f59e0b 0%, #b45309 100%);
  border-radius: 2px;
  width: 100%;
  animation: pulseNav 3s ease-in-out infinite alternate;
}

@keyframes pulseNav {
  0% { opacity: 0.75; transform: scaleX(0.97); }
  100% { opacity: 1; transform: scaleX(1); }
}

.m-hero {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 1px 0;
}

.m-headline {
  width: 72%;
  height: 6px;
  background: linear-gradient(90deg, #e2e8f0 0%, #fde68a 50%, #e2e8f0 100%);
  background-size: 200% 100%;
  border-radius: 2px;
  animation: shimmerWave 2.8s infinite linear;
}

.m-subline {
  width: 48%;
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
}

@keyframes shimmerWave {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.m-metrics-row {
  display: flex;
  gap: 4px;
  margin-top: 3px;
}

.m-m-box {
  flex: 1;
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 4px;
  padding: 3px 2px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.m-val {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--royal-gold);
}

.m-lbl {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mini-magic-cursor {
  position: absolute;
  bottom: 0px;
  right: 2px;
  font-size: 0.62rem;
  color: #d97706;
  display: flex;
  align-items: center;
  gap: 3px;
  animation: cursorBob 3s ease-in-out infinite alternate;
}

.mini-magic-cursor span {
  background: var(--royal-gold);
  color: #ffffff;
  font-size: 0.5rem;
  padding: 1px 4px;
  border-radius: 3px;
  font-weight: 700;
}

@keyframes cursorBob {
  0% { transform: translate(0, 0); }
  50% { transform: translate(-14px, -6px); }
  100% { transform: translate(0, 0); }
}

/* --- Card 2: Mobile App Details --- */
.mini-phone-device {
  width: 100%;
  max-width: 175px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #cbd5e1;
  border-radius: 14px;
  padding: 4px 6px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.mini-island {
  width: 32px;
  height: 5px;
  background: #0f172a;
  border-radius: 10px;
  margin: 0 auto 4px;
}

.mini-phone-screen {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mini-bio-scan {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  color: #059669;
}

.bio-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #059669;
  animation: bioRingPulse 1.8s infinite;
}

@keyframes bioRingPulse {
  0%, 100% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.3); opacity: 1; }
}

.mini-chart-spark {
  display: flex;
  align-items: flex-end;
  height: 22px;
  gap: 3px;
  background: #f8fafc;
  padding: 2px 4px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.18);
}

.sb {
  flex: 1;
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  border-radius: 2px 2px 0 0;
  animation: sparkBarDance 2s ease-in-out infinite alternate;
}

.sb1 { height: 40%; animation-delay: 0s; }
.sb2 { height: 75%; animation-delay: 0.2s; }
.sb3 { height: 95%; animation-delay: 0.4s; }
.sb4 { height: 60%; animation-delay: 0.1s; }
.sb5 { height: 85%; animation-delay: 0.3s; }

@keyframes sparkBarDance {
  0% { transform: scaleY(0.7); }
  100% { transform: scaleY(1.15); }
}

.mini-phone-toast {
  font-size: 0.54rem;
  color: var(--text-primary);
  background: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: 4px;
  padding: 2px 5px;
  display: flex;
  align-items: center;
  gap: 3px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
  animation: toastSlide 3s ease-in-out infinite alternate;
}

@keyframes toastSlide {
  0% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* --- Card 3: Cyber Security Radar --- */
.mini-radar-screen {
  position: relative;
  width: 100%;
  height: 86px;
  background: #fcfcfc;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mini-rc {
  position: absolute;
  border: 1px dashed rgba(212, 175, 55, 0.3);
  border-radius: 50%;
}

.mini-rc-1 { width: 30px; height: 30px; }
.mini-rc-2 { width: 56px; height: 56px; }
.mini-rc-3 { width: 82px; height: 82px; }

.mini-laser-sweep {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(217, 119, 6, 0.35) 0deg, transparent 65deg, transparent 360deg);
  animation: radarSweep 3s linear infinite;
  pointer-events: none;
}

@keyframes radarSweep {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.mini-center-shield {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  font-size: 0.72rem;
  box-shadow: 0 0 8px rgba(217, 119, 6, 0.3);
  animation: shieldGlow 2s ease-in-out infinite alternate;
}

@keyframes shieldGlow {
  0% { box-shadow: 0 0 5px rgba(217, 119, 6, 0.2); transform: scale(0.95); }
  100% { box-shadow: 0 0 12px rgba(217, 119, 6, 0.45); transform: scale(1.05); }
}

.mini-node {
  position: absolute;
  font-size: 0.5rem;
  font-weight: 700;
  color: #059669;
  background: #ffffff;
  border: 1px solid rgba(5, 150, 105, 0.35);
  border-radius: 10px;
  padding: 1px 4px;
  display: flex;
  align-items: center;
  gap: 2px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  z-index: 2;
}

.mn-1 { top: 4px; left: 4px; }
.mn-2 { top: 4px; right: 4px; }
.mn-3 { bottom: 4px; left: 50%; transform: translateX(-50%); }

/* --- Card 4: Digital Growth Curve --- */
.mini-growth-stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}

.mg-stat {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.mg-v {
  font-size: 0.72rem;
  font-weight: 800;
}

.mg-l {
  font-size: 0.5rem;
  color: var(--text-muted);
}

.mini-growth-curve {
  position: relative;
  width: 100%;
  height: 52px;
  background: #fcfcfc;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.15);
  overflow: hidden;
}

.mini-svg {
  width: 100%;
  height: 100%;
}

.mini-growth-stroke {
  stroke-dasharray: 280;
  stroke-dashoffset: 0;
  animation: drawMiniCurve 3s ease-in-out infinite alternate;
}

@keyframes drawMiniCurve {
  0% { stroke-dashoffset: 60; }
  100% { stroke-dashoffset: 0; }
}

.m-point {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d97706;
  box-shadow: 0 0 6px #d97706;
}

.mp-tag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.48rem;
  font-weight: 700;
  color: var(--text-primary);
  background: #ffffff;
  padding: 1px 3px;
  border-radius: 3px;
  border: 1px solid #e2e8f0;
  white-space: nowrap;
}

.mp-1 { left: 25%; bottom: 22px; }
.mp-2 { left: 58%; bottom: 34px; }
.mp-3 { right: 8%; bottom: 44px; }

.pipeline-footer-bar {
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.engine-live-indicator {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  color: var(--text-secondary);
}

.pulse-dot-gold {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--royal-gold);
  box-shadow: 0 0 6px var(--royal-gold);
  animation: dot-pulse 1.8s infinite;
}
/* ==========================================================================
   METRICS RIBBON
   ========================================================================== */
.metrics-section {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1rem;
  position: relative;
}

.metric-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border-subtle);
}

.metric-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.metric-detail {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.95rem;
  background: rgba(217, 119, 6, 0.08);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  color: var(--royal-gold);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.08);
}

.section-title {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   INTERACTIVE WEB & APP DEVELOPMENT SHOWCASE (SCROLL & 3D ANIMATION)
   ========================================================================== */
.web-app-showcase-section {
  position: relative;
  background: radial-gradient(circle at 20% 30%, rgba(6, 182, 212, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 80% 70%, rgba(99, 102, 241, 0.05) 0%, transparent 60%);
  padding: 5.5rem 0 4rem;
  overflow: hidden;
}

/* Platform Switcher Tabs */
.dev-tabs-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
}

.dev-tabs {
  display: inline-flex;
  background: #ffffff;
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04), 0 0 16px rgba(212, 175, 55, 0.1);
  gap: 6px;
  position: relative;
  z-index: 2;
  backdrop-filter: blur(12px);
}

.dev-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 0.65rem 1.45rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  transition: var(--transition-smooth);
}

.dev-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.08);
}

.dev-tab-btn.active {
  background: var(--gradient-primary);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
}

/* Dual Column Layout */
.dev-showcase-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 3.5rem;
}

/* 3D Visual Stage Wrapper */
.dev-stage-wrapper {
  position: relative;
  min-height: 480px;
  perspective: 1400px;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.dev-stage-backdrop {
  position: absolute;
  top: 5%;
  left: 5%;
  width: 90%;
  height: 90%;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, rgba(245, 158, 11, 0.03) 50%, transparent 75%);
  filter: blur(45px);
  z-index: 0;
  pointer-events: none;
  animation: pulse-aura 6s ease-in-out infinite alternate;
}

@keyframes pulse-aura {
  0% { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.08); opacity: 1; }
}

/* Browser Mockup (Web Development View) - Pure Luxury Light */
.mockup-browser {
  position: relative;
  z-index: 2;
  width: 92%;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 0 25px rgba(212, 175, 55, 0.12);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.6s ease;
}

.dev-stage-wrapper:hover .mockup-browser {
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.12), 0 0 35px rgba(212, 175, 55, 0.2);
}

.browser-header {
  background: #f8fafc;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.browser-controls {
  display: flex;
  gap: 6px;
}

.ctrl-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.browser-address-bar {
  flex: 1;
  max-width: 340px;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.address-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-pill {
  margin-left: auto;
  font-size: 0.65rem;
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
  box-shadow: 0 0 8px #059669;
  animation: dot-pulse 1.8s infinite;
}

.badge-subtle {
  font-size: 0.7rem;
  color: var(--royal-gold);
  background: rgba(217, 119, 6, 0.1);
  border: 1px solid rgba(217, 119, 6, 0.25);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* Browser Viewport & Inner Dashboard - Clean Light Mode */
.browser-viewport {
  padding: 1rem;
  background: #ffffff;
}

.browser-app-content {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.85rem;
  min-height: 275px;
}

.app-sidebar-mini {
  background: #f8fafc;
  border-radius: var(--radius-md);
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid #e2e8f0;
}

.sidebar-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition-smooth);
}

.sidebar-icon.active {
  background: rgba(217, 119, 6, 0.12);
  color: var(--royal-gold);
  border: 1px solid rgba(217, 119, 6, 0.35);
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

.app-main-pane {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.app-top-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stat-mini-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.mini-label {
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.mini-val {
  font-size: 1.05rem;
  font-weight: 800;
  margin-top: 2px;
}

/* Animated Interactive Bar Chart */
.app-chart-box {
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.95rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chart-header-mini {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-primary);
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.badge-cache {
  font-size: 0.68rem;
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-weight: 700;
}

.chart-bars-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  height: 85px;
  gap: 6px;
  padding-top: 8px;
}

.chart-bar {
  flex: 1;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
}

.chart-bar .bar-fill {
  width: 100%;
  height: var(--bar-h, 50%);
  background: linear-gradient(180deg, #f59e0b 0%, #b45309 100%);
  border-radius: 4px 4px 0 0;
  transition: height 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 10px rgba(217, 119, 6, 0.25);
  animation: barPulse 3s ease-in-out infinite alternate;
}

@keyframes barPulse {
  0% { transform: scaleY(0.95); }
  100% { transform: scaleY(1.05); }
}

.app-pipeline-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pipeline-tag {
  font-size: 0.7rem;
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-full);
  padding: 0.25rem 0.65rem;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

/* Phone Mockup (Mobile App Development View) - Sleek Silver Titanium & Pure Light UI */
.mockup-phone {
  position: absolute;
  right: -15px;
  bottom: -25px;
  width: 240px;
  height: 395px;
  background: #ffffff;
  border: 4px solid #cbd5e1;
  border-radius: 38px;
  box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.12),
              0 0 25px rgba(212, 175, 55, 0.2),
              inset 0 0 8px rgba(0, 0, 0, 0.04);
  z-index: 4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: translateZ(50px) translateY(15px);
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.3, 1), box-shadow 0.6s ease;
}

.dev-stage-wrapper:hover .mockup-phone {
  transform: translateZ(75px) translateY(-5px) rotate(1deg);
  box-shadow: 0 35px 70px -10px rgba(0, 0, 0, 0.18), 0 0 35px rgba(212, 175, 55, 0.3);
}

.phone-speaker-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  background: #0f172a;
  border-radius: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dynamic-island {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
}

.phone-screen {
  flex: 1;
  padding: 2.2rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  position: relative;
  background: #ffffff;
}

.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 700;
  margin-bottom: 0.75rem;
  padding: 0 4px;
}

.phone-icons {
  display: flex;
  gap: 5px;
  font-size: 0.62rem;
}

/* Floating Push Notification in Phone - Pure Luxury Glass */
.phone-notification-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.75rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  margin-bottom: 0.85rem;
  transform: translateY(-8px);
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.phone-notification-card.is-active {
  transform: translateY(0);
  opacity: 1;
}

.notif-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.notif-app {
  font-weight: 700;
  color: var(--royal-gold);
  display: flex;
  align-items: center;
  gap: 4px;
}

.notif-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.notif-body {
  font-size: 0.68rem;
  color: var(--text-secondary);
  line-height: 1.35;
  margin-top: 2px;
}

/* Phone App Body */
.phone-app-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.phone-user-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.phone-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.75rem;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.phone-greeting {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-sub {
  font-size: 0.62rem;
  color: #059669;
  font-weight: 600;
}

.phone-metric-widget {
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-sm);
  padding: 0.55rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.widget-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.widget-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2px 0 4px;
}

.widget-val {
  font-size: 0.95rem;
  font-weight: 800;
}

.widget-pill {
  font-size: 0.6rem;
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.widget-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.widget-progress-fill {
  height: 100%;
  background: var(--gradient-emerald);
  border-radius: 2px;
}

.phone-stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: auto;
}

.chip-item {
  font-size: 0.62rem;
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: var(--radius-full);
  padding: 2px 8px;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.phone-home-indicator {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 3.5px;
  background: #0f172a;
  opacity: 0.35;
  border-radius: 4px;
}

/* Floating Tech Pills */
.floating-badge {
  position: absolute;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-full);
  padding: 0.45rem 0.95rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 0 16px rgba(212, 175, 55, 0.12);
  backdrop-filter: blur(12px);
  z-index: 5;
  pointer-events: none;
}

.badge-top-left {
  top: -12px;
  left: -10px;
  animation: float-badge-1 5s ease-in-out infinite;
}

.badge-top-right {
  top: 15px;
  right: 18%;
  animation: float-badge-2 6s ease-in-out infinite;
}

.badge-bottom-left {
  bottom: 5px;
  left: 4%;
  animation: float-badge-3 5.5s ease-in-out infinite;
}

@keyframes float-badge-1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
}

@keyframes float-badge-2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(7px) rotate(1.5deg); }
}

@keyframes float-badge-3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

/* Feature Cards on Right - Luxury White Architecture */
.dev-features-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.dev-feature-card {
  background: #ffffff;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  display: flex;
  gap: 1.25rem;
  transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.dev-feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: transparent;
  transition: var(--transition-smooth);
}

.dev-feature-card:hover {
  transform: translateX(6px) translateY(-2px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.16);
}

.dev-feature-card:hover::before {
  background: var(--gradient-primary);
}

.dev-feature-card.highlight {
  border-color: rgba(212, 175, 55, 0.6);
  box-shadow: 0 0 25px rgba(212, 175, 55, 0.2);
}

.dev-card-icon-wrap {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  background: rgba(217, 119, 6, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--royal-gold);
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15);
}

.dev-card-body {
  flex: 1;
}

.dev-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.dev-card-title {
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--text-primary);
}

.dev-speed-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--royal-gold);
  background: rgba(217, 119, 6, 0.1);
  padding: 3px 9px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(217, 119, 6, 0.25);
}

.dev-card-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0.85rem;
}

.dev-pill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tag-pill {
  font-size: 0.74rem;
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: var(--radius-full);
  padding: 0.28rem 0.75rem;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
}

.tag-pill i {
  color: #059669;
  font-size: 0.7rem;
}

/* Metrics Ribbon Under Showcase */
.dev-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
}

.dev-metric-col {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dev-metric-col:not(:last-child) {
  border-right: 1px solid var(--border-subtle);
}

.dev-metric-num {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.dev-metric-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   THE ROYAL ENGINEERING STANDARDS & ARCHITECTURAL ATELIER
   ========================================================================== */
.text-gradient-gold {
  background: var(--gradient-royal-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.royal-crest-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(226, 183, 110, 0.12);
  border: 1px solid var(--border-glow);
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--royal-gold-bright);
  box-shadow: 0 4px 15px rgba(226, 183, 110, 0.2);
  margin-bottom: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.royal-crest-badge i {
  color: var(--royal-gold);
  font-size: 0.95rem;
  animation: crown-pulse 3s infinite ease-in-out;
}

@keyframes crown-pulse {
  0%, 100% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 0 4px var(--royal-gold)); }
  50% { transform: scale(1.15) rotate(-3deg); filter: drop-shadow(0 0 10px var(--royal-gold-bright)); }
}

.royal-section {
  position: relative;
  background: #f8fafc;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6rem 0;
  overflow: hidden;
}

.royal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 2px;
  background: radial-gradient(circle, var(--royal-gold) 0%, transparent 80%);
}

.royal-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.royal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.royal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--royal-gold) 50%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.royal-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-royal);
}

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

.royal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.royal-card-emblem {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(226, 183, 110, 0.1);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--royal-gold-bright);
  box-shadow: 0 8px 20px rgba(226, 183, 110, 0.18);
  transition: var(--transition-smooth);
}

.royal-card:hover .royal-card-emblem {
  transform: scale(1.08) rotate(4deg);
  background: rgba(226, 183, 110, 0.2);
  box-shadow: 0 8px 25px rgba(226, 183, 110, 0.35);
}

.royal-seal {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--royal-gold);
  background: rgba(226, 183, 110, 0.08);
  border: 1px solid rgba(226, 183, 110, 0.28);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.royal-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
}

.royal-card-quote {
  font-size: 0.85rem;
  font-style: italic;
  color: var(--royal-gold-bright);
  margin-bottom: 1rem;
  display: block;
}

.royal-card-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.royal-specs-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-subtle);
}

.royal-specs-list li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.royal-specs-list li i {
  color: var(--royal-gold);
  font-size: 0.8rem;
  min-width: 14px;
}

/* Luxury Guarantee Ribbon Banner - Ultra-Clean Royal White */
.royal-guarantee-banner {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2.75rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05), 0 0 25px rgba(212, 175, 55, 0.12);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.royal-guarantee-banner::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.guarantee-content {
  flex: 1;
  min-width: 320px;
}

.guarantee-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.guarantee-subtitle {
  font-size: 0.92rem;
  color: #475569;
  font-weight: 500;
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.royal-hallmarks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.25rem;
}

.hallmark-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 700;
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 10px;
  padding: 0.6rem 0.9rem;
  transition: var(--transition-smooth);
}

.hallmark-item:hover {
  background: #ffffff;
  border-color: rgba(212, 175, 55, 0.45);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.12);
  transform: translateY(-1px);
}

.hallmark-item i {
  color: var(--royal-gold);
  font-size: 1rem;
}

/* Royal Gold Action Button */
.btn-royal-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 50%, #b45309 100%);
  color: #ffffff !important;
  font-weight: 800;
  padding: 0.95rem 1.85rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  box-shadow: 0 6px 22px rgba(217, 119, 6, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-shadow: none;
}

.btn-royal-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(217, 119, 6, 0.45);
  color: #ffffff !important;
}

.btn-royal-gold i {
  color: #ffffff;
  font-size: 0.95rem;
}

/* ==========================================================================
   SERVICES & SOLUTIONS (WHAT CLIENTS HIRE FOR)
   ========================================================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: var(--transition-smooth);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card), 0 0 25px rgba(0, 242, 254, 0.15);
}

.service-card:hover::before {
  background: var(--gradient-primary);
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.service-card:nth-child(2) .service-icon-wrap {
  background: rgba(99, 102, 241, 0.1);
  color: var(--accent-indigo);
  border-color: rgba(99, 102, 241, 0.2);
}

.service-card:nth-child(3) .service-icon-wrap {
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.2);
}

.service-card:nth-child(4) .service-icon-wrap {
  background: rgba(168, 85, 247, 0.1);
  color: var(--accent-purple);
  border-color: rgba(168, 85, 247, 0.2);
}

.service-card:nth-child(5) .service-icon-wrap {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.service-card:nth-child(6) .service-icon-wrap {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
  border-color: rgba(244, 63, 94, 0.2);
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.925rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.service-deliverables {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1rem;
  margin-bottom: 1.5rem;
}

.service-deliverables li {
  font-size: 0.825rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-deliverables li i {
  color: var(--accent-emerald);
  font-size: 0.75rem;
}

.service-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* ==========================================================================
   INTERACTIVE CASE STUDIES (CLIENT PROOF)
   ========================================================================== */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  background: #ffffff;
  padding: 5px;
  border-radius: var(--radius-full);
  border: 1.5px solid rgba(212, 175, 55, 0.32);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}

.filter-btn {
  padding: 0.6rem 1.35rem;
  background: transparent;
  border: none;
  border-radius: var(--radius-full);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover {
  color: var(--text-primary);
  background: rgba(212, 175, 55, 0.08);
}

.filter-btn.active {
  background: var(--gradient-primary);
  color: #ffffff !important;
  box-shadow: 0 4px 18px rgba(217, 119, 6, 0.35);
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.project-card {
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 20px 45px rgba(212, 175, 55, 0.16);
}

.project-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.project-category-pill {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(217, 119, 6, 0.1);
  color: var(--royal-gold);
  border: 1px solid rgba(212, 175, 55, 0.32);
}

.project-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.project-client {
  font-size: 0.88rem;
  color: var(--royal-gold);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.project-story-block {
  background: #f8fafc;
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  margin-bottom: 1.25rem;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.02);
}

.story-row {
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
  line-height: 1.6;
}

.story-row:last-child {
  margin-bottom: 0;
}

.story-label {
  font-weight: 800;
  color: #0f172a;
  display: inline-block;
  min-width: 84px;
}

.story-val-challenge {
  color: #be123c;
  font-weight: 500;
}

.story-val-solution {
  color: #1d4ed8;
  font-weight: 500;
}

.story-val-result {
  color: #047857;
  font-weight: 700;
}

.project-metric-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-md);
  color: var(--accent-emerald);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.project-tag {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.6rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
}

.project-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* ==========================================================================
   INTERACTIVE PROPOSAL & SCOPE ESTIMATOR WIDGET
   ========================================================================== */
.estimator-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
  position: relative;
}

.estimator-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
}

.config-group {
  margin-bottom: 1.75rem;
}

.config-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.config-options-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.config-option {
  position: relative;
}

.config-option input[type="radio"],
.config-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  cursor: pointer;
}

.config-option-card {
  padding: 0.85rem 1rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.config-option-card:hover {
  border-color: var(--border-glow);
}

.config-option input:checked + .config-option-card {
  background: rgba(0, 242, 254, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.15);
}

.option-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.option-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Estimator Live Output Receipt */
.estimator-receipt-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--glow-cyan);
  position: sticky;
  top: 100px;
}

.receipt-header {
  border-bottom: 1px dashed var(--border-subtle);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.receipt-header h4 {
  font-size: 1.15rem;
  font-weight: 700;
}

.receipt-header p {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.receipt-body {
  margin-bottom: 1.5rem;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.receipt-row.total {
  border-top: 1px dashed var(--border-subtle);
  padding-top: 1rem;
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.receipt-timeline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-sm);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ==========================================================================
   COPY VAULT (UPWORK, LINKEDIN, PROPOSALS)
   ========================================================================== */
.vault-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 1.5rem;
}

.vault-tab-btn {
  padding: 0.65rem 1.25rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

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

.vault-content-panel {
  display: none;
}

.vault-content-panel.active {
  display: block;
}

.copy-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  position: relative;
}

.copy-box-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.copy-box-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.copy-box pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-secondary);
  max-height: 340px;
  overflow-y: auto;
}

/* ==========================================================================
   VERIFIED CREDENTIALS & CERTIFICATIONS
   ========================================================================== */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.cred-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cred-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0, 242, 254, 0.1);
}

.cred-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cred-org {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cred-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}

.cred-badge-rank {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  background: rgba(16, 185, 129, 0.1);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: var(--radius-full);
  align-self: flex-start;
}

.cred-meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* ==========================================================================
   CONTACT & CLIENT INQUIRY SECTION
   ========================================================================== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3.5rem;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.contact-channel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin: 2rem 0;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(0, 242, 254, 0.1);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(0, 242, 254, 0.2);
}

.channel-details {
  display: flex;
  flex-direction: column;
}

.channel-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

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

.channel-value:hover {
  color: var(--accent-cyan);
}

.inquiry-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 0.8rem 1rem;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  outline: none;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 242, 254, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.85rem 1.4rem;
  background: #ffffff;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  color: #0f172a;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--glow-cyan);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  max-width: 380px;
  line-height: 1.6;
}

.footer-col h5 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   SCROLL REVEAL & STEP ANIMATIONS
   ========================================================================== */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.25, 1, 0.5, 1), transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }
.stagger-6 { transition-delay: 0.48s; }

/* Subtle pulse glow on key cards */
@keyframes subtle-glow {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5); }
  50% { box-shadow: 0 10px 30px -5px rgba(212, 175, 55, 0.25); }
}

.animate-glow {
  animation: subtle-glow 4s infinite ease-in-out;
}

/* ==========================================================================
   RESPONSIVE DESIGN SYSTEM (MOBILE, TABLET & DESKTOP VIEWPORTS)
   ========================================================================== */

/* Universal Scroll Anchor Offset for Sticky Navbar */
section[id], header[id], div[id] {
  scroll-margin-top: 80px;
}

/* Fluid Media & Code Defaults */
img, svg, video, canvas {
  max-width: 100%;
  height: auto;
}

pre, code {
  max-width: 100%;
  overflow-x: auto;
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

.iphone-dock-wrapper {
  display: none;
}

/* --------------------------------------------------------------------------
   1. LAPTOPS & SMALL DESKTOPS (<= 1200px)
   -------------------------------------------------------------------------- */
@media (max-width: 1200px) {
  .container {
    max-width: 100%;
    padding: 0 1.5rem;
  }

  .hero-content h1 {
    font-size: 2.05rem;
  }

  .dev-stage-wrapper {
    max-width: 580px;
  }

  .royal-guarantee-banner {
    padding: 2rem 2.25rem;
  }
}

/* --------------------------------------------------------------------------
   2. TABLETS IN LANDSCAPE & PORTRAIT (<= 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content {
    max-width: 760px;
    margin: 0 auto;
    text-align: left;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .estimator-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .estimator-receipt-card {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .creds-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .dev-showcase-grid {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .dev-stage-wrapper {
    max-width: 620px;
    margin: 0 auto;
    min-height: 440px;
  }

  .dev-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .dev-metric-col:nth-child(2) {
    border-right: none;
  }

  .royal-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .royal-guarantee-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem 1.75rem;
    gap: 1.5rem;
  }

  .guarantee-content {
    min-width: 0 !important;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   3. TABLETS PORTRAIT & LARGE PHONES (<= 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  body {
    padding-bottom: 105px !important;
  }

  /* Fixed iPhone Floating Navigation Dock */
  .iphone-dock-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: fixed;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 9999;
    pointer-events: none;
  }

  .iphone-bottom-nav {
    pointer-events: auto;
    width: 100%;
    max-width: 390px;
    height: 64px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 34px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12), 0 4px 20px rgba(212, 175, 55, 0.2);
  }

  .iphone-nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748b;
    text-decoration: none;
    font-size: 0.65rem;
    font-weight: 600;
    gap: 3px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 6px 12px;
    border-radius: 20px;
    position: relative;
    -webkit-tap-highlight-color: transparent;
  }

  .iphone-icon-wrap {
    font-size: 1.15rem;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.25s ease;
  }

  .iphone-icon-wrap.chat-icon {
    color: #059669;
  }

  .iphone-nav-tab:active,
  .iphone-nav-tab.active {
    color: var(--royal-gold);
  }

  .iphone-nav-tab.active .iphone-icon-wrap {
    transform: translateY(-2px);
    color: var(--royal-gold);
    filter: drop-shadow(0 0 8px rgba(212, 175, 55, 0.5));
  }

  .iphone-nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--royal-gold);
    box-shadow: 0 0 6px var(--royal-gold);
  }

  .iphone-home-bar {
    width: 134px;
    height: 4.5px;
    background: rgba(15, 23, 42, 0.35);
    border-radius: 100px;
    margin-top: 8px;
  }

  /* Section Spacing & Headings */
  section[id], header[id], div[id] {
    scroll-margin-top: 72px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .section-header {
    margin: 0 auto 2.25rem;
  }

  .section-title {
    font-size: clamp(1.65rem, 5vw, 2.1rem);
  }

  .section-desc {
    font-size: 0.95rem;
  }

  /* Header Clean Navigation */
  .brand-tag,
  .mobile-menu-btn,
  .nav-links {
    display: none !important;
  }

  /* Prevent iOS Safari input zoom */
  .form-control, input, textarea, select {
    font-size: 16px !important;
    -webkit-appearance: none;
    border-radius: var(--radius-md);
  }

  /* Touch buttons */
  .btn {
    min-height: 48px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  /* Hero Section Mobile */
  .hero-section {
    padding: 1.75rem 0 1.25rem;
  }

  .hero-content h1 {
    font-size: clamp(1.75rem, 5vw, 2.15rem);
    line-height: 1.24;
    word-break: break-word;
  }

  .hero-subtitle {
    font-size: 0.92rem;
    max-width: 100%;
    margin-bottom: 1.25rem;
    line-height: 1.6;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-proof-chips {
    width: 100%;
    gap: 0.45rem;
  }

  .proof-chip {
    font-size: 0.72rem;
    padding: 0.35rem 0.7rem;
  }

  /* Metrics Section */
  .metrics-section {
    padding: 1.5rem 0;
  }

  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .metric-item:not(:last-child)::after {
    display: none;
  }

  .metric-item {
    padding: 0.75rem 0.5rem;
  }

  .metric-number {
    font-size: 2rem;
  }

  .metric-label {
    font-size: 0.82rem;
  }

  .metric-detail {
    font-size: 0.72rem;
  }

  /* Web & App Development Showcase */
  .dev-tabs {
    flex-direction: column;
    width: 100%;
    border-radius: var(--radius-md);
    gap: 4px;
    padding: 4px;
  }

  .dev-tab-btn {
    width: 100%;
    justify-content: center;
    border-radius: var(--radius-sm);
    padding: 0.6rem 1rem;
    font-size: 0.84rem;
  }

  .dev-stage-wrapper {
    min-height: auto;
    flex-direction: column;
    align-items: center;
    perspective: none;
    transform-style: flat;
    width: 100%;
  }

  .mockup-browser {
    width: 100%;
    transform: none !important;
  }

  .dev-stage-wrapper:hover .mockup-browser {
    transform: none !important;
  }

  .browser-app-content {
    grid-template-columns: 1fr;
  }

  .app-sidebar-mini,
  .floating-badge {
    display: none !important;
  }

  .mockup-phone {
    position: static;
    width: 100%;
    max-width: 290px;
    height: 380px;
    margin-top: 1.5rem;
    transform: none !important;
  }

  .dev-stage-wrapper:hover .mockup-phone {
    transform: none !important;
  }

  .dev-metrics-bar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .dev-metric-col {
    border-right: none !important;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1rem;
  }

  .dev-metric-col:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  /* Services Grid */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .service-card {
    padding: 1.5rem 1.25rem;
  }

  /* Royal Standards */
  .royal-card {
    padding: 1.5rem 1.25rem;
  }

  .royal-guarantee-banner {
    padding: 1.75rem 1.5rem;
  }

  .royal-hallmarks-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .btn-royal-gold {
    width: 100%;
    justify-content: center;
  }

  /* Case Studies Grid */
  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-card {
    padding: 1.5rem 1.25rem;
  }

  /* Estimator */
  .estimator-container {
    padding: 1.75rem 1.25rem;
  }

  .estimator-receipt-card {
    padding: 1.5rem 1.25rem;
  }

  /* Contact & Vault */
  .contact-info-card,
  .inquiry-form-card {
    padding: 1.75rem 1.25rem;
  }

  .creds-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .cred-card {
    padding: 1.35rem 1.15rem;
  }

  .vault-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 6px;
  }

  .vault-tabs::-webkit-scrollbar {
    display: none;
  }

  .vault-tab-btn {
    white-space: nowrap;
    font-size: 0.84rem;
    padding: 0.55rem 0.95rem;
  }

  .copy-box {
    padding: 1.25rem 1rem;
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   4. STANDARD SMARTPHONES (<= 640px)
   -------------------------------------------------------------------------- */
@media (max-width: 640px) {
  /* 4-Engine Hero Architecture Matrix: Clean Stacked Full-Width Synchronous Cards */
  .pipeline-stage-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.75rem;
  }

  .hero-sync-card {
    min-height: 200px;
    padding: 0.75rem;
  }

  .sync-card-canvas {
    min-height: 105px;
    padding: 0.5rem;
  }

  /* Horizontally Scrollable Luxury Segmented Filter Control */
  .filter-tabs {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 4px 6px;
    border-radius: var(--radius-full);
    margin-bottom: 2.25rem;
  }

  .filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    flex-shrink: 0;
  }

  /* Estimator Options */
  .config-options-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .config-option-card {
    padding: 0.75rem 0.85rem;
  }

  /* Copy Vault Header */
  .copy-box-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .copy-box-top .btn-copy {
    align-self: flex-start;
  }

  /* Case Study Story Rows */
  .story-row {
    font-size: 0.84rem;
    margin-bottom: 0.85rem;
  }

  .story-label {
    display: block;
    margin-bottom: 3px;
    min-width: 0;
  }

  /* Section Spacing */
  .section {
    padding: 2.75rem 0;
  }

  .browser-address-bar {
    max-width: 220px;
    font-size: 0.68rem;
    padding: 0.3rem 0.7rem;
  }

  .mockup-phone {
    max-width: 270px;
    height: 360px;
  }

  /* Floating Toast Alert */
  .toast {
    right: 1rem;
    left: 1rem;
    bottom: 85px;
    justify-content: center;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   5. COMPACT SMARTPHONES (<= 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  /* Compact Navbar */
  .navbar-inner {
    height: 64px;
  }

  .nav-brand {
    font-size: 1.05rem;
    gap: 0.5rem;
  }

  .brand-badge {
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .nav-actions .btn-sm {
    padding: 0.35rem 0.65rem;
    font-size: 0.76rem;
    gap: 0.35rem;
  }

  /* Hero Section */
  .hero-content h1 {
    font-size: 1.65rem;
    line-height: 1.25;
  }

  .hero-subtitle {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .proof-chip {
    width: 100%;
    justify-content: flex-start;
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .btn {
    padding: 0.65rem 1.15rem;
    font-size: 0.86rem;
  }

  .btn-lg {
    padding: 0.7rem 1.25rem;
    font-size: 0.86rem;
  }

  /* Metrics */
  .metric-number {
    font-size: 1.7rem;
  }

  .metric-label {
    font-size: 0.78rem;
  }

  .metric-detail {
    font-size: 0.68rem;
  }

  /* Mockup Visuals */
  .mockup-browser {
    border-radius: var(--radius-md);
  }

  .browser-header {
    padding: 0.55rem 0.75rem;
  }

  .ctrl-dot {
    width: 8px;
    height: 8px;
  }

  .browser-viewport {
    padding: 0.65rem;
  }

  .app-top-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }

  .stat-mini-card {
    padding: 0.4rem 0.5rem;
  }

  .mini-label {
    font-size: 0.56rem;
    letter-spacing: 0.02em;
  }

  .mini-val {
    font-size: 0.88rem;
  }

  .chart-bars-wrap {
    height: 65px;
    gap: 4px;
  }

  .mockup-phone {
    max-width: 250px;
    height: 335px;
    border-radius: 32px;
    border-width: 3px;
  }

  .phone-screen {
    padding: 1.85rem 0.75rem 0.75rem;
  }

  .phone-speaker-island {
    width: 65px;
    height: 15px;
  }

  /* Royal Guarantee Banner */
  .guarantee-title {
    font-size: 1.3rem;
  }

  .guarantee-subtitle {
    font-size: 0.85rem;
  }

  .hallmark-item {
    font-size: 0.78rem;
    padding: 0.5rem 0.75rem;
  }

  .royal-guarantee-banner {
    padding: 1.35rem 1rem;
  }

  /* Cards Padding */
  .project-card {
    padding: 1.25rem 0.95rem;
  }

  .project-title {
    font-size: 1.25rem;
  }

  .project-top-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .project-links {
    width: 100%;
    justify-content: flex-start;
  }

  .service-card {
    padding: 1.25rem 0.95rem;
  }

  .service-title {
    font-size: 1.15rem;
  }

  .service-cta-btn {
    width: 100%;
    justify-content: center;
  }

  .royal-card {
    padding: 1.25rem 0.95rem;
  }

  .estimator-container {
    padding: 1.25rem 0.85rem;
  }

  .estimator-receipt-card {
    padding: 1.25rem 0.85rem;
  }

  .contact-info-card,
  .inquiry-form-card {
    padding: 1.25rem 0.85rem;
  }

  .contact-channel-item {
    gap: 0.75rem;
  }

  .channel-icon {
    width: 38px;
    height: 38px;
    font-size: 1.1rem;
  }

  .channel-value {
    font-size: 0.88rem;
  }

  .cred-card {
    padding: 1.15rem 0.85rem;
  }

  .cred-title {
    font-size: 0.95rem;
  }

  .copy-box {
    padding: 1rem 0.75rem;
  }

  .copy-box pre {
    font-size: 0.75rem;
  }

  .footer {
    padding: 2.75rem 0 1.5rem;
  }

  /* iPhone Dock on Compact Screens */
  .iphone-bottom-nav {
    height: 58px;
    padding: 0 6px;
  }

  .iphone-nav-tab {
    padding: 4px 6px;
    font-size: 0.6rem;
    gap: 2px;
  }

  .iphone-icon-wrap {
    font-size: 1.05rem;
    height: 20px;
  }

  .iphone-home-bar {
    width: 100px;
    height: 4px;
    margin-top: 5px;
  }
}

/* --------------------------------------------------------------------------
   6. ULTRA-COMPACT SMARTPHONES (<= 360px)
   -------------------------------------------------------------------------- */
@media (max-width: 360px) {
  .container {
    padding: 0 0.75rem;
  }

  .hero-content h1 {
    font-size: 1.45rem;
  }

  .hero-subtitle {
    font-size: 0.82rem;
  }

  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .app-top-stats {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }

  .iphone-bottom-nav {
    padding: 0 3px;
    border-radius: 26px;
  }

  .iphone-nav-tab {
    padding: 3px 3px;
    font-size: 0.54rem;
  }

  .iphone-icon-wrap {
    font-size: 0.92rem;
    height: 18px;
  }

  .iphone-home-bar {
    width: 80px;
    height: 3.5px;
  }
}




/* ==========================================================================
   FLAGSHIP PRODUCTS SHOWCASE
   ========================================================================== */
.products-section {
  background: radial-gradient(circle at 15% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 55%),
              radial-gradient(circle at 85% 80%, rgba(5, 150, 105, 0.04) 0%, transparent 55%);
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.product-tab {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.product-tab:hover { border-color: var(--border-glow); transform: translateY(-2px); }

.product-tab.active {
  border-color: var(--royal-gold-bright);
  box-shadow: var(--shadow-royal), var(--glow-gold);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.07) 0%, #ffffff 100%);
}

.product-tab:focus-visible { outline: 2px solid var(--royal-gold); outline-offset: 3px; }

.product-tab-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  font-size: 1.1rem;
}

.pt-teal   { background: linear-gradient(135deg, #14b8a6 0%, #0f766e 100%); }
.pt-gold   { background: var(--gradient-royal-gold); }
.pt-indigo { background: linear-gradient(135deg, #6366f1 0%, #4338ca 100%); }

.product-tab-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.product-tab-text strong { color: var(--text-primary); font-size: 1rem; font-weight: 800; }
.product-tab-text small { color: var(--text-muted); font-size: 0.8rem; font-weight: 500; }

.product-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-royal);
}

.product-panel[hidden] { display: none; }
.product-panel.active { animation: productFadeIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

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

.product-kicker {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}

.pk-teal   { background: rgba(20, 184, 166, 0.1); color: #0f766e; }
.pk-gold   { background: rgba(217, 119, 6, 0.1); color: var(--royal-gold-dark); }
.pk-indigo { background: rgba(99, 102, 241, 0.1); color: #4338ca; }

.product-name {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 0.5rem;
}

.product-tagline {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--royal-gold);
  margin-bottom: 0.85rem;
}

.product-summary {
  color: var(--text-secondary);
  font-size: 0.98rem;
  margin-bottom: 1.25rem;
}

.product-features {
  list-style: none;
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
}

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

.product-features li i {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(217, 119, 6, 0.09);
  color: var(--royal-gold);
  font-size: 0.85rem;
}

.product-features li b { color: var(--text-primary); font-weight: 700; }

.product-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }

.product-chips span {
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-secondary);
}

.product-visual { display: flex; flex-direction: column; gap: 1.25rem; }

.pv-window {
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.pv-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.6rem 0.9rem;
  background: #fff;
  border-bottom: 1px solid var(--border-subtle);
}

.pv-bar span { width: 10px; height: 10px; border-radius: 50%; }
.pv-bar span:nth-child(1) { background: #f87171; }
.pv-bar span:nth-child(2) { background: #fbbf24; }
.pv-bar span:nth-child(3) { background: #34d399; }

.pv-bar em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.pv-body { padding: 1.25rem; display: grid; gap: 1.1rem; }

.pv-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.4rem;
  position: relative;
}

.pv-flow::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--royal-gold-bright), var(--royal-gold));
  opacity: 0.35;
}

.pv-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.pv-step i {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--royal-gold-bright);
  color: var(--royal-gold);
  font-size: 0.9rem;
}

.product-panel.active .pv-step i { animation: pvPulse 2.5s ease-in-out infinite; }
.product-panel.active .pv-step:nth-child(2) i { animation-delay: 0.5s; }
.product-panel.active .pv-step:nth-child(3) i { animation-delay: 1s; }
.product-panel.active .pv-step:nth-child(4) i { animation-delay: 1.5s; }
.product-panel.active .pv-step:nth-child(5) i { animation-delay: 2s; }

@keyframes pvPulse {
  0%, 70%, 100% { background: #fff; color: var(--royal-gold); }
  15%, 40% { background: var(--royal-gold-bright); color: #fff; box-shadow: var(--glow-gold); }
}

.pv-step span { font-size: 0.7rem; font-weight: 700; color: var(--text-secondary); line-height: 1.2; }

.pv-plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }

.pv-plans div,
.pv-lead,
.pv-guard {
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.pv-plans div { padding: 0.6rem 0.4rem; text-align: center; display: flex; flex-direction: column; }
.pv-plans b { font-size: 0.8rem; color: var(--text-primary); }
.pv-plans span { font-size: 0.7rem; color: var(--text-muted); }
.pv-plans .pv-plan-hot { border-color: var(--royal-gold-bright); background: rgba(245, 158, 11, 0.07); }

.pv-lead { padding: 0.8rem 0.9rem; }
.pv-lead-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.55rem; }
.pv-lead-head b { font-size: 0.85rem; }

.pv-score {
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--gradient-royal-gold);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.pv-lead-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.pv-lead-tags span {
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  background: rgba(225, 29, 72, 0.08);
  color: var(--accent-rose);
  font-size: 0.7rem;
  font-weight: 700;
}

.pv-guard { padding: 0.75rem 0.9rem; display: grid; gap: 0.4rem; }
.pv-guard div { font-size: 0.82rem; color: var(--text-secondary); font-weight: 600; }
.pv-guard i { color: var(--royal-emerald); margin-right: 0.35rem; }

.pv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }

.pv-stat {
  padding: 0.75rem 0.5rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
}

.pv-stat strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  background: var(--gradient-royal-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pv-stat span { font-size: 0.7rem; color: var(--text-muted); font-weight: 600; }

.product-cta { align-self: stretch; justify-content: center; }

@media (prefers-reduced-motion: reduce) {
  .product-panel.active,
  .product-panel.active .pv-step i { animation: none; }
}

@media (max-width: 1024px) {
  .product-panel { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 768px) {
  /* All three products visible at once as a compact segmented control */
  .product-tabs { gap: 0.5rem; margin-bottom: 1.1rem; }
  .product-tab {
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.8rem 0.35rem;
    text-align: center;
  }
  .product-tab:hover { transform: none; }
  .product-tab-icon { width: 38px; height: 38px; font-size: 0.95rem; border-radius: 10px; }
  .product-tab-text strong { font-size: 0.8rem; line-height: 1.25; }
  .product-tab-text small { display: none; }
  .product-panel { padding: 1.35rem 1.1rem; gap: 1.5rem; }
  .product-name { font-size: 1.55rem; }
  .product-tagline { font-size: 1rem; }
  .product-summary { font-size: 0.93rem; }
  .product-features li { font-size: 0.88rem; }
  .product-chips span { font-size: 0.7rem; }
}

@media (max-width: 480px) {
  .pv-body { padding: 0.85rem; gap: 0.9rem; }
  .pv-flow { gap: 0.15rem; }
  .pv-step i { width: 34px; height: 34px; font-size: 0.78rem; }
  .pv-flow::before { top: 17px; }
  .pv-step span { font-size: 0.6rem; }
  .pv-plans { grid-template-columns: repeat(2, 1fr); }
  .pv-stats { gap: 0.4rem; }
  .pv-stat { padding: 0.6rem 0.25rem; }
  .pv-stat strong { font-size: 1.05rem; white-space: nowrap; }
  .pv-stat span { display: block; font-size: 0.62rem; line-height: 1.3; }
  .pv-guard div { font-size: 0.78rem; }
}

/* ==========================================================================
   MOBILE POLISH (ALL SECTIONS)
   ========================================================================== */
@media (max-width: 768px) {
  /* Case study filters: wrap into chips instead of a clipped scroller */
  .filter-tabs {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    width: 100%;
    padding: 0;
    gap: 0.45rem;
    background: transparent;
    border: none;
    border-radius: 0;
  }
  .filter-btn {
    flex-shrink: 1;
    border: 1.5px solid var(--border-subtle);
    background: #fff;
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
  }

  /* Copy vault tabs: wrapped pill chips */
  .vault-tabs {
    flex-wrap: wrap;
    overflow: visible;
    gap: 0.45rem;
    border-bottom: none;
    padding-bottom: 0;
  }
  .vault-tab-btn {
    white-space: normal;
    font-size: 0.78rem;
    padding: 0.45rem 0.9rem;
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-full);
    background: #fff;
  }
  .vault-tab-btn.active {
    border-color: var(--royal-gold-bright);
    background: rgba(245, 158, 11, 0.08);
  }

  /* Scope estimator total row */
  .receipt-row.total {
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    font-size: 1rem;
  }
  .receipt-row.total span:last-child { text-align: right; margin-left: auto; }

  /* Keep the last content clear of the floating bottom dock */
  .footer { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 480px) {
  .browser-actions { display: none; }
  .browser-address-bar { min-width: 0; flex: 1; }
  .address-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
}
