:root {
  --ink: #111917;
  --muted: #65726d;
  --line: #d9e0da;
  --paper: #fbfcf8;
  --soft: #eef4f0;
  --blue: #0d7581;
  --blue-dark: #0a515a;
  --green: #138a63;
  --orange: #ff6b00;
  --orange-dark: #c94f00;
  --graph: rgba(17, 25, 23, 0.075);
  --radius: 6px;
  --shadow: 0 22px 55px rgba(17, 25, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, var(--graph) 1px, transparent 1px),
    linear-gradient(180deg, var(--graph) 1px, transparent 1px),
    var(--paper);
  background-size: 56px 56px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: rgba(251, 252, 248, 0.9);
  border-bottom: 1px solid rgba(17, 25, 23, 0.1);
  backdrop-filter: blur(14px);
}

.brand img {
  width: 180px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 500;
}

.site-nav a {
  color: #27332f;
}

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

.nav-cta {
  padding: 10px 16px;
  color: #ffffff !important;
  background: var(--ink);
  border-radius: var(--radius);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.section {
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 72px);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: clamp(18px, 3vw, 42px);
  align-items: center;
  min-height: min(760px, calc(100vh - 82px));
  padding-right: 0;
  background:
    linear-gradient(115deg, rgba(255, 107, 0, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(238, 244, 240, 0.82), rgba(251, 252, 248, 0.92));
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(17, 25, 23, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 25, 23, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(90deg, #000, transparent 72%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(38px, 4.35vw, 62px);
  font-weight: 690;
  line-height: 1.08;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 640;
  line-height: 1.16;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  font-weight: 650;
  line-height: 1.25;
}

.lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(18px, 1.4vw, 21px);
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 640px;
  margin-top: 26px;
}

.hero-proof span {
  padding: 8px 10px;
  color: #27332f;
  background: rgba(251, 252, 248, 0.72);
  border: 1px solid rgba(17, 25, 23, 0.12);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 620;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 650;
  cursor: pointer;
}

.button.primary {
  color: #ffffff;
  background: var(--orange);
}

.button.primary:hover {
  background: var(--orange-dark);
}

.button.secondary {
  color: var(--ink);
  background: rgba(251, 252, 248, 0.86);
  border-color: var(--line);
}

.hero-media {
  position: relative;
  justify-self: center;
  width: 100%;
  height: min(560px, 62vh);
  isolation: isolate;
  overflow: hidden;
}

.hero-media::before {
  position: absolute;
  inset: 7% 4% -7% 16%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(135deg, rgba(13, 117, 129, 0.22), transparent 42%),
    linear-gradient(315deg, rgba(255, 107, 0, 0.18), transparent 40%);
  filter: blur(18px);
  opacity: 0.72;
}

.hero-media img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: right center;
  filter: saturate(0.92) contrast(1.04) drop-shadow(0 30px 55px rgba(17, 25, 23, 0.16));
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 10%, #000 25%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.22) 10%, #000 25%, #000 100%);
}

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

.service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid article,
.model-grid article {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(251, 252, 248, 0.94)),
    var(--paper);
}

.service-grid article {
  position: relative;
  padding-top: 32px;
}

.service-grid article::before {
  position: absolute;
  top: 0;
  left: 26px;
  width: 64px;
  height: 4px;
  content: "";
  background: var(--orange);
  border-radius: 999px;
}

.services {
  background:
    linear-gradient(135deg, rgba(13, 117, 129, 0.08), transparent 42%),
    var(--soft);
}

.service-thesis {
  display: grid;
  grid-template-columns: minmax(180px, 0.42fr) minmax(0, 1fr);
  gap: 18px;
  max-width: 1020px;
  margin: -8px 0 28px;
  padding: 20px 22px;
  color: #27332f;
  background: rgba(251, 252, 248, 0.7);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
}

.service-thesis strong {
  font-weight: 720;
}

