/* ============================================
   NovaForge v4 — Bento Design System
   ============================================ */

/* --- Variables --- */
:root {
  --bg-deep: #080c18;
  --bg-primary: #0c1126;
  --bg-secondary: #111827;
  --bg-card: rgba(17, 24, 39, 0.6);
  --bg-card-solid: #111827;
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;
  --accent-amber: #f59e0b;
  --accent-green: #22c55e;
  --accent-rose: #f43f5e;
  --gradient-main: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #f59e0b 100%);
  --gradient-hero: linear-gradient(180deg, #080c18 0%, #0c1126 40%, #111827 100%);
  --gradient-card: linear-gradient(180deg, rgba(59, 130, 246, 0.03) 0%, transparent 100%);
  --glow-blue: 0 0 25px rgba(59, 130, 246, 0.12);
  --glow-purple: 0 0 30px rgba(139, 92, 246, 0.1);
  --border-color: rgba(59, 130, 246, 0.1);
  --border-hover: rgba(59, 130, 246, 0.25);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: var(--font-sans);
  background: var(--bg-deep);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-purple); }

::selection { background: rgba(59, 130, 246, 0.3); color: white; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.section { padding: 100px 0; position: relative; }

/* --- Section headers --- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 16px;
  border: 1px solid rgba(59, 130, 246, 0.12);
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

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

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 540px;
  line-height: 1.7;
  margin: 0 auto;
}

/* --- Background elements --- */

/* Subtle grid */
.grid-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, black 40%, transparent 70%);
}

/* Glow orb wrappers — parallax moves the wrapper via translate,
   while the CSS animation (transform) on the child orb continues independently */
.glow-orb-wrap {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  will-change: translate;
}

/* Ambient glow */
.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 600px; height: 600px;
  background: rgba(59, 130, 246, 0.04);
  top: -200px; right: -150px;
  animation: orbFloat 30s ease-in-out infinite;
}

.glow-orb-2 {
  width: 500px; height: 500px;
  background: rgba(139, 92, 246, 0.03);
  bottom: -200px; left: -100px;
  animation: orbFloat 25s ease-in-out infinite reverse;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

/* Simplified particles canvas */
#particle-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

/* --- Hero 3D Container --- */
#hero-3d-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.7;
  /* The canvas rendered by Three.js fills this */
}

#hero-3d-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  outline: none;
}

.hero-visual {
  position: relative;
}

@media (max-width: 1024px) {
  #hero-3d-container { display: none; }
}

/* --- Navbar --- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary) !important;
  letter-spacing: -0.3px;
}

.navbar-brand .logo-icon {
  width: 34px; height: 34px;
  background: var(--gradient-main);
  border-radius: 10px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1rem;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.navbar-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.navbar-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-main);
  transition: 0.3s ease;
  border-radius: 2px;
}

.navbar-links a:hover { color: var(--text-primary); }
.navbar-links a:hover::after { width: 100%; }

.navbar-cta {
  padding: 9px 22px;
  background: var(--gradient-main);
  color: white !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.82rem;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
}

.navbar-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(59, 130, 246, 0.35); }

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px; cursor: pointer;
  padding: 4px;
  background: none; border: none;
}

.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none !important;
}

.btn-primary {
  background: var(--gradient-main);
  color: white !important;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(59, 130, 246, 0.35); }

.btn-secondary {
  background: transparent;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.05);
  transform: translateY(-2px);
}

/* --- HERO: Split Screen --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  background: var(--gradient-hero);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Hero Left */
.hero-content { position: relative; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.12);
  padding: 5px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-badge .dot {
  width: 7px; height: 7px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 2.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 {
  font-size: 3.4rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -1px;
}

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

.hero h1 .typing-cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  background: var(--accent-blue);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: text-bottom;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Hero Stats bar */
.hero-stats-bar {
  display: flex;
  gap: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border-color);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-item .stat-number {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-item .stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 400;
}

/* Hero Right — Code Block */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.code-block {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  width: 100%;
  max-width: 420px;
  backdrop-filter: blur(10px);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  position: relative;
  overflow: hidden;
}

.code-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  animation: scanLine 3s ease-in-out infinite;
}

@keyframes scanLine {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

.code-dots {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
}

.code-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
}

