:root {
  --ink: #0e182b;
  --muted: #5d6878;
  --blue: #1976d2;
  --blue-light: #eaf4ff;
  --line: #dfe5ec;
  --paper: #ffffff;
  --tint: #f4f7fa;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(14, 24, 43, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(223, 229, 236, .8);
  backdrop-filter: blur(18px);
}
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; width: 127px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; font-weight: 650; }
.nav a { text-decoration: none; transition: color .2s ease; }
.nav a:hover { color: var(--blue); }
.nav-accent { padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; }

.hero { position: relative; overflow: hidden; padding: 104px 0 116px; background: linear-gradient(145deg, #fff 0%, #f5f9fd 70%, #edf6ff 100%); }
.hero::before { content: ""; position: absolute; inset: -30% auto auto -10%; width: 520px; height: 520px; border-radius: 50%; background: rgba(25,118,210,.07); filter: blur(4px); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 70px; align-items: center; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { margin: 0; max-width: 760px; font-size: clamp(48px, 6vw, 78px); line-height: .99; letter-spacing: -.055em; }
h1 span { color: var(--blue); }
.hero-text { max-width: 650px; margin: 30px 0 0; color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.55; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 999px; text-decoration: none; font-weight: 750; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--blue); color: white; }
.button-primary:hover { background: #1067bb; }
.button-ghost { border: 1px solid var(--line); background: rgba(255,255,255,.7); }

.hero-visual { position: relative; min-height: 430px; display: grid; place-items: center; }
.code-window { position: relative; z-index: 2; width: min(100%, 440px); padding: 18px 22px 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 26px; color: #dce9f6; background: var(--ink); box-shadow: var(--shadow); transform: rotate(2deg); }
.window-bar { display: flex; gap: 7px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.12); }
.window-bar span { width: 9px; height: 9px; border-radius: 50%; background: #526174; }
.window-bar span:nth-child(2) { background: #1976d2; }
.window-bar span:nth-child(3) { background: #75b8f5; }
.code-lines { padding-top: 24px; font: 500 15px/1.85 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.code-lines p { margin: 0; }
.code-lines b { color: #75b8f5; }
.code-lines em { color: #fff; font-style: normal; }
.orbit { position: absolute; border: 1px solid rgba(25,118,210,.23); border-radius: 50%; }
.orbit-one { width: 390px; height: 390px; }
.orbit-two { width: 300px; height: 300px; transform: translate(92px, -70px); }

.section { padding: 110px 0; }
.section-tint { background: var(--tint); }
.section-heading { max-width: 760px; margin-bottom: 52px; }
.section-heading.compact { margin-bottom: 44px; }
.section-heading h2, .about h2 { margin: 0; font-size: clamp(38px, 5vw, 58px); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child { max-width: 650px; margin: 20px 0 0; color: var(--muted); font-size: 18px; }

.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.service-card { min-height: 350px; display: flex; flex-direction: column; padding: 38px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.service-card-dark { color: #fff; border-color: var(--ink); background: var(--ink); }
.card-number { margin-bottom: auto; color: var(--blue); font: 750 15px/1 ui-monospace, monospace; }
.service-card-dark .card-number { color: #75b8f5; }
.service-card h3 { margin: 56px 0 12px; font-size: 30px; line-height: 1.2; letter-spacing: -.03em; }
.service-card p { max-width: 500px; margin: 0; color: var(--muted); font-size: 17px; }
.service-card-dark p { color: #aeb9c9; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.card-tags span { padding: 6px 11px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 700; }
.service-card-dark .card-tags span { border-color: rgba(255,255,255,.2); }

.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.capability-card { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.capability-icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 54px; border-radius: 14px; color: var(--blue); background: var(--blue-light); font: 800 14px/1 ui-monospace, monospace; }
.capability-card h3 { margin: 0 0 12px; font-size: 23px; letter-spacing: -.025em; }
.capability-card p { margin: 0; color: var(--muted); }

.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.about-copy > p { margin: 0 0 18px; color: #344054; font-size: 21px; }
.about-copy strong { color: var(--ink); }
.astana-badge { display: inline-flex; align-items: center; gap: 16px; margin-top: 12px; padding: 17px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.astana-badge img { width: 146px; height: auto; }
.astana-badge span { color: var(--muted); font-size: 13px; }
.about-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 38px; }
.about-facts span { padding: 18px; border: 1px solid var(--line); border-radius: 16px; color: var(--muted); font-size: 12px; }
.about-facts b { display: block; margin-bottom: 4px; color: var(--ink); font-size: 16px; }

.portfolio { color: #fff; background: var(--ink); }
.section-heading.light .eyebrow { color: #75b8f5; }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project-card { min-height: 520px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: rgba(255,255,255,.045); }
.project-card.featured { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.13); }
.project-shot { aspect-ratio: 1.52; flex: 0 0 auto; background-image: url('/assets/projects-reference.png'); background-repeat: no-repeat; background-size: 262% auto; background-color: #f2f2f2; }
.shot-warehouse { background-position: 6% 9%; }
.shot-crm { background-position: 73% 9%; }
.shot-fcrm,
.shot-tnved {
  background-image: url('/assets/projects-bottom-reference.png');
  background-size: 219% auto;
}
.shot-fcrm { background-position: 9% 18%; }
.shot-tnved { background-position: 98% 18%; }
.project-body { display: flex; flex: 1; flex-direction: column; padding: 28px 30px 30px; }
.project-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.project-meta span { padding: 5px 9px; border-radius: 999px; color: #b7c6d8; background: rgba(255,255,255,.09); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; }
.project-card h3 { margin: 28px 0 12px; font-size: 28px; line-height: 1.15; letter-spacing: -.03em; }
.project-card p { margin: 0; color: #aeb9c9; }
.project-card a { display: flex; justify-content: space-between; margin-top: auto; padding-top: 22px; color: #fff; font-weight: 750; text-decoration: none; }

.contact { background: linear-gradient(145deg, #fff 0%, #f5f9fd 100%); }
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 90px; align-items: start; }
.contact-copy h2 { margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.04; letter-spacing: -.05em; }
.contact-copy > p:last-child { max-width: 430px; margin: 24px 0 0; color: var(--muted); font-size: 18px; }
.contact-form { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 60px rgba(14,24,43,.08); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.contact-form label { display: block; }
.contact-form label > span { display: block; margin-bottom: 7px; color: #344054; font-size: 13px; font-weight: 700; }
.contact-form input, .contact-form textarea { width: 100%; padding: 14px 15px; border: 1px solid #cfd7e2; border-radius: 12px; outline: none; color: var(--ink); background: #fbfcfe; font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(25,118,210,.12); }
.form-wide { grid-column: 1 / -1; }
.consent { display: flex !important; align-items: flex-start; gap: 10px; margin-top: 18px; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent span { margin: 0 !important; color: var(--muted) !important; font-weight: 500 !important; }
.submit-button { margin-top: 22px; border: 0; font: inherit; font-weight: 750; cursor: pointer; }
.submit-button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.form-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; }
.form-note.is-success { color: #067647; }
.form-note.is-error { color: #b42318; }
.form-honeypot { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-footer { padding: 32px 0; color: #9ba8b9; background: #0a1120; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 36px; }
.brand-footer { padding: 7px 10px; border-radius: 9px; background: #fff; }
.footer-inner p { margin: 0; font-size: 13px; }

@media (max-width: 900px) {
  .nav a:not(.nav-accent) { display: none; }
  .hero { padding: 78px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { min-height: 330px; }
  .service-grid, .project-grid { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-icon { margin-bottom: 30px; }
  .about-grid { grid-template-columns: 1fr; gap: 38px; }
  .contact-grid { grid-template-columns: 1fr; gap: 38px; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 600px) {
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { min-height: 68px; }
  .nav { display: none; }
  .hero { padding-top: 58px; }
  h1 { font-size: clamp(40px, 13vw, 58px); }
  .hero-text { font-size: 18px; }
  .hero-actions, .button { width: 100%; }
  .hero-visual { min-height: 270px; }
  .code-window { padding: 15px 16px 24px; border-radius: 20px; transform: none; }
  .code-lines { font-size: 12px; }
  .orbit-one { width: 280px; height: 280px; }
  .orbit-two { width: 210px; height: 210px; }
  .section { padding: 78px 0; }
  .section-heading { margin-bottom: 34px; }
  .service-card { min-height: 320px; padding: 26px; }
  .service-card h3 { font-size: 26px; }
  .about-copy > p { font-size: 18px; }
  .about-facts { grid-template-columns: 1fr; }
  .project-card { min-height: 490px; }
  .project-body { padding: 23px; }
  .contact-form { padding: 24px 18px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-wide { grid-column: auto; }
  .astana-badge { width: 100%; justify-content: space-between; }
}

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