/* ==========================================================================
   CORETECH-IT Design System & Styles
   High-Tech / Premium Dark & Light Themes
   ========================================================================== */

/* Google Fonts: Inter & JetBrains Mono */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* Color Palette - Dark Theme (Default) */
  --bg-primary: #020408;
  --bg-secondary: #060B14;
  --bg-card: rgba(10, 16, 29, 0.75);
  --bg-card-hover: rgba(15, 23, 42, 0.9);
  --bg-elevated: #0B132B;
  --bg-glass: rgba(15, 23, 42, 0.65);
  --bg-glass-border: rgba(56, 189, 248, 0.16);

  --text-primary: #FFFFFF;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --accent-blue: #0284C7;
  --accent-cyan: #38BDF8;
  --accent-teal: #06B6D4;
  --accent-glow: rgba(56, 189, 248, 0.25);

  --accent-green: #10B981;
  --accent-green-light: #34D399;
  --accent-green-bg: rgba(16, 185, 129, 0.12);
  --accent-green-border: rgba(16, 185, 129, 0.35);

  --accent-red: #EF4444;
  --accent-red-light: #F87171;
  --accent-red-bg: rgba(239, 68, 68, 0.08);
  --accent-red-border: rgba(239, 68, 68, 0.25);

  --border-subtle: #1E293B;
  --border-highlight: #334155;
  --border-focus: #38BDF8;

  --gradient-primary: linear-gradient(135deg, #0284C7 0%, #2563EB 50%, #06B6D4 100%);
  --gradient-card: linear-gradient(180deg, rgba(14, 23, 38, 0.8) 0%, rgba(6, 11, 20, 0.95) 100%);
  --gradient-badge: linear-gradient(90deg, rgba(2, 132, 199, 0.15) 0%, rgba(56, 189, 248, 0.05) 100%);

  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --container-max: 1320px;
  --header-height: 80px;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.25);
  --shadow-glow-green: 0 0 25px rgba(16, 185, 129, 0.25);

  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #F8FAFC;
  --bg-secondary: #F1F5F9;
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-glass: rgba(255, 255, 255, 0.75);
  --bg-glass-border: rgba(2, 132, 199, 0.18);

  --text-primary: #0F172A;
  --text-secondary: #334155;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --accent-blue: #0284C7;
  --accent-cyan: #0284C7;
  --accent-teal: #0D9488;
  --accent-glow: rgba(2, 132, 199, 0.15);

  --accent-green: #16A34A;
  --accent-green-light: #15803D;
  --accent-green-bg: #DCFCE7;
  --accent-green-border: rgba(22, 163, 74, 0.3);

  --accent-red: #E11D48;
  --accent-red-light: #BE123C;
  --accent-red-bg: #FFE4E6;
  --accent-red-border: rgba(225, 29, 72, 0.25);

  --border-subtle: #E2E8F0;
  --border-highlight: #CBD5E1;
  --border-focus: #0284C7;

  --gradient-primary: linear-gradient(135deg, #0284C7 0%, #1D4ED8 100%);
  --gradient-card: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  --gradient-badge: linear-gradient(90deg, rgba(2, 132, 199, 0.1) 0%, rgba(224, 242, 254, 0.6) 100%);

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-glow: 0 0 25px rgba(2, 132, 199, 0.15);
  --shadow-glow-green: 0 0 25px rgba(22, 163, 74, 0.15);
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(56, 189, 248, 0.12), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(2, 132, 199, 0.06), transparent 70%),
    radial-gradient(ellipse 70% 50% at 20% 85%, rgba(14, 165, 233, 0.05), transparent 70%);
  background-attachment: fixed;
  min-height: 100vh;
}

[data-theme="light"] body {
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(2, 132, 199, 0.08), transparent 70%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(14, 165, 233, 0.05), transparent 70%),
    radial-gradient(ellipse 70% 50% at 20% 85%, rgba(2, 132, 199, 0.04), transparent 70%);
}

/* Ambient Cursor Glow removed globally per requirement - spotlight is local to Benchmark only */
.cursor-glow {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Typography Helpers */
.font-mono {
  font-family: var(--font-mono);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gradient-badge);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--accent-cyan);
  text-transform: uppercase;
  width: fit-content;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.gradient-text {
  background: linear-gradient(135deg, #FFFFFF 30%, #38BDF8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .gradient-text {
  background: linear-gradient(135deg, #0F172A 30%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(2, 4, 8, 0.72);
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
  transition: all var(--transition-normal);
}

[data-theme="light"] .site-header {
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 0 16px rgba(2, 132, 199, 0.4);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-weight: 800;
  color: var(--text-primary);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
}

.logo-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-cyan);
  letter-spacing: 0.08em;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: width var(--transition-normal);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--text-primary);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.theme-toggle:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: rotate(15deg);
}

.theme-toggle .icon-sun {
  display: none;
}
.theme-toggle .icon-moon {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}
[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Header Buttons (Apple-style haptic spring feel with stable hit-area) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  transition: box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.35s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  user-select: none;
  /* Anti-flicker: establish isolated stacking context */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Invisible stable hitbox expansion around button to completely prevent hover oscillation on borders */
.btn::before {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  pointer-events: auto;
  z-index: 0;
}

.btn > * {
  position: relative;
  z-index: 1;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.btn:active > * {
  transform: scale(0.96);
  transition: transform 0.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #FFFFFF;
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-primary:hover {
  box-shadow: 0 10px 30px rgba(56, 189, 248, 0.5), 0 0 16px rgba(2, 132, 199, 0.35);
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-primary:hover > * {
  transform: translateY(-1px) scale(1.015);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-secondary:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.22);
}

.btn-secondary:hover > * {
  transform: translateY(-1px) scale(1.015);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
}

/* Mobile Burger Menu Button */
.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
}

.burger-line {
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  transition: all var(--transition-normal);
  border-radius: 2px;
}

.burger-btn.active .burger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger-btn.active .burger-line:nth-child(2) {
  opacity: 0;
}
.burger-btn.active .burger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Drawer */
.mobile-nav {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background: var(--bg-primary);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  z-index: 999;
  border-top: 1px solid var(--border-subtle);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.menu-open,
html.menu-open {
  overflow: hidden !important;
  touch-action: none !important;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* ==========================================================================
   Hero Section (Block 1)
   ========================================================================== */
.hero-section {
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.hero-title .highlight {
  display: block;
  color: var(--accent-cyan);
}

.hero-title .price-tag {
  display: inline-block;
  font-size: 3rem;
  color: #FFFFFF;
  margin-top: 4px;
}

[data-theme="light"] .hero-title .price-tag {
  color: #0F172A;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-value {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Speed Test Card (Hero Right Panel - High-Tech Spotlight Border & Glow) */
.hero-visual {
  position: relative;
  perspective: 1200px;
}

.benchmark-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  /* Crystal-sharp text rendering: strictly no filter or backdrop-filter on card */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  backface-visibility: hidden;
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dedicated Local Spotlight Layer (behind text, perfectly sharp text) */
.benchmark-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  background: radial-gradient(
    420px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(56, 189, 248, 0.18) 0%,
    rgba(2, 132, 199, 0.09) 35%,
    rgba(16, 185, 129, 0.04) 55%,
    transparent 75%
  );
  transform: translateZ(0);
  will-change: opacity, background;
}

[data-theme="light"] .benchmark-spotlight {
  background: radial-gradient(
    420px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(2, 132, 199, 0.14) 0%,
    rgba(14, 165, 233, 0.07) 35%,
    rgba(16, 185, 129, 0.03) 55%,
    transparent 75%
  );
}

.benchmark-card.has-cursor .benchmark-spotlight {
  opacity: 1;
}

/* Card subtle border light accent on hover (Apple style) */
.benchmark-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: radial-gradient(
    320px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(56, 189, 248, 0.5),
    transparent 70%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
}

[data-theme="light"] .benchmark-card::before {
  background: radial-gradient(
    320px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(2, 132, 199, 0.4),
    transparent 70%
  );
}

.benchmark-card.has-cursor::before {
  opacity: 1;
}

.benchmark-card:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4), 0 0 35px rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.35);
}

[data-theme="light"] .benchmark-card:hover {
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.12), 0 0 35px rgba(2, 132, 199, 0.15);
  border-color: rgba(2, 132, 199, 0.32);
}

.benchmark-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
}

