/* ═══════════════════════════════════════════════════════════════
   IT Media Group — Premium Dark Tech Theme
   Design System: UI UX Pro Max
   ═══════════════════════════════════════════════════════════════ */

@font-face {
  font-family: 'merkur';
  src: url('../fonts/merkur-webfont.woff2') format('woff2'),
       url('../fonts/merkur-webfont.woff') format('woff');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── Tokens ────────────────────────────────────────────────── */
:root {
  --bg-primary: #060611;
  --bg-surface: #0b0b1a;
  --bg-card: #111128;
  --bg-card-hover: #16163a;

  --accent-blue: #4f7df5;
  --accent-cyan: #22d3ee;
  --accent-blue-dim: rgba(79, 125, 245, 0.12);
  --cta-gold: #f59e0b;
  --cta-gold-hover: #d97706;

  --text-primary: #e8eaf6;
  --text-secondary: #8892b0;
  --text-muted: #5a6178;

  --border-glow: rgba(79, 125, 245, 0.12);
  --border-glow-hover: rgba(79, 125, 245, 0.3);

  --gradient-blue: linear-gradient(135deg, #4f7df5, #22d3ee);
  --gradient-gold: linear-gradient(135deg, #f59e0b, #fbbf24);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 40px rgba(79, 125, 245, 0.12);

  --transition: 0.2s ease;
  --transition-slow: 0.4s ease;

  --container: 1200px;
  --nav-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-h) + 32px);
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-secondary);
  background: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-primary);
  line-height: 1.15;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

ul { list-style: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, textarea { font: inherit; }

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

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

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

/* ── Animations ────────────────────────────────────────────── */
.animate-in {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__canvas { display: none; }
  .hero__badge-dot, .hero__scroll, .hero__code-rain span, .hero__ai-orb, .hero__code-card, .hero__terminal-caret { animation: none; }
  .card, .process__step .process__number, .benefit-card, .hero__code-card { transition: none; transform: none; }
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--cta-gold);
  color: #0a0a0f;
}
.btn--primary:hover {
  background: var(--cta-gold-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.25);
}
.btn--secondary {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--accent-blue);
}
.btn--secondary:hover {
  background: var(--accent-blue-dim);
}
.btn--sm { padding: 8px 20px; font-size: 14px; }
.btn--lg { padding: 14px 32px; font-size: 16px; }
.btn--full { width: 100%; justify-content: center; }

.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ═══════════════════════════ NAVIGATION ═══════════════════════════ */
.nav {
  position: fixed;
  top: 16px;
  left: 24px;
  right: 24px;
  z-index: 1000;
  background: rgba(6, 6, 17, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  transition: background var(--transition), border-color var(--transition);
}
.nav.scrolled {
  background: rgba(6, 6, 17, 0.95);
  border-color: var(--border-glow-hover);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: var(--nav-h);
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-primary);
}
.nav__logo-image {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.f_logo {
  display: inline-block;
  font-family: 'merkur', 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 2.3vw, 38px);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
  text-shadow: 0 5px 14px rgba(0, 0, 0, 0.30);
  transform: translateY(-1px);
}

.nav__logo:hover { color: var(--text-primary); }
.nav__links {
  display: flex;
  gap: 32px;
}
.nav__links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  padding: 4px 0;
}
.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-blue);
  border-radius: 1px;
  transition: width 0.3s ease;
}
.nav__links a:hover { color: var(--text-primary); }
.nav__links a:hover::after { width: 100%; }
.nav__links a:focus-visible {
  color: var(--text-primary);
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
  border-radius: 2px;
}


