:root {
  --blue-950: #071b3d;
  --blue-900: #0b285f;
  --blue-800: #123b84;
  --blue-700: #1754b6;
  --blue-600: #1f6feb;
  --blue-100: #eaf3ff;
  --cyan-500: #12a9d8;
  --slate-900: #111827;
  --slate-700: #334155;
  --slate-500: #64748b;
  --slate-100: #f1f5f9;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(7, 27, 61, 0.14);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--slate-900);
  font-family: "Inter", Arial, sans-serif;
  background: var(--white);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 92px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: 172px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--slate-700);
  font-weight: 600;
}

.nav-menu a {
  transition: color 180ms ease, transform 180ms ease;
}

.nav-menu a:hover {
  color: var(--blue-700);
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.nav-cta {
  color: var(--white);
  background: var(--blue-700);
  box-shadow: 0 12px 28px rgba(31, 111, 235, 0.24);
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--blue-700), var(--cyan-500));
  box-shadow: 0 16px 32px rgba(31, 111, 235, 0.28);
}

.btn-secondary {
  color: var(--blue-900);
  background: var(--white);
  border: 1px solid rgba(23, 84, 182, 0.2);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: var(--blue-100);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--blue-900);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 720px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(18, 169, 216, 0.24), transparent 34%),
    linear-gradient(135deg, #f7fbff 0%, #eef6ff 48%, #ffffff 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  color: var(--blue-950);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

h2 {
  color: var(--blue-950);
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  color: var(--blue-950);
  font-size: 1.3rem;
  line-height: 1.28;
}

.hero-text {
  max-width: 650px;
  color: var(--slate-700);
  font-size: 1.18rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-card {
  position: relative;
  min-height: 500px;
  padding: 32px;
  border: 1px solid rgba(23, 84, 182, 0.12);
  border-radius: 36px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(234, 243, 255, 0.76)),
    url("assets/koding-blocks-logo.png") center 50px / 62% no-repeat;
  box-shadow: var(--shadow);
}

.metric-card {
  position: absolute;
  left: 34px;
  bottom: 34px;
  width: 220px;
  padding: 24px;
  color: var(--white);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--blue-900), var(--blue-700));
  box-shadow: 0 22px 45px rgba(7, 27, 61, 0.24);
}

.metric-card span {
  display: block;
  margin-bottom: 8px;
  font-size: 3rem;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.metric-card p,
.floating-card p,
.service-card p,
.vision-card p,
.solutions p,
.contact-section p,
.site-footer p,
.rich-text p,
.legal-page p,
.legal-page li {
  color: var(--slate-700);
  line-height: 1.75;
}

.metric-card p {
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 0;
}

.floating-card {
  position: absolute;
  top: 210px;
  right: -18px;
  max-width: 260px;
  padding: 22px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 18px 55px rgba(7, 27, 61, 0.16);
}

.floating-card strong {
  color: var(--blue-900);
}

.floating-card p {
  margin: 8px 0 0;
  font-size: 0.95rem;
}

.service-stack {
  position: absolute;
  top: 34px;
  right: 34px;
  display: grid;
  gap: 10px;
}

.service-stack span {
  padding: 9px 14px;
  border: 1px solid rgba(31, 111, 235, 0.14);
  border-radius: 999px;
  color: var(--blue-900);
  background: rgba(255, 255, 255, 0.82);
  font-weight: 700;
  font-size: 0.85rem;
}

.trust-strip {
  padding: 0;
  background: var(--blue-950);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid div {
  padding: 34px 28px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.trust-grid div:last-child {
  border-right: 0;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  color: var(--white);
  margin-bottom: 6px;
}

.trust-grid span {
  color: rgba(255, 255, 255, 0.68);
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
}

.rich-text {
  font-size: 1.04rem;
}

.blue-section {
  background:
    radial-gradient(circle at top left, rgba(18, 169, 216, 0.28), transparent 32%),
    linear-gradient(135deg, var(--blue-950), var(--blue-800));
}

.vision-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.vision-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.vision-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: #9be7ff;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vision-card h3 {
  color: var(--white);
  font-size: 1.65rem;
}

.vision-card p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.76);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 46px;
}

.section-heading p:last-child {
  color: var(--slate-700);
  font-size: 1.06rem;
  line-height: 1.75;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.service-card {
  min-height: 285px;
  padding: 26px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 45px rgba(7, 27, 61, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(31, 111, 235, 0.2);
  box-shadow: 0 20px 55px rgba(7, 27, 61, 0.12);
}

.service-card .icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(145deg, var(--blue-700), var(--cyan-500));
  font-weight: 800;
}

.service-card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

.service-card a {
  display: inline-flex;
  margin-top: 16px;
  color: var(--blue-700);
  font-weight: 800;
}

.solutions {
  background: var(--slate-100);
}

.solutions-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: start;
}

.process-list {
  display: grid;
  gap: 18px;
}

.process-list div {
  padding: 26px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(7, 27, 61, 0.08);
}

.process-list span {
  color: var(--blue-700);
  font-weight: 800;
}

.process-list p {
  margin: 8px 0 0;
}

.contact-section {
  color: var(--white);
  background:
    radial-gradient(circle at bottom right, rgba(18, 169, 216, 0.34), transparent 32%),
    linear-gradient(135deg, var(--blue-900), var(--blue-950));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 60px;
  align-items: center;
}

.contact-section h2,
.contact-section .eyebrow {
  color: var(--white);
}

.contact-section p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
}

.contact-card {
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.22);
}

.contact-card h3 {
  color: var(--white);
}

.contact-card > a {
  display: block;
  padding: 14px 0;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.site-footer {
  padding: 34px 0;
  background: #05142d;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-footer img {
  width: 150px;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.62);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.legal-hero {
  padding: 86px 0 52px;
  background: linear-gradient(135deg, #f7fbff, #eaf3ff);
}

.legal-page {
  padding: 64px 0 92px;
}

.legal-page article {
  max-width: 860px;
}

.legal-page h2 {
  margin-top: 34px;
  font-size: 1.7rem;
}

.legal-page ul {
  padding-left: 20px;
}

@media (max-width: 980px) {
  .hero-grid,
  .split,
  .solutions-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-card {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, 1120px);
  }

  .section {
    padding: 64px 0;
  }

  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 76px;
    display: none;
    padding: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .brand img {
    width: 145px;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .hero-card {
    min-height: 430px;
    padding: 24px;
    background-size: 74%;
  }

  .floating-card {
    right: 18px;
    top: 178px;
  }

  .metric-card {
    left: 22px;
    bottom: 22px;
  }

  .service-stack {
    left: 22px;
    right: auto;
  }

  .trust-grid,
  .vision-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid div {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .trust-grid div:last-child {
    border-bottom: 0;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 2.7rem;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-card {
    display: none;
  }
}