.benchmark-url {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.benchmark-url-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-dot 2s infinite ease-in-out;
}

.live-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.25);
  animation: pulse-live 2.5s infinite ease-in-out;
}

.live-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 6px var(--accent-green);
}

@keyframes pulse-live {
  0%, 100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
  }
  50% {
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
  }
}

.pagespeed-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid var(--accent-green-border);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin-bottom: 24px;
  position: relative;
  z-index: 2;
  transition: box-shadow 0.35s ease, border-color 0.35s ease;
  transform: translateZ(0);
}

.pagespeed-box:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.22);
  border-color: rgba(16, 185, 129, 0.45);
}

.score-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: conic-gradient(var(--accent-green) 0deg 360deg, transparent 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: var(--shadow-glow-green);
  animation: breathing-glow 3s infinite ease-in-out;
}

@keyframes breathing-glow {
  0%, 100% {
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.65), 0 0 10px rgba(52, 211, 153, 0.5);
  }
}

.score-inner {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-green);
  transition: background 0.3s ease;
}

.score-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.score-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Speed Comparison Bars */
.speed-comparison {
  margin-bottom: 24px;
}

.comparison-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

.speed-row {
  margin-bottom: 14px;
}

.speed-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  margin-bottom: 6px;
}

.speed-name {
  font-weight: 600;
  color: var(--text-primary);
}

.speed-time {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
}

.speed-time.fast {
  color: var(--accent-green);
}

.speed-time.slow {
  color: var(--accent-red);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.progress-bar-fast {
  width: 18%;
  height: 100%;
  background: linear-gradient(90deg, #10B981, #34D399);
  border-radius: var(--radius-full);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.6);
  position: relative;
  overflow: hidden;
  animation: bar-pulse 3s infinite ease-in-out;
}

/* Light shimmer running across fast bar */
.progress-bar-fast::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.7) 50%,
    transparent 100%
  );
  animation: shimmer-sweep 2.5s infinite linear;
}

@keyframes shimmer-sweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes bar-pulse {
  0%, 100% {
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
  }
  50% {
    box-shadow: 0 0 18px rgba(52, 211, 153, 0.85);
  }
}

.progress-bar-slow {
  width: 82%;
  height: 100%;
  background: linear-gradient(90deg, #EF4444, #F87171);
  border-radius: var(--radius-full);
  opacity: 0.85;
}

/* All text and elements inside benchmark card are raised on z-index: 3 to ensure 100% sharpness with 0 blur */
.benchmark-header,
.pagespeed-box,
.speed-comparison,
.benchmark-footer {
  position: relative;
  z-index: 3;
  transform: translateZ(0); /* Force isolate hardware layer to preserve text sharpness */
  -webkit-font-smoothing: antialiased;
}

.benchmark-footer {
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.stack-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateZ(0);
}

.stack-pill:hover {
  background: rgba(56, 189, 248, 0.16);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.stack-bullets {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

.stack-bullet-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.stack-bullet-item::before {
  content: '•';
  color: var(--accent-cyan);
}

/* ==========================================================================
   Section 2: Why We Are Different (Block 2)
   ========================================================================== */
.section-features {
  padding: 100px 0;
  position: relative;
}

.section-features::before {
  content: '';
  position: absolute;
  top: 20%;
  left: -100px;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.section-head {
  text-align: left;
  max-width: 820px;
  margin-bottom: 56px;
}

.section-title {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-top: 14px;
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  perspective: 1200px;
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.45s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Stable hit-area around feature cards to prevent boundary edge flickering */
.feature-card::after {
  content: '';
  position: absolute;
  top: -4px;
  bottom: -4px;
  left: -4px;
  right: -4px;
  pointer-events: auto;
  z-index: 0;
}

/* Card Subtle Glass Spotlight Reflection */
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(56, 189, 248, 0.6) 50%,
    transparent 100%
  );
  opacity: 0;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 2;
}

.feature-card:hover {
  border-color: rgba(56, 189, 248, 0.38);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(56, 189, 248, 0.14);
}

.feature-card:hover::before {
  opacity: 1;
}

[data-theme="light"] .feature-card:hover {
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.1), 0 0 24px rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
}

.feature-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.feature-number {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.feature-category {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Comparison within each card: Bad Market vs CORETECH */
.contrast-box {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bad-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  background: var(--accent-red-bg);
  border: 1px solid var(--accent-red-border);
}

.bad-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.2);
  color: var(--accent-red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-top: 2px;
}

.bad-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.bad-title {
  font-weight: 600;
  color: var(--accent-red-light);
  font-size: 0.95rem;
}

.bad-desc {
  font-size: 0.86rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.good-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.08);
}

.good-icon {
  width: 22px;
  height: 22px;
  min-width: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.25);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-top: 2px;
}

.good-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.good-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.good-title .brand-accent {
  color: var(--accent-cyan);
}

.good-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ==========================================================================
   Section 3: Interactive Configurator / Cost Calculator (Block 3)
   ========================================================================== */
.section-calculator {
  padding: 100px 0;
  position: relative;
}

.calc-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: flex-start;
}

.calc-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.calc-step-group {
  background: var(--gradient-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  transition: border-color var(--transition-normal);
}

.calc-step-group:focus-within,
.calc-step-group:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.step-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.step-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.calc-option {
  position: relative;
  display: block;
  cursor: pointer;
  transform: translateZ(0);
}

.calc-option.is-disabled,
.calc-option input:disabled ~ .option-box,
.calc-option[data-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.58;
  filter: grayscale(0.25);
  pointer-events: auto !important;
}

.calc-option.is-disabled::after,
.calc-option input:disabled ~ .option-box::after {
  cursor: not-allowed !important;
}

.calc-option.is-disabled:hover .option-box,
.calc-option input:disabled ~ .option-box:hover {
  border-color: var(--border-subtle) !important;
  box-shadow: none !important;
  transform: none !important;
}

.calc-option.is-disabled:active .option-box,
.calc-option input:disabled ~ .option-box:active {
  transform: none !important;
}

.calc-badge-soon {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.16);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.32);
  margin-left: auto;
  line-height: 1.2;
}

[data-theme="light"] .calc-badge-soon {
  background: #F1F5F9;
  color: #64748B;
  border-color: #CBD5E1;
}

.calc-option::after {
  content: '';
  position: absolute;
  top: -3px;
  bottom: -3px;
  left: -3px;
  right: -3px;
  pointer-events: auto;
  z-index: 0;
}

.calc-option input[type="radio"],
.calc-option input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.option-box {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.28s ease,
              background 0.28s ease,
              box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

[data-theme="light"] .option-box {
  background: #FFFFFF;
}

.calc-option:hover .option-box {
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), 0 0 14px rgba(56, 189, 248, 0.16);
}

.calc-option:active .option-box {
  transform: scale(0.985);
  transition: transform 0.1s ease;
}

.calc-option input:checked + .option-box {
  border-color: var(--accent-cyan);
  background: rgba(2, 132, 199, 0.12);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .calc-option input:checked + .option-box {
  background: rgba(2, 132, 199, 0.08);
  border-color: var(--accent-blue);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.18);
}

.option-title {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.option-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.option-price {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
  margin-top: 8px;
}

/* Sticky Total Invoice / Summary Panel (Apple-like clean card with border lighting) */
.calc-summary-panel {
  position: sticky;
  top: 100px;
  background: var(--gradient-card);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease;
  z-index: 10;
}

.calc-summary-panel:hover {
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35), 0 0 25px rgba(56, 189, 248, 0.15);
}

.summary-header {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.summary-badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
}

.summary-validity {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.summary-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.breakdown-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.breakdown-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-primary);
}

.breakdown-val.included {
  color: var(--accent-green);
}