.code-dot:nth-child(1) { background: #ef4444; }
.code-dot:nth-child(2) { background: #f59e0b; }
.code-dot:nth-child(3) { background: #22c55e; }

.code-line {
  color: var(--text-muted);
  white-space: pre;
}

.code-line .keyword { color: #818cf8; }
.code-line .string { color: #34d399; }
.code-line .function { color: #60a5fa; }
.code-line .number { color: #fbbf24; }
.code-line .comment { color: #6b7280; font-style: italic; }
.code-line .highlight-blue { color: #60a5fa; }
.code-line .highlight-green { color: #34d399; }
.code-line .highlight-amber { color: #fbbf24; }

.code-block .cursor-blink {
  display: inline-block;
  width: 8px;
  height: 1.1em;
  background: var(--accent-blue);
  animation: blink 0.8s step-end infinite;
  vertical-align: text-bottom;
  margin-left: 4px;
}

/* Floating badges on hero right */
.hero-floating-badge {
  position: absolute;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  animation: floatBadge 5s ease-in-out infinite;
  white-space: nowrap;
}

.hero-floating-badge:nth-child(2) {
  top: -10px; right: -20px;
  animation-delay: 0s;
}

.hero-floating-badge:nth-child(3) {
  bottom: 30px; left: -30px;
  animation-delay: 2s;
}

@keyframes floatBadge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* --- BENTO GRID --- */
.bento-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: translate 0.35s ease, var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card:hover::after { transform: scaleX(1); }

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.04);
}

.bento-card.featured {
  border-color: rgba(59, 130, 246, 0.15);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, var(--bg-card) 100%);
}

.bento-card.featured:hover {
  border-color: var(--border-hover);
  box-shadow: 0 12px 48px rgba(59, 130, 246, 0.06),
              0 0 0 1px rgba(59, 130, 246, 0.08),
              inset 0 0 30px rgba(59, 130, 246, 0.02);
}

.bento-card.full-width {
  grid-column: 1 / -1;
}

.bento-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
  position: relative;
}

.bento-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); }
.bento-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); }
.bento-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); }
.bento-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); }
.bento-icon.rose { background: rgba(244, 63, 94, 0.1); color: var(--accent-rose); }

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.bento-card .bento-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.bento-card .bento-tag {
  font-size: 0.66rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(148, 163, 184, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

/* Right column layout (small cards) */
.bento-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.bento-card-sm {
  flex: 1;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: translate 0.35s ease, var(--transition);
  position: relative;
  overflow: hidden;
}

.bento-card-sm::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.bento-card-sm:hover::after { transform: scaleX(1); }

.bento-card-sm:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.04);
}

.bento-card-sm .bento-icon {
  width: 36px; height: 36px;
  font-size: 1rem;
  margin-bottom: 12px;
}

.bento-card-sm h3 { font-size: 0.95rem; margin-bottom: 6px; }
.bento-card-sm p { font-size: 0.8rem; }

/* --- Process Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: 16px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple), transparent);
  opacity: 0.3;
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  position: relative;
}

.timeline-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-blue);
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-number {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.1);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.timeline-content {
  flex: 1;
  padding-top: 8px;
}

.timeline-content h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.pricing-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: translate 0.35s ease, var(--transition);
  position: relative;
}

.pricing-card.featured {
  border-color: rgba(59, 130, 246, 0.2);
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, var(--bg-card) 100%);
  transform: scale(1.03);
}

.pricing-card.featured .pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-main);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.3);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.04);
}

.pricing-card.featured:hover { transform: scale(1.03) translateY(-4px); box-shadow: 0 16px 48px rgba(59, 130, 246, 0.06); }

.pricing-header { margin-bottom: 20px; }
.pricing-header h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 6px; }
.pricing-header p { font-size: 0.78rem; color: var(--text-muted); }

.pricing-amount {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-amount .price {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pricing-amount .period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}

.pricing-features { list-style: none; margin-bottom: 24px; }

.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  padding: 6px 0;
}

.pricing-features li .check {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
}

.pricing-card .btn { width: 100%; justify-content: center; }

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.pricing-note a { color: var(--accent-blue); }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.feature-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  text-align: center;
  transition: translate 0.35s ease, var(--transition);
}

.feature-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.03);
}

.feature-icon { font-size: 1.6rem; margin-bottom: 14px; }
.feature-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 8px; }
.feature-item p { font-size: 0.78rem; color: var(--text-muted); line-height: 1.6; }

/* --- Projects --- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.project-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: translate 0.35s ease, var(--transition);
}

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.04);
}

.project-img {
  height: 140px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(139, 92, 246, 0.2));
  display: flex;
  align-items: center; justify-content: center;
  font-size: 2.6rem;
  position: relative;
  transition: box-shadow 0.4s ease;
}

.project-card:hover .project-img {
  box-shadow: inset 0 0 30px rgba(59, 130, 246, 0.1);
}

.project-body { padding: 20px; }

.project-tag {
  display: inline-block;
  font-size: 0.65rem; font-weight: 500;
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 8px;
}

.project-body h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 8px; }
.project-body p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.6; }

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.testimonial-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: translate 0.35s ease, var(--transition);
}

.testimonial-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.03);
}

.testimonial-stars { color: var(--accent-amber); font-size: 0.8rem; margin-bottom: 12px; letter-spacing: 2px; }

.testimonial-text {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  font-size: 0.82rem;
}

.testimonial-name { font-size: 0.82rem; font-weight: 600; }
.testimonial-role { font-size: 0.7rem; color: var(--text-muted); }

/* --- FAQ --- */
.faq-list {
  max-width: 680px;
  margin: 16px auto 0;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: var(--transition);
}

.faq-question:hover { color: var(--accent-blue); }

.faq-icon {
  font-size: 0.78rem;
  color: var(--accent-blue);
  transition: var(--transition);
  flex-shrink: 0;
}

