:root {
  color-scheme: light;
  --ink: #15171a;
  --muted: #61666f;
  --line: #d9dde3;
  --paper: #f6f7f9;
  --white: #ffffff;
  --blue: #1662d4;
  --green: #178a70;
  --shadow: 0 22px 60px rgba(21, 23, 26, 0.11);
  --soft-blue: #e9f0fb;
  --soft-green: #e8f4f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.96rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.78rem;
  letter-spacing: 0;
}

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

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

nav a:hover {
  color: var(--ink);
}

main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 28px;
  align-items: stretch;
  min-height: 620px;
  padding: 72px 0 56px;
}

.hero-copy,
.product-panel,
.project-card,
.contact {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 7vw, 76px);
  box-shadow: var(--shadow);
}

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

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

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.05rem, 8vw, 6.7rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0;
}

.hero-text {
  max-width: 630px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.text-link,
.card-link {
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
}

.text-link:hover,
.card-link:hover,
.site-footer a:hover {
  text-decoration: underline;
}

.product-panel {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 34px;
  background:
    linear-gradient(140deg, rgba(22, 98, 212, 0.12), rgba(23, 138, 112, 0.14)),
    var(--white);
}

.product-panel img {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(21, 23, 26, 0.22);
}

.panel-label {
  margin: 34px 0 10px;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
}

.product-panel h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.product-panel p:not(.panel-label) {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.product-panel .text-link {
  margin-top: 22px;
}

.section {
  margin-top: 28px;
  padding: clamp(28px, 5vw, 58px) 0;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  padding: 28px;
  background: var(--white);
}

.featured-card {
  background:
    linear-gradient(140deg, rgba(22, 98, 212, 0.08), rgba(23, 138, 112, 0.1)),
    var(--white);
}

.card-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

.card-topline img {
  border-radius: 12px;
}

.mini-mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 850;
}

.project-card h3 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  line-height: 1;
}

.project-card p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
}

.project-card .card-link {
  margin-top: auto;
  padding-top: 28px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.service-grid article {
  min-height: 188px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.service-grid p,
.split p,
.contact p {
  margin: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px;
  align-items: start;
}

.split p {
  font-size: 1.12rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  margin: 28px 0 0;
  padding: clamp(28px, 5vw, 52px);
}

.contact-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--blue);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.subpage-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 36px;
  align-items: center;
  min-height: 560px;
  margin-top: 28px;
  padding: clamp(34px, 7vw, 76px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 98, 212, 0.08), rgba(23, 138, 112, 0.1)),
    var(--white);
  box-shadow: var(--shadow);
}

.subpage-hero h1 {
  font-size: clamp(3.4rem, 9vw, 7.4rem);
}

.app-hero {
  background:
    linear-gradient(135deg, rgba(21, 23, 26, 0.92), rgba(22, 98, 212, 0.76)),
    var(--ink);
  color: var(--white);
}

.app-hero .hero-text,
.app-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.app-hero .button.secondary {
  border-color: rgba(255, 255, 255, 0.34);
  background: transparent;
  color: var(--white);
}

.app-icon-large {
  width: clamp(112px, 18vw, 172px);
  height: clamp(112px, 18vw, 172px);
  border-radius: 32px;
  box-shadow: 0 22px 48px rgba(21, 23, 26, 0.28);
}

.channel-mark {
  display: grid;
  place-items: center;
  width: clamp(124px, 18vw, 188px);
  aspect-ratio: 1;
  border-radius: 32px;
  background:
    linear-gradient(135deg, var(--ink), #263648 60%, var(--green)),
    var(--ink);
  color: var(--white);
  font-size: clamp(4rem, 10vw, 7rem);
  font-weight: 900;
  box-shadow: 0 22px 48px rgba(21, 23, 26, 0.22);
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .project-grid,
  .service-grid,
  .split,
  .contact,
  .subpage-hero {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 32px;
  }

  .product-panel {
    min-height: 340px;
  }

  .subpage-hero {
    min-height: auto;
  }

  .app-icon-large,
  .channel-mark {
    justify-self: start;
  }

  .contact-link {
    width: 100%;
    white-space: normal;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-copy,
  .product-panel,
  .project-card,
  .contact {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.55rem, 17vw, 4.6rem);
  }
}