.summary-total-box {
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.total-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.total-amount {
  font-family: var(--font-mono);
  font-size: 1.9rem;
  font-weight: 800;
  color: #FFFFFF;
}

[data-theme="light"] .total-amount {
  color: var(--accent-blue);
}

.total-deadline {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Order Submission Form */
.order-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 6px;
}

.input-field {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
}

[data-theme="light"] .input-field {
  background: #FFFFFF;
}

.input-field:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.2);
}

.input-field::placeholder {
  color: var(--text-dim);
}

.form-disclaimer {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.4;
  text-align: center;
}

/* Modal Popup Confirmation - Strict Isolation */
.modal-backdrop,
#success-modal,
.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 8, 0.85);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: none;
  visibility: hidden;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none !important;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-backdrop.show,
#success-modal.show,
.modal.show {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--bg-glass-border);
  border-radius: var(--radius-xl);
  max-width: 480px;
  width: 100%;
  padding: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform: translateY(20px);
  transition: transform var(--transition-normal);
  box-shadow: var(--shadow-md);
  pointer-events: inherit;
}

.modal-backdrop.show .modal-card,
#success-modal.show .modal-card,
.modal.show .modal-card {
  transform: translateY(0);
}

#modal-close-btn {
  pointer-events: inherit;
}

.modal-icon-success {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-glow-green);
}

/* ==========================================================================
   Block 4: Cases & Portfolio Section (.section-cases)
   ========================================================================== */

.section-cases {
  padding: 100px 0;
  position: relative;
  z-index: 1;
  background: transparent;
}

.cases-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 36px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.cases-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.case-tab {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-main);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--trans-fast);
}

.case-tab:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
}

.case-tab.active {
  background: rgba(2, 132, 199, 0.18);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .case-tab {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}

[data-theme="light"] .case-tab:hover {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

[data-theme="light"] .case-tab.active {
  background: rgba(2, 132, 199, 0.12);
  border-color: var(--accent-blue);
  color: var(--accent-blue);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.15);
}

.cases-guarantee-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green-light);
  font-size: 0.82rem;
  font-weight: 600;
}

[data-theme="light"] .cases-guarantee-pill {
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Cases 3-Column Grid */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--trans-smooth), border-color var(--trans-smooth), box-shadow var(--trans-smooth), opacity 0.35s ease;
  position: relative;
}

.case-card.case-hidden {
  display: none !important;
}

.cases-grid.cases-expanded .case-card.case-hidden {
  display: flex !important;
  animation: caseFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes caseFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.7), 0 0 25px rgba(56, 189, 248, 0.15);
}

[data-theme="light"] .case-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .case-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-hover);
}

/* Case Preview Box (Mockup) */
.case-preview-box {
  background: #060B14;
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

[data-theme="light"] .case-preview-box {
  background: #F8FAFC;
  border-bottom-color: #E2E8F0;
}

.case-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.browser-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  display: inline-block;
}

.browser-dots span:nth-child(1) { background: #EF4444; }
.browser-dots span:nth-child(2) { background: #F59E0B; }
.browser-dots span:nth-child(3) { background: #10B981; }

.browser-url {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #64748B;
  background: rgba(15, 23, 42, 0.7);
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid #1E293B;
  letter-spacing: 0.02em;
}

[data-theme="light"] .browser-url {
  color: #475569;
  background: #FFFFFF;
  border-color: #CBD5E1;
}

/* Case Preview Image Container (Замена технических схем на превью сайта) */
.case-preview-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9.5;
  background: radial-gradient(130% 100% at 50% 0%, rgba(14, 165, 233, 0.12) 0%, rgba(10, 16, 29, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .case-preview-image {
  background: radial-gradient(130% 100% at 50% 0%, rgba(2, 132, 199, 0.08) 0%, #FFFFFF 100%);
  border-color: #E2E8F0;
  box-shadow: inset 0 1px 3px rgba(15, 23, 42, 0.04);
}

.case-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.case-thumb-img[src]:not([src=""]) {
  display: block;
}

.case-thumb-img[src]:not([src=""]) + .case-image-fallback {
  display: none;
}

.case-card:hover .case-thumb-img {
  transform: scale(1.03);
}

.case-image-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  position: relative;
  text-align: center;
}

.fallback-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 180px;
  height: 100px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

[data-theme="light"] .fallback-glow {
  background: radial-gradient(circle, rgba(2, 132, 199, 0.12) 0%, transparent 70%);
}

.fallback-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

[data-theme="light"] .fallback-icon-wrap {
  background: #FFFFFF;
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--accent-blue);
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

.case-card:hover .fallback-icon-wrap {
  transform: scale(1.06);
  border-color: rgba(56, 189, 248, 0.6);
}

[data-theme="light"] .case-card:hover .fallback-icon-wrap {
  border-color: var(--accent-blue);
}

.fallback-caption {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: #94A3B8;
  letter-spacing: 0.02em;
}

[data-theme="light"] .fallback-caption {
  color: #475569;
}

.mockup-stack-bar {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #94A3B8;
  background: rgba(15, 23, 42, 0.5);
  padding: 6px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .mockup-stack-bar {
  color: #334155;
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

/* Case Body */
.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.case-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.case-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
}

.case-tag.accent {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

[data-theme="light"] .case-tag {
  background: #F1F5F9;
  border-color: #E2E8F0;
  color: #64748B;
}

[data-theme="light"] .case-tag.accent {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--accent-blue);
}

.case-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.case-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

/* Case 2x2 Metrics Grid */
.case-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 14px;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

[data-theme="light"] .case-metrics-grid {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.case-metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.case-metric-val {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-primary);
}

.case-metric-val.green {
  color: var(--accent-green);
}

.case-metric-val.cyan {
  color: var(--accent-cyan);
}

[data-theme="light"] .case-metric-val.cyan {
  color: var(--accent-blue);
}

.case-metric-lbl {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 500;
}

/* Case Result Badge */
.case-result-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid var(--accent-green-border);
  color: var(--accent-green-light);
  font-size: 0.82rem;
  font-weight: 600;
}

[data-theme="light"] .case-result-badge {
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.25);
}

.case-footer {
  margin-top: auto;
  padding-top: 8px;
}

.case-live-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-cyan);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans-fast);
}

.case-live-link svg {
  transition: transform var(--trans-fast);
}

.case-live-link:hover {
  color: #FFFFFF;
}

.case-live-link:hover svg {
  transform: translate(3px, -3px);
}

[data-theme="light"] .case-live-link {
  color: var(--accent-blue);
}

[data-theme="light"] .case-live-link:hover {
  color: #0F172A;
}

/* ==========================================================================
   Кнопка "Открыть все проекты" (по чертежу Блок 4)
   ========================================================================== */
.cases-all-action {
  display: flex;
  justify-content: center;
  margin-top: 40px;
  position: relative;
  z-index: 2;
}

.btn-all-projects {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 28px;
  border-radius: 9999px;
  background: rgba(12, 23, 46, 0.85);
  border: 1.5px solid rgba(56, 189, 248, 0.35);
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  box-shadow: 0 0 32px rgba(14, 165, 233, 0.18), 0 8px 24px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.btn-all-projects::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.6) 0%, rgba(2, 132, 199, 0.2) 50%, rgba(56, 189, 248, 0.5) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1.5px;
  pointer-events: none;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.btn-all-projects:hover {
  transform: translateY(-2px);
  background: rgba(16, 31, 60, 0.95);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.32), 0 12px 28px rgba(0, 0, 0, 0.45);
}

.btn-all-projects:hover::before {
  opacity: 1;
}

.btn-all-grid-icon {
  display: grid;
  grid-template-columns: repeat(2, 6px);
  grid-gap: 3px;
}

.btn-all-grid-icon span {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent-cyan);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn-all-grid-icon span:nth-child(2),
.btn-all-grid-icon span:nth-child(3) {
  opacity: 0.65;
}

.btn-all-projects:hover .btn-all-grid-icon span {
  opacity: 1;
  transform: scale(1.1);
}

.btn-all-text {
  font-weight: 700;
  color: #FFFFFF;
}

.btn-all-counter {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 3px 10px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}

.btn-all-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
}

