:root {
  --bg: #0c0f14;
  --bg-alt: #10141b;
  --surface: #151a23;
  --line: #232a36;
  --text: #e9edf3;
  --muted: #98a2b3;
  --accent: #ffc53d;
  --accent-text: #ffc53d;
  --accent-ink: #1a1300;
  --ok: #4ade80;
  --control-line: #3a4353;
  --radius: 16px;
  --wrap: 1120px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf9f6;
    --bg-alt: #f2f0ea;
    --surface: #ffffff;
    --line: #e4e0d6;
    --text: #15181d;
    --muted: #5b6472;
    --accent: #f0a800;
    --accent-text: #8a5a00;
    --accent-ink: #1a1300;
    --ok: #15803d;
    --control-line: #8d8779;
  }
}

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

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }

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

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 20px; min-height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo__mark {
  display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--mono);
}

.nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav a { transition: color .15s; }
.nav a:hover { color: var(--text); }

.header .header__cta { padding: 9px 18px; font-size: 15px; border-radius: 10px; }

.lang { display: inline-flex; padding: 3px; border: 1px solid var(--control-line); border-radius: 999px; }
.lang a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 38px; padding: 0 12px; border-radius: 999px;
  font: 600 14px/1 var(--font); color: var(--muted);
}
.lang a[aria-current="true"] { background: var(--text); color: var(--bg); }

/* Hero */
.hero { position: relative; padding: 96px 0 104px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto auto; width: 720px; height: 720px;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 16%, transparent), transparent);
  pointer-events: none;
}
.hero__in { position: relative; display: grid; grid-template-columns: 1.5fr .8fr; gap: 56px; align-items: center; }

.eyebrow {
  font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-text); margin-bottom: 18px;
}

h1 {
  font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 800;
  text-wrap: balance;
}
h1 em {
  font-style: normal; white-space: nowrap;
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--accent) 55%, transparent) 62%);
}
.lead { margin-top: 26px; max-width: 34em; font-size: 19px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px; border-radius: 12px; font-weight: 700; font-size: 16px;
  border: 1px solid transparent; transition: transform .15s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line); }
.btn--ghost:hover { border-color: var(--muted); }

.spec {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--mono); font-size: 14px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45);
}
.spec__bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.spec__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.spec__bar span { margin-left: 8px; font-size: 12px; }
.spec__list { padding: 10px 18px 14px; }
.spec__list > div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.spec__list > div:last-child { border-bottom: 0; }
.spec__list dt { color: var(--muted); }
.spec__list dt::after { content: ":"; }
.spec__list dd { text-align: right; }
.spec__list .ok { color: var(--ok); }
.spec__list .ok::before { content: "● "; font-size: 10px; vertical-align: 1px; }

/* Sections */
.section { padding: 104px 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: 52px; }
h2 { font-size: clamp(30px, 3.6vw, 44px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 800; text-wrap: balance; }
.section__lead { margin-top: 16px; color: var(--muted); font-size: 18px; }
h3 { font-size: 21px; line-height: 1.3; letter-spacing: -0.015em; font-weight: 700; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card {
  position: relative; padding: 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); transform: translateY(-3px); }
.card__num { display: block; margin-bottom: 22px; font: 500 13px/1 var(--mono); color: var(--accent-text); }
.card p { margin-top: 12px; color: var(--muted); }
.card ul { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 15.5px; }
.card li { position: relative; padding-left: 22px; }
.card li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 10px; height: 2px; background: var(--accent); }

/* Solutions */
.grp { margin: 0 0 16px; font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.sols--4 { grid-template-columns: repeat(4, 1fr); margin-bottom: 0; }
.sol { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.sol h3 { font-size: 19px; }
.sol p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Experience */
.exp { display: grid; grid-template-columns: .8fr 1.6fr; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.exp__ind, .exp__res { padding: 36px; }
.exp__ind { border-right: 1px solid var(--line); background: var(--bg-alt); }
.exp__label { margin-bottom: 20px; font: 500 13px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.exp__ind ul { display: grid; gap: 14px; }
.exp__ind li { font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
.exp__res ul { display: grid; gap: 18px; }
.exp__res li { position: relative; padding-left: 26px; color: var(--muted); }
.exp__res li::before { content: ""; position: absolute; left: 2px; top: .72em; width: 12px; height: 2px; background: var(--accent); }
.exp__res b { color: var(--text); font-weight: 700; }

.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.stack li { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font: 500 13px/1.4 var(--mono); color: var(--muted); }

/* Contact */
.contact { border-top: 1px solid var(--line); }
.contact__in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: center; }
.contact__links { display: grid; gap: 14px; }
.link-card {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, transform .2s;
}
.link-card:hover { border-color: var(--accent); transform: translateX(4px); }
.link-card__k { font: 500 13px/1.4 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.link-card__v { font-weight: 700; font-size: 18px; overflow-wrap: anywhere; text-align: right; }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14.5px; }
.footer__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer a:hover { color: var(--text); }

/* Reveal on scroll (only when JS is running) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .link-card { transition: none; }
}

@media (max-width: 900px) {
  .hero { padding: 64px 0 72px; }
  .hero__in, .contact__in { grid-template-columns: 1fr; gap: 44px; }
  .sols, .sols--4 { grid-template-columns: repeat(2, 1fr); }
  .exp { grid-template-columns: 1fr; }
  .exp__ind { border-right: 0; border-bottom: 1px solid var(--line); }
  .section { padding: 76px 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  html { scroll-padding-top: 124px; }
  .header__in { flex-wrap: wrap; gap: 0 12px; padding-top: 10px; }
  .lang { margin-left: auto; }
  .nav {
    order: 3; width: 100%; margin: 0; gap: 4px 22px;
    overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a { padding: 12px 0; }
  .cards, .sols, .sols--4 { grid-template-columns: 1fr; }
  .exp__ind, .exp__res { padding: 24px; }
  .card { padding: 24px; }
  .lead { font-size: 17px; }
  .btn { width: 100%; }
  .header__cta { width: auto; }
  .link-card { flex-direction: column; align-items: flex-start; gap: 4px; }
  .link-card__v { text-align: left; }
}