.service-thesis span {
  color: var(--muted);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
  border-left: 3px solid var(--orange);
  padding-left: 18px;
}

.section-heading p:last-child {
  color: var(--muted);
  font-size: 18px;
}

.service-grid p,
.model-grid p,
.quality-panel p,
.partner p,
.contact p {
  color: var(--muted);
}

.quality-ai {
  background:
    linear-gradient(180deg, rgba(251, 252, 248, 0.96), rgba(238, 244, 240, 0.9)),
    var(--paper);
}

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

.quality-panel {
  padding: clamp(24px, 4vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(13, 117, 129, 0.08), transparent 54%),
    var(--paper);
}

.quality-panel.accent {
  border-color: rgba(255, 107, 0, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.1), transparent 54%),
    var(--paper);
}

.quality-panel ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.quality-panel li {
  position: relative;
  padding-left: 24px;
  color: #27332f;
}

.quality-panel li::before {
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 8px;
  height: 8px;
  content: "";
  background: var(--blue);
  border-radius: 50%;
  transform: translateY(-50%);
}

.quality-panel.accent li::before {
  background: var(--orange);
}

.quality-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.quality-strip span {
  padding: 9px 12px;
  color: #27332f;
  background: rgba(251, 252, 248, 0.74);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
}

.models {
  background:
    linear-gradient(90deg, rgba(255, 107, 0, 0.1), transparent 44%),
    var(--paper);
}

.model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.model-grid article {
  border-top: 4px solid var(--blue);
}

.model-grid article:nth-child(2) {
  border-top-color: var(--green);
}

.model-grid article:nth-child(3) {
  border-top-color: var(--orange);
}

.partner {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.partner > div:last-child {
  max-width: 760px;
}

.delivery-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 420px;
  padding: clamp(24px, 4vw, 42px);
  overflow: hidden;
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 107, 0, 0.22), transparent 30%),
    radial-gradient(circle at 14% 90%, rgba(13, 117, 129, 0.28), transparent 36%),
    linear-gradient(145deg, #111917 0%, #18241f 56%, #20352e 100%);
  border: 1px solid rgba(251, 252, 248, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 28px 70px rgba(17, 25, 23, 0.18);
}

.delivery-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(rgba(251, 252, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 252, 248, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent);
}

.delivery-panel::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(118deg, transparent 0 46%, rgba(255, 107, 0, 0.12) 46% 47%, transparent 47%),
    radial-gradient(circle at 72% 28%, rgba(255, 184, 107, 0.12), transparent 26%);
  opacity: 0.72;
}

.delivery-panel-head,
.delivery-track,
.delivery-signal {
  position: relative;
  z-index: 1;
}

.delivery-panel-head {
  display: grid;
  gap: 6px;
}

.delivery-panel-head span {
  color: #f5b36e;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.delivery-panel-head strong {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 650;
  line-height: 1.1;
}