.btn-all-projects:hover .btn-all-arrow {
  transform: translateX(3px);
  background: rgba(56, 189, 248, 0.2);
  color: #FFFFFF;
}

/* Light Theme для кнопки "Открыть все проекты" */
[data-theme="light"] .btn-all-projects {
  background: #FFFFFF;
  border-color: rgba(2, 132, 199, 0.35);
  box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15), 0 2px 6px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .btn-all-projects:hover {
  background: #F8FAFC;
  border-color: var(--accent-blue);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .btn-all-text {
  color: #0F172A;
}

[data-theme="light"] .btn-all-counter {
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .btn-all-arrow {
  background: rgba(2, 132, 199, 0.08);
  color: var(--accent-blue);
}

/* Cases Bottom Banner */
.cases-bottom-banner {
  margin-top: 52px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
}

.cases-bottom-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
}

[data-theme="light"] .cases-bottom-banner {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--shadow-md);
}

.banner-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

[data-theme="light"] .banner-badge {
  color: var(--accent-blue);
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.25);
}

.banner-content {
  flex: 1;
}

.banner-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.banner-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.45;
}

.banner-cta {
  white-space: nowrap;
  flex-shrink: 0;
}

/* Responsive adjustments for Cases */
@media (max-width: 1024px) {
  .cases-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-bottom-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .banner-cta {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .cases-grid {
    grid-template-columns: 1fr;
  }

  .cases-nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .cases-tabs {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .btn-all-projects {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 0.9rem;
    gap: 12px;
  }

  .cases-bottom-banner {
    padding: 20px;
  }
}


/* ==========================================================================
   BLOCK 5: Transparent Engineering Process (.section-process)
   ========================================================================== */
.section-process {
  padding: 100px 0;
  position: relative;
  background: transparent;
}

[data-theme="light"] .section-process {
  background: transparent;
}

/* Линия таймлайна над карточками (по SVG) */
.process-steps-timeline {
  margin: 32px 0 28px 0;
  padding: 0 10px;
}

.timeline-bar {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .timeline-bar {
  background: rgba(15, 23, 42, 0.1);
}

.timeline-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.3) 0%, rgba(56, 189, 248, 0.85) 25%, rgba(14, 165, 233, 0.85) 75%, rgba(16, 185, 129, 0.95) 100%);
  border-radius: 2px;
  transition: width 1.25s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.section-process.is-visible .timeline-progress,
.process-steps-timeline.is-visible .timeline-progress {
  width: 100%;
}

.timeline-point {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #38bdf8;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.8);
  opacity: 0.25;
  transform: scale(0.65);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.timeline-point.point-1 { transition-delay: 0.12s; }
.timeline-point.point-2 { transition-delay: 0.28s; }
.timeline-point.point-3 { transition-delay: 0.44s; }
.timeline-point.point-4 { transition-delay: 0.60s; }
.timeline-point.point-5 { transition-delay: 0.76s; }

.section-process.is-visible .timeline-point,
.process-steps-timeline.is-visible .timeline-point {
  opacity: 1;
  transform: scale(1);
}

.timeline-point::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.25);
}

.timeline-point.final {
  width: 12px;
  height: 12px;
  background: #10b981;
  box-shadow: 0 0 14px rgba(16, 185, 129, 0.9);
}

.timeline-point.final::after {
  background: rgba(16, 185, 129, 0.35);
}

/* Сетка карточек 5 шагов */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-top: 10px;
}

.process-card {
  background: rgba(8, 15, 32, 0.88);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 18px;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  min-height: 480px;
  backdrop-filter: blur(8px);
  
  /* Исходное состояние до скролла (Stagger reveal) */
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}

/* Каскадная задержка (Stagger Delay) для каждого шага */
.process-card[data-step="1"], .process-card:nth-child(1) { transition-delay: 0.10s; }
.process-card[data-step="2"], .process-card:nth-child(2) { transition-delay: 0.25s; }
.process-card[data-step="3"], .process-card:nth-child(3) { transition-delay: 0.40s; }
.process-card[data-step="4"], .process-card:nth-child(4) { transition-delay: 0.55s; }
.process-card[data-step="5"], .process-card:nth-child(5) { transition-delay: 0.70s; }

/* Состояние при активации скроллом */
.section-process.is-visible .process-card,
.process-grid.is-visible .process-card,
.process-card.step-animated {
  opacity: 1;
  transform: translateY(0);
}

[data-theme="light"] .process-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.process-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 130px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 75%);
  pointer-events: none;
  opacity: 0.8;
}

/* Наведение на активную карточку: сброс transition-delay для мгновенного отклика */
.section-process.is-visible .process-card:hover,
.process-grid.is-visible .process-card:hover,
.process-card.step-animated:hover,
.process-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.18);
  transition-delay: 0s !important;
  transition-duration: 0.35s;
}

[data-theme="light"] .section-process.is-visible .process-card:hover,
[data-theme="light"] .process-grid.is-visible .process-card:hover,
[data-theme="light"] .process-card.step-animated:hover,
[data-theme="light"] .process-card:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.1);
  border-color: var(--accent-cyan);
  transition-delay: 0s !important;
  transition-duration: 0.35s;
}

/* Шаг 5 (Изумрудный акцент) */
.process-card.highlight-step {
  background: rgba(6, 19, 28, 0.94);
  border: 1.5px solid rgba(52, 211, 153, 0.55);
}

.process-card.highlight-step::before {
  background: radial-gradient(circle at 50% 0%, rgba(16, 185, 129, 0.2) 0%, transparent 75%);
}

.section-process.is-visible .process-card.highlight-step:hover,
.process-grid.is-visible .process-card.highlight-step:hover,
.process-card.highlight-step.step-animated:hover,
.process-card.highlight-step:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 211, 153, 0.9);
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.25);
  transition-delay: 0s !important;
  transition-duration: 0.35s;
}

[data-theme="light"] .process-card.highlight-step {
  background: #F0FDF4;
  border-color: rgba(16, 185, 129, 0.45);
}

@media (prefers-reduced-motion: reduce) {
  .process-card,
  .timeline-progress,
  .timeline-point {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    width: 100% !important;
  }
}

/* Шапка карточки шага */
.process-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.step-num-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

.step-num-pill.green {
  color: #34d399;
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
}

.step-timing {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: 6px;
}

[data-theme="light"] .step-timing {
  background: #F1F5F9;
  color: #64748B;
}

.step-timing.green {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  font-weight: 700;
}

/* Иконка шага */
.step-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #040914;
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .step-icon-wrap {
  background: #EFF6FF;
  border-color: #BFDBFE;
  color: #0284C7;
}

.step-icon-wrap.green {
  background: #041416;
  border-color: rgba(16, 185, 129, 0.45);
  color: #10b981;
}

[data-theme="light"] .step-icon-wrap.green {
  background: #DCFCE7;
  border-color: #86EFAC;
  color: #16A34A;
}

/* Заголовки и текст шага */
.step-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .step-title {
  color: #0F172A;
}

.step-subtitle {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0 0 14px 0;
  position: relative;
  z-index: 1;
}

.step-subtitle.green {
  color: #34d399;
}

[data-theme="light"] .step-subtitle.green {
  color: #16A34A;
}

