/* ============================================================
   bitlayer-dev.de – Stylesheet
   Dunkles Navy-Theme, Akzent Blau → Cyan (aus dem Logo)
   ============================================================ */

/* ---- Fonts (selbst gehostet, keine Google-Anfragen) ---- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/jetbrains-mono-latin-500-normal.woff2') format('woff2');
}

/* ---- Tokens ---- */
:root {
  color-scheme: dark;

  /* Backgrounds */
  --bg-page: #0b1120;
  --bg-section: #0f172a;
  --bg-card: #121b30;
  --bg-card-hover: #16213a;
  --bg-elevated: #1a2540;

  /* Accent (Logo-Verlauf) */
  --accent-blue: #3b82f6;
  --accent-cyan: #06b6d4;
  --accent-text: #38bdf8;
  --accent-rgb: 56, 189, 248;
  --gradient: linear-gradient(120deg, var(--accent-blue), var(--accent-cyan));

  /* Text */
  --text-strong: #f1f5f9;
  --text: #cbd5e1;
  --text-secondary: #94a3b8;
  --text-muted: #7c8ba1;

  /* Borders */
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);
  --border-accent: rgba(var(--accent-rgb), 0.35);

  /* Sizing */
  --max-width: 1160px;
  --header-height: 72px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --transition-fast: 150ms ease;
  --transition-base: 250ms var(--ease);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.menu-open {
  overflow: hidden;
}

main {
  flex: 1;
}

[hidden] {
  display: none !important;
}

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

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

a:hover {
  color: var(--text-strong);
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: rgba(var(--accent-rgb), 0.3);
  color: #fff;
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4 {
  color: var(--text-strong);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.875rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

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

.lead {
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- Layout ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 7rem 0;
  position: relative;
}

.section--alt {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 640px;
  margin-bottom: 3.5rem;
}

.section-head h2 {
  margin-bottom: 1rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 2000;
  padding: 0.6rem 1rem;
  background: var(--text-strong);
  color: var(--bg-page);
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
  color: var(--bg-page);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), border-color var(--transition-base),
    color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}

.btn svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--gradient);
  color: #06101f;
  box-shadow: 0 6px 24px -8px rgba(59, 130, 246, 0.6);
}

.btn-primary:hover {
  color: #06101f;
  box-shadow: 0 10px 32px -8px rgba(6, 182, 212, 0.7);
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text-strong);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  color: var(--text-strong);
  border-color: var(--border-accent);
  background: rgba(var(--accent-rgb), 0.08);
}

.btn-sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 1.75rem;
  font-size: 1rem;
}

/* ---- Header ---- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background var(--transition-base), border-color var(--transition-base);
}

.header.scrolled,
.header--solid {
  background: rgba(11, 17, 32, 0.82);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-strong);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.brand:hover {
  color: var(--text-strong);
}

.brand img {
  width: 34px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__link {
  padding: 0.5rem 0.9rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav__link:hover {
  color: var(--text-strong);
  background: rgba(148, 163, 184, 0.07);
}

.nav__link.is-active {
  color: var(--text-strong);
}

.nav__cta {
  margin-left: 0.75rem;
}

.burger {
  display: none;
  position: relative;
  z-index: 1001;
  width: 42px;
  height: 42px;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text-strong);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 19px; }
.burger span:nth-child(3) { top: 25px; }

.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---- Hero ---- */
.hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-height) + 5rem) 0 6rem;
  min-height: min(100dvh, 860px);
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 55% at 18% 30%, rgba(30, 58, 138, 0.45), transparent 70%),
    radial-gradient(45% 50% at 85% 75%, rgba(8, 145, 178, 0.18), transparent 70%);
  pointer-events: none;
}