.delivery-track {
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.delivery-node {
  display: grid;
  align-items: start;
  padding: 18px;
  background: rgba(251, 252, 248, 0.08);
  border: 1px solid rgba(251, 252, 248, 0.14);
  border-left: 3px solid rgba(255, 107, 0, 0.92);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
}

.delivery-node strong {
  display: block;
  margin-bottom: 4px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 650;
}

.delivery-node p {
  margin: 0;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.5;
}

.delivery-node.success {
  border-left-color: var(--green);
}

.delivery-signal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.delivery-signal span {
  padding: 8px 10px;
  color: #edf7f1;
  background: rgba(251, 252, 248, 0.08);
  border: 1px solid rgba(251, 252, 248, 0.12);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
}

.clients {
  padding-top: clamp(44px, 6vw, 76px);
  padding-bottom: clamp(40px, 5vw, 64px);
  background: var(--paper);
}

.clients .section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.clients .section-heading h2 {
  font-size: clamp(30px, 3vw, 44px);
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  width: min(100%, 1180px);
  margin: 0 auto;
}

.logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 96px;
  padding: 20px 34px;
  background: rgba(251, 252, 248, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.logo-card img {
  width: var(--logo-width, auto);
  height: auto;
  max-width: 100%;
  min-width: 0;
  max-height: var(--logo-max-height, 42px);
  object-fit: contain;
  opacity: 0.82;
}

.logo-klarna {
  --logo-width: 150px;
  --logo-max-width: 150px;
  --logo-max-height: 42px;
}

.logo-trustly {
  --logo-width: 190px;
  --logo-max-height: 54px;
}

.logo-nasdaq {
  --logo-width: 188px;
  --logo-max-width: 188px;
  --logo-max-height: 34px;
}

.logo-fortum {
  --logo-width: 158px;
  --logo-max-width: 158px;
  --logo-max-height: 42px;
}

.logo-mtg {
  --logo-width: 108px;
  --logo-max-width: 108px;
  --logo-max-height: 46px;
}

.logo-hbo {
  --logo-width: 130px;
  --logo-max-width: 150px;
  --logo-max-height: 52px;
}

.logo-ikano {
  --logo-width: 122px;
  --logo-max-width: 130px;
  --logo-max-height: 50px;
}

.logo-volvo {
  --logo-width: 76px;
  --logo-max-height: 56px;
}

.contact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
  padding-top: clamp(44px, 5vw, 68px);
  padding-bottom: clamp(44px, 5vw, 68px);
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.12), transparent 38%),
    #111917;
}

.contact-copy {
  display: grid;
  grid-template-columns: minmax(0, 760px) auto;
  grid-template-areas:
    "eyebrow actions"
    "title actions"
    "copy actions";
  gap: 8px clamp(28px, 6vw, 96px);
  align-items: center;
}

.contact-copy h2,
.contact-copy p {
  max-width: 760px;
}

.contact-copy > .eyebrow {
  grid-area: eyebrow;
}

.contact-copy > h2 {
  grid-area: title;
  margin-bottom: 6px;
  font-size: clamp(34px, 4vw, 54px);
}

.contact-copy > p:not(.eyebrow) {
  grid-area: copy;
  margin-bottom: 0;
}

.contact .eyebrow,
.contact p {
  color: #d0d5dd;
}

.contact-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.contact-form {
  display: grid;
  gap: 16px;
  width: min(100%, 980px);
  margin-left: auto;
  padding: clamp(18px, 3vw, 28px);
  color: var(--ink);
  background: var(--paper);
  border-radius: var(--radius);
}

.contact-form[hidden] {
  display: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 11px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius);
  font: inherit;
}

.contact-form .button {
  justify-self: end;
  min-width: 180px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(255, 107, 0, 0.2);
  border-color: var(--orange);
}

.honeypot {
  position: absolute;
  left: -10000px;
}

.turnstile-wrap {
  min-height: 65px;
}

.form-note {
  margin: 0;
  color: #667085 !important;
  font-size: 14px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.site-footer img {
  width: 150px;
}

.site-footer p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero,
  .quality-layout,
  .partner,
  .contact-copy,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-right: 20px;
  }

  .hero-media {
    height: auto;
  }

  .hero-media img {
    height: auto;
    aspect-ratio: 1.28;
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
    mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 100%);
  }

  .model-grid {
    grid-template-columns: 1fr;
  }

  .contact-copy {
    grid-template-areas:
      "eyebrow"
      "title"
      "copy"
      "actions";
    gap: 8px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-thesis {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    margin-top: 18px;
    justify-content: flex-start;
  }

  .contact-form {
    margin-left: 0;
  }

  .contact-form .button {
    justify-self: stretch;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

  .brand img {
    width: 148px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    text-align: center;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .logo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .logo-card {
    height: 86px;
    padding: 22px 18px;
  }

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

@media (max-width: 480px) {
  .hero-actions,
  .button {
    width: 100%;
  }

  h1 {
    font-size: 36px;
  }

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