/* =========================================================
   BYTREA — style.css
   Design system: tokens, reset, layout, components
   ========================================================= */

/* ── Google Fonts (Loaded via HTML) ── */

/* =========================================================
   CSS CUSTOM PROPERTIES (Themes)
   ========================================================= */

:root {
  /* Brand */
  --primary:        #7C3AED;
  --primary-light:  #9F67F0;
  --primary-dark:   #5B21B6;
  --accent:         #06B6D4;
  --accent-light:   #22D3EE;
  --accent-dark:    #0891B2;

  /* Gradients */
  --grad-primary:   linear-gradient(135deg, #7C3AED 0%, #06B6D4 100%);
  --grad-glow:      linear-gradient(135deg, rgba(124,58,237,0.15) 0%, rgba(6,182,212,0.15) 100%);
  --grad-hero:      linear-gradient(135deg, #0A0A0F 0%, #12082A 50%, #0A1A2E 100%);

  /* Typography */
  --font-body:      'Inter', system-ui, sans-serif;
  --font-display:   'Space Grotesk', system-ui, sans-serif;

  /* Spacing */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;
  --space-32: 128px;

  /* Border radius */
  --radius-sm:   6px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth:  cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:     150ms;
  --dur-base:     300ms;
  --dur-slow:     500ms;
  --dur-slower:   800ms;

  /* Z-index layers */
  --z-base:    0;
  --z-above:   10;
  --z-modal:   100;
  --z-nav:     1000;
  --z-toast:   2000;
}

/* ── DARK THEME (default) ── */
[data-theme="dark"] {
  --bg:            #0A0A0F;
  --bg-secondary:  #0F0F1A;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --surface:       rgba(255, 255, 255, 0.06);
  --surface-hover: rgba(255, 255, 255, 0.10);
  --border:        rgba(255, 255, 255, 0.08);
  --border-active: rgba(124, 58, 237, 0.5);
  --text:          #F0EEFF;
  --text-secondary:#A89BC2;
  --text-muted:    #6B5E85;
  --nav-bg:        rgba(10, 10, 15, 0.85);
  --shadow-card:   0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:   0 0 40px rgba(124,58,237,0.3);
  --invert-logo:   0;
}

/* ── LIGHT THEME ── */
[data-theme="light"] {
  --bg:            #F8F8FF;
  --bg-secondary:  #EEEEFF;
  --bg-card:       rgba(255, 255, 255, 0.9);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --surface:       rgba(124, 58, 237, 0.05);
  --surface-hover: rgba(124, 58, 237, 0.08);
  --border:        rgba(124, 58, 237, 0.12);
  --border-active: rgba(124, 58, 237, 0.4);
  --text:          #1A1030;
  --text-secondary:#4A3D6B;
  --text-muted:    #8070A0;
  --nav-bg:        rgba(248, 248, 255, 0.90);
  --shadow-card:   0 8px 32px rgba(124,58,237,0.1);
  --shadow-glow:   0 0 40px rgba(124,58,237,0.15);
  --invert-logo:   1;
}

/* =========================================================
   RESET & BASE
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  transition: background-color var(--dur-slow) var(--ease-smooth),
              color var(--dur-slow) var(--ease-smooth);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* =========================================================
   SCROLLBAR
   ========================================================= */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary) 0%, var(--accent) 100%);
  border-radius: var(--radius-full);
}

/* =========================================================
   LAYOUT
   ========================================================= */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-32) 0;
}

.section-sm {
  padding: var(--space-20) 0;
}

/* =========================================================
   TYPOGRAPHY
   ========================================================= */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.display-xl {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.display-lg {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 700;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
}

.text-gradient {
  background: var(--grad-primary);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-text 4s linear infinite;
}

.text-secondary { color: var(--text-secondary); }
.text-muted     { color: var(--text-muted); }
.text-center    { text-align: center; }

/* =========================================================
   BUTTONS
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--dur-base) var(--ease-spring);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.12);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.55);
}

.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(124,58,237,0.2);
}

.btn-lg {
  padding: var(--space-4) var(--space-8);
  font-size: 1rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-spring);
}

.btn-icon:hover {
  background: var(--surface-hover);
  color: var(--primary-light);
  border-color: var(--border-active);
  transform: translateY(-2px);
}

/* =========================================================
   BADGES
   ========================================================= */

.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.badge-primary {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.3);
  color: var(--primary-light);
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse-glow 2s ease-in-out infinite;
}