.step-desc {
  font-size: 0.8rem;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 18px 0;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .step-desc {
  color: #475569;
}

/* Артефакты этапа */
.step-artifacts {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 14px;
  margin-top: auto;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .step-artifacts {
  border-top-color: #E2E8F0;
}

.artifacts-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.artifacts-list {
  list-style: none;
  padding: 0;
  margin: 0 0 18px 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.artifacts-list li {
  font-size: 0.74rem;
  font-weight: 500;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 8px;
}

[data-theme="light"] .artifacts-list li {
  color: #334155;
}

.artifact-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-cyan);
  flex-shrink: 0;
}

.artifact-dot.green {
  background: #34d399;
}

/* Нижний блок статуса карточки */
.step-footer {
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .step-footer {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.step-footer.green-box {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.35);
}

[data-theme="light"] .step-footer.green-box {
  background: #DCFCE7;
  border-color: #86EFAC;
}

.step-footer-lbl {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748B;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.step-footer.green-box .step-footer-lbl {
  color: #059669;
}

.step-footer-val {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.step-footer-val.green {
  color: #34d399;
  font-weight: 700;
}

.step-footer.green-box .step-footer-val {
  color: #FFFFFF;
  font-weight: 700;
}

[data-theme="light"] .step-footer.green-box .step-footer-val {
  color: #065F46;
}

/* ==========================================================================
   Нижняя панель стандартов и SLA (Блок 5 SVG)
   ========================================================================== */
.process-standards-panel {
  margin-top: 36px;
  background: rgba(6, 12, 24, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  padding: 28px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

[data-theme="light"] .process-standards-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.standard-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  flex: 1;
}

.standard-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.standard-icon.blue {
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.standard-icon.green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.standard-content {
  display: flex;
  flex-direction: column;
}

.standard-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px 0;
}

[data-theme="light"] .standard-title {
  color: #0F172A;
}

.standard-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: #94A3B8;
  margin: 0 0 10px 0;
}

[data-theme="light"] .standard-desc {
  color: #64748B;
}

.standard-pill {
  font-size: 0.74rem;
  font-weight: 600;
  width: fit-content;
}

.standard-pill.cyan {
  color: #38bdf8;
}

.standard-pill.blue {
  color: #60a5fa;
}

.standard-pill.green {
  color: #34d399;
}

.standard-divider {
  width: 1px;
  height: 80px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

[data-theme="light"] .standard-divider {
  background: #E2E8F0;
}

/* Адаптивность Блока 5 */
@media (max-width: 1200px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .process-steps-timeline {
    display: none;
  }
  .process-standards-panel {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
  }
  .standard-divider {
    width: 100%;
    height: 1px;
  }
}

@media (max-width: 768px) {
  .process-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .process-card {
    min-height: auto;
  }
}

/* ==========================================================================
   BLOCK 6: Services & Tech Architecture (.section-stack)
   ========================================================================== */
.section-stack {
  padding: 100px 0;
  position: relative;
  background: transparent;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.service-card {
  background: rgba(8, 15, 32, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.service-glow-inner {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 75%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 16px 40px rgba(2, 132, 199, 0.22);
}

.service-card.flagship {
  background: rgba(8, 16, 36, 0.95);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 6px 24px rgba(2, 132, 199, 0.18);
}

.service-card.flagship:hover {
  border-color: rgba(56, 189, 248, 0.8);
  box-shadow: 0 20px 48px rgba(14, 165, 233, 0.28);
}

[data-theme="light"] .service-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .service-glow-inner {
  background: radial-gradient(ellipse at 50% 0%, rgba(2, 132, 199, 0.05) 0%, transparent 75%);
}

[data-theme="light"] .service-card:hover {
  border-color: var(--primary-blue);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] .service-card.flagship {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.04) 0%, #FFFFFF 35%);
  border-color: rgba(2, 132, 199, 0.4);
}

.service-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.direction-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #040914;
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.direction-icon.flagship-icon {
  background: #0a1936;
  border-color: rgba(56, 189, 248, 0.45);
}

.service-card:hover .direction-icon {
  transform: scale(1.06);
  border-color: rgba(56, 189, 248, 0.6);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

[data-theme="light"] .direction-icon {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: var(--primary-blue);
}

[data-theme="light"] .direction-icon.flagship-icon {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.35);
}

.service-timing-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

[data-theme="light"] .service-timing-pill {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.flagship-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(14, 165, 233, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

[data-theme="light"] .flagship-badge {
  background: rgba(2, 132, 199, 0.1);
  border-color: rgba(2, 132, 199, 0.3);
  color: var(--primary-blue);
}

.service-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.service-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0 0 14px 0;
}

[data-theme="light"] .service-subtitle {
  color: var(--primary-blue);
}

.service-desc {
  font-size: 0.84rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin: 0 0 20px 0;
  flex: 1;
}

.service-features-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.service-feat-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  transition: border-color 0.25s ease;
}

.service-feat-tag.primary {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.service-feat-tag.neutral {
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .service-feat-tag.primary {
  color: var(--primary-blue);
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .service-feat-tag.neutral {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.service-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .service-card-foot {
  border-top-color: #E2E8F0;
}

.service-price-col {
  display: flex;
  flex-direction: column;
}

.price-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #64748B;
}

.price-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.service-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Tech Architecture Deep Dive (Сетка стека) */
.tech-architecture-box {
  margin-top: 56px;
  background: rgba(8, 15, 34, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  padding: 36px 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

[data-theme="light"] .tech-architecture-box {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.07);
}

.tech-arch-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .tech-arch-head {
  border-bottom-color: #E2E8F0;
}

.tech-arch-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.tech-arch-sub {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin: 0;
}

.independent-stack-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.independent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

[data-theme="light"] .independent-stack-pill {
  color: #059669;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.3);
}

.tech-layers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.tech-layer-col {
  background: #040914;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.tech-layer-col:hover {
  border-color: rgba(56, 189, 248, 0.3);
  transform: translateY(-2px);
}

[data-theme="light"] .tech-layer-col {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

[data-theme="light"] .tech-layer-col:hover {
  border-color: var(--primary-blue);
}

.layer-col-head {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
  padding: 10px 16px;
  background: #0a1428;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.layer-col-head.green {
  color: #34d399;
}

.layer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.layer-dot.cyan {
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}

.layer-dot.green {
  background: #10b981;
  box-shadow: 0 0 6px #10b981;
}

[data-theme="light"] .layer-col-head {
  background: #EDF2F7;
  color: var(--primary-blue);
  border-bottom-color: #E2E8F0;
}

[data-theme="light"] .layer-col-head.green {
  color: #059669;
}

.tech-items-stack {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tech-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
}

.tech-role {
  font-size: 0.71rem;
  color: #64748B;
  line-height: 1.35;
}

/* 3 Core Tech Benefits (Что это дает бизнесу) */
.tech-benefits-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 32px;
  padding: 24px 28px;
  background: #040813;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  position: relative;
}

[data-theme="light"] .tech-benefits-row {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.tech-benefit-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  position: relative;
}

.tech-benefit-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.06);
}

[data-theme="light"] .tech-benefit-item:not(:last-child)::after {
  background: #E2E8F0;
}

.benefit-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.benefit-icon-box.green {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

[data-theme="light"] .benefit-icon-box {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: var(--primary-blue);
}

[data-theme="light"] .benefit-icon-box.green {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.25);
  color: #059669;
}

.currency-symbol {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.benefit-content {
  flex: 1;
}

.benefit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.benefit-desc {
  font-size: 0.77rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0;
}

.benefit-savings {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #34d399;
  margin-top: 4px;
}

[data-theme="light"] .benefit-savings {
  color: #059669;
}

/* ==========================================================================
   BLOCK 8: Iron Guarantees & Zero-Risk (.section-guarantees) — High-Tech Clean
   ========================================================================== */
.section-guarantees {
  padding: 110px 0;
  position: relative;
  background: transparent;
}

[data-theme="light"] .section-guarantees {
  background: transparent;
}

.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.guarantee-card {
  background: #080f20;
  border: 1px solid rgba(56, 189, 248, 0.22);
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.guarantee-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.08) 0%, transparent 80%);
  pointer-events: none;
}

.guarantee-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 18px 40px rgba(2, 132, 199, 0.22);
}

.guarantee-card.green-card {
  border-color: rgba(52, 211, 153, 0.3);
}

.guarantee-card.green-card::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 80%);
}

.guarantee-card.green-card:hover {
  border-color: rgba(52, 211, 153, 0.65);
  box-shadow: 0 18px 40px rgba(16, 185, 129, 0.2);
}

[data-theme="light"] .guarantee-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .guarantee-card::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.05) 0%, transparent 80%);
}

[data-theme="light"] .guarantee-card:hover {
  border-color: var(--accent-cyan);
  box-shadow: 0 16px 36px rgba(14, 165, 233, 0.12);
}

[data-theme="light"] .guarantee-card.green-card {
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .guarantee-card.green-card:hover {
  border-color: var(--accent-green);
  box-shadow: 0 16px 36px rgba(16, 185, 129, 0.14);
}

/* Card Header: Icon & Top Badge */
.guarantee-card .guarantee-badge {
  position: absolute;
  top: 28px;
  right: 28px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}

.guarantee-card .guarantee-badge.green {
  color: #34d399;
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .guarantee-card .guarantee-badge {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}

[data-theme="light"] .guarantee-card .guarantee-badge.green {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}

.guarantee-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #040914;
  border: 1px solid rgba(56, 189, 248, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  margin-bottom: 22px;
}

.guarantee-icon.green {
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

[data-theme="light"] .guarantee-icon {
  background: #F1F5F9;
  border-color: #CBD5E1;
}

.guarantee-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 4px 0;
}

[data-theme="light"] .guarantee-title {
  color: #0F172A;
}

.guarantee-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin: 0 0 16px 0;
}

.guarantee-subtitle.green {
  color: #34d399;
}

[data-theme="light"] .guarantee-subtitle {
  color: #0284C7;
}

[data-theme="light"] .guarantee-subtitle.green {
  color: #059669;
}

.guarantee-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 24px 0;
}

[data-theme="light"] .guarantee-desc {
  color: #64748B;
}

/* Features checklist inside cards */
.guarantee-features-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
}

.g-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.g-feature-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

[data-theme="light"] .g-feature-check {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.g-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.g-feature-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
}

[data-theme="light"] .g-feature-name {
  color: #0F172A;
}

.g-feature-sub {
  font-size: 0.74rem;
  color: #94A3B8;
  line-height: 1.4;
}

[data-theme="light"] .g-feature-sub {
  color: #64748B;
}

/* Card bottom badge */
.guarantee-footer {
  margin-top: auto;
  background: #040914;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

[data-theme="light"] .guarantee-footer {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.g-foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  flex-shrink: 0;
}

.g-foot-dot.cyan {
  background: #38bdf8;
}

.g-foot-dot.emerald {
  background: #10b981;
}

.g-foot-title {
  font-size: 0.76rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 2px;
}

[data-theme="light"] .g-foot-title {
  color: #1E293B;
}

.g-foot-sub {
  font-size: 0.72rem;
  color: #64748B;
}

.g-foot-sub.green {
  color: #34d399;
  font-weight: 600;
}

[data-theme="light"] .g-foot-sub.green {
  color: #059669;
}

/* Early Clients Flagship Banner */
.early-clients-banner {
  margin-top: 48px;
  background: #06121e;
  border: 1.5px solid rgba(52, 211, 153, 0.4);
  border-radius: 20px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.early-clients-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.12) 0%, transparent 80%);
  pointer-events: none;
}

