/* =========================================================
   NEIRAZOX — design tokens, layout, components
   ========================================================= */

:root {
  /* Colors */
  --bg: #070912;
  --bg-alt: #0b0e1a;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-hover: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e9ecf5;
  --text-muted: #9aa3b8;
  --text-dim: #8b93a7;
  --accent-1: #8b7bff;
  --accent-2: #3fd0f0;
  --accent-3: #22e3c4;
  --accent-grad: linear-gradient(120deg, var(--accent-1), #4f9dff 55%, var(--accent-3));
  --ok: #34d399;
  --warn: #fbbf24;
  --error: #f87171;

  /* Type */
  --font: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-hero: clamp(1.9rem, 6.5vw + .6rem, 5rem);
  --fs-h2: clamp(1.9rem, 4vw, 2.9rem);

  /* Layout */
  --container: 1180px;
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0 0 1rem; color: var(--text-muted); }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(124, 108, 255, .35); }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2.5rem, var(--container)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -60px; z-index: 100; padding: .6rem 1rem; background: var(--accent-1); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 1rem; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--sm { width: 16px; height: 16px; }
.gradient-text { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .9rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, border-color .25s;
}
.btn--primary { background: var(--accent-grad); color: #070912; box-shadow: 0 10px 30px -10px rgba(95, 143, 255, .65); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(34, 211, 238, .55); }
.btn--ghost { border-color: var(--border-strong); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-hover); border-color: rgba(255,255,255,.3); transform: translateY(-2px); }
.btn--sm { padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled, .menu-open .header {
  background: rgba(7, 9, 18, .78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.logo { display: flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.1rem; }
.logo__mark { width: 38px; height: 38px; flex: none; filter: drop-shadow(0 6px 16px rgba(95, 143, 255, .45)); }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; font-weight: 800; letter-spacing: .16em; font-size: 1.05rem; }
.logo__sub { font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-top: .2rem; }

.nav__list { display: flex; gap: .25rem; }
.nav__link {
  position: relative; display: block; padding: .5rem .9rem; border-radius: 999px;
  font-size: .95rem; color: var(--text-muted); transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent-2); transform: translateX(-50%);
}

.header__actions { display: flex; align-items: center; gap: .6rem; }
.lang { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.lang__btn {
  border: 0; background: none; cursor: pointer; padding: .3rem .65rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); transition: background .2s, color .2s;
}
.lang__btn:hover { color: var(--text); }
.lang__btn.is-active { background: var(--text); color: var(--bg); }

.burger {
  display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; position: relative;
}
.burger__line { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .3s var(--ease), top .3s var(--ease); }
.burger__line--1 { top: 17px; }
.burger__line--2 { top: 25px; }
.menu-open .burger__line--1 { top: 21px; transform: rotate(45deg); }
.menu-open .burger__line--2 { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 3rem) 0 5rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; animation: float 16s ease-in-out infinite alternate; }
.orb--1 { width: 560px; height: 560px; background: #5a46ff; top: -160px; right: -140px; }
.orb--2 { width: 440px; height: 440px; background: #0aa5a0; bottom: -170px; left: -130px; animation-delay: -6s; opacity: .38; }
.grid-bg {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}
@keyframes float { to { transform: translate3d(-40px, 50px, 0) scale(1.08); } }

.hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero__content { min-width: 0; }

/* Hero panel: example automation flow */
.panel {
  position: relative; padding: 1.6rem; border-radius: 22px;
  background: linear-gradient(160deg, rgba(139,123,255,.12), rgba(34,227,196,.04) 60%, rgba(255,255,255,.02)), rgba(12, 15, 28, .72);
  border: 1px solid rgba(139,123,255,.28);
  box-shadow: 0 30px 80px -30px rgba(79, 157, 255, .45), inset 0 1px 0 rgba(255,255,255,.06);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.panel__title { display: flex; align-items: center; gap: .6rem; margin: 0 0 1.2rem; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.panel__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 4px rgba(34,227,196,.15); animation: pulse 2s infinite; }
.panel__steps { display: grid; gap: .65rem; position: relative; }
.panel__steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(var(--accent-1), var(--accent-3)); opacity: .5; }
.panel__step {
  position: relative; display: flex; align-items: center; gap: .85rem; padding: .7rem .9rem .7rem .45rem;
  border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--border);
  font-size: .93rem; color: var(--text); line-height: 1.4;
  animation: step-in .7s var(--ease) both; animation-delay: calc(var(--d, 0ms) + 300ms);
}
.panel__icon { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; background: #10142a; border: 1px solid rgba(139,123,255,.35); color: var(--accent-2); }
.panel__note { margin: 1rem 0 0; font-size: .78rem; color: var(--text-dim); }
@keyframes step-in { from { opacity: 0; transform: translateX(12px); } }
.hero__title { overflow-wrap: break-word; font-size: var(--fs-hero); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 1.5rem; }
.hero__title span { display: block; }
.hero__lead { font-size: clamp(1.1rem, 2vw, 1.3rem); max-width: 640px; margin-bottom: 2.2rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 3rem; }
.hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); font-size: .88rem; color: var(--text-muted);
}
.chip .icon { color: var(--accent-2); }

