:root {
  --ink: #101828;
  --muted: #647085;
  --line: #d9e0ea;
  --soft: #f4f7fb;
  --paper: #ffffff;
  --navy: #10233f;
  --blue: #1f6feb;
  --green: #14a06f;
  --amber: #d9911b;
  --red: #d94a3a;
  --shadow: 0 24px 70px rgba(16, 35, 63, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(217, 224, 234, 0.8);
  backdrop-filter: blur(18px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand img {
  width: 210px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--blue);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 8px;
}

.hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 82px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.82fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.08em;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.hero-copy {
  margin: 24px 0 0;
  max-width: 670px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 800;
  border: 1px solid transparent;
}

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

.btn.secondary {
  color: var(--navy);
  background: var(--paper);
  border-color: var(--line);
}

.btn.full {
  width: 100%;
  margin-top: 10px;
}

.hero-visual {
  min-height: 470px;
  border-radius: 8px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(31, 111, 235, 0.18), transparent 42%),
    linear-gradient(160deg, #122645, #101828);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.visual-top {
  height: 56px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.visual-top span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.visual-grid {
  padding: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.metric-panel,
.chart-panel,
.status-panel {
  min-height: 142px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
}

.metric-panel p,
.metric-panel span {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.metric-panel strong {
  display: block;
  margin: 10px 0 4px;
  font-size: 42px;
  line-height: 1;
}

.chart-panel {
  grid-column: span 2;
  display: flex;
  align-items: end;
  gap: 12px;
}

.chart-panel span {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, #6ee7b7, #1f6feb);
}

.status-panel {
  grid-column: span 2;
  min-height: auto;
  display: grid;
  gap: 10px;
}

.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 8px;
}

.green { background: var(--green); }
.blue { background: var(--blue); }
.amber { background: var(--amber); }

.proof-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
}

.proof-band div {
  background: var(--soft);
  padding: 24px;
  border: 1px solid var(--line);
}

.proof-band strong {
  display: block;
  font-size: 26px;
  line-height: 1.1;
}

.proof-band span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 24px;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: start;
}

.section-intro p,
.section-heading p,
.project-body p,
.process-grid p,
.contact p {
  color: var(--muted);
}

.section-intro > p:last-child {
  font-size: 17px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.service-list article,
.project-card,
.process-grid div,
.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 40px rgba(16, 35, 63, 0.06);
}

.service-list article {
  padding: 24px;
}

.service-list article,
.project-card,
.process-grid div {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.service-list article.visible,
.project-card.visible,
.process-grid div.visible {
  opacity: 1;
  transform: translateY(0);
}

.service-list i {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #eaf2ff;
  color: var(--blue);
  margin-bottom: 18px;
}

.work-section {
  background: var(--soft);
  max-width: none;
}

.work-section > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.section-heading {
  margin-bottom: 28px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  overflow: hidden;
}

.project-card.featured {
  grid-column: span 2;
  display: grid;
  grid-template-columns: 0.74fr 1.26fr;
}

.project-media {
  min-height: 210px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #eef5ff;
}

.project-media img {
  max-width: 180px;
  max-height: 180px;
  object-fit: contain;
}

.smartcity-media {
  background:
    radial-gradient(circle at 70% 20%, rgba(31, 111, 235, 0.22), transparent 36%),
    #eaf2ff;
}

.pefoma-media {
  background: #fff7ed;
}

.system-media,
.reporting-media {
  color: var(--blue);
  font-size: 74px;
}

.reporting-media {
  color: var(--green);
  background: #eafaf4;
}

.project-body {
  padding: 28px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf4ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-body ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.insight-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) 1.1fr;
  gap: 40px;
  align-items: center;
}

.image-panel {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.compact {
  max-width: 620px;
}

.pill-row span {
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
  background: #fff;
}

.process {
  border-top: 1px solid var(--line);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.process-grid div {
  padding: 24px;
}

.process-grid span {
  color: var(--blue);
  font-weight: 900;
}

.contact {
  max-width: 1180px;
  margin: 0 auto 72px;
  padding: 44px 24px;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 34px;
  align-items: center;
  background: var(--navy);
  color: #fff;
  border-radius: 8px;
}

.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-card {
  padding: 24px;
  background: #fff;
  color: var(--ink);
  display: grid;
  gap: 12px;
}

.contact-card a,
.contact-card p {
  margin: 0;
  color: var(--ink);
}

.contact-card i {
  color: var(--blue);
  width: 22px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 28px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  max-width: 1180px;
  margin: 0 auto;
}

.footer div {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
}

.footer img {
  width: 230px;
  height: auto;
  object-fit: contain;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}

.footer-meta a {
  color: var(--blue);
  font-weight: 700;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-meta p {
  margin: 0;
}

.legal {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 24px 80px;
}

.legal-header {
  padding-bottom: 28px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}

.legal-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  margin-top: 6px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin: 18px 0 24px;
  color: var(--muted);
  font-size: 14px;
}

.legal-intro {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.legal-body h2 {
  font-size: 24px;
  margin: 40px 0 12px;
  scroll-margin-top: 90px;
}

.legal-body h3 {
  font-size: 18px;
  margin: 24px 0 8px;
  color: var(--navy);
}

.legal-body p {
  margin: 0 0 14px;
  color: var(--muted);
}

.legal-body ul {
  margin: 0 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.legal-body li {
  margin-bottom: 6px;
}

.legal-body a {
  color: var(--blue);
  font-weight: 600;
}

.legal-body a:hover {
  text-decoration: underline;
}

.legal-contact {
  margin: 4px 0 18px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.legal-contact p {
  margin: 0 0 10px;
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-contact i {
  color: var(--blue);
  width: 20px;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  color: var(--blue);
  font-weight: 700;
}

.legal-back:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-links {
    position: absolute;
    top: 73px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero,
  .split,
  .insight-section,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .proof-band,
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .project-card.featured {
    grid-template-columns: 1fr;
  }

  .contact {
    margin-left: 16px;
    margin-right: 16px;
  }
}

@media (max-width: 620px) {
  .nav {
    padding: 12px 16px;
  }

  .brand img {
    width: 172px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-visual {
    min-height: 410px;
  }

  .visual-grid,
  .service-list,
  .project-grid,
  .proof-band,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .chart-panel,
  .status-panel,
  .project-card.featured {
    grid-column: auto;
  }

  .project-card.featured {
    display: block;
  }

  .contact {
    padding: 30px 18px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-meta {
    align-items: flex-start;
    text-align: left;
  }
}