.faq-item.active .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  padding: 0 20px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

.faq-answer p { font-size: 0.83rem; color: var(--text-secondary); line-height: 1.7; }

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 16px;
}

.contact-info h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 14px; }
.contact-info > p { color: var(--text-secondary); line-height: 1.7; margin-bottom: 28px; }

.contact-methods { display: flex; flex-direction: column; gap: 16px; }

.contact-method {
  display: flex; align-items: center; gap: 14px;
}

.cm-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(59, 130, 246, 0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: var(--accent-blue);
  flex-shrink: 0;
}

.cm-label { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 2px; }
.cm-value { font-size: 0.88rem; color: var(--text-primary); font-weight: 500; }

.contact-form {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 6px; }

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.form-group textarea { min-height: 110px; resize: vertical; }
.form-group select option { background: var(--bg-secondary); color: var(--text-primary); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* --- Tech Stack Section --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.tech-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: translate 0.35s ease, var(--transition);
  position: relative;
  overflow: hidden;
}

.tech-item::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-blue), transparent);
  transform: scaleX(0);
  transition: 0.4s ease;
}

.tech-item:hover::before { transform: scaleX(1); }

.tech-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.04);
}

.tech-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
  transition: var(--transition);
  animation: techFloat 3s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.3s);
}

.tech-item:nth-child(1) .tech-icon { --i: 0; }
.tech-item:nth-child(2) .tech-icon { --i: 1; }
.tech-item:nth-child(3) .tech-icon { --i: 2; }
.tech-item:nth-child(4) .tech-icon { --i: 3; }
.tech-item:nth-child(5) .tech-icon { --i: 0.5; }
.tech-item:nth-child(6) .tech-icon { --i: 1.5; }
.tech-item:nth-child(7) .tech-icon { --i: 2.5; }
.tech-item:nth-child(8) .tech-icon { --i: 3.5; }
.tech-item:nth-child(9) .tech-icon { --i: 1; }
.tech-item:nth-child(10) .tech-icon { --i: 2; }
.tech-item:nth-child(11) .tech-icon { --i: 0.8; }
.tech-item:nth-child(12) .tech-icon { --i: 1.8; }

.tech-item:hover .tech-icon {
  animation: techPulse 0.5s ease-in-out;
  transform: scale(1.3);
}

@keyframes techFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes techPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3) rotate(8deg); }
  100% { transform: scale(1.3) rotate(0); }
}

.tech-item .tech-name {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.tech-item .tech-category {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* --- Calculator Section --- */
.calculator-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  max-width: 560px;
  margin: 32px auto 0;
}

.calc-row {
  margin-bottom: 20px;
}

.calc-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.calc-row select,
.calc-row input[type="range"] {
  width: 100%;
}

.calc-row select {
  padding: 11px 14px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  outline: none;
  transition: var(--transition);
  appearance: none;
  cursor: pointer;
}

.calc-row select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.calc-row select option { background: var(--bg-secondary); }

.calc-row input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: var(--border-color);
  outline: none;
  transition: var(--transition);
}

.calc-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient-main);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.calc-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--gradient-main);
  cursor: pointer;
  border: none;
}

.calc-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(59, 130, 246, 0.04);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: var(--radius-sm);
  margin-top: 24px;
}

.calc-result .calc-price {
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.calc-result .calc-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.calc-row .range-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  background: var(--gradient-hero);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 28px;
  font-size: 1rem;
}

.cta-section .btn {
  font-size: 0.95rem;
  padding: 16px 40px;
}

/* --- Footer --- */
.footer { border-top: 1px solid var(--border-color); padding: 56px 0 28px; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 36px;
}

.footer-brand h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.7; max-width: 300px; }

.footer-col h4 {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { font-size: 0.83rem; color: var(--text-secondary); }
.footer-col ul a:hover { color: var(--accent-blue); }

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

.footer-bottom .social-links { display: flex; gap: 14px; }
.footer-bottom .social-links a { color: var(--text-muted); font-size: 1rem; }
.footer-bottom .social-links a:hover { color: var(--accent-blue); }

/* ============================================
   MODAL OVERLAY
   ============================================ */

.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 24, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.modal-overlay.active {
  display: flex;
  opacity: 1;
}

.modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  max-width: 680px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.35s ease;
  opacity: 0;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.modal-overlay.active .modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.modal::-webkit-scrollbar { width: 6px; }
.modal::-webkit-scrollbar-track { background: transparent; }
.modal::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; }

.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
  z-index: 10;
  line-height: 1;
}

.modal-close:hover {
  background: rgba(244, 63, 94, 0.1);
  border-color: var(--accent-rose);
  color: var(--accent-rose);
  transform: rotate(90deg);
}

.modal-header {
  padding: 32px 32px 0;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.modal-header .modal-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
}