[data-theme="light"] .early-clients-banner {
  background: #FFFFFF;
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] .early-clients-banner::before {
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 80%);
}

.banner-left-content {
  flex: 1;
  position: relative;
  z-index: 1;
}

.early-badge {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
}

.early-badge .badge-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

[data-theme="light"] .early-badge {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .early-badge .badge-dot {
  background: #059669;
  box-shadow: 0 0 8px #059669;
}

.early-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

[data-theme="light"] .early-title {
  color: #0F172A;
}

.early-desc {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0;
}

[data-theme="light"] .early-desc {
  color: #64748B;
}

.early-cta {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .guarantees-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .early-clients-banner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .section-guarantees {
    padding: 70px 0;
  }
  .guarantees-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .early-clients-banner {
    padding: 24px;
    gap: 20px;
  }
  .early-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   BLOCK 7: FAQ & Knowledge Base (.section-faq) — High-Tech Clean Spec
   ========================================================================== */
.section-faq {
  padding: 110px 0;
  position: relative;
  background: transparent;
}

[data-theme="light"] .section-faq {
  background: transparent;
}

/* FAQ Category Filter Tabs & Search Bar */
.faq-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.faq-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.faq-tabs::-webkit-scrollbar {
  display: none;
}

.faq-tab {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: #94A3B8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-tab:hover {
  color: #F8FAFC;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(56, 189, 248, 0.25);
}

.faq-tab.active {
  color: #38BDF8;
  background: rgba(14, 165, 233, 0.15);
  border-color: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.18);
}

[data-theme="light"] .faq-tab {
  background: #FFFFFF;
  color: #64748B;
  border-color: #E2E8F0;
}
[data-theme="light"] .faq-tab:hover {
  color: #0F172A;
  background: #F1F5F9;
}
[data-theme="light"] .faq-tab.active {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.1);
  border-color: #0284C7;
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.12);
}

.faq-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 280px;
}

.faq-search-icon {
  position: absolute;
  left: 14px;
  color: #64748B;
  pointer-events: none;
  transition: color 0.2s ease;
}

.faq-search-input {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  padding: 9px 14px 9px 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #F8FAFC;
  outline: none;
  transition: all 0.25s ease;
}

.faq-search-input:focus {
  border-color: #38BDF8;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.15);
}

.faq-search-input:focus ~ .faq-search-icon {
  color: #38BDF8;
}

[data-theme="light"] .faq-search-input {
  background: #FFFFFF;
  border-color: #E2E8F0;
  color: #0F172A;
}
[data-theme="light"] .faq-search-input:focus {
  background: #FFFFFF;
  border-color: #0284C7;
  box-shadow: 0 0 14px rgba(2, 132, 199, 0.12);
}

/* Two Columns Main Layout */
.faq-main-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 32px;
  align-items: flex-start;
}

/* Left Column: Direct Engineer Help Card (Sticky on scroll) */
.faq-contact-card {
  position: sticky;
  top: 100px;
  background: #080F20;
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  z-index: 10;
}

.faq-contact-card:hover {
  border-color: rgba(56, 189, 248, 0.45);
}

[data-theme="light"] .faq-contact-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.faq-contact-card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.eng-status-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.eng-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #0C172E;
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
}

[data-theme="light"] .eng-icon-box {
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.25);
  color: #0284C7;
}

.eng-status-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eng-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #34D399;
  letter-spacing: 0.3px;
}

.badge-dot.green {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
  display: inline-block;
}

.eng-timing-sub {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

.eng-card-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}
[data-theme="light"] .eng-card-title {
  color: #0F172A;
}

.eng-card-sub {
  font-size: 0.84rem;
  font-weight: 700;
  color: #38BDF8;
  margin-bottom: 14px;
}
[data-theme="light"] .eng-card-sub {
  color: #0284C7;
}

.eng-card-desc {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #94A3B8;
  margin: 0 0 24px 0;
}
[data-theme="light"] .eng-card-desc {
  color: #64748B;
}

.eng-guarantee-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 26px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.eng-guarantee-bullets li {
  font-size: 0.8rem;
  font-weight: 500;
  color: #E2E8F0;
  display: flex;
  align-items: center;
  gap: 10px;
}
[data-theme="light"] .eng-guarantee-bullets li {
  color: #334155;
}

.bullet-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
[data-theme="light"] .bullet-check {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

.lead-tg-btn {
  width: 100%;
  justify-content: center;
  padding: 13px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284C7 0%, #2563EB 100%);
  border: 1px solid rgba(56, 189, 248, 0.35);
  gap: 10px;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.3);
}
.lead-tg-btn:hover {
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.45);
}

.eng-card-contacts {
  margin-top: 16px;
  padding: 12px 14px;
  background: #040914;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.76rem;
}
[data-theme="light"] .eng-card-contacts {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.contact-email {
  font-weight: 700;
  color: #CBD5E1;
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="light"] .contact-email {
  color: #1E293B;
}

.contact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
}

.contact-hours {
  color: #64748B;
  font-weight: 500;
}

.eng-disclaimer {
  margin-top: 14px;
  text-align: center;
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 500;
}

/* Right Column: Accordion */
.faq-accordion-col {
  display: flex;
  flex-direction: column;
}

.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-accordion-item {
  background: rgba(8, 15, 32, 0.95);
  border: 1px solid rgba(56, 189, 248, 0.16);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-accordion-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(10, 18, 38, 0.98);
}

