/* =========================================================
   AVerDemTech landing — plain CSS
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --bg: #0b0d12;
  --bg-alt: #10131a;
  --surface: #151924;
  --surface-2: #1b2030;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eef0f6;
  --muted: #9aa3b8;
  --accent: #7c5cff;
  --accent-2: #22d3ee;
  --accent-soft: rgba(124, 92, 255, 0.14);
  --danger: #ff6b81;
  --success: #34d399;
  --grad: linear-gradient(120deg, #7c5cff 0%, #22d3ee 100%);
  --shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.6);
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg: #f7f8fc;
  --bg-alt: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f2f4fa;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);
  --text: #0f172a;
  --muted: #5b6478;
  --accent: #6d4aff;
  --accent-2: #0891b2;
  --accent-soft: rgba(109, 74, 255, 0.1);
  --danger: #e11d48;
  --success: #059669;
  --grad: linear-gradient(120deg, #6d4aff 0%, #0891b2 100%);
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.25);
  color-scheme: light;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f7f8fc;
    --bg-alt: #eef1f8;
    --surface: #ffffff;
    --surface-2: #f2f4fa;
    --border: rgba(15, 23, 42, 0.08);
    --border-strong: rgba(15, 23, 42, 0.16);
    --text: #0f172a;
    --muted: #5b6478;
    --accent: #6d4aff;
    --accent-2: #0891b2;
    --accent-soft: rgba(109, 74, 255, 0.1);
    --danger: #e11d48;
    --success: #059669;
    --grad: linear-gradient(120deg, #6d4aff 0%, #0891b2 100%);
    --shadow: 0 20px 50px -24px rgba(15, 23, 42, 0.25);
    color-scheme: light;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--accent); color: #fff; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 820px; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px -10px rgba(124, 92, 255, .7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(124, 92, 255, .8); }
.btn--ghost { border-color: var(--border-strong); background: transparent; }
.btn--ghost:hover { background: var(--surface); border-color: var(--accent); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn--lg { padding: 15px 26px; font-size: 16px; }
.btn--block { width: 100%; }

.icon-btn {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  transition: border-color .2s ease, background .2s ease;
}
.icon-btn:hover { border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo__mark {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--grad); color: #fff; font-family: var(--mono); font-size: 12px;
}

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__link {
  display: block; padding: 8px 14px; border-radius: 999px; color: var(--muted);
  font-weight: 500; font-size: 15px; transition: color .2s ease, background .2s ease;
}
.nav__link:hover, .nav__link.is-active { color: var(--text); background: var(--surface); }
.nav__cta-item { margin-left: 8px; }

.header__actions { display: flex; align-items: center; gap: 8px; }

/* Theme icons */
.icon-moon { display: none; }
:root[data-theme="light"] .icon-sun { display: none; }
:root[data-theme="light"] .icon-moon { display: block; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-sun { display: none; }
  :root:not([data-theme="dark"]) .icon-moon { display: block; }
}

/* Language switcher */
.lang { position: relative; }
.lang__btn {
  height: 40px; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px;
  border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
  font-weight: 600; font-size: 13px; letter-spacing: .04em;
}
.lang__btn:hover { border-color: var(--border-strong); }
.lang__btn svg { width: 16px; height: 16px; }
.lang__menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }
.lang__menu a {
  color: var(--text); 
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border: 0; background: none; border-radius: 9px; text-align: left; font-size: 14px;
}
.lang__menu a span { color: var(--muted); font-size: 12px; font-weight: 600; }
.lang__menu a:hover { background: var(--surface-2); }
.lang__menu a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.lang__menu a[aria-current="page"] span { color: var(--accent); }

/* Burger */
.burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s ease, opacity .2s ease; }
.burger.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Eyebrow ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--success);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2s infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + 65px) 0 86px;
}
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 720px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 25% 30%, rgba(124, 92, 255, .28), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(34, 211, 238, .2), transparent 70%);
  filter: blur(20px);
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 80%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__eyebrow { color: var(--muted); }
.hero .eyebrow { color: var(--muted); text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500;
  padding: 6px 14px 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); }