.modal-header .modal-icon.blue { background: rgba(59, 130, 246, 0.12); color: var(--accent-blue); }
.modal-header .modal-icon.purple { background: rgba(139, 92, 246, 0.12); color: var(--accent-purple); }
.modal-header .modal-icon.amber { background: rgba(245, 158, 11, 0.12); color: var(--accent-amber); }
.modal-header .modal-icon.green { background: rgba(34, 197, 94, 0.12); color: var(--accent-green); }
.modal-header .modal-icon.rose { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.modal-header .modal-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.modal-body {
  padding: 20px 32px 32px;
}

.modal-body p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 16px;
}

.modal-body h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 10px;
  margin-top: 24px;
}

.modal-body h4:first-child { margin-top: 0; }

.modal-body ul {
  list-style: none;
  margin-bottom: 16px;
}

.modal-body ul li {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 5px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.modal-body ul li::before {
  content: '✓';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem;
  flex-shrink: 0;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 16px 0;
}

.modal-tags span {
  font-size: 0.68rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 100px;
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 12px 28px;
  background: var(--gradient-main);
  color: white !important;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
  transition: var(--transition);
}

.modal-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.modal-price {
  display: inline-block;
  margin-top: 16px;
  padding: 8px 20px;
  background: rgba(59, 130, 246, 0.06);
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-blue);
}

.modal-data {
  display: none;
}

/* ============================================
   TRUST & CONVERSION — New Sections
   ============================================ */

/* --- Live Counter Bar --- */
.live-counter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(34, 197, 94, 0.06);
  border: 1px solid rgba(34, 197, 94, 0.12);
  border-radius: 100px;
  font-size: 0.78rem;
  color: var(--accent-green);
  margin-bottom: 24px;
  animation: pulseGlow 3s ease-in-out infinite;
}

.live-counter .pulse-dot {
  width: 6px; height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
  50% { box-shadow: 0 0 12px 0 rgba(34, 197, 94, 0.1); }
}

/* --- Contact Form --- */
.contact-form-wrap {
  max-width: 560px;
  margin: 24px auto 0;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
}

.contact-form-wrap .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form-wrap .form-group {
  margin-bottom: 16px;
  text-align: left;
}

.contact-form-wrap .form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.contact-form-wrap .form-group input,
.contact-form-wrap .form-group textarea,
.contact-form-wrap .form-group select {
  width: 100%;
  padding: 11px 14px;
  background: rgba(148, 163, 184, 0.04);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}

.contact-form-wrap .form-group input:focus,
.contact-form-wrap .form-group textarea:focus,
.contact-form-wrap .form-group select:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.08);
}

.contact-form-wrap .form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.contact-form-wrap .form-group select option {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

.contact-form-wrap .btn {
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: 0.95rem;
}

.contact-form-wrap .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* --- Form Status Animation (premium) --- */
.form-status {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-status.active {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.form-status .status-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.6rem;
}

.form-status .status-icon.sending {
  background: rgba(59, 130, 246, 0.1);
}

@keyframes spin {
  100% { transform: rotate(360deg); }
}

/* Premium SVG spinner */
.spinner-ring {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(59, 130, 246, 0.1);
  border-top-color: var(--accent-blue);
  animation: spin 0.8s linear infinite;
}

.form-status .status-icon.sent {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.form-status .status-icon.error {
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent-rose);
}

@keyframes popIn {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

.form-status .status-title {
  font-size: 1.1rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.form-status.active .status-title {
  opacity: 1;
  transform: translateY(0);
}

.form-status .status-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.5s, transform 0.4s ease 0.5s;
}

.form-status.active .status-sub {
  opacity: 1;
  transform: translateY(0);
}

.form-status .status-steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
  width: 100%;
  max-width: 280px;
}

.form-status .status-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  padding: 8px 14px;
  background: rgba(148, 163, 184, 0.03);
  border-radius: var(--radius-sm);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  opacity: 0;
  transform: translateX(-10px);
  border: 1px solid transparent;
}

/* Staggered entrance */
.form-status.active .status-step:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.6s;
}

.form-status.active .status-step:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.8s;
}

.form-status.active .status-step:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 1s;
}

.form-status .status-step.done {
  color: var(--accent-green);
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.12);
  opacity: 1;
  transform: translateX(0) !important;
}

.form-status .status-step.active {
  color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.06);
  border-color: rgba(59, 130, 246, 0.15);
}

.form-status .status-step.error {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.06);
  border-color: rgba(244, 63, 94, 0.12);
}

.form-status .status-step .step-icon {
  width: 22px; height: 22px;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* --- Button loading state --- */
.btn-loading {
  position: relative;
  pointer-events: none;
}

.btn-loading .btn-text {
  visibility: hidden;
}

.btn-loading .btn-spinner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-spinner-ring {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: white;
  animation: spin 0.7s linear infinite;
}

.btn-spinner-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: white;
}

/* --- Smooth form hide transition --- */
.contact-form-wrap {
  overflow: hidden;
  transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              padding 0.5s ease,
              margin 0.5s ease;
}

.contact-form-wrap.form-hiding {
  max-height: 1000px;
  opacity: 0;
  transform: scale(0.96) translateY(-10px);
  padding: 0 28px;
  margin: 12px auto 0;
}

