/* ═══════════════════════════════════════
   FreyaLabs — Redesign: Editorial Brutalism
   ═══════════════════════════════════════ */

:root {
  --bg: #060606;
  --bg-warm: #0b0b0a;
  --bg-card: #0f0f0e;
  --bg-card-hover: #161614;
  --surface: #1a1a18;
  --border: rgba(255,255,255,0.05);
  --border-hover: rgba(255,255,255,0.1);
  --text: #ebebeb;
  --text-secondary: #a0a0a0;
  --text-muted: #5a5a5a;
  --accent: #a78bfa;
  --accent-bright: #c4b5fd;
  --accent-dim: rgba(167,139,250,0.12);
  --accent-glow: rgba(167,139,250,0.06);
  --blue: #60a5fa;
  --blue-dim: rgba(96,165,250,0.1);
  --heading-en: 'Outfit', sans-serif;
  --heading-ua: 'Onest', sans-serif;
  --heading: var(--heading-en);
  --body: 'DM Sans', sans-serif;
  --mono: 'IBM Plex Mono', 'Menlo', monospace;
  --radius: 2px;
  --radius-sm: 1px;
  --radius-lg: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.33, 1, 0.68, 1);
  --transition: 0.35s var(--ease);
}

/* Language-specific heading font */
html[lang="uk"] { --heading: var(--heading-ua); }

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Grain Overlay ── */
body::after {
  content: '';
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 128px 128px;
}

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

::selection {
  background: var(--accent-dim);
  color: var(--accent-bright);
}

/* ── Canvas ── */
#networkCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.7;
}

/* ── Cursor Glow ── */
.cursor-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(circle, rgba(167,139,250,0.05) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  will-change: left, top;
}

/* ── Floating Orbs ── */
.orbs {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.3;
  will-change: transform;
}

.orb--1 {
  width: 500px;
  height: 500px;
  background: rgba(167,139,250,0.1);
  top: -15%;
  right: -8%;
  animation: orbFloat1 25s ease-in-out infinite;
}

.orb--2 {
  width: 350px;
  height: 350px;
  background: rgba(96,165,250,0.07);
  bottom: 15%;
  left: -8%;
  animation: orbFloat2 30s ease-in-out infinite;
}

.orb--3 {
  width: 280px;
  height: 280px;
  background: rgba(167,139,250,0.06);
  top: 55%;
  left: 35%;
  animation: orbFloat3 22s ease-in-out infinite;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 50px) scale(1.08); }
  66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(50px, -40px); }
  66% { transform: translate(-20px, 20px); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-50px, -50px); }
}

/* ── Container ── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
  border: 1px solid var(--border-hover);
  background: transparent;
  font-family: var(--mono);
}

.btn:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.02);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 600;
}

.btn--primary:hover {
  background: #c4b5fd;
  border-color: #c4b5fd;
  box-shadow: 0 0 40px rgba(167,139,250,0.2);
}

.btn--outline {
  background: transparent;
  border-color: var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn--sm { padding: 9px 18px; font-size: 13px; }
.btn--lg { padding: 16px 36px; font-size: 15px; }
.btn--full { width: 100%; }

.btn--magnetic {
  transition: transform 0.15s var(--ease), background var(--transition), border-color var(--transition), box-shadow var(--transition), color var(--transition);
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 24px 0;
  transition: all 0.5s var(--ease);
}

.nav--scrolled {
  padding: 14px 0;
  background: rgba(6,6,6,0.85);
  backdrop-filter: blur(24px) saturate(1.3);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Bricolage Grotesque', var(--heading);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
}

.nav__logo-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 32px;
}

.nav__links a {
  font-family: 'Bricolage Grotesque', var(--body);
  font-size: 15px;
  color: var(--text-secondary);
  font-weight: 500;
  letter-spacing: 0;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}

.nav__links a:hover { color: var(--accent); }
.nav__links a:hover::after { width: 100%; }

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── Language Switch ── */
.lang-switch {
  padding: 8px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  transition: all var(--transition);
  font-family: var(--mono);
}

.lang-switch:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Burger ── */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 24px;
  padding: 4px 0;
}

.nav__burger span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: all var(--transition);
}

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

/* ── Mobile Menu ── */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  background: rgba(6,6,6,0.97);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s var(--ease);
}

.mobile-menu.active { opacity: 1; visibility: visible; }