.hero__title { font-size: clamp(38px, 5.6vw, 66px); font-weight: 800; letter-spacing: -0.035em; }
.hero__lead { margin-top: 22px; max-width: 560px; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.hero__actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__stats { margin-top: 43px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats strong { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; }
.hero__stats span { font-size: 14px; color: var(--muted); }

.hero__visual { position: relative; }
.code-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s ease;
}
.hero__visual:hover .code-card { transform: perspective(1200px) rotateY(0) rotateX(0); }
.code-card__bar { display: flex; align-items: center; gap: 7px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.code-card__bar span { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.code-card__bar span:nth-child(2) { background: #febc2e; }
.code-card__bar span:nth-child(3) { background: #28c840; }
.code-card__bar em { margin-left: 10px; font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.code-card__body {
  margin: 0; padding: 22px 22px 26px; overflow-x: auto;
  font-family: var(--mono); font-size: 13.5px; line-height: 1.75; color: var(--text);
}
.code-card .k { color: #c084fc; }
.code-card .f { color: #60a5fa; }
.code-card .s { color: #34d399; }
.code-card .b { color: #fb923c; }
.code-card .c { color: var(--muted); }

.float-chip {
  position: absolute; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border-strong); box-shadow: var(--shadow);
  animation: float 6s ease-in-out infinite;
}
.float-chip--1 { top: -22px; right: 18px; }
.float-chip--2 { bottom: -24px; left: -18px; animation-delay: -3s; }
.chip-icon { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--accent-soft); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- Marquee ---------- */
.stack-strip { border-block: 1px solid var(--border); background: var(--bg-alt); padding: 20px 0; overflow: hidden; }
.marquee { -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-duration, 40s) linear infinite; will-change: transform; }
.marquee__group { display: flex; flex: none; gap: 48px; padding-right: 48px; }
.marquee__group span { font-weight: 600; color: var(--muted); font-size: 17px; white-space: nowrap; }
.stack-strip:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-1 * var(--marquee-shift, 50%))); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
.section__head { max-width: 720px; margin-bottom: 50px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(30px, 3.8vw, 46px); font-weight: 800; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 18px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card {
  --mx: 50%; --my: 50%;
  position: relative; padding: 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  overflow: hidden; isolation: isolate;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(380px circle at var(--mx) var(--my), var(--accent-soft), transparent 60%);
}
.service-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.service-card:hover::before { opacity: 1; }
.service-card--featured { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.service-card__icon {
  width: 50px; height: 50px; display: grid; place-items: center; margin-bottom: 22px;
  border-radius: 14px; background: var(--accent-soft); color: var(--accent);
}
.service-card__icon svg { width: 24px; height: 24px; }
.service-card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--muted); font-size: 15.5px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.tags li {
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500;
  border: 1px solid var(--border); color: var(--muted); background: var(--surface-2);
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; position: relative; }
.process__step {
  position: relative; padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.process__step:not(:last-child)::after {
  content: ''; position: absolute; top: 46px; right: -21px; width: 22px; height: 2px;
  background: var(--grad); opacity: .6;
}
.process__num {
  display: inline-block; margin-bottom: 18px; font-family: var(--mono); font-size: 14px; font-weight: 500;
  padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--accent);
}
.process__step h3 { font-size: 19px; margin-bottom: 10px; }
.process__step p { color: var(--muted); font-size: 15px; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 58px; align-items: center; }
.about__text .section__title { margin-bottom: 22px; }
.about__text > p { color: var(--muted); font-size: 17px; margin-bottom: 16px; }
.about__text strong { color: var(--text); }
.checklist { margin-top: 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; font-weight: 500; }
.checklist li::before {
  content: ''; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237c5cff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.stack-card { padding: 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.stack-card h3 { font-size: 18px; margin-bottom: 24px; }
.stack-card__row { display: grid; grid-template-columns: 90px 1fr; gap: 6px 16px; align-items: center; margin-bottom: 20px; }
.stack-card__row:last-child { margin-bottom: 0; }
.stack-card__row > span { font-weight: 600; font-size: 14px; }
.stack-card__row em { grid-column: 2; font-style: normal; font-size: 13px; color: var(--muted); }
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); transition: width 1.2s cubic-bezier(.2, .8, .2, 1) .2s; }
.is-visible .bar i { width: var(--w); }

.quote { margin: 20px 0 0; padding: 22px 26px; border-radius: var(--radius); border: 1px dashed var(--border-strong); }
.quote p { font-size: 17px; font-weight: 500; font-style: italic; }

/* ---------- Highlights ---------- */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 58px; }
.highlight { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.highlight__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.highlight__icon svg { width: 22px; height: 22px; }
.highlight h3 { font-size: 18px; margin-bottom: 8px; }
.highlight p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s ease; }
.faq__item[open] { border-color: var(--border-strong); }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ''; position: absolute; right: 22px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--accent-soft);
  -webkit-mask: none;
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--accent), var(--accent));
  background-size: 10px 2px, 2px 10px;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform .25s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; padding: 50px;
  border-radius: 28px; background: var(--surface); border: 1px solid var(--border);
  position: relative; overflow: hidden; isolation: isolate;
}
.contact::before {
  content: ''; position: absolute; z-index: -1; width: 520px; height: 520px; left: -160px; top: -200px;
  background: radial-gradient(circle, rgba(124, 92, 255, .22), transparent 65%);
}
.contact__links { margin-top: 32px; display: grid; gap: 14px; }
.contact__links li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.contact__links svg { width: 20px; height: 20px; color: var(--accent); flex: none; }
.contact__links a { border-bottom: 1px solid transparent; transition: border-color .2s ease; overflow-wrap: anywhere; }
.contact__links a:hover { border-bottom-color: currentColor; }

.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend { font-size: 14px; font-weight: 600; padding: 0; }
.field legend { margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong); background: var(--bg);
  color: var(--text); font: inherit; font-size: 15px; resize: vertical;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .7; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__error { font-size: 13px; color: var(--danger); min-height: 0; }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--danger); }

