/* Theme */
:root {
  --bg: #0a0e1a;
  --bg-2: #0f1629;
  --bg-3: #151d34;
  --text: #e8eef9;
  --text-dim: #b8c4db;
  --muted: #8b98b3;
  --brand: #4cc9f0;
  --brand-2: #4361ee;
  --accent: #f72585;
  --success: #06ffa5;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.09);
  --glass-3: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.06);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.5);
  --glow: 0 0 40px rgba(76, 201, 240, 0.3);
  --radius: 16px;
  --radius-sm: 8px;
  --radius-lg: 24px;
  --ease: cubic-bezier(0.19, 1, 0.22, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Loading Screen */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-content { text-align: center; }
.loader-logo { width: 100px; height: 100px; margin: 0 auto 24px; }
.loader-logo img { width: 100%; height: 100%; object-fit: contain; animation: pulse 1.5s ease-in-out infinite; }
.loader-progress { width: 200px; height: 3px; background: var(--glass); border-radius: 3px; overflow: hidden; margin: 0 auto 16px; }
.loader-bar { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 0; animation: load 1.5s ease-out forwards; }
.loader-text { color: var(--muted); font-size: 14px; letter-spacing: 0.5px; }

@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes load { to { width: 100%; } }

/* Background Effects */
#fx-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.6;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  z-index: -1;
  animation: float 20s infinite;
}
.orb-1 { top: -20%; left: -10%; width: 60vw; height: 60vw; background: radial-gradient(circle, var(--brand), transparent 70%); animation-duration: 25s; }
.orb-2 { bottom: -20%; right: -10%; width: 50vw; height: 50vw; background: radial-gradient(circle, var(--accent), transparent 70%); animation-delay: -5s; }
.orb-3 { top: 50%; left: 50%; width: 40vw; height: 40vw; background: radial-gradient(circle, var(--brand-2), transparent 70%); animation-delay: -10s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(10%, -10%) rotate(90deg); }
  50% { transform: translate(-5%, 15%) rotate(180deg); }
  75% { transform: translate(15%, 5%) rotate(270deg); }
}

/* Rhythm variables */
:root {
  --section-y: clamp(48px, 9vw, 110px);
  --section-y-compact: clamp(36px, 6vw, 80px);
  --header-offset: 68px;
}

/* Global section spacing */
section { padding: var(--section-y) 0; position: relative; }
.services, .trust, .connect { padding: var(--section-y-compact) 0; }
.cta-section { padding: var(--section-y) 0; }

/* Reduce oversized hero gaps */
.hero { min-height: min(92vh, 900px); padding: calc(var(--header-offset) + 24px) 0 56px; }
.hero-sub { margin-bottom: 28px; }
.hero .cta-row { margin-bottom: 36px; }
.hero-stats { margin-top: 8px; }

/* Container width & inside spacing */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.services .section-header { margin-bottom: 28px; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(10, 14, 26, 0.85);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
  z-index: 100;
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(10, 14, 26, 0.95);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
}

.brand { display: flex; align-items: center; gap: 14px; }
.logo { width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.brand-text { font-weight: 700; font-size: 20px; letter-spacing: -0.5px; }
.brand-accent { color: var(--brand); }

.nav { display: flex; gap: 8px; align-items: center; }
.nav-link {
  color: var(--text-dim);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  position: relative;
}
.nav-link:hover { color: var(--text); background: var(--glass); }
.nav-cta {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  padding: 8px 20px;
  margin-left: 8px;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--glow); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s ease;
}

.nav-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  width: 0%;
  transition: width 0.3s ease;
}

/* Hero */
.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  color: var(--brand);
  margin-bottom: 24px;
}
.hero-badge i { font-size: 12px; }

.hero-title {
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 24px;
  max-width: 900px;
}
.hero-line { display: block; overflow: hidden; }
.gradient-text {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 0 40px;
  line-height: 1.5;
}