.mobile-menu a {
  font-family: var(--heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color var(--transition);
  letter-spacing: -0.02em;
}

.mobile-menu a:hover { color: var(--accent); }

/* ── Hero ── */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
}

.hero__content {
  max-width: 820px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
  font-family: var(--mono);
}

.hero__badge::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
}

.hero__title {
  font-family: var(--heading);
  font-size: clamp(2.8rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.hero__title--accent {
  color: var(--accent);
  display: inline;
}

[data-scramble] {
  display: inline;
}

.hero__desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 48px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 0;
  flex-wrap: wrap;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.hero__scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -100%; }
  50% { top: 0; }
  100% { top: 100%; }
}

/* ── Sections ── */
.section {
  position: relative;
  z-index: 1;
  padding: 100px 0;
}

.section__header {
  margin-bottom: 80px;
}

.section__label {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  font-family: var(--mono);
}

.section__label::before {
  content: '//';
  color: var(--text-muted);
}

.section__title {
  font-family: var(--heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

/* ── Services Grid ── */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  padding: 40px 36px;
  background: var(--bg);
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(20px);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}

.service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.6s var(--ease);
}

.service-card:hover::before { width: 100%; }

.service-card:hover {
  background: var(--bg-card-hover);
}

.service-card__shine {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(167,139,250,0.06) 0%, transparent 60%);
}

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

.service-card__num {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}

.service-card__icon {
  width: 40px;
  height: 40px;
  color: var(--accent);
  margin-bottom: 28px;
  opacity: 0.8;
}

.service-card__icon svg { width: 100%; height: 100%; }