.contact-form-wrap.form-hidden {
  max-height: 0;
  opacity: 0;
  padding: 0 28px;
  margin: 0 auto;
  overflow: hidden;
  border: none;
}

/* Shrink animation on form fields */
@keyframes fieldShrink {
  0% { transform: scaleY(1); opacity: 1; max-height: 100px; margin-bottom: 16px; padding: 11px 14px; }
  100% { transform: scaleY(0); opacity: 0; max-height: 0; margin-bottom: 0; padding: 0 14px; }
}

.contact-form-wrap .form-group.shrink {
  animation: fieldShrink 0.3s ease forwards;
  overflow: hidden;
}

/* --- Guarantees Grid --- */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}

.guarantee-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: translate 0.35s ease, var(--transition);
  position: relative;
  overflow: hidden;
}

.guarantee-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.02), transparent);
  opacity: 0;
  transition: var(--transition);
}

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

.guarantee-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(59, 130, 246, 0.04);
}

.guarantee-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.guarantee-icon.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.guarantee-icon.green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.1);
}

.guarantee-icon.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.1);
}

.guarantee-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.guarantee-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Niche Grid (Who we worked with) --- */
.niches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.niche-item {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px 16px;
  text-align: center;
  transition: translate 0.35s ease, var(--transition);
}

.niche-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.03);
}

.niche-icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

.niche-item .niche-name {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.niche-item .niche-desc {
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* --- Audit Banner --- */
.audit-banner {
  max-width: 600px;
  margin: 28px auto 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.06), rgba(139, 92, 246, 0.06));
  border: 1px solid rgba(59, 130, 246, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  text-align: left;
  transition: var(--transition);
}

.audit-banner:hover {
  border-color: rgba(59, 130, 246, 0.2);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.04);
}

.audit-banner .audit-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(59, 130, 246, 0.1);
  display: flex;
  align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.audit-banner .audit-content {
  flex: 1;
}

.audit-banner .audit-title {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.audit-banner .audit-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.audit-banner .audit-arrow {
  font-size: 1.2rem;
  color: var(--accent-blue);
  flex-shrink: 0;
  transition: var(--transition);
}

.audit-banner:hover .audit-arrow {
  transform: translateX(4px);
}

/* --- Clickable Hero Stats --- */
.hero-stat-item a {
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.hero-stat-item a:hover .stat-number {
  filter: brightness(1.2);
}

.hero-stat-item a:hover {
  transform: translateY(-2px);
}

/* --- Floating Telegram Widget --- */
.tg-widget {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tg-widget .tg-tooltip {
  background: var(--bg-card-solid);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-size: 0.78rem;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  display: none;
  position: relative;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.tg-widget .tg-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-left: 6px solid var(--border-color);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}

.tg-widget:hover .tg-tooltip {
  display: block;
}

.tg-widget-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--gradient-main);
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.35);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.tg-widget-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.5);
}

.tg-widget .tg-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(59, 130, 246, 0.2);
  animation: tgPulse 2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes tgPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.3); opacity: 0; }
}

/* --- fl.ru Badge --- */
.fl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  background: rgba(34, 197, 94, 0.08);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--accent-green);
  font-weight: 500;
  transition: var(--transition);
}

.fl-badge:hover {
  background: rgba(34, 197, 94, 0.12);
  transform: translateY(-1px);
}

/* ============================================
   COMPARISON TABLE — NovaForge vs Конкуренты
   ============================================ */

.compare-section .section-subtitle {
  max-width: 600px;
}

.compare-table-wrap {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  min-width: 680px;
}

.compare-table thead th {
  padding: 18px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  background: rgba(59, 130, 246, 0.03);
  color: var(--text-muted);
}

.compare-table thead th:first-child {
  padding-left: 24px;
  width: 32%;
}

.compare-table thead th.compare-highlight {
  background: rgba(59, 130, 246, 0.08);
  color: var(--accent-blue);
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.compare-table tbody tr {
  transition: background 0.25s ease;
}

.compare-table tbody tr:nth-child(even) {
  background: rgba(148, 163, 184, 0.02);
}

.compare-table tbody tr:hover {
  background: rgba(59, 130, 246, 0.03);
}

.compare-table tbody tr.compare-row-highlight {
  background: rgba(59, 130, 246, 0.04);
}

.compare-table tbody tr.compare-row-highlight:hover {
  background: rgba(59, 130, 246, 0.07);
}

.compare-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(59, 130, 246, 0.04);
  color: var(--text-secondary);
  vertical-align: middle;
}

.compare-table tbody td:first-child {
  padding-left: 24px;
  font-weight: 600;
  color: var(--text-primary);
}

.compare-table tbody td.compare-highlight {
  background: rgba(59, 130, 246, 0.04);
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
}

.compare-table tbody td.compare-highlight::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gradient-main);
  opacity: 0.5;
}

/* Check / Cross symbols */
.compare-check {
  color: var(--accent-green);
  font-weight: 700;
  font-size: 1rem;
}