.cta-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 60px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
  border: 1px solid transparent;
}
.btn span { position: relative; z-index: 1; }
.btn i { font-size: 14px; transition: transform 0.3s ease; }
.btn:hover i { transform: translateX(2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  box-shadow: 0 4px 20px rgba(76, 201, 240, 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(76, 201, 240, 0.4);
}

.btn-ghost {
  background: var(--glass);
  color: var(--text);
  border-color: var(--border);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: var(--glass-2);
  border-color: var(--brand);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-xl { padding: 20px 40px; font-size: 18px; }

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 500px;
}
.stat { text-align: left; }
.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--brand);
  font-family: 'Space Grotesk', monospace;
}
.stat-label {
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Hero Visual */
.hero-visual {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  pointer-events: none;
}

.floating-icons {
  position: relative;
  width: 100%;
  height: 100%;
}

.float-icon {
  position: absolute;
  width: 60px;
  height: 60px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--brand);
  animation: floatIcon 20s infinite;
}

.float-icon:nth-child(1) { top: 10%; left: 20%; animation-delay: 0s; }
.float-icon:nth-child(2) { top: 20%; right: 30%; animation-delay: 3s; color: var(--accent); }
.float-icon:nth-child(3) { bottom: 30%; left: 40%; animation-delay: 6s; }
.float-icon:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 9s; color: var(--brand-2); }
.float-icon:nth-child(5) { top: 50%; left: 60%; animation-delay: 12s; color: var(--success); }
.float-icon:nth-child(6) { top: 40%; right: 50%; animation-delay: 15s; }

@keyframes floatIcon {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(0) rotate(-5deg); }
  75% { transform: translateY(20px) rotate(3deg); }
}

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

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--brand);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.section-sub {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 auto;
}

/* Services */
.services { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.services .section-header { margin-bottom: 40px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(76, 201, 240, 0.1), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: var(--shadow-xl);
}
.service-card:hover::before { opacity: 1; }

.service-card.featured {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), rgba(67, 97, 238, 0.1));
  border-color: var(--brand);
}

.service-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  background: var(--brand);
  color: white;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: white;
  margin-bottom: 24px;
}

.service-card h3 {
  font-size: 24px;
  margin: 0 0 12px;
  letter-spacing: -0.5px;
}

.service-card p {
  color: var(--text-dim);
  margin: 0 0 24px;
  line-height: 1.6;
}

.service-features {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  color: var(--text-dim);
}

.service-features i {
  color: var(--success);
  font-size: 14px;
}

.service-link {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: gap 0.3s ease;
}
.service-link:hover { gap: 12px; }

/* Process */
.process-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  position: relative;
}

.process-timeline::before {
  content: '';
  position: absolute;
  top: 30px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}

.process-step {
  text-align: center;
  position: relative;
}

.step-icon {
  width: 80px;
  height: 80px;
  background: var(--bg-2);
  border: 2px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 32px;
  color: var(--brand);
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

.process-step::before {
  content: attr(data-step);
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: var(--brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.process-step:hover .step-icon {
  background: var(--brand);
  color: white;
  transform: scale(1.1);
}

.process-step h3 {
  font-size: 20px;
  margin: 0 0 12px;
}

.process-step p {
  color: var(--text-dim);
}

/* Trust */
.trust {
  background: var(--bg-2);
  padding: 60px 0;
}

.trust-logos { text-align: center; }

.trust-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  margin-bottom: 32px;
  display: block;
}

.logo-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.client-logo {
  font-size: 32px;
  color: var(--muted);
  opacity: 0.5;
  transition: all 0.3s ease;
}
.client-logo:hover {
  opacity: 1;
  color: var(--brand);
  transform: scale(1.1);
}

/* Connect Section */
.connect { background: var(--bg-2); }

.connect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.connect-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.connect-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.connect-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--brand);
}
.connect-card:hover::before { opacity: 1; }
.connect-card:hover .connect-arrow { transform: translateX(4px); }