.faq-accordion-item.open {
  background: #081024;
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 8px 28px rgba(2, 132, 199, 0.16);
}

[data-theme="light"] .faq-accordion-item {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
}
[data-theme="light"] .faq-accordion-item:hover {
  border-color: #CBD5E1;
  background: #FFFFFF;
}
[data-theme="light"] .faq-accordion-item.open {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.1);
}

.faq-accordion-item.hidden-faq {
  display: none;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-accordion-item.hidden-faq.revealed {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.faq-accordion-trigger {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  gap: 16px;
  transition: background 0.2s ease;
}

.faq-trigger-left {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.faq-num {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 800;
  color: #38BDF8;
}
[data-theme="light"] .faq-num {
  color: #0284C7;
}

.faq-question {
  font-size: 0.96rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
}
[data-theme="light"] .faq-question {
  color: #0F172A;
}

.faq-trigger-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.faq-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
  white-space: nowrap;
}
.faq-pill.green {
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
}
.faq-pill.cyan {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.faq-pill.neutral {
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="light"] .faq-pill.green {
  color: #059669;
  background: rgba(16, 185, 129, 0.12);
}
[data-theme="light"] .faq-pill.cyan {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.1);
}
[data-theme="light"] .faq-pill.neutral {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.faq-toggle-circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.25s ease;
}

.faq-accordion-item:hover .faq-toggle-circle {
  border-color: rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.08);
}

.faq-accordion-item.open .faq-toggle-circle {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38BDF8;
  color: #38BDF8;
}

[data-theme="light"] .faq-toggle-circle {
  background: #F1F5F9;
  border-color: #E2E8F0;
}
[data-theme="light"] .faq-accordion-item.open .faq-toggle-circle {
  background: rgba(2, 132, 199, 0.12);
  border-color: #0284C7;
  color: #0284C7;
}

.faq-icon-minus,
.faq-icon-plus {
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1;
  position: absolute;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.faq-icon-minus {
  opacity: 0;
  transform: scale(0.6);
  color: #38BDF8;
}
.faq-icon-plus {
  opacity: 1;
  transform: scale(1);
  color: #94A3B8;
}

.faq-accordion-item.open .faq-icon-minus {
  opacity: 1;
  transform: scale(1);
}
.faq-accordion-item.open .faq-icon-plus {
  opacity: 0;
  transform: scale(0.6);
}

.faq-accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease;
  padding: 0 24px;
}

.faq-accordion-item.open .faq-accordion-body {
  max-height: 500px;
  padding: 0 24px 22px 24px;
}

.faq-body-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 16px;
}
[data-theme="light"] .faq-body-divider {
  background: #E2E8F0;
}

.faq-answer-text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #94A3B8;
  margin: 0 0 16px 0;
}
[data-theme="light"] .faq-answer-text {
  color: #475569;
}

.faq-body-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.f-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 10px;
  border-radius: 999px;
}
.f-tag.green {
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.28);
}
.f-tag.cyan {
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.28);
}

[data-theme="light"] .f-tag {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}
[data-theme="light"] .f-tag.green {
  color: #059669;
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.25);
}
[data-theme="light"] .f-tag.cyan {
  color: #0284C7;
  background: rgba(2, 132, 199, 0.08);
  border-color: rgba(2, 132, 199, 0.2);
}

/* Expand Bar */
.faq-expand-bar {
  margin-top: 18px;
  padding: 16px 20px;
  background: #060C1C;
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
[data-theme="light"] .faq-expand-bar {
  background: #FFFFFF;
  border-color: #CBD5E1;
}

.faq-counter-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #94A3B8;
}
[data-theme="light"] .faq-counter-box {
  color: #64748B;
}

.faq-counter-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38BDF8;
}

.faq-counter-box strong {
  color: #FFFFFF;
}
[data-theme="light"] .faq-counter-box strong {
  color: #0F172A;
}

.btn-show-more-faq {
  background: #0C172E;
  border: 1.2px solid rgba(56, 189, 248, 0.4);
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-show-more-faq:hover {
  background: rgba(14, 165, 233, 0.2);
  border-color: #38BDF8;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

[data-theme="light"] .btn-show-more-faq {
  background: #F1F5F9;
  border-color: #CBD5E1;
  color: #0F172A;
}
[data-theme="light"] .btn-show-more-faq:hover {
  background: #E2E8F0;
  border-color: #0284C7;
  color: #0284C7;
}

.btn-chevron-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  transition: transform 0.25s ease;
}
.btn-show-more-faq:hover .btn-chevron-circle {
  transform: translateY(2px);
}
.btn-show-more-faq.expanded .btn-chevron-circle {
  transform: rotate(180deg);
}

/* Custom Architecture Consultation Hint */
.faq-consultation-hint {
  margin-top: 14px;
  padding: 14px 20px;
  background: #030712;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
[data-theme="light"] .faq-consultation-hint {
  background: #F8FAFC;
  border-color: #E2E8F0;
}

.hint-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: #64748B;
}

.hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
  flex-shrink: 0;
}

.hint-link {
  font-size: 0.78rem;
  font-weight: 700;
  color: #38BDF8;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.hint-link:hover {
  color: #7DD3FC;
  text-decoration: underline;
}
[data-theme="light"] .hint-link {
  color: #0284C7;
}

/* FAQ Bottom NDA & Contract Notice Strip */
.faq-contract-strip {
  margin-top: 48px;
  padding: 18px 24px;
  background: #040813;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
[data-theme="light"] .faq-contract-strip {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
}

.strip-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #F8FAFC;
}
[data-theme="light"] .strip-left {
  color: #0F172A;
}

.strip-shield-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #38BDF8;
  flex-shrink: 0;
}
[data-theme="light"] .strip-shield-icon {
  background: rgba(2, 132, 199, 0.1);
  color: #0284C7;
  border-color: rgba(2, 132, 199, 0.25);
}

.strip-link {
  font-size: 0.82rem;
  font-weight: 700;
  color: #38BDF8;
  text-decoration: none;
  transition: all 0.2s ease;
}
.strip-link:hover {
  color: #7DD3FC;
  transform: translateX(3px);
}
[data-theme="light"] .strip-link {
  color: #0284C7;
}

/* Responsive Breakpoints for Block 7 */
@media (max-width: 1024px) {
  .faq-main-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: stretch;
  }
  .faq-contact-card {
    position: static;
    top: auto;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section-faq {
    padding: 70px 0;
  }
  .faq-nav-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .faq-search-box {
    width: 100%;
    min-width: unset;
  }
  .faq-tabs {
    width: 100%;
  }
  .faq-expand-bar {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .btn-show-more-faq {
    justify-content: center;
  }
  .faq-contract-strip {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ==========================================================================
   BLOCK 9: About Us & Engineering Team (.section-team)
   ========================================================================== */
.section-team {
  padding: 100px 0 60px;
  position: relative;
  background: transparent;
}

[data-theme="light"] .section-team {
  background: transparent;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.engineer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.engineer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.2);
}

.eng-card-top {
  display: flex;
  gap: 24px;
  margin-bottom: 24px;
}

.eng-photo-wrapper {
  width: 140px;
  height: 155px;
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  background: #0B132B;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.eng-status-indicator {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #030712;
  border: 1.5px solid rgba(56, 189, 248, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.eng-status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 2s infinite ease-in-out;
}

[data-theme="light"] .eng-status-indicator {
  background: #ffffff;
  border-color: #cbd5e1;
}

.eng-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  transition: transform 0.4s ease;
}

.engineer-card:hover .eng-photo {
  transform: scale(1.05);
}

.eng-photo-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(2, 6, 23, 0.8) 100%);
  pointer-events: none;
}

.eng-bio-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.eng-role-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  align-self: flex-start;
  margin-bottom: 8px;
}

.eng-role-badge.blue {
  color: #60A5FA;
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
}

.eng-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
}

.eng-title-sub {
  font-size: 0.86rem;
  font-weight: 600;
  color: #CBD5E1;
  margin-bottom: 12px;
}

[data-theme="light"] .eng-title-sub {
  color: #475569;
}