/* =========================================================
   SECTION HEADERS
   ========================================================= */

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.section-label::before, .section-label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--primary-light);
  opacity: 0.5;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  padding: var(--space-4) 0;
  transition: all var(--dur-slow) var(--ease-smooth);
  animation: navSlideDown 0.8s var(--ease-spring) both;
}

.nav.scrolled {
  background: var(--nav-bg);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  padding: var(--space-3) 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nav-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
}

.nav-logo:hover .nav-logo-mark {
  transform: rotate(-8deg) scale(1.08);
  box-shadow: 0 8px 24px rgba(124,58,237,0.6);
}

.nav-logo-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.nav-link {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-smooth);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: calc(100% - 24px);
  height: 2px;
  background: var(--grad-primary);
  border-radius: var(--radius-full);
  transition: transform var(--dur-base) var(--ease-spring);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { transform: translateX(-50%) scaleX(1); }

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: all var(--dur-base) var(--ease-smooth);
}

.lang-btn.active {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(124,58,237,0.4);
}

/* Theme toggle */
.theme-toggle {
  width: 44px;
  height: 24px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1.5px solid var(--border);
  position: relative;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-smooth);
}

.theme-toggle::before {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--grad-primary);
  transition: transform var(--dur-base) var(--ease-spring),
              box-shadow var(--dur-base) var(--ease-spring);
  box-shadow: 0 2px 6px rgba(124,58,237,0.5);
}

[data-theme="light"] .theme-toggle::before {
  transform: translateX(20px);
  box-shadow: 0 2px 6px rgba(124,58,237,0.5);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.65rem;
  transition: opacity var(--dur-base);
}

.theme-toggle .icon-moon { left: 5px; }
.theme-toggle .icon-sun  { right: 4px; opacity: 0; }

[data-theme="light"] .theme-toggle .icon-moon { opacity: 0; }
[data-theme="light"] .theme-toggle .icon-sun  { opacity: 1; }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: all var(--dur-base);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: var(--radius-full);
  transition: all var(--dur-base) var(--ease-spring);
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: var(--space-4) 0;
  animation: fadeInDown 0.3s var(--ease-spring);
}

.nav-mobile.open { display: block; }

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: 0 var(--space-6);
}

.nav-mobile-link {
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-smooth);
}

.nav-mobile-link:hover {
  background: var(--surface);
  color: var(--text);
}

.nav-mobile-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6) 0;
  border-top: 1px solid var(--border);
  margin-top: var(--space-3);
}

/* =========================================================
   HERO SECTION
   ========================================================= */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

[data-theme="light"] .hero-bg-img {
  opacity: 0.1;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  opacity: 0.8;
}

[data-theme="light"] .hero-bg-overlay {
  background: linear-gradient(135deg, rgba(248,248,255,0.95) 0%, rgba(238,238,255,0.9) 100%);
  opacity: 1;
}

/* Animated blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
  animation: blob-morph 12s ease-in-out infinite, float 8s ease-in-out infinite;
}

[data-theme="light"] .hero-blob { opacity: 0.08; }

.hero-blob-1 {
  width: 500px;
  height: 500px;
  background: var(--primary);
  top: -100px;
  right: 10%;
  animation-duration: 12s, 9s;
}

.hero-blob-2 {
  width: 350px;
  height: 350px;
  background: var(--accent);
  bottom: 5%;
  left: -50px;
  animation-duration: 15s, 11s;
  animation-direction: reverse, normal;
}

.hero-blob-3 {
  width: 250px;
  height: 250px;
  background: var(--primary-light);
  top: 40%;
  left: 30%;
  animation-duration: 18s, 7s;
}

/* Particles */
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  bottom: -20px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--primary-light);
  animation: particle-drift linear infinite;
  opacity: 0;
}