.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav__burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__burger.active span:nth-child(2) { opacity: 0; }
.nav__burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ═══════════════════════════ HERO ═══════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 0 80px;
  background: radial-gradient(circle at top, rgba(79, 125, 245, 0.08), transparent 40%), var(--bg-primary);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/hero.png') center / cover no-repeat;
  opacity: 0.28;
  filter: saturate(0.95) contrast(1.03);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79, 125, 245, 0.08) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(34, 211, 238, 0.06) 0%, transparent 50%),
    linear-gradient(180deg, transparent 0%, var(--bg-primary) 100%);
  z-index: 1;
}
.hero__code-rain {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.46;
  mix-blend-mode: screen;
}
.hero__code-rain span {
  position: absolute;
  left: -10%;
  width: 140%;
  font-family: 'JetBrains Mono', monospace;
  font-size: clamp(10px, 1vw, 13px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(34, 211, 238, 0.18);
  text-shadow: 0 0 18px rgba(34, 211, 238, 0.12);
  animation: hero-code-drift 18s linear infinite;
}
.hero__code-rain span:nth-child(1) { top: 18%; animation-duration: 22s; }
.hero__code-rain span:nth-child(2) { top: 44%; animation-duration: 18s; animation-direction: reverse; color: rgba(79, 125, 245, 0.22); }
.hero__code-rain span:nth-child(3) { top: 70%; animation-duration: 25s; }

.hero__ai-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
}
.hero__ai-orb--one {
  top: 14%;
  left: 8%;
  width: clamp(180px, 26vw, 320px);
  height: clamp(180px, 26vw, 320px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.32) 0%, rgba(79, 125, 245, 0.12) 35%, transparent 72%);
  animation: orb-float-one 9s ease-in-out infinite;
}
.hero__ai-orb--two {
  right: 10%;
  bottom: 12%;
  width: clamp(220px, 30vw, 360px);
  height: clamp(220px, 30vw, 360px);
  background: radial-gradient(circle, rgba(79, 125, 245, 0.28) 0%, rgba(34, 211, 238, 0.10) 40%, transparent 75%);
  animation: orb-float-two 11s ease-in-out infinite;
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(79, 125, 245, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 125, 245, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 1), transparent 80%);
  opacity: 0.34;
}

.hero__code-cards {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.hero__code-card {
  position: absolute;
  width: min(320px, 32vw);
  padding: 16px 18px;
  border: 1px solid rgba(79, 125, 245, 0.18);
  border-radius: var(--radius-md);
  background: rgba(8, 11, 24, 0.6);
  box-shadow: 0 20px 40px rgba(0,0,0,0.28), 0 0 20px rgba(34, 211, 238, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  opacity: 0.9;
}

.hero__code-card--left {
  top: 18%;
  left: 4%;
  transform: rotate(-7deg);
  animation: code-card-float-left 8s ease-in-out infinite;
}

.hero__code-card--right {
  right: 4%;
  bottom: 17%;
  transform: rotate(6deg);
  animation: code-card-float-right 9s ease-in-out infinite;
}

.hero__code-card-label {
  display: inline-block;
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(34, 211, 238, 0.82);
}

.hero__code-card pre {
  margin: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(232, 234, 246, 0.78);
  white-space: pre-wrap;
}

.hero__terminal {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto 56px;
  z-index: 2;
  border: 1px solid rgba(79, 125, 245, 0.22);
  border-radius: 18px;
  background: rgba(4, 7, 16, 0.76);
  box-shadow: 0 18px 48px rgba(0,0,0,0.34), 0 0 30px rgba(34, 211, 238, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  overflow: hidden;
}

.hero__terminal-bar {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(79, 125, 245, 0.12);
  background: rgba(255,255,255,0.02);
}

.hero__terminal-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.hero__terminal-bar span:nth-child(1) { background: #ff5f57; }
.hero__terminal-bar span:nth-child(2) { background: #febc2e; }
.hero__terminal-bar span:nth-child(3) { background: #28c840; }

.hero__terminal-body {
  padding: 16px 18px 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: rgba(232, 234, 246, 0.88);
}

.hero__terminal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 24px;
}

.hero__terminal-prompt { color: var(--accent-cyan); }

.hero__terminal-caret {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: rgba(34, 211, 238, 0.82);
  animation: terminal-caret-blink 1s steps(1) infinite;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--accent-blue-dim);
  border: 1px solid rgba(79, 125, 245, 0.2);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent-blue);
  margin-bottom: 32px;
  font-family: 'JetBrains Mono', monospace;
}

.f_logo--hero {
  display: inline-block;
  margin-bottom: 32px;
  font-size: 120px;
  line-height: 1;
}
.hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(34, 211, 238, 0); }
}

.hero__title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  font-size: clamp(16px, 2vw, 18px);
  max-width: 600px;
  margin: 0 auto 40px;
  color: var(--text-secondary);
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: var(--text-muted);
  animation: float-down 2s ease-in-out infinite;
}
@keyframes float-down {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.5; }
  50% { transform: translateX(-50%) translateY(8px); opacity: 1; }
}