.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span {
  display: inline-block; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  border: 1px solid var(--border-strong); color: var(--muted); transition: all .2s ease;
}
.pill:hover span { color: var(--text); }
.pill input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pill input:focus-visible + span { outline: 2px solid var(--accent-2); outline-offset: 2px; }

.form__status { font-size: 14px; color: var(--success); min-height: 1.4em; text-align: center; }

/* ---------- Footer ---------- */
.footer { padding: 36px 0; border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { color: var(--muted); font-size: 14px; }
.footer__top { font-size: 14px; color: var(--muted); }
.footer__top:hover { color: var(--text); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); }
  .process__step::after { display: none; }
  .highlights { grid-template-columns: 1fr; gap: 14px; margin-top: 43px; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; margin: 0;
    background: var(--bg); padding: 24px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link { font-size: 20px; padding: 14px 16px; border-radius: 14px; color: var(--text); }
  .nav__cta-item { margin: 16px 0 0; }
  .nav__cta-item .btn { width: 100%; padding: 15px; font-size: 16px; }
  .header__actions { margin-left: auto; }
  .header:has(.nav.is-open) { background: var(--bg); border-bottom-color: var(--border); }

  .hero { padding: calc(var(--header-h) + 43px) 0 72px; }
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero__visual { max-width: 560px; }
  .code-card { transform: none; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .contact { grid-template-columns: 1fr; gap: 36px; padding: 40px 32px; }
  .section { padding: 79px 0; }
}

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .services, .process { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .hero__stats { gap: 28px; }
  .hero__stats strong { font-size: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-chip--2 { left: 8px; }
  .float-chip--1 { right: 8px; }
  .code-card__body { font-size: 12px; padding: 18px; }
  .contact { padding: 28px 20px; border-radius: 22px; }
  .section { padding: 65px 0; }
  .section__head { margin-bottom: 36px; }
  .service-card { padding: 24px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .logo__text { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .bar i { width: var(--w); }
}

@media (max-width: 380px) {
  .header__inner { gap: 8px; }
  .header__actions { gap: 6px; }
  .logo { gap: 8px; }
  .logo__mark { width: 30px; height: 30px; font-size: 11px; }
  .logo__text { font-size: 15px; }
  .icon-btn, .lang__btn { height: 36px; }
  .icon-btn { width: 36px; }
  .lang__btn { padding: 0 8px; }
}