.service-card__title {
  font-family: var(--heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 24px;
}

.service-card__tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.service-card__tags span {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.03em;
  font-family: var(--mono);
  transition: all var(--transition);
}

.service-card:hover .service-card__tags span {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

/* ── Process ── */
.process {
  border-top: 1px solid var(--border);
}

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

.process__line {
  position: absolute;
  top: 52px;
  left: calc(12.5% + 20px);
  right: calc(12.5% + 20px);
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process__line-fill {
  height: 100%;
  width: 0;
  background: var(--accent);
  opacity: 0.4;
  transition: width 1.5s var(--ease);
}

.process__line-fill.active {
  width: 100%;
}

.process__step {
  position: relative;
  z-index: 1;
  padding: 0 24px;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
}

.process__step.visible {
  opacity: 1;
  transform: translateY(0);
}

.process__num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
  font-weight: 600;
}

.process__icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.process__icon svg {
  width: 22px;
  height: 22px;
}

.process__step:hover .process__icon {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 20px var(--accent-glow);
}

.process__title {
  font-family: var(--heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.process__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 20px;
}

.process__tags {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
}

.process__tags span {
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  letter-spacing: 0.03em;
  font-family: var(--mono);
  transition: all var(--transition);
}

.process__step:hover .process__tags span {
  border-color: var(--border-hover);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .process__timeline {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .process__line { display: none; }
  .process__step { text-align: left; padding: 0; }
  .process__icon { margin: 0 0 20px; }
  .process__tags { justify-content: flex-start; }
}

/* ── About ── */
.about__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

/* About: text left, code right (default HTML order) */

.about__text {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 20px;
}

.about__values {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}

.about__value {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.about__value:hover {
  padding-left: 12px;
}

.about__value-icon {
  font-size: 11px;
  color: var(--accent);
  font-weight: 400;
  flex-shrink: 0;
  font-family: var(--mono);
}

.about__value strong {
  display: block;
  font-family: var(--heading);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.about__value span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* ── Code Block ── */
.about__code-block {
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  position: sticky;
  top: 100px;
}

.about__code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-warm);
}

.about__code-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.about__code-dot:nth-child(1) { background: #ff5f57; }
.about__code-dot:nth-child(2) { background: #febc2e; }
.about__code-dot:nth-child(3) { background: #28c840; }

.about__code-file {
  margin-left: auto;
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--mono);
}

.about__code {
  padding: 24px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.9;
  overflow-x: auto;
}

.about__code code { color: var(--text-secondary); }
.code-kw { color: #c4b5fd; }
.code-fn { color: #5b8def; }
.code-key { color: #e4e2dd; opacity: 0.6; }
.code-str { color: #5b8def; }
.code-bool { color: #f0abfc; }

/* ── Stack Marquee ── */
.stack {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 100px 0;
}

/* ── Stack + Terminal Split ── */
.stack__split {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 24px;
  align-items: stretch;
}

.stack__terminal { order: -1; }
.stack__col { order: 1; }

.stack__col {
  position: relative;
  height: 460px;
  overflow: hidden;
  border: 1px solid var(--border);
  mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 8%, black 92%, transparent 100%);
}

.stack__scroll-track {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px;
  animation: scrollVert 40s linear infinite;
}

.stack__tag {
  padding: 14px 20px;
  border: 1px solid var(--border);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  transition: all var(--transition);
  font-family: var(--mono);
  letter-spacing: 0.02em;
  text-align: center;
}

.stack__tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

@keyframes scrollVert {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

@keyframes scrollHoriz {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.stack__terminal {
  height: 460px;
}

.terminal {
  border: 1px solid var(--border);
  background: #0a0a0c;
  overflow: hidden;
  height: 460px;
  display: flex;
  flex-direction: column;
}

.terminal__header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: #111114;
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.terminal__dot--red { background: #ff5f57; }
.terminal__dot--yellow { background: #febc2e; }
.terminal__dot--green { background: #28c840; }

.terminal__title {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-muted);
}

.terminal__body {
  padding: 20px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.65;
  flex: 1;
  overflow: hidden;
  position: relative;
}

.t-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.t-prompt {
  color: #28c840;
}

.t-cmd {
  color: var(--text);
}

.t-out {
  color: var(--text-secondary);
}

.t-ok {
  color: #28c840;
}

.t-err {
  color: #f87171;
}

.t-warn {
  color: #febc2e;
}

.t-accent {
  color: var(--accent);
}

.t-dim {
  color: var(--text-muted);
}

.t-cursor {
  display: inline-block;
  width: 8px;
  height: 15px;
  background: var(--text);
  vertical-align: text-bottom;
  animation: cursorBlink 1s steps(1) infinite;
}

@keyframes cursorBlink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* ── Contact ── */
.contact {
  padding-bottom: 80px;
}

.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact__form { order: -1; }
.contact__content { order: 1; }

.contact__desc {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-top: 24px;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border);
}

.contact__field {
  position: relative;
  border-bottom: 1px solid var(--border);
}

.contact__field:last-of-type {
  border-bottom: 1px solid var(--border);
}

.contact__field input,
.contact__field textarea {
  width: 100%;
  padding: 22px 20px 12px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 15px;
  transition: all var(--transition);
  outline: none;
  resize: vertical;
  font-family: var(--mono);
}

.contact__field input:focus,
.contact__field textarea:focus {
  background: rgba(167,139,250,0.02);
}

.contact__field label {
  position: absolute;
  left: 20px;
  top: 18px;
  font-size: 14px;
  color: var(--text-muted);
  pointer-events: none;
  transition: all var(--transition);
  font-family: var(--mono);
}

.contact__field input:focus + label,
.contact__field input:not(:placeholder-shown) + label,
.contact__field textarea:focus + label,
.contact__field textarea:not(:placeholder-shown) + label {
  top: 5px;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact__form .btn {
  border-radius: 0;
  border: none;
  border-top: none;
  padding: 18px 32px;
}

/* ── Footer ── */
.footer {
  position: relative;
  z-index: 1;
  padding: 48px 0 32px;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 48px;
}

.footer__tagline {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 12px;
  font-family: var(--mono);
}

.footer__links {
  display: flex;
  gap: 80px;
}

.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__col h4 {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
  font-family: var(--mono);
}

.footer__col a {
  font-size: 15px;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer__col a:hover { color: var(--accent); }

.footer__bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--mono);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__coords {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════
   Responsive
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .about__grid { gap: 48px; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .nav__inner { padding: 0 20px; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__burger { display: flex; }

  .hero { padding: 120px 0 80px; }
  .hero__scroll { display: none; }

  .section { padding: 100px 0; }
  .services__grid { grid-template-columns: 1fr; }
  .stack__split { grid-template-columns: 1fr; }
  .stack__col { height: 200px; }
  .stack__scroll-track { flex-direction: row; flex-wrap: nowrap; animation-name: scrollHoriz; }
  .stack__tag { flex-shrink: 0; }
  .about__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
  .contact__form { order: 1; }
  .contact__content { order: -1; }
  .stack__terminal { order: 1; }
  .stack__col { order: -1; }

  .footer__inner { flex-direction: column; gap: 40px; }
  .footer__links { gap: 40px; }
}

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
}