@keyframes hero-code-drift {
  0% { transform: translate3d(0, 0, 0); opacity: 0.14; }
  50% { opacity: 0.34; }
  100% { transform: translate3d(-8%, 0, 0); opacity: 0.14; }
}

@keyframes orb-float-one {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(26px, -18px, 0) scale(1.06); }
}

@keyframes orb-float-two {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-20px, 16px, 0) scale(0.96); }
}

@keyframes code-card-float-left {
  0%, 100% { transform: rotate(-7deg) translate3d(0, 0, 0); }
  50% { transform: rotate(-4deg) translate3d(10px, -10px, 0); }
}

@keyframes code-card-float-right {
  0%, 100% { transform: rotate(6deg) translate3d(0, 0, 0); }
  50% { transform: rotate(3deg) translate3d(-12px, 8px, 0); }
}

@keyframes terminal-caret-blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ═══════════════════════════ SECTION BACKGROUNDS ═══════════════════════════ */
.hero,
.section,
.footer {
  position: relative;
  isolation: isolate;
}

.section::before,
.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.22;
  filter: saturate(0.95) contrast(1.02);
}

.section::after,
.footer::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(6, 6, 17, 0.78), rgba(6, 6, 17, 0.92));
}

.services::before { background-image: url('../img/services.png'); }
.cases::before { background-image: url('../img/cases.png'); }
.about::before { background-image: url('../img/about.png'); }
#stack::before { background-image: url('../img/stack.png'); }
.process::before { background-image: url('../img/process.png'); }
#benefits::before { background-image: url('../img/benefits.png'); }
.prices::before { background-image: url('../img/prices.png'); }
.contact::before { background-image: url('../img/contact.png'); }
.footer::before { background-image: url('../img/footer.png'); }
.footer::after { background: linear-gradient(180deg, rgba(6, 6, 17, 0.88), rgba(6, 6, 17, 0.97)); }

/* ═══════════════════════════ SECTIONS ═══════════════════════════ */
.section {
  padding: 100px 0;
}
.section__header {
  text-align: center;
  margin-bottom: 64px;
}
.section__label {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-blue);
  margin-bottom: 16px;
}
.section__title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}
.section__desc {
  font-size: 17px;
  max-width: 560px;
  margin: 0 auto;
  color: var(--text-secondary);
}

/* INTERACTIVE NEEDS PANEL */
.needs-panel {
  background:
    radial-gradient(circle at top center, rgba(79, 125, 245, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(11, 11, 26, 0.98), rgba(6, 6, 17, 1));
}

.needs-panel::before {
  background-image: none;
  opacity: 1;
}

.needs-panel::after {
  background:
    radial-gradient(circle at 20% 15%, rgba(34, 211, 238, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(6, 6, 17, 0.62), rgba(6, 6, 17, 0.9));
}

.needs-panel__header {
  margin-bottom: 40px;
}

.needs-panel__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.needs-panel__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  min-height: 0;
  padding: 20px 18px;
  text-align: center;
  border: 1px solid rgba(79, 125, 245, 0.18);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(98, 135, 246, 0.24), rgba(36, 47, 102, 0.16)),
    linear-gradient(180deg, rgba(20, 24, 52, 0.98), rgba(8, 10, 24, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -10px 18px rgba(0, 0, 0, 0.28),
    0 14px 24px rgba(0, 0, 0, 0.22),
    0 8px 0 rgba(8, 10, 24, 0.92);
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.needs-panel__item:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 211, 238, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -10px 18px rgba(0, 0, 0, 0.26),
    0 20px 36px rgba(0, 0, 0, 0.3),
    0 10px 0 rgba(8, 10, 24, 0.92),
    0 0 24px rgba(34, 211, 238, 0.12);
  background:
    linear-gradient(180deg, rgba(108, 149, 255, 0.28), rgba(34, 211, 238, 0.08)),
    linear-gradient(180deg, rgba(23, 28, 59, 0.98), rgba(10, 12, 29, 0.98));
}

.needs-panel__item:active {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 -6px 12px rgba(0, 0, 0, 0.24),
    0 8px 14px rgba(0, 0, 0, 0.24),
    0 3px 0 rgba(8, 10, 24, 0.92);
}

.needs-panel__item:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 3px;
}

.needs-panel__item-title {
  display: block;
  margin-bottom: 0;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 15ch;
  color: var(--text-primary);
}

.needs-panel__item-desc {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.needs-panel__more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 28px auto 0;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(79, 125, 245, 0.2);
  color: var(--text-primary);
  background: rgba(79, 125, 245, 0.08);
}

.needs-panel__more:hover {
  background: rgba(79, 125, 245, 0.14);
  border-color: rgba(34, 211, 238, 0.28);
}

/* ═══════════════════════════ SERVICES ═══════════════════════════ */
.services { background: var(--bg-surface); }

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

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow-hover);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
}
.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: var(--accent-blue-dim);
  border-radius: var(--radius-md);
  padding: 10px;
}
.card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--accent-blue);
}
.card__title {
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 10px;
  overflow-wrap: break-word;
}
.card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-wrap: break-word;
}