.compare-cross {
  color: #6b7280;
  opacity: 0.5;
  font-size: 0.9rem;
}

.compare-star {
  color: var(--accent-amber);
  font-size: 0.85rem;
}

/* Price tags in table */
.compare-price-low {
  color: var(--accent-green);
  font-weight: 700;
}

.compare-price-mid {
  color: var(--accent-amber);
  font-weight: 600;
}

.compare-price-high {
  color: var(--accent-rose);
  font-weight: 600;
}

/* Value badges */
.compare-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
}

.compare-badge.green {
  background: rgba(34, 197, 94, 0.1);
  color: var(--accent-green);
}

.compare-badge.blue {
  background: rgba(59, 130, 246, 0.1);
  color: var(--accent-blue);
}

.compare-badge.amber {
  background: rgba(245, 158, 11, 0.1);
  color: var(--accent-amber);
}

/* Table footer CTA row */
.compare-table tbody tr.compare-cta-row td {
  border-bottom: none;
  padding: 20px 24px;
  text-align: center;
}

.compare-table tbody tr.compare-cta-row td.compare-highlight {
  background: rgba(59, 130, 246, 0.06);
}

.compare-table tbody tr.compare-cta-row .btn {
  padding: 10px 24px;
  font-size: 0.82rem;
}

/* Column header labels */
.compare-col-label {
  display: flex;
  align-items: center;
  gap: 6px;
}

.compare-col-label .col-icon {
  font-size: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .compare-table-wrap {
    margin: 0 -16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .compare-table {
    font-size: 0.75rem;
    min-width: 600px;
  }
  .compare-table thead th:first-child,
  .compare-table tbody td:first-child {
    padding-left: 16px;
    min-width: 120px;
  }
  .compare-table thead th,
  .compare-table tbody td {
    padding: 10px 10px;
  }
}

/* --- Responsive for new sections --- */
@media (max-width: 1024px) {
  .niches-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .guarantees-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .niches-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-form-wrap .form-row { grid-template-columns: 1fr; }
  .audit-banner { flex-direction: column; text-align: center; padding: 20px; }
  .tg-widget .tg-tooltip { display: none !important; }
  .tg-widget-btn { width: 48px; height: 48px; font-size: 1.2rem; }
  .tg-widget { bottom: 16px; right: 16px; }
}

/* ============================================
   CHAR-BY-CHAR REVEAL ANIMATION
   ============================================ */

/* Individual character spans - initially invisible */
.char-reveal,
.char-reveal-grad {
  display: inline-block;
  opacity: 0;
  transform: translateY(12px) rotateX(25deg);
  filter: blur(4px);
  transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              filter 0.3s ease;
}

/* When parent is revealed, animate chars in with staggered delay */
.chars-revealed .char-reveal,
.chars-revealed .char-reveal-grad {
  opacity: 1;
  transform: translateY(0) rotateX(0);
  filter: blur(0);
  transition-delay: calc(var(--char-idx) * 25ms);
}

/* Slightly different timing for gradient vs non-gradient chars */
.chars-revealed .char-reveal-grad {
  transition-delay: calc(var(--char-idx) * 25ms + 10ms);
  transition-duration: 0.45s, 0.5s, 0.35s;
}

/* Preserve gradient text effect on gradient chars */
.char-reveal-grad {
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .char-reveal,
  .char-reveal-grad {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none !important;
  }
}

/* --- Card clickable indicator --- */
.bento-card, .bento-card-sm, .project-card, .pricing-card {
  cursor: pointer;
}

.bento-card::before, .bento-card-sm::before, .project-card::before, .pricing-card::before {
  content: '👆';
  position: absolute;
  top: 12px; right: 12px;
  font-size: 0.7rem;
  opacity: 0;
  transform: translateY(-5px);
  transition: var(--transition);
  z-index: 3;
}

.bento-card:hover::before, .bento-card-sm:hover::before, .project-card:hover::before, .pricing-card:hover::before {
  opacity: 1;
  transform: translateY(0);
}

/* --- Card Glow Effect on Hover (using box-shadow to avoid ::after conflict) --- */
.bento-card:hover, .bento-card-sm:hover, .project-card:hover {
  box-shadow: 
    0 12px 40px rgba(59, 130, 246, 0.04),
    0 0 0 1px rgba(59, 130, 246, 0.08),
    inset 0 0 30px rgba(59, 130, 246, 0.02);
}

/* Icon glow on card hover */
.bento-card:hover .bento-icon {
  box-shadow: 0 0 20px var(--icon-glow-color, rgba(59, 130, 246, 0.2));
}

.bento-icon { --icon-glow-color: rgba(59, 130, 246, 0.2); transition: box-shadow 0.4s ease; }
.bento-icon.blue { background: rgba(59, 130, 246, 0.1); color: var(--accent-blue); --icon-glow-color: rgba(59, 130, 246, 0.25); }
.bento-icon.purple { background: rgba(139, 92, 246, 0.1); color: var(--accent-purple); --icon-glow-color: rgba(139, 92, 246, 0.25); }
.bento-icon.amber { background: rgba(245, 158, 11, 0.1); color: var(--accent-amber); --icon-glow-color: rgba(245, 158, 11, 0.25); }
.bento-icon.green { background: rgba(34, 197, 94, 0.1); color: var(--accent-green); --icon-glow-color: rgba(34, 197, 94, 0.25); }
.bento-icon.rose { background: rgba(244, 63, 94, 0.1); color: var(--accent-rose); --icon-glow-color: rgba(244, 63, 94, 0.25); }

/* --- Animations --- */

/* Base hidden state */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px) scale(0.92);
  will-change: opacity, transform;
}