/* Layer-Motiv aus dem Logo im Hintergrund */
.hero__layers {
  position: absolute;
  right: -14%;
  bottom: 9%;
  width: min(58vw, 720px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 20px;
  opacity: 0.07;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, #000 35%, transparent 90%);
  mask-image: linear-gradient(to right, #000 35%, transparent 90%);
}

.hero__layers span {
  display: block;
  height: 86px;
  border-radius: 24px;
  background: var(--gradient);
}

.hero__layers span:nth-child(1) { width: 80%; }
.hero__layers span:nth-child(2) { width: 90%; }
.hero__layers span:nth-child(3) { width: 100%; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero .lead {
  max-width: 540px;
  margin-bottom: 2.5rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-top: 2.75rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.hero__meta svg {
  color: var(--accent-text);
}

/* Terminal-Fenster */
.terminal {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  overflow: hidden;
}

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(148, 163, 184, 0.04);
}

.terminal__bar i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--border-strong);
}

.terminal__title {
  margin-left: auto;
  margin-right: auto;
  padding-right: 3rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.terminal__body {
  padding: 1.25rem 1.4rem 1.4rem;
  color: var(--text-secondary);
  white-space: pre;
  overflow-x: auto;
}

.t-prompt { color: var(--accent-cyan); }
.t-cmd { color: var(--text-strong); }
.t-ok { color: #34d399; }
.t-key { color: var(--accent-text); }
.t-dim { color: var(--text-muted); }

.t-cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  vertical-align: -0.2em;
  background: var(--accent-text);
  animation: blink 1.1s steps(1) infinite;
}

/* ---- Leistungen ---- */
.services {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.service {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: border-color var(--transition-base), background var(--transition-base), box-shadow var(--transition-base);
}

.service:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  box-shadow: 0 20px 60px -30px rgba(var(--accent-rgb), 0.35);
}

.service__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  color: var(--accent-text);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.16), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}

.service__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.service h3 {
  margin-bottom: 0.6rem;
}

.service > p {
  color: var(--text-secondary);
  margin-bottom: 1.4rem;
}

.checklist {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%2338bdf8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
      center / 100% no-repeat,
    rgba(var(--accent-rgb), 0.12);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.tags li {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.06);
  border: 1px solid var(--border);
}

/* ---- Ablauf ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem 0;
  border-top: 1px solid var(--border-strong);
}

.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--accent-text);
  margin-bottom: 1rem;
}

.step::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-text);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.15);
}

.step h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* ---- Über mich ---- */
.about {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 4.5rem;
  align-items: center;
}

.about__visual {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 420px;
  width: 100%;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 60% at 30% 20%, rgba(59, 130, 246, 0.25), transparent 70%),
    radial-gradient(70% 60% at 80% 90%, rgba(6, 182, 212, 0.18), transparent 70%),
    var(--bg-card);
  display: grid;
  place-items: center;
  overflow: hidden;
}

/* Tipp: Foto einsetzen -> <img src="/assets/img/portrait.jpg" alt="…"> in .about__visual */
.about__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__visual .about__mark {
  width: 46%;
  height: auto;
}

.about__badge {
  position: absolute;
  left: 1.25rem;
  bottom: 1.25rem;
  right: 1.25rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(11, 17, 32, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  line-height: 1.45;
}

.about__badge strong {
  display: block;
  color: var(--text-strong);
  font-size: 0.9375rem;
}

.about__badge span {
  color: var(--text-muted);
}

.about__text h2 {
  margin-bottom: 1.5rem;
}

.about__text p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
}

.about__text p strong {
  color: var(--text-strong);
  font-weight: 600;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 2.25rem;
}

.fact {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.fact dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}

.fact dd {
  color: var(--text-strong);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.4;
}