/* ═══════════════════════════ STATS ═══════════════════════════ */
.stats {
  padding: 64px 0;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-top: 1px solid var(--border-glow);
  border-bottom: 1px solid var(--border-glow);
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stats__item {
  padding: 16px;
}
.stats__number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  color: var(--text-primary);
  display: inline;
}
.stats__suffix {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats__label {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ═══════════════════════════ PROCESS ═══════════════════════════ */
.process__timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.process__timeline::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-cyan));
  opacity: 0.3;
}
.process__step {
  text-align: center;
  position: relative;
}
.process__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 2px solid var(--accent-blue);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-blue);
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}
.process__step:hover .process__number {
  background: var(--accent-blue-dim);
  box-shadow: 0 0 24px rgba(79, 125, 245, 0.2);
}
.process__step-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.process__step-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 220px;
  margin: 0 auto;
}

/* ═══════════════════════════ BUSINESS BENEFITS ═══════════════════════════ */
.benefits { background: var(--bg-surface); }

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.benefit-card {
  position: relative;
  padding: 28px;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(79, 125, 245, 0.08), rgba(34, 211, 238, 0.02)),
    var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(34, 211, 238, 0.16), transparent 42%);
  pointer-events: none;
}

.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow-hover);
  box-shadow: 0 22px 40px rgba(0, 0, 0, 0.28), 0 0 28px rgba(79, 125, 245, 0.10);
}

.benefit-card__eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  margin-bottom: 18px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  background: rgba(10, 15, 33, 0.55);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent-cyan);
}

.benefit-card__title {
  margin-bottom: 14px;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.18;
  color: var(--text-primary);
}

.benefit-card__text {
  max-width: 46ch;
  color: var(--text-secondary);
  line-height: 1.72;
}