/* Visible state with keyframe animation */
.animate-on-scroll.visible {
  animation: cardReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Scale-up reveal keyframe */
@keyframes cardReveal {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
  }
  60% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Slow floating animation for cards after reveal */
.bento-card.visible,
.bento-card-sm.visible,
.project-card.visible,
.pricing-card.visible,
.feature-item.visible,
.testimonial-card.visible,
.tech-item.visible {
  animation: cardReveal 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
             cardFloat 7s ease-in-out 0.8s infinite;
}

.bento-card.visible:hover,
.bento-card-sm.visible:hover,
.project-card.visible:hover,
.pricing-card.visible:hover,
.feature-item.visible:hover,
.testimonial-card.visible:hover,
.tech-item.visible:hover {
  animation-play-state: running, paused;
}

@keyframes cardFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -5px; }
}

/* --- Modal Responsive --- */
@media (max-width: 768px) {
  .modal { max-height: 90vh; border-radius: var(--radius-lg); }
  .modal-header { padding: 24px 20px 0; flex-direction: column; }
  .modal-body { padding: 16px 20px 24px; }
  .modal-close { top: 12px; right: 12px; }
}

/* ============================================
   PREMIUM DESIGN UPGRADES v2
   ============================================ */

/* --- Noise Texture Overlay --- */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  mix-blend-mode: overlay;
}

/* --- Enhanced Glow Orbs --- */
.glow-orb-3 {
  position: fixed;
  width: 400px; height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  background: rgba(139, 92, 246, 0.03);
  top: 40%; right: 10%;
  animation: orbFloat2 20s ease-in-out infinite;
}

.glow-orb-4 {
  position: fixed;
  width: 350px; height: 350px;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  background: rgba(34, 197, 94, 0.02);
  bottom: 20%; left: 20%;
  animation: orbFloat2 18s ease-in-out infinite reverse;
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(40px, -30px) scale(1.1); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(30px, 30px) scale(1.05); }
}

/* --- Vignette Effect --- */
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(8,12,24,0.4) 100%);
}

/* --- Shimmer Border for Featured Cards (using ::after) --- */
@keyframes shimmerBorder {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.pricing-card.featured::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(90deg, 
    rgba(59,130,246,0.3), 
    rgba(139,92,246,0.5), 
    rgba(59,130,246,0.3), 
    rgba(139,92,246,0.5)
  ) 0% center / 200% auto;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: shimmerBorder 3s linear infinite;
  pointer-events: none;
  z-index: 0;
}

.pricing-card.featured {
  position: relative;
}

.pricing-card.featured .pricing-header,
.pricing-card.featured .pricing-amount,
.pricing-card.featured .pricing-features,
.pricing-card.featured .btn {
  position: relative;
  z-index: 1;
}

/* --- Floating Icon Animation --- */
@keyframes iconFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.05); }
}

.bento-icon,
.feature-icon,
.guarantee-icon,
.tech-icon {
  animation: iconFloat 4s ease-in-out infinite;
}

.bento-card:hover .bento-icon,
.feature-item:hover .feature-icon,
.guarantee-card:hover .guarantee-icon,
.tech-item:hover .tech-icon {
  animation-duration: 1.5s;
}

/* --- Glow Pulse on Icons --- */
@keyframes iconGlowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
  50% { box-shadow: 0 0 20px 4px rgba(59,130,246,0.08); }
}

.bento-card:hover .bento-icon {
  animation: iconGlowPulse 2s ease-in-out infinite;
}

/* --- Card Depth Shadow --- */
@keyframes cardDepth {
  0%, 100% { box-shadow: 0 4px 20px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 8px 40px rgba(0,0,0,0.15), 0 0 60px rgba(59,130,246,0.02); }
}

.bento-card:hover,
.bento-card-sm:hover,
.project-card:hover,
.pricing-card:hover {
  animation: cardDepth 3s ease-in-out infinite;
}

/* --- Smooth Gradient Background Transition Between Sections --- */
.section {
  position: relative;
}

.section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 0; right: 0;
  height: 160px;
  background: linear-gradient(180deg, transparent 0%, rgba(8,12,24,0.3) 50%, transparent 100%);
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
}

.cta-section::after {
  display: none;
}

/* --- Ripple effect base --- */
.ripple-btn {
  position: relative;
  overflow: hidden;
}

.ripple-effect {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  transform: scale(0);
  animation: rippleAnim 0.6s ease-out;
  pointer-events: none;
}