/* ---- Kontakt ---- */
.contact {
  position: relative;
  overflow: hidden;
  padding: 4.5rem;
  border-radius: 28px;
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(70% 90% at 0% 0%, rgba(30, 64, 175, 0.4), transparent 60%),
    radial-gradient(60% 80% at 100% 100%, rgba(8, 145, 178, 0.22), transparent 60%),
    var(--bg-card);
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.contact h2 {
  margin-bottom: 1rem;
}

.contact .lead {
  margin-bottom: 2rem;
}

.contact__mail {
  display: inline-block;
  font-size: clamp(1.25rem, 3vw, 1.875rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  margin-bottom: 1.75rem;
  word-break: break-all;
  background-image: var(--gradient);
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 0.2rem;
}

.contact__mail:hover {
  color: var(--accent-text);
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.contact__info {
  display: grid;
  gap: 1rem;
}

.info-row {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  background: rgba(11, 17, 32, 0.55);
  border: 1px solid var(--border);
}

.info-row .icon-box {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.info-row__label {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.info-row__value {
  display: block;
  color: var(--text-strong);
  font-weight: 500;
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2.5rem;
  font-size: 0.9375rem;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
}

.footer__tagline {
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.875rem;
}

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.footer__nav a {
  color: var(--text-secondary);
}

.footer__nav a:hover {
  color: var(--text-strong);
}

.footer__copy {
  width: 100%;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* ---- Rechtstexte (Impressum, Datenschutz) ---- */
.legal {
  padding: calc(var(--header-height) + 4rem) 0 6rem;
}

.legal .container {
  max-width: 780px;
}

.legal h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  margin-bottom: 0.75rem;
}

.legal__intro {
  color: var(--text-secondary);
  margin-bottom: 3rem;
}

.legal h2 {
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  margin: 3rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.legal h3 {
  font-size: 1.0625rem;
  margin: 1.75rem 0 0.5rem;
}

.legal p,
.legal li {
  color: var(--text-secondary);
}

.legal p + p {
  margin-top: 0.85rem;
}

.legal ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0.75rem 0;
  display: grid;
  gap: 0.35rem;
}

.legal strong {
  color: var(--text-strong);
  font-weight: 600;
}

.legal address {
  font-style: normal;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 1.75;
}

.legal__updated {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ---- 404 ---- */
.not-found {
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--header-height) + 4rem) 0 5rem;
  min-height: 80dvh;
}

.not-found__code {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  margin-bottom: 1rem;
}

.not-found h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--text-secondary);
  max-width: 420px;
  margin: 0 auto 2rem;
}

/* ---- Animation ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero__copy > *,
.hero .terminal {
  animation: fade-up 0.7s var(--ease) both;
}

.hero__copy > :nth-child(2) { animation-delay: 0.06s; }
.hero__copy > :nth-child(3) { animation-delay: 0.12s; }
.hero__copy > :nth-child(4) { animation-delay: 0.18s; }
.hero__copy > :nth-child(5) { animation-delay: 0.24s; }
.hero .terminal { animation-delay: 0.3s; }

/* Scroll-Reveal nur, wenn JS aktiv ist */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }

  .hero .terminal {
    max-width: 560px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about__visual {
    aspect-ratio: 16 / 10;
    max-width: none;
  }

  .contact {
    grid-template-columns: 1fr;
    padding: 3.5rem 2.5rem;
  }
}

@media (max-width: 860px) {
  .burger {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem 1.5rem;
    background: rgba(11, 17, 32, 0.97);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
  }

  .nav__link {
    font-size: 1.5rem;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    color: var(--text-strong);
  }

  .nav__cta {
    margin: 1.5rem 0 0;
    padding: 1rem 1.75rem;
    font-size: 1rem;
  }

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

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }

  .section {
    padding: 5rem 0;
  }

  .hero {
    padding: calc(var(--header-height) + 3rem) 0 4.5rem;
    min-height: 0;
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  .terminal {
    font-size: 0.75rem;
  }

  .terminal__body {
    padding: 1rem;
  }

  .service {
    padding: 1.6rem;
  }

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

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

  .contact {
    padding: 2.5rem 1.4rem;
    border-radius: var(--radius-xl);
  }

  .contact__actions .btn {
    flex: 1 1 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