/* ═══════════════════════════ CONTACT ═══════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  justify-items: center;
}
.contact__info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 560px;
}
.contact__block {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}
.contact__block:hover {
  border-color: var(--border-glow-hover);
}
.contact__block-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-blue-dim);
  border-radius: var(--radius-sm);
}
.contact__block-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent-blue);
}
.contact__block-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.contact__block-value {
  font-size: 15px;
  color: var(--text-primary);
  font-weight: 500;
}
a.contact__block-value:hover {
  color: var(--accent-blue);
}

/* ── Form ──────────────────────────────────────────────────── */
.contact__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__group { display: flex; flex-direction: column; gap: 6px; }
.form__label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}
.form__input {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 15px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form__input::placeholder {
  color: var(--text-muted);
}
.form__input:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(79, 125, 245, 0.15);
}
.form__input:focus:not(:focus-visible) {
  box-shadow: none;
}
.form__input.error {
  border-color: #ef4444;
}
.form__textarea {
  resize: vertical;
  min-height: 120px;
}
.form__status {
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}
.form__status.success { color: #22c55e; }
.form__status.error { color: #ef4444; }

/* ═══════════════════════════ FOOTER ═══════════════════════════ */
.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border-glow);
  background: var(--bg-surface);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer__tagline {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 300px;
}
.footer__heading {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 16px;
}
.footer__links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__links a {
  font-size: 14px;
  color: var(--text-secondary);
}
.footer__links a:hover {
  color: var(--accent-blue);
}
.footer__links a:focus-visible,
.footer__social a:focus-visible,
a.contact__block-value:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
  border-radius: 2px;
}
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border-glow);
  font-size: 14px;
  color: var(--text-muted);
}
.footer__social {
  display: flex;
  gap: 16px;
}
.footer__social a {
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer__social a:hover {
  color: var(--accent-blue);
}

/* ═══════════════════════════ RESPONSIVE ═══════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .needs-panel__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .benefits__grid { grid-template-columns: 1fr 1fr; }
  .process__timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process__timeline::before { display: none; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* Mobile */
@media (max-width: 768px) {
  :root {
    --nav-h: 64px;
  }

  .nav {
    top: 8px;
    left: 12px;
    right: 12px;
  }
  .nav__inner { padding: 0 16px; }

  .nav__links {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, 82vw);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
    height: 100vh;
    height: 100dvh;
    min-height: 100svh;
    padding: calc(var(--nav-h) + 20px) 20px 24px;
    padding: calc(var(--nav-h) + max(20px, env(safe-area-inset-top))) 20px calc(24px + env(safe-area-inset-bottom));
    background: rgba(6, 6, 17, 0.98);
    border-left: 1px solid var(--border-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(calc(100% + 56px));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      visibility 0s linear 0.38s;
    z-index: 110;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.45);
  }
  .nav__links.open {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition:
      transform 0.38s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.22s ease,
      visibility 0s linear 0s;
  }
  .nav__links li { opacity: 0; transform: translateX(20px); transition: opacity 0.3s ease, transform 0.3s ease; }
  .nav__links.open li { opacity: 1; transform: translateX(0); }
  .nav__links.open li:nth-child(1) { transition-delay: 0.10s; }
  .nav__links.open li:nth-child(2) { transition-delay: 0.14s; }
  .nav__links.open li:nth-child(3) { transition-delay: 0.18s; }
  .nav__links.open li:nth-child(4) { transition-delay: 0.22s; }
  .nav__links.open li:nth-child(5) { transition-delay: 0.26s; }
  .nav__links a {
    display: block;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: 16px;
  }
  .nav__links a:hover,
  .nav__links a[aria-current="page"] {
    background: var(--accent-blue-dim);
    color: var(--text-primary);
  }
  .nav__links a::after { display: none; }

  .nav__overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 4, 12, 0.55);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 105;
  }
  .nav__overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .nav__burger { position: relative; z-index: 115; }

  .nav__cta { display: none; }
  .nav__burger { display: flex; }

  body.nav-lock { overflow: hidden; }

  .section { padding: 72px 0; }
  .section__header { margin-bottom: 40px; }

  .hero { padding: 100px 0 64px; min-height: 100svh; }
  .hero__title {
    font-size: clamp(28px, 8vw, 40px);
    line-height: 1.14;
  }
  .hero::before,
  .section::before,
  .footer::before { opacity: 0.14; }
  .hero__canvas { display: none; }
  .hero__code-rain { opacity: 0.16; }
  .hero__code-rain span { font-size: 10px; letter-spacing: 0.12em; }
  .hero__grid-lines { opacity: 0.12; background-size: 48px 48px; }
  .hero__code-cards,
  .hero__ai-orb { display: none; }
  .hero__terminal {
    display: block;
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    max-width: 100%;
    margin: 20px auto 40px;
  }
  .hero__content {
    max-width: 100%;
    padding-bottom: 24px;
  }
  .f_logo--hero {
    font-size: 60px;
    margin-bottom: 24px;
  }
  .hero__badge { margin-bottom: 24px; }
  .hero__subtitle { margin-bottom: 32px; }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    max-width: 100%;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

  .needs-panel__header { margin-bottom: 28px; }
  .needs-panel__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .needs-panel__item {
    padding: 20px 16px;
  }
  .needs-panel__item-title {
    font-size: 15px;
  }
  .needs-panel__more {
    display: flex;
    width: 100%;
    margin-top: 20px;
  }

  .services__grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }

  .benefits__grid { grid-template-columns: 1fr; gap: 16px; }
  .benefit-card { padding: 24px; min-height: auto; }

  .process__timeline { grid-template-columns: 1fr; gap: 24px; }
  .process__number { width: 56px; height: 56px; font-size: 18px; }
  .process__step-desc { max-width: none; }

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

  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 380px) {
  .needs-panel__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__code-rain,
  .hero__grid-lines { display: none; }
}