.eng-facts {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eng-fact {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.eng-fact.green {
  color: var(--accent-green);
  font-weight: 600;
}

.eng-scope-box {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 20px;
}

[data-theme="light"] .eng-scope-box {
  background: #F1F5F9;
  border-color: #E2E8F0;
}

.scope-lbl {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: #64748B;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.scope-text {
  font-size: 0.82rem;
  line-height: 1.5;
  color: #E2E8F0;
  margin: 0;
}

[data-theme="light"] .scope-text {
  color: #334155;
}

.eng-skills-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: #CBD5E1;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: 4px;
}

.skill-tag.accent {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.25);
}

[data-theme="light"] .skill-tag {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

[data-theme="light"] .engineer-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.05);
}

[data-theme="light"] .engineer-card:hover {
  border-color: rgba(2, 132, 199, 0.4);
  box-shadow: 0 16px 36px rgba(2, 132, 199, 0.12);
}

[data-theme="light"] .eng-photo-wrapper {
  background: #F8FAFC;
  border-color: #E2E8F0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

[data-theme="light"] .eng-photo-glare {
  background: linear-gradient(180deg, transparent 75%, rgba(248, 250, 252, 0.45) 100%);
}

.eng-quote-box {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.05) 0%, rgba(15, 23, 42, 0.4) 100%);
  border-left: 3px solid var(--accent-cyan);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 16px;
  display: flex;
  gap: 12px;
  margin-top: auto;
}

[data-theme="light"] .eng-quote-box {
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
  border-left: 3px solid var(--accent-blue);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(2, 132, 199, 0.06);
}

.quote-sign {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent-cyan);
  line-height: 1;
}

[data-theme="light"] .quote-sign {
  color: var(--accent-blue);
}

.quote-header {
  font-size: 0.78rem;
  font-weight: 700;
  color: #CBD5E1;
  margin-bottom: 4px;
}

[data-theme="light"] .quote-header {
  color: #0F172A;
  font-weight: 700;
}

.quote-text {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
}

[data-theme="light"] .quote-text {
  color: #334155;
  text-shadow: none;
}

/* Team Single Point Strip */
.team-contact-strip {
  margin-top: 48px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(2, 6, 23, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .team-contact-strip {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: var(--shadow-md);
}

.strip-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 8px 0;
}

.strip-desc {
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin: 0;
}

.strip-pills-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.strip-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #CBD5E1;
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.strip-pill.green {
  color: var(--accent-green);
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.3);
}

[data-theme="light"] .strip-pill {
  color: #475569;
  background: #F1F5F9;
  border-color: #E2E8F0;
}

/* ==========================================================================
   RESPONSIVE STYLES FOR BLOCKS 5 - 9
   ========================================================================== */
@media (max-width: 1200px) {
  .process-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tech-layers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .guarantees-grid {
    grid-template-columns: 1fr;
  }

  .faq-layout-grid {
    grid-template-columns: 1fr;
  }

  .team-cards-grid {
    grid-template-columns: 1fr;
  }

  .tech-benefits-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .process-steps-grid {
    grid-template-columns: 1fr;
  }

  .process-step-card {
    min-height: auto;
  }

  .process-guarantee-strip {
    flex-direction: column;
    align-items: flex-start;
  }

  .tech-architecture-box {
    padding: 24px;
  }

  .tech-layers-grid {
    grid-template-columns: 1fr;
  }

  .early-clients-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .eng-card-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .eng-role-badge {
    align-self: center;
  }
}


/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: transparent;
  padding: 60px 0 36px;
  margin-top: 0;
  position: relative;
  z-index: 1;
}

[data-theme="light"] .site-footer {
  background: transparent;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-nav a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-nav a:hover {
  color: var(--accent-cyan);
}

/* ==========================================================================
   Scroll Animations & Media Queries
   ========================================================================== */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .calc-grid {
    grid-template-columns: 1fr;
  }

  .calc-summary-panel {
    position: static;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive Header Navigation Breakpoint (up to 1105px) */
@media (max-width: 1105px) {
  .nav-links, .header-cta-btn {
    display: none !important;
  }

  .burger-btn {
    display: flex !important;
  }

  .header-container {
    padding: 0 16px;
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.3rem;
  }

  .hero-title .price-tag {
    font-size: 2.1rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .section-title {
    font-size: 2.1rem;
  }

  .step-options-grid {
    grid-template-columns: 1fr;
  }

  /* Footer Mobile Refinement (360px - 480px) */
  .footer-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    max-width: 100%;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    width: 100%;
  }

  .footer-nav a {
    font-size: 0.88rem;
    padding: 6px 0;
    word-break: break-word;
  }

  .footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    font-size: 0.8rem;
    line-height: 1.45;
    word-break: break-word;
  }

  /* FAQ Accordion Mobile Tuning (360px - 480px) */
  .section-faq {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .faq-main-layout {
    width: 100%;
    max-width: 100%;
  }

  .faq-tabs {
    max-width: 100%;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }

  .faq-accordion-list {
    width: 100%;
    max-width: 100%;
  }

  .faq-accordion-item {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .faq-accordion-trigger {
    padding: 14px 12px !important;
    gap: 8px !important;
  }

  .faq-trigger-left {
    gap: 10px !important;
    min-width: 0;
  }

  .faq-question {
    font-size: 0.88rem !important;
    word-break: break-word;
  }

  .faq-trigger-right {
    gap: 8px !important;
  }

  .faq-pill {
    display: none;
  }
}

/* ==========================================================================
   Comprehensive Responsive & Overflow-X Protection (All Screens 360px - 1920px+)
   ========================================================================== */

/* 1. Global Overflow Prevention */
html, body {
  overflow-x: hidden !important;
  width: 100%;
  max-width: 100vw;
  box-sizing: border-box;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Responsive Padding & Layout on Mobile (<= 768px) */
@media (max-width: 768px) {
  .container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .section-hero,
  .section-features,
  .section-calc,
  .section-cases,
  .section-process,
  .section-stack,
  .section-faq,
  .section-guarantees,
  .section-team {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  /* Typography scale */
  .hero-title,
  h1 {
    font-size: clamp(26px, 7.5vw, 36px) !important;
    line-height: 1.22 !important;
    word-break: break-word;
  }

  .section-title,
  h2 {
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.25 !important;
    word-break: break-word;
  }

  .section-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
  }

  /* Single Column Stacking */
  .grid,
  .hero-grid,
  .calc-grid,
  .features-grid,
  .cases-grid,
  .process-grid,
  .team-cards-grid,
  .guarantees-grid,
  .tech-layers-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  /* Touch-friendly Minimum Tap Targets */
  .btn,
  button,
  .calc-option,
  .input-field,
  .faq-tab,
  .theme-toggle-btn {
    min-height: 48px;
  }

  .faq-accordion-trigger {
    padding: 16px 14px !important;
    min-height: 52px;
  }

  /* Full-width interactive banners & CTA */
  .cases-bottom-banner,
  .guarantees-banner,
  .team-contact-strip,
  .process-standards-panel {
    flex-direction: column !important;
    align-items: stretch !important;
    text-align: center;
    gap: 20px;
    padding: 24px 18px !important;
  }

  .cases-bottom-banner .banner-cta,
  .guarantees-banner .banner-cta-col,
  .team-contact-strip .strip-btn-col {
    width: 100%;
  }

  .cases-bottom-banner .btn,
  .guarantees-banner .btn,
  .team-contact-strip .btn {
    width: 100% !important;
  }
}

/* 3. Balanced Grid on Tablets (769px - 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
  .container {
    padding-left: 24px;
    padding-right: 24px;
  }

  .cases-grid,
  .team-cards-grid,
  .guarantees-grid,
  .features-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px;
  }

  .tech-layers-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .section-hero,
  .section-features,
  .section-calc,
  .section-cases,
  .section-process,
  .section-stack,
  .section-faq,
  .section-guarantees,
  .section-team {
    padding-top: 72px;
    padding-bottom: 72px;
  }
}

/* 4. Large screens & Monitors (>= 1440px) */
@media (min-width: 1440px) {
  .container {
    max-width: 1320px;
  }
}