/* Grid pattern */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

[data-theme="light"] .hero-grid {
  background-image:
    linear-gradient(rgba(124,58,237,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.06) 1px, transparent 1px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow {
  margin-bottom: var(--space-6);
  animation: fadeInDown 0.8s var(--ease-spring) 0.2s both;
}

.hero-title {
  margin-bottom: var(--space-6);
  animation: fadeInUp 0.9s var(--ease-spring) 0.4s both;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-10);
  line-height: 1.7;
  animation: fadeInUp 0.9s var(--ease-spring) 0.6s both;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-16);
  animation: fadeInUp 0.9s var(--ease-spring) 0.8s both;
}

/* Stats row */
.hero-stats {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  animation: fadeInUp 0.9s var(--ease-spring) 1s both;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-stat-value {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: fadeIn 1s var(--ease-spring) 1.5s both;
  z-index: 1;
}

.hero-scroll-wheel {
  width: 24px;
  height: 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  position: relative;
}

.hero-scroll-dot {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  animation: float 1.5s ease-in-out infinite;
}

/* =========================================================
   ABOUT SECTION
   ========================================================= */

.about {
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.about::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--border));
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

.about-visual {
  position: relative;
  height: 460px;
}

.about-visual-card {
  position: absolute;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
  transition: transform var(--dur-slow) var(--ease-spring);
}

.about-visual-card:hover { transform: translateY(-8px) scale(1.02); }

.about-card-main {
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  min-height: 190px;
}

.about-card-stats {
  bottom: 0;
  right: 0;
  width: 210px;
  animation: float 6s ease-in-out infinite;
}

.about-card-tech {
  bottom: 0;
  left: 0;
  width: 155px;
  animation: float 8s ease-in-out infinite reverse;
}

.about-visual-bg {
  position: absolute;
  inset: -20px;
  background: var(--grad-glow);
  border-radius: var(--radius-xl);
  filter: blur(40px);
  z-index: -1;
}

/* About card contents */
.card-stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.card-stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: var(--space-1);
}

.tech-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Values grid */
.about-values {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.value-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.value-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(124,58,237,0.12);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.value-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.value-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================================================
   SERVICES SECTION
   ========================================================= */

.services {
  position: relative;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-16);
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: all var(--dur-slow) var(--ease-spring);
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth);
  border-radius: inherit;
}

.service-card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--grad-primary);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--dur-slow) var(--ease-smooth);
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: var(--shadow-glow), var(--shadow-card);
}

.service-card:hover::before { opacity: 1; }
.service-card:hover::after  { opacity: 1; }

.service-card-inner {
  position: relative;
  z-index: 1;
}

.service-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: var(--space-6);
  transition: all var(--dur-base) var(--ease-spring);
}

.service-card:hover .service-icon-wrap {
  background: rgba(124,58,237,0.2);
  border-color: rgba(124,58,237,0.4);
  transform: scale(1.1) rotate(-5deg);
}

.service-number {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 800;
  color: var(--border);
  line-height: 1;
  transition: color var(--dur-base);
  user-select: none;
}

.service-card:hover .service-number {
  color: rgba(124,58,237,0.2);
}

.service-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.service-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.service-tag {
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--dur-base);
}

.service-card:hover .service-tag {
  background: rgba(124,58,237,0.12);
  border-color: rgba(124,58,237,0.25);
  color: var(--primary-light);
}

/* =========================================================
   COUNTERS SECTION
   ========================================================= */

.counters {
  background: var(--bg-secondary);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}

.counters::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-glow);
  opacity: 0.5;
}

.counters-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
  z-index: 1;
}

.counter-item {
  text-align: center;
  padding: var(--space-6);
}

.counter-value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.counter-suffix {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.counter-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.counter-divider {
  width: 1px;
  background: var(--border);
  margin: auto;
}

/* =========================================================
   CONTACT SECTION
   ========================================================= */

.contact {
  background: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--space-16);
  align-items: start;
  margin-top: var(--space-16);
}

