:root {
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-dark: #0a1830;
  --bg-dark-2: #070f22;
  --ink: #0d1b2a;
  --ink-2: #1f2a3a;
  --muted: #5a6a80;
  --line: #e4e9f2;
  --line-dark: rgba(255, 255, 255, 0.12);
  --brand: #2b5bff;
  --brand-2: #6aa9ff;
  --accent: #8b5cf6;
  --accent-2: #b794f6;
  --ok: #27c28b;
  --warn: #ffb020;
  --err: #ff5d5d;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 27, 42, 0.06), 0 2px 8px rgba(13, 27, 42, 0.04);
  --shadow-md: 0 6px 24px rgba(13, 27, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 27, 42, 0.18);
  --maxw: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5 {
  font-family: "Space Grotesk", "Inter", sans-serif;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.4em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin: 0 0 1em; color: var(--ink-2); }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ------------------------- Header / Nav ------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--line);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(74,166,255,.14), rgba(255,122,26,.14));
}
.brand-text .brand-tld { color: var(--brand); }
.brand-white, .brand-white .brand-text .brand-tld { color: #fff; }

.primary-nav {
  display: flex; gap: 26px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
}
.primary-nav a { position: relative; padding: 6px 2px; }
.primary-nav a:hover { color: var(--brand); }
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -4px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.lang-switch button {
  padding: 7px 12px;
  color: var(--muted);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.lang-switch button.is-active {
  color: #fff;
  background: var(--ink);
}

.nav-toggle { display: none; width: 40px; height: 40px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 10px; right: 10px;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 13px; }
.nav-toggle span:nth-child(2) { top: 19px; }
.nav-toggle span:nth-child(3) { top: 25px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 19px; transform: rotate(-45deg); }

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

/* ------------------------- Buttons ------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 10px 16px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 24px -12px rgba(13, 27, 42, .55);
}
.btn-primary:hover { background: #0a1630; }
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: #fff;
}
.btn-ghost:hover { border-color: var(--ink); }

/* ------------------------- Hero ------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 600px at 90% -10%, rgba(255,122,26,.10), transparent 60%),
    radial-gradient(900px 700px at -10% 10%, rgba(26,95,255,.10), transparent 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}
.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 27, 42, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 27, 42, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 80%);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
}
.orb-1 { width: 420px; height: 420px; background: #6aa9ff; top: -80px; right: -120px; }
.orb-2 { width: 380px; height: 380px; background: #8b5cf6; bottom: -120px; left: -80px; opacity: 0.35; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  background: rgba(26, 95, 255, 0.08);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 { margin-top: 8px; }
.hero h1 .accent {
  display: block;
  background: linear-gradient(90deg, var(--brand) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 1.1rem;
  max-width: 56ch;
  color: var(--ink-2);
  margin: 20px 0 28px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 36px; }

.hero-trust {
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  border-top: 1px solid var(--line);
}
.hero-trust li { display: flex; flex-direction: column; gap: 2px; font-size: 0.82rem; color: var(--muted); }
.hero-trust strong {
  font-family: "Space Grotesk", sans-serif;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hero panel (code card) */
.hero-panel {
  position: relative;
  background: linear-gradient(180deg, #0a1830 0%, #070f22 100%);
  color: #d8e0ef;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transform: rotate(0.5deg);
}
.hero-panel::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 200px at 80% 0%, rgba(74,166,255,.25), transparent 60%);
  pointer-events: none;
}
.panel-head {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: 0.78rem;
  color: #9fb0c7;
}
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.r { background: #ff5d5d; }
.dot.y { background: #ffb020; }
.dot.g { background: #27c28b; }
.panel-title { margin-left: 8px; font-family: "JetBrains Mono", Menlo, monospace; }

.code {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: "JetBrains Mono", "Fira Code", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
  color: #cfd8e8;
  white-space: pre-wrap;
  overflow-x: auto;
}
.code .c { color: #6b7a93; font-style: italic; }
.code .k { color: #b794f6; }
.code .s { color: #8dd88a; }
.code .f { color: #6aa9ff; }
.code .t { color: #c678dd; }

.panel-foot {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.badge {
  font-size: 0.72rem;
  background: rgba(255,255,255,.06);
  color: #c6d0e0;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.03em;
}
.badge.ok { background: rgba(39,194,139,.15); color: #6ee0b1; }

/* Logos strip */
.logos-strip {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.logos-title {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.76rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.logos-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px 40px;
  opacity: 0.75;
}
.logos-row span {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ------------------------- Sections ------------------------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head {
  max-width: 740px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

.section-dark {
  background: linear-gradient(180deg, #0a1830 0%, #070f22 100%);
  color: #e4ebf5;
}
.section-dark h2, .section-dark h3, .section-dark h4 { color: #fff; }
.section-dark p { color: #aebbd0; }
.section-dark .eyebrow {
  color: var(--accent-2);
  background: rgba(255, 122, 26, 0.15);
}

.section-soft { background: var(--bg-soft); }

/* Services cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: #d2dbec;
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(26,95,255,.1), rgba(255,122,26,.1));
  color: var(--brand);
  margin-bottom: 18px;
}
.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.95rem; margin-bottom: 14px; }
.card ul {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  gap: 6px;
  font-size: 0.86rem;
  color: var(--ink-2);
}
.card ul li {
  position: relative;
  padding-left: 18px;
}
.card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}

/* Expertise split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.section-dark .lede { color: #aebbd0; }
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}
.stats > div {
  padding: 18px 20px;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.02);
}
.stats strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.8rem;
  color: #fff;
  font-weight: 700;
}
.stats span { font-size: 0.88rem; color: #aebbd0; }

.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tech-group {
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius-sm);
  padding: 18px;
}
.tech-group h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-2);
  margin-bottom: 10px;
}
.tech-group span {
  display: inline-block;
  margin: 4px 6px 4px 0;
  padding: 5px 10px;
  font-size: 0.82rem;
  background: rgba(255,255,255,.06);
  color: #d8e0ef;
  border-radius: 6px;
}

/* Timeline */
.timeline {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 4%; right: 4%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  opacity: 0.35;
  z-index: 0;
}
.timeline li {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  z-index: 1;
}
.step {
  display: inline-grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  margin-bottom: 14px;
  box-shadow: 0 10px 22px -10px rgba(26, 95, 255, 0.6);
}
.timeline h3 { font-size: 1.05rem; }
.timeline p { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* Cases */
.cases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: #fff;
  border-radius: var(--radius);
  padding: 26px;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.case-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.case h3 { font-size: 1.1rem; }
.case p { color: var(--muted); font-size: 0.94rem; flex-grow: 1; }
.case-kpis {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.case-kpis span { display: flex; flex-direction: column; }
.case-kpis b {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 1.1rem;
}
.case-kpis em {
  font-style: normal;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin-top: 32px;
}
.quotes figure {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
}
.quotes blockquote {
  margin: 0 0 16px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.1rem;
  line-height: 1.5;
  color: var(--ink);
}
.quotes figcaption { font-size: 0.88rem; color: var(--muted); }
.quotes figcaption strong { color: var(--ink); font-weight: 600; display: block; }

/* CTA section */
.section-cta {
  position: relative;
  background: linear-gradient(135deg, #0a1830 0%, #1a2c5c 60%, #8b5cf6 180%);
  color: #e4ebf5;
  overflow: hidden;
}
.section-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(600px 300px at 90% 0%, rgba(255,122,26,.25), transparent 60%),
    radial-gradient(500px 300px at 0% 100%, rgba(74,166,255,.22), transparent 60%);
  pointer-events: none;
}
.cta-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.section-cta h2 { color: #fff; }
.section-cta p { color: #cdd8ec; }
.section-cta .eyebrow { color: var(--accent-2); background: rgba(255,122,26,.15); }

.cta-bullets { list-style: none; padding: 0; margin: 22px 0 24px; display: grid; gap: 8px; font-size: 0.94rem; }
.cta-bullets li { position: relative; padding-left: 26px; color: #dbe3f2; }
.cta-bullets li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(39, 194, 139, 0.2);
  color: #6ee0b1;
  font-size: 0.72rem;
  font-weight: 700;
}
.cta-contacts { display: flex; gap: 10px; align-items: center; font-size: 0.96rem; }
.cta-contacts a { color: #fff; border-bottom: 1px dashed rgba(255,255,255,.4); }
.cta-contacts a:hover { border-color: #fff; }

.cta-form {
  background: #fff;
  border-radius: 18px;
  padding: 30px;
  box-shadow: var(--shadow-lg);
  display: grid;
  gap: 14px;
  color: var(--ink);
}
.cta-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}
.field input, .field select, .field textarea {
  font: inherit;
  color: var(--ink);
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  width: 100%;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(26, 95, 255, 0.12);
}
.check {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.84rem;
  color: var(--muted);
}
.check input { margin-top: 4px; accent-color: var(--brand); }

.form-status { margin: 0; font-size: 0.88rem; min-height: 1.2em; color: var(--ok); }
.form-status.is-error { color: var(--err); }

/* Footer */
.site-footer {
  background: #070e1d;
  color: #9fb0c7;
  padding: 64px 0 24px;
}
.site-footer h5 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.foot-brand p { color: #9fb0c7; margin-top: 14px; max-width: 36ch; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7d8da7;
  font-size: 0.82rem;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------- Responsive ------------------------- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-panel { transform: none; max-width: 640px; margin: 0 auto; }
  .cards, .cases { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .split { grid-template-columns: 1fr; }
  .quotes, .cta-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .primary-nav { display: none; }
  .nav-toggle { display: block; }
}

@media (max-width: 640px) {
  .nav-actions .btn { display: none; }
  .cards, .cases, .timeline, .tech-grid, .stats { grid-template-columns: 1fr; }
  .hero-trust { grid-template-columns: repeat(2, 1fr); }
  .cta-form { padding: 22px; }
  .cta-form .row { grid-template-columns: 1fr; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
