:root {
  --bg: #fff;
  --bg-alt: #F7FAFC;
  --text: #0C2A3E;
  --sub: #475A68;
  --muted: #8194A1;
  --accent: #1A6CB0;
  --accent-hover: #155E9C;
  --cyan: #16C0D4;
  --cyan-hover: #3ECFDF;
  --border: #E3EBF1;
  --card: #fff;
  --chip: #F4F7F9;
  --chip-text: #475A68;
  --dark: #0C2A3E;
  --dark-sub: #A9C0D2;
  --dark-border: #123B57;
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-w: 1320px;
  --px: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: var(--font-body); }

/* ── Layout ── */
.container { max-width: var(--max-w); margin: 0 auto; }

.section { padding: 84px var(--px); }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--dark { background: var(--dark); color: #fff; }
.section--gradient { background: linear-gradient(140deg, #0C2A3E, #123B57); }

/* ── Header ── */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px var(--px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 11px;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .05em;
  color: var(--text);
}

.logo__sub {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: .26em;
  color: var(--muted);
  margin-top: 3px;
}
.logo__mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
  flex: 0 0 32px;
  display: block;
}

.logo__mark--footer {
  width: 24px;
  height: 24px;
  flex-basis: 24px;
}

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

.nav__link {
  font-size: 14px;
  color: var(--sub);
  transition: color .15s;
}

.nav__link:hover { color: var(--text); }

.nav__link--active {
  color: var(--accent);
  font-weight: 600;
}

.nav__cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 10px 20px;
  border-radius: 8px;
  transition: background .15s;
}

.nav__cta:hover { background: var(--accent-hover); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}

.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Typography ── */
.label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .22em;
  color: var(--accent);
  display: block;
}

.label--cyan { color: var(--cyan); }
.label--white { color: var(--cyan); }

h1, .h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 56px;
  line-height: 1.06;
  letter-spacing: -.02em;
  color: var(--text);
}

h2, .h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -.02em;
  color: var(--text);
  margin-top: 14px;
}

h3, .h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 19px;
  color: var(--text);
}

.text-body {
  font-size: 19px;
  line-height: 1.6;
  color: var(--sub);
}

.text-balance { text-wrap: balance; }

/* ── Buttons ── */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 9px;
  transition: all .15s;
  border: none;
}

.btn--primary {
  color: #fff;
  background: var(--accent);
}

.btn--primary:hover { background: var(--accent-hover); }

.btn--outline {
  color: var(--accent);
  background: transparent;
  border: 1px solid #D4E0EA;
}

.btn--outline:hover { border-color: var(--accent); }

.btn--cyan {
  color: var(--dark);
  background: var(--cyan);
}

.btn--cyan:hover { background: var(--cyan-hover); }

.btn--lg {
  font-size: 16px;
  padding: 16px 32px;
  border-radius: 10px;
}

.btn--full { width: 100%; }

/* ── Cards ── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px;
  transition: all .2s ease;
}

.card--hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(12,42,62,.3);
  border-color: #BFD6E8;
}

/* ── Grid helpers ── */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Stat ── */
.stat__value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 30px;
  color: var(--text);
}

.stat__label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ── Pill tags ── */
.pill {
  font-size: 15px;
  color: #DCE8F1;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 30px;
  padding: 11px 20px;
  display: inline-block;
}

.pill--light {
  color: var(--text);
  background: #fff;
  border-color: var(--border);
  font-size: 14px;
  padding: 10px 18px;
}

/* ── Tech chip ── */
.chip {
  font-size: 13px;
  color: var(--chip-text);
  background: var(--chip);
  border-radius: 6px;
  padding: 5px 11px;
  display: inline-block;
}

/* ── Tag mono ── */
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: var(--accent);
}

.tag--muted { color: var(--muted); letter-spacing: .08em; }

/* ── Approach item ── */
.approach {
  border-top: 2px solid var(--cyan);
  padding-top: 20px;
}

/* ── Service number ── */
.svc-num {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--accent);
}

/* ── Bullet point ── */
.bullet {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.bullet__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  margin-top: 7px;
  flex: none;
}

.bullet__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--sub);
}

/* ── Contact info ── */
.contact-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 6px;
}

.contact-value {
  font-size: 17px;
  color: var(--text);
}

/* ── Form ── */
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  margin-bottom: 7px;
}

.form-input {
  width: 100%;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid #D4E0EA;
  border-radius: 9px;
  padding: 13px 15px;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(26,108,176,.1);
}

textarea.form-input { resize: vertical; }

/* ── Hero diagram ── */
.diagram-wrapper {
  position: relative;
  border-radius: 18px;
  background: linear-gradient(150deg, #F4F8FB, #E9F1F7);
  border: 1px solid var(--border);
  padding: 30px;
  box-shadow: 0 30px 60px -30px rgba(12,42,62,.28);
}

.diagram-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--muted);
}

.diagram-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--accent);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: klzPulse 1.8s infinite;
}

/* ── Footer ── */
.footer {
  padding: 40px var(--px);
  border-top: 1px solid var(--dark-border);
  background: var(--dark);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  gap: 10px;
}

.footer__logo-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .05em;
  color: #fff;
}

.footer__meta {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--dark-sub);
  font-family: var(--font-mono);
}

/* ── Project card ── */
.project-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all .2s ease;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -22px rgba(12,42,62,.3);
  border-color: #BFD6E8;
}

.project-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--chip), #E9F1F7);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.project-card__icon {
  font-size: 48px;
  opacity: .3;
}

.project-card__sector {
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--accent);
  background: rgba(255,255,255,.9);
  padding: 4px 10px;
  border-radius: 4px;
}

.project-card__body { padding: 24px; }

.project-card__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 20px;
  color: var(--text);
  margin-bottom: 8px;
}

.project-card__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--sub);
  margin-bottom: 16px;
}

.project-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Step number ── */
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  margin-top: 2px;
}

/* ── Animations ── */
@keyframes klzPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(1.3); }
}

@keyframes klzDash {
  to { stroke-dashoffset: -28; }
}

/* ── CTA section ── */
.cta-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

/* ── Success message ── */
.form-success {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--cyan);
  display: none;
}

.form-success.visible { display: block; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  :root { --px: 32px; }
  h1, .h1 { font-size: 42px; }
  h2, .h2 { font-size: 30px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --px: 20px; }

  h1, .h1 { font-size: 34px; }
  h2, .h2 { font-size: 26px; }
  .text-body { font-size: 16px; }

  .header { padding: 16px var(--px); }

  .nav {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 24px var(--px);
    gap: 0;
    z-index: 99;
  }

  .nav.open { display: flex; }

  .nav__link, .nav__cta {
    padding: 16px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
  }

  .nav__cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  .nav-toggle { display: flex; }

  .section { padding: 52px var(--px); }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-grid .diagram-wrapper { display: none; }

  .stat__value { font-size: 24px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__meta { flex-direction: column; gap: 8px; }

  .contact-grid { grid-template-columns: 1fr !important; }

  .cta-section { text-align: center; flex-direction: column; }

  .story-grid { grid-template-columns: 1fr !important; }
  .industries-grid { grid-template-columns: 1fr !important; }
}
