/* ============================================================
   BackspacePro — Premium Web Studio Styles
   Design System: Dark Premium + Indigo Accent
   ============================================================ */

/* ──────────────────────────────────────────
   1. DESIGN TOKENS / CSS VARIABLES
─────────────────────────────────────────── */
:root {
  /* Colors */
  --bg:          #080810;
  --bg-2:        #0F0F1A;
  --bg-3:        #14141E;
  --surface:     #1A1A28;
  --border:      rgba(255, 255, 255, 0.07);
  --border-2:    rgba(255, 255, 255, 0.12);

  --text:        #F0F0FF;
  --text-2:      #8888AA;
  --text-3:      #555570;

  --accent:      #6366F1;
  --accent-hover:#4F46E5;
  --accent-light:rgba(99, 102, 241, 0.15);
  --accent-glow: rgba(99, 102, 241, 0.35);

  --success:     #10B981;
  --error:       #EF4444;

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

  /* Spacing */
  --side-pad: 50px;
  --section-gap: 120px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.6);
  --shadow-accent: 0 0 40px rgba(99, 102, 241, 0.3);
}

/* ──────────────────────────────────────────
   2. RESET & BASE
─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; }
::selection { background: var(--accent-light); color: var(--accent); }

/* ──────────────────────────────────────────
   3. LAYOUT
─────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--side-pad);
}

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

/* ──────────────────────────────────────────
   4. TYPOGRAPHY
─────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ──────────────────────────────────────────
   5. BUTTONS
─────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: white;
  opacity: 0;
  transition: opacity var(--transition);
}
.btn:hover::before { opacity: 0.05; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-accent);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border-2);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.btn-white {
  background: #fff;
  color: var(--bg);
  font-weight: 700;
}
.btn-white:hover { background: #E8E8FF; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.btn-lg { padding: 17px 34px; font-size: 16px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }

/* ──────────────────────────────────────────
   6. SECTION HEADERS
─────────────────────────────────────────── */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 64px;
}
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-light);
  border: 1px solid rgba(99, 102, 241, 0.3);
  border-radius: 99px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  color: var(--text);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ──────────────────────────────────────────
   7. SCROLL REVEAL ANIMATIONS
─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1),
              transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed { opacity: 1; transform: translateY(0); }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }
.reveal--delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ──────────────────────────────────────────
   8. HEADER
─────────────────────────────────────────── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--transition-slow), backdrop-filter var(--transition-slow), box-shadow var(--transition-slow), border var(--transition-slow);
}
.header.scrolled {
  background: linear-gradient(180deg, rgba(8, 8, 16, 0.95) 0%, rgba(8, 8, 16, 0.88) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 1px 0 var(--border);
  border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 72px;
}
.header__logo {
  display: flex;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.logo-text { color: var(--text); }
.logo-accent { color: var(--accent); }

.header__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.header__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.header__phone {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--transition);
}
.header__phone:hover { color: var(--text); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
}
.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
  transition: all var(--transition);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  transform: translateX(100%);
  transition: transform var(--transition-slow);
  padding: 20px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu__nav { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 100%; }
.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-2);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
  width: 100%;
  text-align: center;
}
.mobile-nav-link:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.mobile-menu__bottom {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.mobile-menu__phone {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-2);
}

/* ──────────────────────────────────────────
   9. HERO SECTION
─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Background */
.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}
.hero__orb--1 {
  width: 700px; height: 700px;
  background: var(--accent);
  top: -200px; right: -100px;
  animation: orbFloat 12s ease-in-out infinite;
}
.hero__orb--2 {
  width: 500px; height: 500px;
  background: #8B5CF6;
  bottom: 100px; left: -150px;
  animation: orbFloat 15s ease-in-out infinite reverse;
}
.hero__orb--3 {
  width: 300px; height: 300px;
  background: #EC4899;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0.08;
  animation: orbFloat 10s ease-in-out infinite;
}
@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}

.hero__inner {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding-top: 120px;
  padding-bottom: 60px;
  position: relative;
  z-index: 1;
}

.hero__content { max-width: 600px; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}

