/* ============================================================
   SyncFlowio Landing — Dark Modern Theme (Enhanced)
   ============================================================ */

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

html.nav-open,
html.nav-open body {
  overflow: hidden;
}

html.nav-open .section,
html.nav-open .hero,
html.nav-open .footer,
html.nav-open .back-to-top {
  visibility: hidden;
}

html.nav-open .header {
  transition: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  background: var(--bg);
}

:root {
  --bg: #0a0a0f;
  --bg-alt: #0e0e16;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a26;
  --border: #1e1e2e;
  --border-light: #2a2a3e;
  --text: #e4e4ef;
  --text-muted: #8888a0;
  --text-dim: #5c5c74;
  --accent: #6c5ce7;
  --accent-light: #8b7cf7;
  --accent-glow: rgba(108, 92, 231, 0.15);
  --gradient: linear-gradient(135deg, #6c5ce7, #a78bfa);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1140px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
  position: relative;
}

.section__header {
  margin-bottom: 60px;
}

.section__label {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

/* --- Section dividers --- */
.section-divider {
  height: 1px;
  border: none;
  background: linear-gradient(90deg, transparent, var(--accent) 50%, transparent);
  opacity: 0.2;
  margin: 0;
}

/* --- Button --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 24px rgba(108, 92, 231, 0.3);
  position: relative;
  overflow: hidden;
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent 60%);
  opacity: 0;
  transition: var(--transition);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(108, 92, 231, 0.45);
}

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

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  padding: 16px 0;
  transition: var(--transition);
  background: transparent;
}

.header--scrolled {
  background: rgba(10, 10, 15, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.25rem;
}

.logo__icon {
  height: 36px;
  width: 36px;
  object-fit: contain;
}

.logo__text {
  color: #fff;
}

.logo__accent {
  color: #4361ee;
}

/* Nav (lives outside header in DOM to avoid backdrop-filter containment) */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 0;
  z-index: 10001;
  pointer-events: none;
}

.header--scrolled ~ .nav {
  padding: 10px 0;
}

.nav .nav__link {
  pointer-events: auto;
}

.nav__link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: #fff;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 1px;
  transition: var(--transition);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Header right */
.header__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Lang Switcher */
.lang-switcher {
  display: flex;
  gap: 2px;
  background: var(--bg-card);
  border-radius: 6px;
  padding: 2px;
  border: 1px solid var(--border);
}

.lang-btn {
  padding: 5px 10px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 4px;
  transition: var(--transition);
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.active {
  background: var(--accent);
  color: #fff;
}

/* Burger */
.burger {
  display: none;
  position: relative;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
  -webkit-appearance: none;
}

.burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: var(--transition);
}

.burger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
  opacity: 0;
}

.burger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  padding-top: 22vh;
  position: relative;
  overflow: hidden;
}

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

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(108, 92, 231, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 92, 231, 0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

/* Animated gradient orb */
.hero__orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.35) 0%, rgba(167, 139, 250, 0.12) 40%, transparent 70%);
  filter: blur(90px);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: orbFloat 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  33% { transform: translate(-45%, -55%) scale(1.1); opacity: 0.9; }
  66% { transform: translate(-55%, -45%) scale(0.95); opacity: 0.55; }
}

/* Secondary orb */
.hero__orb--secondary {
  width: 500px;
  height: 500px;
  top: 25%;
  left: 60%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.25) 0%, rgba(108, 92, 231, 0.06) 50%, transparent 70%);
  animation: orbFloat2 12s ease-in-out infinite;
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
  50% { transform: translate(-55%, -48%) scale(1.15); opacity: 0.8; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero__badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.25);
  color: var(--accent-light);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 32px;
}

.hero__title {
  font-size: clamp(2.25rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  color: #fff;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  color: var(--accent-light);
  background: rgba(108, 92, 231, 0.08);
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 1;
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.8; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.4; }
}

/* ============================================================
   Services
   ============================================================ */
.services {
  background: var(--bg-alt);
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

/* Gradient border on hover */
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

/* Cursor glow */
.service-card__glow {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.12), transparent 70%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.service-card:hover .service-card__glow {
  opacity: 1;
}

.service-card:hover {
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border: 1px solid rgba(108, 92, 231, 0.2);
  border-radius: var(--radius-sm);
  color: var(--accent-light);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.service-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.service-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Advantages
   ============================================================ */
.advantages {
  background: var(--bg-alt);
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ============================================================
   Cases
   ============================================================ */
.cases {
  background: var(--bg-card);
}

.cases__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto auto auto auto 1fr auto auto;
  gap: 0 24px;
}

.case-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 8;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.case-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--gradient);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

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

.case-card:hover {
  border-color: transparent;
  transform: translateY(-4px);
}

.case-card__number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  line-height: 1;
}

.case-card__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.case-card__problem {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  line-height: 1.6;
}

.case-card__solution {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  align-self: start;
}

/* Metric highlight */
.case-card__metric {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 20px;
}