.contact-info-items {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.contact-info-item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.contact-info-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--radius-md);
  background: rgba(124,58,237,0.1);
  border: 1px solid rgba(124,58,237,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--dur-base) var(--ease-spring);
}

.contact-info-item:hover .contact-info-icon {
  background: rgba(124,58,237,0.2);
  transform: scale(1.08);
}

.contact-info-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: var(--space-1);
}

.contact-info-value {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--dur-base);
}

.contact-info-item:hover .contact-info-value { color: var(--primary-light); }

/* Contact form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: var(--space-5);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
  letter-spacing: 0.02em;
}

.form-input {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 0.95rem;
  transition: all var(--dur-base) var(--ease-smooth);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  background: var(--surface-hover);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.15);
}

.form-input::placeholder { color: var(--text-muted); }

textarea.form-input {
  resize: vertical;
  min-height: 120px;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5E85' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  cursor: pointer;
}

.form-submit {
  width: 100%;
  padding: var(--space-4);
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  background: var(--grad-primary);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all var(--dur-base) var(--ease-spring);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.form-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  opacity: 0;
  transition: opacity var(--dur-fast);
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.5);
}

.form-submit:hover::before { opacity: 1; }
.form-submit:active { transform: translateY(0); }

/* Form success */
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-10);
}

.form-success.show { display: block; }

.form-success-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  animation: scaleIn 0.5s var(--ease-spring) both;
}

/* =========================================================
   FOOTER
   ========================================================= */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: var(--space-4) 0 var(--space-6);
  max-width: 280px;
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social-link {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-secondary);
  transition: all var(--dur-base) var(--ease-spring);
}

.footer-social-link:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.3);
  color: var(--primary-light);
  transform: translateY(-3px);
}

.footer-heading {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-bottom: var(--space-5);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--dur-base);
}

.footer-link:hover { color: var(--primary-light); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-copy span {
  color: var(--primary-light);
}

/* =========================================================
   TOAST NOTIFICATION
   ========================================================= */

.toast {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  z-index: var(--z-toast);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.9rem;
  font-weight: 500;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--dur-slow) var(--ease-spring);
  pointer-events: none;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon { font-size: 1.2rem; }

/* =========================================================
   UTILITIES
   ========================================================= */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
  .services-grid      { grid-template-columns: 1fr 1fr; }
  .counters-grid      { grid-template-columns: 1fr 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .about-grid         { grid-template-columns: 1fr; }
  .about-visual       { height: 300px; display: none; }
}

@media (max-width: 768px) {
  .nav-links          { display: none; }
  .nav-hamburger      { display: flex; }
  .nav-actions .btn   { display: none; }

  .services-grid      { grid-template-columns: 1fr; }
  .counters-grid      { grid-template-columns: 1fr 1fr; }
  .contact-grid       { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .hero-stats         { gap: var(--space-6); }
  .hero-stat-divider  { display: none; }

  /* Mobile Performance Tweaks */
  .hero-blob          { animation: none !important; filter: blur(20px) !important; opacity: 0.1 !important; }
  .about-visual-bg    { filter: blur(20px) !important; }
  .service-card       { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  
  /* Stop infinite animations for CPU idle */
  .about-card-stats, 
  .about-card-tech, 
  .hero-scroll-dot, 
  .badge-dot, 
  .text-gradient,
  .hero-particle      { animation: none !important; }
  .hero-particles     { display: none !important; }

  /* Fix LCP/FCP delay by removing entry animations that start with opacity:0 */
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-actions,
  .hero-stats         { animation: none !important; opacity: 1 !important; transform: none !important; }
}

@media (max-width: 480px) {
  .container          { padding: 0 var(--space-4); }
  .section            { padding: var(--space-16) 0; }
  .footer-grid        { grid-template-columns: 1fr; }
  .hero-actions       { flex-direction: column; align-items: flex-start; }
  .counters-grid      { grid-template-columns: 1fr 1fr; }
  .about-values       { grid-template-columns: 1fr; }
}