.hero__headline {
  font-size: clamp(38px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}
.hero__headline-accent {
  background: linear-gradient(135deg, #6366F1, #A78BFA, #EC4899);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subheadline {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 520px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Hero Visual / Mockup */
.hero__visual {
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__mockup { position: relative; width: 100%; max-width: 520px; }

.mockup__browser {
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(99,102,241,0.15);
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.mockup__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 16px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.mockup__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border-2);
}
.mockup__dot:nth-child(1) { background: #FF5F57; }
.mockup__dot:nth-child(2) { background: #FEBC2E; }
.mockup__dot:nth-child(3) { background: #28C840; }
.mockup__url {
  flex: 1;
  background: var(--bg-3);
  border-radius: 6px;
  height: 22px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 11px;
  color: var(--text-3);
  margin-left: 8px;
}
.mockup__screen { padding: 20px; }
.mockup__nav-bar {
  height: 36px;
  background: var(--bg-2);
  border-radius: 8px;
  margin-bottom: 20px;
}
.mockup__hero-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.15), rgba(139,92,246,0.08));
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 20px;
  border: 1px solid rgba(99,102,241,0.2);
}
.mockup__line {
  height: 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  margin-bottom: 10px;
}
.mockup__line.w-60 { width: 60%; }
.mockup__line.w-80 { width: 80%; }
.mockup__line.w-40 { width: 40%; }
.mockup__btn-row {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.mockup__btn-accent {
  height: 30px; width: 110px;
  background: var(--accent);
  border-radius: 7px;
  opacity: 0.9;
}
.mockup__btn-outline {
  height: 30px; width: 90px;
  border: 1px solid var(--border-2);
  border-radius: 7px;
}
.mockup__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.mockup__card {
  height: 70px;
  background: var(--surface);
  border-radius: 8px;
  border: 1px solid var(--border);
}

/* Floating badges on mockup */
.mockup__floating {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.mockup__floating svg { color: var(--accent); flex-shrink: 0; }
.mockup__floating--1 {
  top: 30px; left: -60px;
  animation: float 7s ease-in-out infinite;
}
.mockup__floating--2 {
  bottom: 40px; right: -40px;
  animation: float 5s ease-in-out infinite 1s;
}
.mockup__floating--1 svg { color: #10B981; }
.mockup__floating--2 svg { color: #F59E0B; }

/* Hero Stats */
.hero__stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(15,15,26,0.6);
  backdrop-filter: blur(12px);
}
.stats-grid {
  display: flex;
  align-items: stretch;
  padding: 32px 0;
}
.stat-item {
  flex: 1;
  text-align: center;
  padding: 12px 24px;
}
.stat-value {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  background: linear-gradient(135deg, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 4px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  margin: 12px 0;
}

/* ──────────────────────────────────────────
   10. MARQUEE
─────────────────────────────────────────── */
.marquee-section {
  overflow: hidden;
  padding: 20px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.marquee__track span {
  padding: 0 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
  white-space: nowrap;
  text-transform: uppercase;
}
.marquee__track .sep { color: var(--accent); padding: 0 4px; }
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ──────────────────────────────────────────
   11. SERVICES
─────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.service-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clr, #6366F1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-slow);
}
.service-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.service-card:hover::before { opacity: 0.05; }

.service-card__icon {
  width: 52px; height: 52px;
  background: var(--accent-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--clr, var(--accent));
  background: color-mix(in srgb, var(--clr, #6366F1) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr, #6366F1) 30%, transparent);
  transition: all var(--transition);
  position: relative;
  z-index: 1;
}
.service-card:hover .service-card__icon {
  background: color-mix(in srgb, var(--clr, #6366F1) 25%, transparent);
}

.service-card__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.service-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.service-card__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}
.service-card__features li {
  font-size: 13px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.service-card__features li::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--clr, var(--accent));
  border-radius: 50%;
  flex-shrink: 0;
}
.service-card__cta {
  font-size: 14px;
  font-weight: 600;
  color: var(--clr, var(--accent));
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition), opacity var(--transition);
  position: relative;
  z-index: 1;
}
.service-card:hover .service-card__cta { gap: 8px; }

/* ──────────────────────────────────────────
   12. PORTFOLIO
─────────────────────────────────────────── */
.portfolio {
  background: var(--bg-2);
  border-radius: 48px;
}

.portfolio-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-btn {
  padding: 10px 22px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: 1.5px solid var(--border);
  transition: all var(--transition);
}
.filter-btn:hover { border-color: var(--border-2); color: var(--text); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.portfolio-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.portfolio-item:hover { transform: scale(1.02); box-shadow: var(--shadow-lg); }
.portfolio-item__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-slow);
}
.portfolio-item:hover .portfolio-item__bg { transform: scale(1.06); }
.portfolio-item__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.1) 60%, transparent 100%);
  opacity: 0;
  transition: opacity var(--transition-slow);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.portfolio-item:hover .portfolio-item__overlay { opacity: 1; }
.portfolio-item__category {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.portfolio-item__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.portfolio-item__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.portfolio-item__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.portfolio-item__tag {
  padding: 3px 10px;
  background: rgba(255,255,255,0.12);
  border-radius: 99px;
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

.portfolio-item.hidden { display: none; }

.portfolio__cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.portfolio__cta p { color: var(--text-2); font-size: 15px; }

/* ──────────────────────────────────────────
   13. PROCESS
─────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.process-step {
  background: var(--bg);
  padding: 40px 32px;
  position: relative;
  transition: background var(--transition);
}
.process-step:hover { background: var(--bg-2); }
.process-step__number {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--accent), transparent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 16px;
  opacity: 0.4;
}
.process-step:hover .process-step__number { opacity: 0.7; }
.process-step__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.process-step__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ──────────────────────────────────────────
   14. ABOUT
─────────────────────────────────────────── */
.about {
  background: var(--bg-2);
  border-radius: 48px;
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__left .section-title { text-align: left; }
.about__left .section-badge { margin-bottom: 20px; }
.about__desc {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 16px;
}
.about__left .btn { margin-top: 8px; }

.about__values {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.value-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition), transform var(--transition);
}
.value-card:hover {
  border-color: var(--border-2);
  transform: translateX(4px);
}
.value-card__icon {
  width: 40px; height: 40px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.value-card h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.value-card p {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
}
.about__card {
  background: linear-gradient(135deg, var(--accent-light), rgba(139,92,246,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.about__card-stat {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}
.about__card-num {
  font-family: var(--font-heading);
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
}
.about__card-lbl {
  font-size: 15px;
  color: var(--text-2);
  font-weight: 500;
}
.about__card-locations {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.about__card-locations span {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 500;
}
.location-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.location-item svg { color: var(--accent); flex-shrink: 0; }

/* ──────────────────────────────────────────
   15. TESTIMONIALS
─────────────────────────────────────────── */
.testimonials {
  background: var(--bg-3);
  border-radius: 48px;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition);
}
.testimonial-card:hover {
  border-color: var(--border-2);
  transform: translateY(-4px);
}
.testimonial-card__quote {
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 16px;
  opacity: 0.6;
}
.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-card__stars svg { color: #F59E0B; }
.testimonial-card__text {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 24px;
}
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
  overflow: hidden;
}
.testimonial-card__avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.testimonial-card__name {
  font-size: 15px;
  font-weight: 700;
}
.testimonial-card__role {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}

/* ──────────────────────────────────────────
   16. CTA BANNER
─────────────────────────────────────────── */
.cta-banner {
  padding: 48px 0;
  position: relative;
}
.cta-banner__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  background: linear-gradient(135deg, var(--accent) 0%, #8B5CF6 100%);
  border-radius: 32px;
  padding: 64px 56px;
  margin: 0 10px;
  overflow: hidden;
}
.cta-banner__inner::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='%23ffffff' fill-opacity='0.05'%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");
  pointer-events: none;
}
.cta-banner__content h2 {
  font-size: clamp(24px, 3vw, 38px);
  color: #fff;
  margin-bottom: 12px;
}
.cta-banner__content p {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  max-width: 500px;
}
.cta-banner__actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────
   17. CONTACT
─────────────────────────────────────────── */
.contact { background: var(--bg-2); }
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}
.contact__left .section-title { text-align: left; }
.contact__left .section-badge { margin-bottom: 20px; }
.contact__subtitle {
  font-size: 16px;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 36px;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}
.contact__info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--text-2);
  transition: color var(--transition);
}
a.contact__info-item:hover { color: var(--text); }
.contact__info-icon {
  width: 40px; height: 40px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--accent);
}
.contact__social {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.social-btn {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--text-2);
  transition: all var(--transition);
}
.social-btn:hover { transform: translateY(-2px); border-color: var(--border-2); }
.social-btn--whatsapp:hover { color: #25D366; border-color: #25D366; }
.social-btn--telegram:hover { color: #2AABEE; border-color: #2AABEE; }
.social-btn--instagram:hover { color: #E1306C; border-color: #E1306C; }

/* Contact Form */
.contact-form {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
}
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.form-header h3 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.form-badge {
  padding: 5px 14px;
  background: rgba(16,185,129,0.12);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: 99px;
  color: var(--success);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}
.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  resize: vertical;
  min-height: 48px;
  appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}
.form-group select option { background: var(--bg-2); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: var(--error);
}
.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-3);
}

.form-success {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.3);
  border-radius: var(--radius-sm);
  color: var(--success);
  font-weight: 600;
  margin-top: 16px;
}
.form-privacy {
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-3);
  text-align: center;
}
.form-privacy a { color: var(--text-2); text-decoration: underline; }

/* Spinner */
@keyframes spin { from { transform: rotate(0); } to { transform: rotate(360deg); } }
.spin { animation: spin 0.8s linear infinite; }

/* ──────────────────────────────────────────
   18. FOOTER
─────────────────────────────────────────── */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding-top: 80px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}
.footer__logo {
  display: inline-flex;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.footer__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 280px;
}
.footer__social {
  display: flex;
  gap: 10px;
}
.footer-social-link {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  transition: all var(--transition);
}
.footer-social-link:hover { color: var(--text); border-color: var(--border-2); background: var(--bg-3); }

.footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
}
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col ul li a,
.footer__col ul li span {
  font-size: 14px;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer__col ul li a:hover { color: var(--text); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__bottom p {
  font-size: 13px;
  color: var(--text-3);
}
.footer__bottom-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__bottom-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color var(--transition);
}
.footer__bottom-links a:hover { color: var(--text-2); }
.footer__admin-link {
  color: var(--accent) !important;
  opacity: 0.5;
  font-size: 11px !important;
  transition: opacity var(--transition) !important;
}
.footer__admin-link:hover { opacity: 1 !important; }

/* ──────────────────────────────────────────
   19. SCROLL TO TOP & FLOATING BUTTONS
─────────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 90px;
  right: 24px;
  z-index: 50;
  width: 44px; height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all var(--transition);
}
.scroll-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.scroll-top:hover { color: var(--text); background: var(--surface); }

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.wa-float:hover {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.55);
}

/* ──────────────────────────────────────────
   19b. LANGUAGE SWITCHER (DROPDOWN)
─────────────────────────────────────────── */
.lang-switcher {
  position: relative;
  flex-shrink: 0;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(99, 102, 241, 0.2);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%);
  color: var(--text-1);
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  letter-spacing: 0.3px;
  white-space: nowrap;
  outline: none;
}
.lang-trigger:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0.08) 100%);
  color: var(--text-1);
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.1);
}
.lang-trigger__chevron {
  transition: transform 0.2s ease;
  opacity: 0.7;
}
.lang-switcher.open .lang-trigger {
  border-color: rgba(99, 102, 241, 0.5);
  color: var(--accent);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0.08) 100%);
}
.lang-switcher.open .lang-trigger__chevron {
  transform: rotate(180deg);
  opacity: 1;
}
.lang-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: linear-gradient(135deg, rgba(20, 20, 35, 0.98) 0%, rgba(15, 15, 25, 0.96) 100%);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
  padding: 6px;
  min-width: 160px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6), 0 4px 8px rgba(99, 102, 241, 0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.95);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 2000;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-body);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  outline: none;
}
.lang-option:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--text-1);
}
.lang-option.active {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.12);
  font-weight: 600;
}
.lang-option__code {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.5px;
  width: 24px;
  opacity: 0.8;
}
.lang-option:hover .lang-option__code,
.lang-option.active .lang-option__code {
  opacity: 1;
}
.lang-option__name {
  font-size: 14px;
  font-weight: 500;
}