.case-card__metric-value {
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.case-card__metric-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Cost info */
.case-card__cost {
  display: flex;
  gap: 24px;
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  align-self: end;
}

.case-card__cost-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.case-card__cost-label {
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 500;
}

.case-card__cost-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
}

.case-card__result {
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 0.875rem;
  color: var(--text);
  align-self: end;
}

.case-card__result-label {
  font-weight: 600;
  color: var(--accent-light);
}

/* ============================================================
   Process
   ============================================================ */
.process {
  background: var(--bg-alt);
}

.process__timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 0;
  position: relative;
}

.process-step {
  position: relative;
  padding: 0 24px;
}

/* Connector line between steps */
.process-step::after {
  content: '';
  position: absolute;
  top: 22px;
  left: calc(24px + 44px);
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--border));
  opacity: 0.3;
}

.process-step:nth-child(3n)::after,
.process-step:last-child::after {
  display: none;
}

.process-step__marker {
  margin-bottom: 20px;
}

.process-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  color: var(--accent-light);
  font-size: 1rem;
  font-weight: 700;
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.process-step:hover .process-step__num {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(108, 92, 231, 0.4);
}

.process-step__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.process-step__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   About
   ============================================================ */
.about__lead {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text);
  max-width: 720px;
  line-height: 1.7;
  margin-bottom: 48px;
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.about-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.about-card:hover::before {
  transform: scaleX(1);
}

.about-card:hover {
  border-color: var(--border-light);
}

.about-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.about-card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   Contact
   ============================================================ */
.contact {
  background: var(--bg-card);
  position: relative;
}

/* Top glow */
.contact::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(ellipse, rgba(108, 92, 231, 0.15), transparent 70%);
  pointer-events: none;
}

.contact__inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.contact__text {
  color: var(--text-muted);
  font-size: 1.0625rem;
  margin-top: 16px;
}

/* Contact channels */
.contact__channels {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.contact-channel {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
}

.contact-channel:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.contact-channel__icon {
  color: var(--accent-light);
  flex-shrink: 0;
}

.contact-channel__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-channel__name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact-channel__value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #fff;
}

/* Divider */
.contact__divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: var(--text-dim);
  font-size: 0.8125rem;
}

.contact__divider::before,
.contact__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.contact__form {
  text-align: left;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form__group {
  margin-bottom: 16px;
}

.form__input {
  width: 100%;
  padding: 14px 18px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: var(--transition);
  outline: none;
}

.form__input::placeholder {
  color: var(--text-dim);
}

.form__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.contact__form .btn {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
}

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

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

.footer__copy {
  font-size: 0.8125rem;
  color: var(--text-dim);
}

/* ============================================================
   Animations
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section entrance animation */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for children */
.fade-in-stagger > .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-stagger > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in-stagger > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in-stagger > .fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in-stagger > .fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in-stagger > .fade-in:nth-child(6) { transition-delay: 0.5s; }

/* Hero-specific staggered entrance */
.hero .fade-in:nth-child(1) { transition-delay: 0.1s; }
.hero .fade-in:nth-child(2) { transition-delay: 0.25s; }
.hero .fade-in:nth-child(3) { transition-delay: 0.4s; }
.hero .fade-in:nth-child(4) { transition-delay: 0.55s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid {
    grid-template-columns: 1fr 1fr;
  }

  .cases__grid {
    grid-template-columns: 1fr;
    max-width: 560px;
  }

  .process__timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:nth-child(2n)::after {
    display: none;
  }

  .process-step:nth-child(3n)::after {
    display: block;
  }
}

@media (max-width: 1024px) {
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    overscroll-behavior: none;
    touch-action: pinch-zoom;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    display: none;
    z-index: 9999;
  }

  .nav .nav__link.active::after {
    width: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav__link {
    font-size: 1.25rem;
  }

  .burger {
    display: flex;
    z-index: 10000;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .section__header {
    margin-bottom: 40px;
  }

  .services__grid,
  .advantages__grid {
    grid-template-columns: 1fr;
  }

  .cases__grid {
    grid-template-columns: 1fr;
  }

  .process__timeline {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .process-step::after {
    display: none !important;
  }

  .about__grid {
    grid-template-columns: 1fr;
  }

  .contact__channels {
    flex-direction: column;
  }

  .form__row {
    grid-template-columns: 1fr;
  }

  .hero__title br {
    display: none;
  }

  .hero__scroll {
    bottom: 24px;
  }

  .hero__orb {
    width: 350px;
    height: 350px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 130px;
    padding-bottom: 80px;
    align-items: flex-start;
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__scroll {
    display: none;
  }

  .footer__inner {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

/* ============================================================
   Back to top
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108, 92, 231, 0.35);
}

/* ============================================================
   Print
   ============================================================ */
@media print {
  *,
  *::before,
  *::after {
    background: #fff !important;
    color: #000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .header,
  .hero__bg,
  .hero__scroll {
    display: none;
  }
}
