:root {
  --ink: #111827;
  --ink-soft: #334155;
  --muted: #64748b;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --mist: #eaf0f7;
  --navy: #101828;
  --navy-2: #172033;
  --cyan: #e30613;
  --green: #8f1a0f;
  --amber: #a11d12;
  --maxw: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", "Hanken Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

button {
  font: inherit;
}

.wrap {
  width: min(var(--maxw), calc(100% - 48px));
  margin: 0 auto;
}

.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.9);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: 176px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

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

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

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  margin: 4px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--cyan);
  color: #ffffff;
}

.btn-primary:hover {
  background: #b90510;
}

.btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.48);
}

.section-dark {
  background: var(--navy);
  color: #ffffff;
}

.section-light {
  background: var(--paper);
}

.section-muted {
  background: var(--soft);
}

.section,
.hero,
.contact-section {
  scroll-margin-top: 86px;
}

.section {
  padding: 92px 0;
}

.hero {
  padding: 86px 0 72px;
  border-bottom: 1px solid #0d1422;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  font-weight: 820;
  letter-spacing: 0;
}

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

h3 {
  font-size: 20px;
  line-height: 1.25;
  font-weight: 780;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 660px;
  margin-bottom: 30px;
  color: #c8d3df;
  font-size: 19px;
  line-height: 1.65;
}

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035));
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  padding: 22px;
  overflow: hidden;
}

.panel-topline,
.panel-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #b7c4d4;
  font-size: 12px;
  font-weight: 700;
}

.system-map {
  position: relative;
  min-height: 340px;
  margin: 18px 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 42px 42px;
}

.system-map::before,
.system-map::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  width: 74%;
  height: 1px;
  background: rgba(42, 167, 184, 0.55);
  transform: translate(-50%, -50%);
}

.system-map::after {
  width: 1px;
  height: 70%;
}

.system-node {
  position: absolute;
  width: 126px;
  min-height: 74px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #162235;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.system-node span,
.panel-label {
  display: block;
  margin-bottom: 6px;
  color: #8fa0b4;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.system-node strong,
.panel-footer strong {
  font-size: 15px;
}

.node-main {
  left: 50%;
  top: 50%;
  width: 156px;
  min-height: 92px;
  transform: translate(-50%, -50%);
  background: #f8fbff;
  color: var(--ink);
}

.system-node:nth-child(2) {
  left: 24px;
  top: 34px;
}

.system-node:nth-child(3) {
  right: 24px;
  top: 34px;
}

.system-node:nth-child(4) {
  left: 24px;
  bottom: 34px;
}

.system-node:nth-child(5) {
  right: 24px;
  bottom: 34px;
}

.split {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(0, 1.2fr);
  gap: 72px;
}

.rich-text p,
.section-heading p,
.contact-panel p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.75;
}

.rich-text p:last-child {
  margin-bottom: 0;
}

.dark-text p {
  color: #c8d3df;
}

.client-evolution {
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 36px;
}

.section-heading.wide {
  max-width: 880px;
}

.section-heading h2 {
  margin-bottom: 16px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}

.project-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-card {
  position: relative;
  min-height: 190px;
  padding: 24px 26px 24px 34px;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: default;
}

.service-card:nth-child(odd) {
  border-right: 1px solid var(--line);
}

.service-card::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 28px;
  bottom: 28px;
  width: 3px;
  border-radius: 999px;
  background: rgba(227, 6, 19, 0.78);
}

.service-card span {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 11px;
  font-weight: 820;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 19px;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
}

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

.project-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 24px;
}

.project-logo {
  width: 132px;
  min-height: 68px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--mist);
  color: var(--navy);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.1;
  text-align: center;
  padding: 12px;
  border: 1px solid rgba(16, 24, 40, 0.06);
}

.project-logo-text {
  font-size: 13px;
}

.project-logo.has-image {
  background: #ffffff;
  padding: 14px;
}

.project-logo img {
  display: block;
  max-width: 82px;
  max-height: 46px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: saturate(0.82);
  opacity: 0.9;
}

.project-logo.wide-logo img {
  max-width: 112px;
  max-height: 42px;
}

.project-logo.dark-logo {
  background: #15181e;
}

.project-logo.dark-logo img {
  max-width: 54px;
  max-height: 54px;
  border-radius: 6px;
  filter: none;
  opacity: 1;
}

.project-body h3 {
  margin-bottom: 10px;
}

.project-body p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.project-body a {
  color: var(--cyan);
  font-size: 14px;
  font-weight: 800;
}

.tag-grid,
.tech-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-grid {
  margin-top: 26px;
}

.tag-grid span,
.tech-cloud span {
  border-radius: 8px;
  font-size: 13px;
  font-weight: 760;
}

.tag-grid span {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: #dbe5ef;
  padding: 10px 12px;
}

.tech-cloud {
  padding-top: 4px;
}

.tech-cloud span {
  border: 1px solid var(--line);
  background: var(--soft);
  color: var(--ink-soft);
  padding: 11px 13px;
}

.reason-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  min-height: 128px;
  padding: 20px 20px 20px 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-weight: 500;
  border-left: 4px solid rgba(227, 6, 19, 0.82);
}

.reason-list strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.reason-list p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.62;
}

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

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

.founder-card {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  min-height: 252px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.founder-card img {
  width: 118px;
  aspect-ratio: 1;
  border-radius: 8px;
  object-fit: cover;
  filter: grayscale(12%);
}

.founder-content span {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.founder-content h3 {
  margin-bottom: 12px;
}

.founder-content p {
  margin-bottom: 18px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.founder-content a,
.company-link a {
  color: var(--green);
  font-size: 14px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.company-link {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

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

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

.credential-card {
  min-height: 212px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.credential-card span {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 6px 9px;
  border-radius: 6px;
  background: #fff1f1;
  color: var(--green);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.credential-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.credential-card h3 strong {
  color: var(--cyan);
  font-size: 28px;
  line-height: 1;
}

.credential-card h3 small {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.credential-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.65;
}

.contact-section {
  padding: 88px 0;
  background: var(--navy-2);
}

.contact-panel {
  max-width: 860px;
  padding: 48px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #ffffff;
  background: #101828;
}

.contact-panel h2 {
  margin-bottom: 16px;
}

.contact-panel p {
  max-width: 690px;
  color: #c8d3df;
  margin-bottom: 28px;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.foot {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.foot-links {
  display: flex;
  gap: 18px;
  font-weight: 700;
}

.foot-links a:hover {
  color: var(--cyan);
}

@media (max-width: 980px) {
  .hero-grid,
  .split {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .hero-panel {
    max-width: 620px;
  }

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

  .service-card:nth-child(odd) {
    border-right: 0;
  }

  .nav-links {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
  }

  .nav-links a {
    padding: 13px 10px;
  }

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

  .nav-toggle {
    display: block;
  }
}

@media (max-width: 640px) {
  .wrap {
    width: min(var(--maxw), calc(100% - 32px));
  }

  .hero {
    padding: 56px 0 46px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-lede,
  .rich-text p,
  .section-heading p,
  .contact-panel p {
    font-size: 16px;
  }

  .brand-logo {
    width: 146px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .system-map {
    min-height: 310px;
  }

  .system-node {
    width: 112px;
    padding: 12px;
  }

  .node-main {
    width: 138px;
  }

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

  .reason-list {
    grid-template-columns: 1fr;
  }

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

  .founder-card {
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: auto;
    padding: 20px;
  }

  .founder-card img {
    width: 96px;
  }

  .credential-card {
    min-height: auto;
  }

  .contact-panel {
    padding: 30px 22px;
  }

  .foot {
    padding: 22px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}