/* ──────────────────────────────────────────
   20. RESPONSIVE — TABLET (≤ 1024px)
─────────────────────────────────────────── */
@media (max-width: 1024px) {
  :root {
    --side-pad: 32px;
    --section-gap: 90px;
  }
  .hero__inner { grid-template-columns: 1fr; gap: 48px; padding-top: 110px; }
  .hero__visual { order: -1; }
  .hero__mockup { max-width: 420px; margin: 0 auto; }
  .mockup__floating--1 { left: -20px; }
  .mockup__floating--2 { right: -10px; }

  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about__inner { grid-template-columns: 1fr; gap: 48px; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .cta-banner__inner { flex-direction: column; text-align: center; }
  .cta-banner__content p { margin: 0 auto; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .header__nav { display: none; }
  .header__phone { display: none; }
  .header__actions .btn { display: none; }
  .burger { display: flex; }
}

/* ──────────────────────────────────────────
   21. RESPONSIVE — MOBILE (≤ 640px)
─────────────────────────────────────────── */
@media (max-width: 640px) {
  :root {
    --side-pad: 18px;
    --section-gap: 64px;
  }

  /* Hero */
  .hero__inner { padding-top: 90px; gap: 32px; }
  .hero__headline { font-size: clamp(30px, 8vw, 44px); }
  .hero__subheadline { font-size: 16px; line-height: 1.65; margin-bottom: 28px; }
  .hero__badge { font-size: 12px; padding: 6px 14px; }
  .hero__actions { flex-direction: column; gap: 10px; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .btn-lg { padding: 15px 24px; font-size: 15px; }

  /* Stats */
  .stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-divider { display: none; }
  .stat-item { border: 1px solid var(--border); padding: 18px 12px; }
  .stat-value { font-size: 26px; }
  .stat-label { font-size: 12px; }

  /* Section headers */
  .section-header { margin-bottom: 40px; }
  .section-title { font-size: clamp(22px, 6vw, 34px); }
  .section-subtitle { font-size: 15px; line-height: 1.65; }
  .section-badge { font-size: 11px; padding: 5px 14px; }

  /* Services */
  .services-grid { grid-template-columns: 1fr; gap: 12px; }
  .service-card { padding: 24px; }
  .service-card__title { font-size: 18px; }

  /* Portfolio */
  .portfolio-grid { grid-template-columns: 1fr; gap: 12px; }

  /* Process */
  .process-grid { grid-template-columns: 1fr; }
  .process-step { padding: 28px 24px; }
  .process-step__number { font-size: 40px; }
  .process-step__title { font-size: 18px; }

  /* About */
  .about__inner { gap: 36px; }
  .about__card { padding: 20px; }
  .about__card-num { font-size: 42px; }
  .about__card-locations { gap: 10px; }
  .value-card { padding: 16px 18px; gap: 12px; }

  /* Testimonials */
  .testimonials-grid { grid-template-columns: 1fr; gap: 12px; }
  .testimonial-card { padding: 24px; }

  /* Section rounded corners — reduce on mobile */
  .portfolio, .about, .testimonials { border-radius: 28px; }

  /* CTA banner */
  .cta-banner { padding: 24px 0; }
  .cta-banner__inner { border-radius: 20px; padding: 40px 24px; margin: 0; flex-direction: column; text-align: center; }
  .cta-banner__content p { margin: 0 auto; }
  .cta-banner__actions { flex-direction: column; width: 100%; }
  .cta-banner__actions .btn { justify-content: center; width: 100%; }

  /* Contact */
  .contact__inner { gap: 36px; }
  .contact-form { padding: 24px 18px; }
  .contact__subtitle { font-size: 15px; }

  /* Footer */
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer__bottom-links { gap: 14px; flex-wrap: wrap; }

  /* Mockup */
  .mockup__floating { display: none; }
  .mockup__browser { border-radius: var(--radius-md); }
  .hero__mockup { max-width: 340px; }

  /* Scroll/float buttons */
  .scroll-top { bottom: 84px; right: 14px; }
  .wa-float { bottom: 14px; right: 14px; }
}

/* ──────────────────────────────────────────
   22. RESPONSIVE — SMALL MOBILE (≤ 400px)
─────────────────────────────────────────── */
@media (max-width: 400px) {
  :root {
    --side-pad: 14px;
    --section-gap: 52px;
  }
  .portfolio, .about, .testimonials { border-radius: 18px; }
  .hero__inner { padding-top: 80px; }
  .hero__headline { font-size: 28px; }
  .hero__subheadline { font-size: 15px; }
  .hero__badge { display: none; }
  .section-title { font-size: 21px; }
  .section-subtitle { font-size: 14px; }
  .stat-value { font-size: 22px; }
  .stat-label { font-size: 11px; }
  .service-card { padding: 20px; }
  .process-step { padding: 22px 18px; }
  .contact-form { padding: 20px 14px; }
  .testimonial-card { padding: 20px; }
  .footer__desc { font-size: 13px; }
}

/* ──────────────────────────────────────────
   23. UTILITIES
─────────────────────────────────────────── */
.text-accent { color: var(--accent); }
.text-muted { color: var(--text-2); }
.text-center { text-align: center; }

/* Focus visible styles for accessibility */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