.connect-icon {
  width: 48px;
  height: 48px;
  background: var(--glass-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--brand);
  margin-bottom: 16px;
}

.connect-card h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.connect-card p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 0 0 16px;
  flex: 1;
}

.connect-arrow {
  color: var(--brand);
  transition: transform 0.3s ease;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%234cc9f0' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-size: 20px;
  color: var(--text-dim);
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.cta-note {
  color: var(--success);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

/* Footer */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}

.footer-brand .footer-logo {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}

.footer-brand p {
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: 300px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: all 0.3s ease;
}

.social-links a:hover {
  background: var(--brand);
  color: white;
  border-color: var(--brand);
  transform: translateY(-2px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-column h4 {
  font-size: 16px;
  margin: 0 0 16px;
  color: var(--text);
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column li {
  margin-bottom: 12px;
}

.footer-column a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.3s ease;
}
.footer-column a:hover { color: var(--brand); }

.footer-bottom {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
}

.footer-location {
  margin-top: 8px;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-visual { display: none; }
  .process-timeline::before { display: none; }
  .footer-top { grid-template-columns: 1fr; gap: 48px; }
  .footer-links { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .hero-title { font-size: clamp(32px, 8vw, 48px); }
  .hero-stats { grid-template-columns: 1fr; gap: 24px; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .cta-actions { flex-direction: column; width: 100%; }
  .btn { width: 100%; justify-content: center; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Magnetic Effect */
.magnetic { position: relative; }

/* Accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.skip-link:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  width: auto;
  height: auto;
  background: var(--brand);
  color: #fff;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  z-index: 10000;
}

/* Mobile Nav */
.nav.active {
  display: flex !important;
  position: absolute;
  right: 16px;
  top: 64px;
  background: rgba(10, 14, 26, 0.98);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-direction: column;
  padding: 8px;
  gap: 4px;
}
.nav.active .nav-link { padding: 12px 16px; border-radius: var(--radius-sm); }
.nav.active .nav-cta { margin-left: 0; }

.nav-toggle.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile Typography and spacing tweaks */
@media (max-width: 480px) {
  .hero { padding-top: 96px; }
  .hero-sub { font-size: 16px; }
  .section-sub { font-size: 16px; }
  .service-card { padding: 24px; }
  .footer-top { gap: 32px; }
} 

/* Service Details */
.service-details { margin-top: 48px; }

/* Services visual polish */
.services { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%); }
.services .section-header { margin-bottom: 40px; }

/* Ensure robust text wrapping */
.services, .service-details, .service-panels, .panel-block, .price-card {
  max-width: 100%;
}
.panel-header p, .deliverables li, .stack-list li, .price-card ul li {
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.55;
}

/* Scrollable, sticky tabs */
.service-tabs {
  position: sticky;
  top: 72px; /* below header */
  z-index: 5;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 8px;
  scrollbar-width: none;
}
.service-tabs::-webkit-scrollbar { display: none; }
.service-tab {
  background: var(--glass);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  white-space: nowrap;
  transition: all .25s var(--ease);
  flex: 0 0 auto; /* prevent squish */
}
.service-tab:hover { color: var(--text); border-color: var(--brand); }
.service-tab.active {
  color: var(--text);
  border-color: var(--brand);
  background: linear-gradient(135deg, rgba(76,201,240,.18), rgba(67,97,238,.16));
  box-shadow: 0 6px 18px rgba(76,201,240,.18);
}

/* Panels with subtle gradient frame */
.service-panels {
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  overflow: visible;
}
.service-panel { display: none; opacity: 0; }
.service-panel.active { display: block; opacity: 1; }

.panel-header h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -.3px; }
.panel-header p { margin: 0 0 16px; color: var(--text-dim); }

.panel-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 24px; }

.panel-block {
  background: var(--glass-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  transition: transform .2s ease, border-color .2s ease;
}
.panel-block:hover { transform: translateY(-2px); border-color: var(--brand); }
.panel-block h4 { margin: 0 0 12px; font-size: 16px; color: var(--text); letter-spacing: .2px; }

.deliverables, .stack-list { list-style: none; padding: 0; margin: 0; }
.deliverables li, .stack-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; color: var(--text-dim); }
.deliverables i, .stack-list i { color: var(--brand); width: 18px; text-align: center; }

/* Pricing cards */
.pricing-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.price-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  height: 100%;
}
.price-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); border-color: var(--brand); }
.price-card .badge { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--glass); border: 1px solid var(--border); font-size: 12px; align-self: flex-start; }
.price-card.featured { border-color: var(--brand); box-shadow: var(--glow); background: linear-gradient(180deg, rgba(76,201,240,.08), rgba(67,97,238,.08)); }
.price-card ul { list-style: none; margin: 0; padding: 0; color: var(--text-dim); }
.price-card ul li { padding: 6px 0; }
.price-card .btn { align-self: flex-start; margin-top: auto; }