/* ---------- Sections ---------- */
.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin-bottom: 3rem; }
.section__title { font-size: var(--fs-h2); font-weight: 750; margin-bottom: 1rem; }
.section__lead { font-size: 1.1rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__text p:not(.eyebrow) { font-size: 1.1rem; }
.about__values { display: grid; gap: 1rem; }
.value {
  display: flex; gap: 1rem; padding: 1.4rem; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--surface);
}
.value h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.value p { margin: 0; font-size: .97rem; }
.value__icon {
  display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
  background: rgba(52, 211, 153, .12); color: var(--ok);
}
.value__icon .icon { width: 20px; height: 20px; }

/* ---------- Cards ---------- */
.card {
  position: relative; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface);
  padding: 1.75rem; transition: transform .35s var(--ease), border-color .35s, background .35s;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; opacity: 0; transition: opacity .35s;
  background: var(--accent-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.card:hover { transform: translateY(-4px); background: var(--surface-hover); }
.card:hover::before { opacity: .7; }
.card h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.card p { font-size: .98rem; }

.cards--services { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; }
.cards--services .service { grid-column: span 2; display: flex; flex-direction: column; }
.cards--services .service:nth-child(4), .cards--services .service:nth-child(5) { grid-column: span 3; }
.service__icon {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 1.3rem;
  background: linear-gradient(135deg, rgba(124,108,255,.18), rgba(34,211,238,.12));
  border: 1px solid rgba(124,108,255,.25); color: #b7aeff;
}
.service p { flex: 1; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tags li {
  font-size: .78rem; padding: .25rem .6rem; border-radius: 6px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--text-muted);
}

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface);
  font-size: .9rem; color: var(--text-muted); cursor: pointer; transition: all .2s;
}
.filter:hover { color: var(--text); border-color: var(--border-strong); }
.filter.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.project { display: flex; flex-direction: column; gap: 1.2rem; }
.project--featured { grid-column: 1 / -1; padding: clamp(1.75rem, 4vw, 2.75rem); background: linear-gradient(140deg, rgba(124,108,255,.10), rgba(34,211,238,.05) 60%, transparent), var(--surface); border-color: rgba(124,108,255,.3); }
.project--featured h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
.project--featured .project__body { display: grid; grid-template-columns: 1fr 1.1fr; grid-template-rows: auto 1fr; gap: 0 3rem; }
.project--featured .project__body > h3, .project--featured .project__body > p { grid-column: 1; }
.project--featured .project__features { grid-column: 2; grid-row: 1 / span 2; }
.project--planned { border-style: dashed; }
.project--planned .project__icon { opacity: .7; }
.project__top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.project__icon {
  flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px;
  background: rgba(255,255,255,.05); border: 1px solid var(--border); color: var(--accent-2);
}
.project__body { flex: 1; }
.project__features h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--text-dim); margin-bottom: .8rem; font-weight: 600; }
.checklist { display: grid; gap: .55rem; }
.checklist li { display: flex; gap: .6rem; font-size: .95rem; color: var(--text-muted); line-height: 1.5; }
.checklist li .icon { margin-top: .2rem; color: var(--ok); }
.project__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.project__links { display: flex; flex-wrap: wrap; gap: .5rem; }
.project__links .btn .icon { transition: transform .25s var(--ease); }
.project__links .btn:hover .icon { transform: translateX(3px); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .75rem; border-radius: 999px;
  font-size: .76rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--in-progress { color: var(--ok); background: rgba(52,211,153,.1); border: 1px solid rgba(52,211,153,.3); }
.badge--in-progress::before { animation: pulse 2s infinite; }
.badge--planned { color: var(--warn); background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.25); }
.badge--done { color: var(--accent-2); background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; counter-reset: step; position: relative; }
.step { position: relative; padding: 1.5rem 1.3rem; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.step__num {
  display: inline-block; font-size: .85rem; font-weight: 700; margin-bottom: 1rem; padding: .2rem .6rem; border-radius: 8px;
  background: var(--accent-grad); color: #0b0d14;
}
.step h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.step p { font-size: .93rem; margin: 0; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__intro p:not(.eyebrow) { font-size: 1.1rem; }
.contact__channels { display: grid; gap: .7rem; margin-top: 2rem; }
.channel {
  display: flex; align-items: center; gap: .9rem; padding: 1rem 1.2rem; border-radius: 14px;
  border: 1px solid var(--border); background: var(--surface); transition: background .2s, border-color .2s;
}
a.channel:hover { background: var(--surface-hover); border-color: var(--border-strong); }
.channel .icon { color: var(--accent-2); }
.channel small { display: block; font-size: .75rem; color: var(--text-dim); }
.channel--soon { color: var(--text-muted); font-size: .95rem; border-style: dashed; }

.form { display: grid; gap: 1.1rem; padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form__field { display: grid; gap: .45rem; font-size: .88rem; font-weight: 500; color: var(--text-muted); }
.form__field input, .form__field select, .form__field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: 12px; border: 1px solid var(--border-strong);
  background: rgba(0,0,0,.25); font-size: 1rem; color: var(--text); transition: border-color .2s, box-shadow .2s;
}
.form__field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.5rem; }
.form__field select option { background: var(--bg-alt); }
.form__field textarea { resize: vertical; min-height: 130px; }
.form__field input:focus, .form__field select:focus, .form__field textarea:focus { outline: none; border-color: var(--accent-1); box-shadow: 0 0 0 4px rgba(124,108,255,.18); }
.form__status { margin: 0; min-height: 1.4em; font-size: .92rem; }
.form__status.is-error { color: var(--error); }
.form__status.is-info { color: var(--warn); }
.form__status.is-ok { color: var(--ok); }

/* ---------- Form: validation & anti-spam ---------- */
.form__field label { color: var(--text-muted); font-size: .88rem; font-weight: 500; }
.form__field input[aria-invalid="true"], .form__field textarea[aria-invalid="true"] { border-color: var(--error); }
.form__field input[aria-invalid="true"]:focus, .form__field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(248,113,113,.18); }
.form__error { margin: 0; min-height: 0; font-size: .85rem; color: var(--error); }
.form__error:empty { display: none; }
.form__meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.form__hint { margin: 0; font-size: .82rem; color: var(--text-dim); }
.form__counter { font-size: .8rem; color: var(--text-dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.form__counter.is-over { color: var(--error); }
.form__mode { margin: 0; padding: .75rem 1rem; border-radius: 12px; font-size: .9rem; color: var(--warn); background: rgba(251,191,36,.07); border: 1px dashed rgba(251,191,36,.35); }
.form__hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.check { display: flex; gap: .7rem; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--text-muted); line-height: 1.5; }
.check input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--accent-1); cursor: pointer; }
.check input[aria-invalid="true"] { outline: 2px solid var(--error); outline-offset: 2px; }
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(11,13,20,.3); border-top-color: #0b0d14; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn:disabled { opacity: .7; cursor: progress; transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Project details dialog ---------- */
.modal {
  width: min(100% - 2rem, 860px); max-width: none; max-height: min(92vh, 1000px); padding: 0; margin: auto;
  border: 1px solid var(--border-strong); border-radius: 22px; background: #10131d; color: var(--text);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8);
}
.modal::backdrop { background: rgba(5, 6, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal-open { overflow: hidden; }
.modal__inner { position: relative; max-height: inherit; overflow-y: auto; padding: clamp(1.5rem, 4vw, 2.75rem); overscroll-behavior: contain; }
.modal__close {
  position: sticky; top: 0; float: right; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin: -.5rem -.5rem 0 1rem;
  border-radius: 12px; border: 1px solid var(--border-strong); background: #161a26; color: var(--text); cursor: pointer;
}
.modal__close:hover { background: #1d2231; }
.modal__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.modal__title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: .75rem; }
.modal__lead { font-size: 1.08rem; }
.modal__section { margin-top: 2rem; }
.modal__section h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent-2); margin-bottom: .9rem; font-weight: 600; }
.modal__section p { margin: 0; }
.modal__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.modal__status { padding: 1.1rem 1.25rem; border-radius: 14px; background: rgba(52,211,153,.06); border: 1px solid rgba(52,211,153,.2); }
.modal__status h3 { color: var(--ok); }
.pipeline { display: grid; gap: .8rem; counter-reset: none; }
.pipeline li { display: flex; gap: 1rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.pipeline h4 { font-size: 1rem; margin-bottom: .3rem; }
.pipeline p { font-size: .95rem; }
.pipeline__num { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-grad); color: #0b0d14; font-weight: 700; font-size: .9rem; }

.noscript { margin: 0; padding: .9rem 1.25rem; text-align: center; background: #2a2210; color: #fde68a; font-size: .95rem; position: relative; z-index: 60; margin-top: var(--header-h); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; font-size: .9rem; }
.footer p { margin: 0; color: var(--text-dim); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: .75rem; }
.footer__mark { width: 28px; height: 28px; flex: none; }
.footer__founder { display: inline-block; margin-left: .35rem; color: var(--text-dim); }
.footer__top { color: var(--text-muted); }
.footer__top:hover { color: var(--text); }

/* ---------- Reveal animation (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0ms); }
.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: 1100px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; padding: 1rem 1.25rem 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; gap: .2rem; }
  .nav__link { padding: .9rem 1rem; font-size: 1.05rem; border-radius: 12px; }
  .nav__link.is-active::after { left: auto; right: 1rem; top: 50%; bottom: auto; transform: translateY(-50%); }

  .about, .contact, .hero__inner { grid-template-columns: 1fr; }
  .panel { max-width: 560px; }
  .cards--services { grid-template-columns: repeat(2, 1fr); }
  .cards--services .service, .cards--services .service:nth-child(4), .cards--services .service:nth-child(5) { grid-column: auto; }
  .cards--services .service:last-child { grid-column: 1 / -1; }
  .project--featured .project__body { grid-template-columns: 1fr; grid-template-rows: auto; }
  .project--featured .project__features { grid-column: 1; grid-row: auto; margin-top: .5rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .modal__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  .logo__sub { display: none; }
  .lang__btn { padding: .3rem .5rem; min-width: 40px; min-height: 40px; }
  .project__top { flex-wrap: wrap; }
  .badge { white-space: normal; }
  .footer__top { display: inline-block; padding: .6rem 0; }
  .hero { padding-top: calc(var(--header-h) + 2rem); }
  .hero__cta .btn { flex: 1 1 100%; }
  .cards--services, .projects, .steps, .form__row { grid-template-columns: 1fr; }
  .modal { width: 100%; max-width: none; max-height: none; height: 100%; border-radius: 0; border: 0; }
  .modal__inner { padding: 1.25rem 1.1rem 2rem; }
  .project__links, .project__links .btn { width: 100%; }
  .orb--1 { width: 340px; height: 340px; }
  .orb--2 { width: 280px; height: 280px; }
}

/* 404 page */
.container--narrow { max-width: 640px; }
.logo--404 { margin-bottom: 2.5rem; display: inline-flex; }

/* Very small phones (320–380px): keep logo, languages and menu button on one line */
@media (max-width: 380px) {
  .container { width: min(100% - 2rem, var(--container)); }
  .header__inner { gap: .5rem; }
  .header__actions { gap: .35rem; }
  .logo { gap: .45rem; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__text { font-size: .9rem; letter-spacing: .06em; }
  .lang { padding: 2px; }
  .lang__btn { min-width: 34px; min-height: 36px; padding: .2rem .35rem; font-size: .74rem; }
  .burger { width: 40px; height: 40px; }
  .burger__line { left: 11px; right: 11px; }
  .burger__line--1 { top: 15px; }
  .burger__line--2 { top: 23px; }
  .menu-open .burger__line--1, .menu-open .burger__line--2 { top: 19px; }
}