@keyframes rippleAnim {
  to { transform: scale(4); opacity: 0; }
}

/* --- Counter number animation --- */
@keyframes countPop {
  0% { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

.stat-number.animated {
  animation: countPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* --- Typing cursor enhancement --- */
@keyframes cursorGlow {
  0%, 100% { box-shadow: 0 0 4px rgba(59,130,246,0.3); }
  50% { box-shadow: 0 0 12px rgba(59,130,246,0.6); }
}

.hero h1 .typing-cursor {
  animation: blink 1s step-end infinite, cursorGlow 2s ease-in-out infinite;
}

/* --- Mobile improvements --- */
@media (max-width: 768px) {
  .noise-overlay { opacity: 0.015; }
  .vignette { display: none; }
  .glow-orb-3, .glow-orb-4 { filter: blur(60px); }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .noise-overlay { display: none; }
  .vignette { display: none; }
  .bento-icon,
  .feature-icon,
  .guarantee-icon,
  .tech-icon {
    animation: none !important;
  }
  .pricing-card.featured::after {
    animation: none;
    background: rgba(59,130,246,0.2);
    -webkit-mask: none;
    mask: none;
    padding: 0;
    inset: 0;
    border: 1px solid rgba(59,130,246,0.2);
  }
  .bento-card:hover,
  .bento-card-sm:hover,
  .project-card:hover,
  .pricing-card:hover {
    animation: none !important;
  }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats-bar { justify-content: center; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2.6rem; }
  
  .bento-grid { grid-template-columns: 1fr; }
  .bento-card { grid-column: 1; }
  
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .projects-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .navbar-links { display: none; }
  .mobile-toggle { display: flex; }

  .navbar-links.active {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(8, 12, 24, 0.98);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    gap: 18px;
  }

  .section { padding: 64px 0; }
  .section-title { font-size: 1.6rem; }
  
  .hero h1 { font-size: 2rem; }
  .hero-stats-bar { flex-direction: column; gap: 12px; align-items: center; }
  
  .features-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .testimonials-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .bento-card { padding: 24px 20px; }
  .bento-card-sm { padding: 20px 16px; }
}

/* ============================================
   CUSTOM CURSOR
   ============================================ */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  background: var(--accent-blue);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.15s ease, height 0.15s ease, opacity 0.3s ease;
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(59, 130, 246, 0.3);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: width 0.35s ease, height 0.35s ease,
              border-color 0.35s ease, background 0.35s ease,
              border-width 0.35s ease, opacity 0.3s ease;
  opacity: 0;
}

/* Hover state on interactive elements */
.cursor-ring.cursor-hover {
  width: 48px;
  height: 48px;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.06);
  border-width: 2px;
}

.cursor-dot.cursor-hover {
  width: 4px;
  height: 4px;
  background: var(--accent-purple);
}

/* Hide on touch devices via JS, but keep hidden by default */
/* --- Cursor Trail Canvas --- */
#cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 99997;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none !important; }
  #cursor-trail { display: none !important; }
}

@keyframes cursorPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(59,130,246,0.2); }
  50% { box-shadow: 0 0 12px rgba(59,130,246,0.4); }
}

/* ============================================
   PARALLAX & SCROLL REVEALS
   ============================================ */

/* Parallax base — uses CSS translate property (no transform conflict) */
[data-parallax] {
  will-change: translate;
}

/* --- Enhanced Reveal Animations --- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.6s ease,
              transform 0.7s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal].revealed {
  opacity: 1;
  transform: none !important;
}

/* Fade up (default) */
[data-reveal="fade-up"] {
  transform: translateY(24px);
}

[data-reveal="fade-up"].revealed {
  transform: translateY(0);
}

/* Scale up */
[data-reveal="scale-up"] {
  transform: scale(0.9);
}

[data-reveal="scale-up"].revealed {
  transform: scale(1);
}

/* Slide in from left */
[data-reveal="slide-left"] {
  transform: translateX(-24px);
}

[data-reveal="slide-left"].revealed {
  transform: translateX(0);
}

/* Slide in from right */
[data-reveal="slide-right"] {
  transform: translateX(24px);
}

[data-reveal="slide-right"].revealed {
  transform: translateX(0);
}

/* Staggered children within a revealed parent */
.reveal-stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease,
              transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.revealed .reveal-stagger {
  opacity: 1;
  transform: translateY(0);
}

/* Section background depth (set via JS custom property) */
.section {
  --section-depth: 0.4;
}

.section::after {
  opacity: var(--section-depth);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    translate: none !important;
  }
  [data-reveal] {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
  .reveal-stagger {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Responsive CTA Section fix for Lenis --- */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

.lenis.lenis-stopped {
  overflow: hidden;
}

.lenis.lenis-scrolling iframe {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .glow-orb, .hero-badge .dot { animation: none !important; }
  .code-block::before, .code-block .cursor-blink, .typing-cursor { display: none; }
  html { scroll-behavior: auto; }
  .cursor-dot, .cursor-ring { display: none !important; }
}