/* Breakpoints to prevent squish */
@media (max-width: 1280px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-panels { padding: 14px; }
  .service-tab { padding: 9px 12px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .connect-card { padding: 16px; }
} 

/* Trust section condensed */
.trust { padding: var(--section-y-compact) 0; }
.trust-logos { padding: 0 12px; }
.logo-grid { gap: 36px; }

/* Connect section tighter */
.connect-grid { gap: 16px; }
.connect-card { padding: 18px; }

/* CTA: less outer whitespace, strong focus */
.cta-section { padding: var(--section-y-compact) 0 var(--section-y); }
.cta-sub { margin-bottom: 24px; }
.cta-actions { margin-bottom: 16px; }

/* Header: consistent offset when scrolled */
.site-header .header-inner { padding: 12px 20px; }
.nav-cta { padding: 8px 16px; }

/* Responsive refinements to prevent text cut-offs and squish */
@media (max-width: 1280px) {
  .panel-grid { grid-template-columns: 1fr 1fr; }
  .pricing-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1024px) {
  .hero { min-height: auto; padding-bottom: 40px; }
  .panel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .service-panels { padding: 14px; }
  .service-tab { padding: 9px 12px; }
  .pricing-cards { grid-template-columns: 1fr; }
  .connect-card { padding: 16px; }
} 

/* Services section tightening */
.services { padding-top: clamp(32px, 6vw, 64px); padding-bottom: clamp(32px, 6vw, 64px); }
.services .section-header { margin-bottom: 16px; }
.services .section-title { margin: 0 0 6px; }
.services .section-sub { margin: 0 auto 8px; }

.services-grid { gap: 14px; margin-bottom: 12px; }
.service-card { padding: 18px 16px; }
.service-card h3 { margin: 0 0 8px; }
.service-card p { margin: 0 0 10px; }
.service-features { margin: 0 0 10px; }
.service-link { margin-top: 4px; }

.service-details { margin-top: 20px; }
.service-tabs { margin-bottom: 8px; padding: 4px 0; }
.service-panels { padding: 16px; }
.panel-header p { margin-bottom: 10px; }
.panel-grid { gap: 16px; }
.panel-block { padding: 12px; }
.deliverables li, .stack-list li { padding: 6px 0; }

/* Prevent container stacking from adding extra whitespace */
.services .container > *:last-child { margin-bottom: 0; }
.service-panels > *:last-child { margin-bottom: 0; } 

/* Services showcase tightening */
.services .section-header { margin-bottom: 12px; }
.services-grid { gap: 12px; margin-bottom: 0; }
.service-details { margin-top: 16px; margin-bottom: 0; }
.service-panels { margin-bottom: 0; }
.services .container > *:last-child { margin-bottom: 0; }

/* Connect section tightening */
.connect .section-header { margin-bottom: 12px; }
.connect-grid { gap: 12px; margin-bottom: 0; }
.connect .container > *:last-child { margin-bottom: 0; }
.connect-card h3 { margin: 0 0 4px; }
.connect-card p { margin: 0 0 8px; }

/* Ensure no trailing bottom spacing on sections */
.trust .container > *:last-child,
.cta-section .container > *:last-child { margin-bottom: 0; } 

/* Final spacing overrides for Services and Connect */
.services { padding-top: clamp(24px, 4vw, 56px) !important; padding-bottom: clamp(24px, 4vw, 56px) !important; }
.connect { padding-top: clamp(24px, 4vw, 56px) !important; padding-bottom: clamp(24px, 4vw, 56px) !important; }

/* Kill trailing margins inside sections */
.services *:last-child { margin-bottom: 0 !important; }
.connect *:last-child { margin-bottom: 0 !important; }

/* Compact cards further to avoid perceived blank space */
.service-card { padding: 14px 12px !important; }
.connect-card { padding: 14px 12px !important; }

/* Ensure grids hug content without extra bottom gap */
.services-grid, .service-panels, .connect-grid { margin-bottom: 0 !important; } 

/* Services card visual redesign */
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.service-card { grid-column: span 6; position: relative; overflow: hidden; }
@media (max-width: 1024px) { .service-card { grid-column: span 12; } }
.service-card.featured { grid-column: span 12; }

.service-head { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin-bottom: 8px; }
.service-head h3 { margin: 0; font-size: 20px; letter-spacing: -0.3px; }
.service-head p { margin: 0; color: var(--text-dim); grid-column: 1 / -1; }

.service-media { position: absolute; right: -12px; top: -12px; font-size: 72px; opacity: 0.08; color: var(--brand); pointer-events: none; }
.service-card.featured .service-media { opacity: 0.12; color: var(--accent); font-size: 88px; }

.service-cta { display: flex; gap: 8px; margin-top: 8px; }
.btn-sm { padding: 8px 12px; font-size: 13px; }

/* Improve visibility of featured */
.service-card.featured { background: linear-gradient(135deg, rgba(76,201,240,0.12), rgba(67,97,238,0.1)); border-color: var(--brand); }
.service-card.featured h3 { color: #dff5ff; }

/* Ensure card internals don’t overflow */
.service-card * { max-width: 100%; } 

/* Robust services grid to avoid collapse */
.services-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important; }
.service-card, .service-card.featured { grid-column: auto !important; display: flex; flex-direction: column; }
.service-cta { margin-top: auto; } 

/* Visibility/contrast boost for service and connect cards */
.service-card,
.connect-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.12), rgba(255,255,255,0.06)) !important;
  border-color: rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  box-shadow: 0 8px 30px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06) inset;
}
.service-head h3 { color: var(--text); }
.service-features li { color: var(--text-dim); }
.service-features li i { color: var(--brand); }

/* Ensure the grid actually fills horizontally */
.services .container { max-width: 1240px; }
.services-grid { gap: 18px !important; margin-top: 8px; }

/* Strengthen section background slightly for separation */
.services { background: linear-gradient(180deg, #0e1528 0%, #0a1022 100%) !important; }
.connect { background: linear-gradient(180deg, #0d1426 0%, #0a0f20 100%) !important; }

/* Prevent giant headline overlap from pushing content visually */
.section-title { line-height: 1.15; } 

/* Guarantee visible content area for services/connect */
.services { min-height: 520px; }
.connect { min-height: 400px; }
.services .section-header, .connect .section-header { margin-top: 0; }

/* Ensure connect grid renders columns */
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); } 

/* Offset anchors for sticky header */
section[id] { scroll-margin-top: var(--header-offset); }

@media (max-width: 768px) {
  :root { --header-offset: 96px; }
} 

.services-grid { visibility: visible !important; opacity: 1 !important; z-index: 2; position: relative; }
.connect-grid { visibility: visible !important; opacity: 1 !important; z-index: 2; position: relative; }

/* Make sure canvas/orbs sit behind content */
#fx-canvas, .orb { z-index: 0 !important; } 