:root {
  --ink: #071e38;
  --ink-2: #0b2f52;
  --cyan: #14c8cc;
  --cyan-2: #0a8fb8;
  --paper: #f4f7f8;
  --paper-2: #e9eff1;
  --white: #ffffff;
  --muted: #526476;
  --line: rgba(7, 30, 56, .15);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(7,30,56,.035) 1px, transparent 1px) 0 0/64px 64px,
    linear-gradient(rgba(7,30,56,.035) 1px, transparent 1px) 0 0/64px 64px,
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}

.skip-link:focus {
  left: 16px;
  top: 16px;
  z-index: 99;
  background: #fff;
  padding: 10px 14px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,247,248,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .03em;
}

.nav-links a {
  text-decoration: none;
}

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

.mobile-menu {
  display: none;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .02em;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 5px 5px 0 var(--cyan);
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}

.button:hover {
  transform: translate(-2px,-2px);
  box-shadow: 8px 8px 0 var(--cyan);
}

.button.alt {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
}

.button.alt:hover {
  background: #fff;
  box-shadow: 5px 5px 0 rgba(7,30,56,.12);
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  min-height: 620px;
}

.hero-copy {
  padding: 82px 70px 78px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 900;
  color: var(--cyan-2);
}

.eyebrow::before {
  content: "";
  width: 32px;
  height: 3px;
  background: var(--cyan);
}

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

h1 {
  font-size: clamp(56px, 7vw, 106px);
  line-height: .91;
  letter-spacing: -.065em;
  margin: 24px 0 32px;
  max-width: 880px;
}

h1 .outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  text-stroke: 2px var(--ink);
}

.lead {
  max-width: 670px;
  font-size: 21px;
  line-height: 1.6;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 36px;
}

.hero-panel {
  position: relative;
  min-height: 620px;
  background: var(--ink);
  color: #fff;
  border-left: 1px solid var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 78% 18%,
      rgba(20,200,204,.28),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      transparent 0 48%,
      rgba(255,255,255,.055) 48% 49%,
      transparent 49% 100%
    );
}

/* =========================================================
   HERO — MANUAL TO AUTOMATED GRAPHIC
   ========================================================= */

.process-visual {
  position: relative;
  z-index: 2;
  width: min(88%, 520px);
  height: 470px;
  display: grid;
  grid-template-columns: 1fr 100px 1fr;
  align-items: center;
  gap: 16px;
}

.process-label {
  position: absolute;
  top: 22px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .18em;
  color: rgba(255,255,255,.5);
}

.process-label-left {
  left: 0;
}

.process-label-right {
  right: 0;
  color: var(--cyan);
}

.manual-mess {
  position: relative;
  height: 250px;
}

.mess-tag {
  position: absolute;
  z-index: 2;
  background: #fff;
  color: var(--ink);
  border: 1px solid rgba(255,255,255,.3);
  padding: 8px 9px;
  font-size: 9px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: .08em;
  white-space: nowrap;
}

.tag-1 {
  left: 0;
  top: 14px;
  transform: rotate(-4deg);
}

.tag-2 {
  right: 0;
  top: 78px;
  transform: rotate(3deg);
}

.tag-3 {
  left: 7px;
  bottom: 66px;
  transform: rotate(5deg);
}

.tag-4 {
  right: 4px;
  bottom: 8px;
  transform: rotate(-3deg);
}

.mess-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mess-lines path {
  fill: none;
  stroke: rgba(255,255,255,.25);
  stroke-width: 2;
}

.mess-lines path:nth-child(2) {
  stroke: rgba(20,200,204,.55);
}

.process-core {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 14px;
}

.core-door {
  width: 68px;
  height: 100px;
  background: #082b49;
  position: relative;
  box-shadow: 8px 8px 0 rgba(20,200,204,.18);
}

.door-panel {
  position: absolute;
  width: 56px;
  height: 92px;
  left: -7px;
  top: 4px;
  background:
    linear-gradient(
      145deg,
      #27d9dc,
      #098db4 55%,
      #07527e
    );
  transform: perspective(200px) rotateY(-18deg);
  transform-origin: right center;
  border: 2px solid #072845;
}

.door-panel span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  right: 9px;
  top: 43px;
}

.core-name {
  text-align: center;
  font-size: 10px;
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: .11em;
  color: #fff;
}

.core-name small {
  display: block;
  color: var(--cyan);
  letter-spacing: .25em;
  font-size: 8px;
  margin-top: 4px;
}

.clean-flow {
  position: relative;
  display: grid;
  gap: 25px;
  padding-left: 24px;
}

.flow-line {
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(20,200,204,.65);
}

.flow-item {
  position: relative;
  display: grid;
  gap: 4px;
}

.flow-item::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 8px;
  width: 12px;
  height: 2px;
  background: var(--cyan);
}

.flow-item span {
  font-size: 9px;
  color: rgba(255,255,255,.48);
  letter-spacing: .15em;
  font-weight: 900;
}

.flow-item strong {
  color: #fff;
  font-size: 11px;
  letter-spacing: .08em;
}

.flow-item:last-child strong {
  color: var(--cyan);
}

/* =========================================================
   GENERAL SECTIONS
   ========================================================= */

.section {
  padding: 104px 0;
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 60px;
  align-items: end;
  margin-bottom: 56px;
}

.section h2 {
  font-size: clamp(40px, 5vw, 72px);
  line-height: .98;
  letter-spacing: -.05em;
  margin-bottom: 0;
}

.section-intro {
  font-size: 18px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 640px;
}

/* =========================================================
   SERVICES
   ========================================================= */

.services {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.service {
  min-height: 360px;
  padding: 34px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  background: rgba(255,255,255,.45);
  position: relative;
  overflow: hidden;
}

.service::after {
  content: attr(data-no);
  position: absolute;
  right: 22px;
  top: 18px;
  font-size: 72px;
  line-height: 1;
  font-weight: 900;
  color: rgba(7,30,56,.06);
}

.service h3 {
  font-size: 28px;
  margin: 90px 0 18px;
  letter-spacing: -.03em;
}

.service p {
  color: var(--muted);
  line-height: 1.7;
}

.service .mini {
  display: inline-block;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--cyan-2);
}

/* =========================================================
   DARK / PROCESS SECTION
   ========================================================= */

.dark {
  background: var(--ink);
  color: #fff;
}

.dark .section-intro,
.dark p {
  color: #b9c7d2;
}

.dark .eyebrow {
  color: #61e0de;
}

.process {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.25);
  border-left: 1px solid rgba(255,255,255,.25);
}

.step {
  padding: 30px;
  min-height: 270px;
  border-right: 1px solid rgba(255,255,255,.25);
  border-bottom: 1px solid rgba(255,255,255,.25);
}

.step strong {
  display: block;
  color: var(--cyan);
  font-size: 13px;
  letter-spacing: .16em;
  margin-bottom: 54px;
}

.step h3 {
  font-size: 24px;
  margin-bottom: 14px;
}

/* =========================================================
   EXAMPLE SECTION
   ========================================================= */

.case-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.case-visual {
  background: #fff;
  border: 1px solid var(--ink);
  padding: 20px;
  box-shadow: 16px 16px 0 var(--cyan);
  transform: rotate(-1deg);
}

.fake-app {
  border: 1px solid var(--line);
  background: #f8fafb;
}

.fake-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 900;
}

.fake-photo {
  height: 280px;
  background:
    linear-gradient(
      135deg,
      #0a2745,
      #0f6e8b 55%,
      #16c7c9
    );
  position: relative;
  overflow: hidden;
}

.fake-photo::before,
.fake-photo::after {
  content: "";
  position: absolute;
  border: 2px solid rgba(255,255,255,.8);
  border-radius: 50%;
  width: 90px;
  height: 90px;
  bottom: -20px;
}

.fake-photo::before {
  left: 24%;
}

.fake-photo::after {
  left: 48%;
}

.fake-body {
  padding: 22px;
  display: grid;
  gap: 12px;
}

.fake-row {
  height: 14px;
  background: #dce5e9;
}

.fake-row.short {
  width: 62%;
}

.fake-button {
  margin-top: 8px;
  background: var(--ink);
  color: #fff;
  padding: 13px;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
}

.case-copy h2 {
  margin-bottom: 26px;
}

.case-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  border-top: 1px solid var(--line);
}

.case-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.case-list li::before {
  content: "↗";
  color: var(--cyan-2);
  font-weight: 900;
}

/* =========================================================
   STATEMENT
   ========================================================= */

.statement {
  padding: 110px 0;
  text-align: center;
}

.statement blockquote {
  margin: 0 auto;
  max-width: 980px;
  font-size: clamp(36px, 5vw, 70px);
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.statement span {
  color: var(--cyan-2);
}

/* =========================================================
   CTA
   ========================================================= */

.cta {
  background: var(--cyan);
  color: var(--ink);
  padding: 80px 0;
  border-top: 1px solid var(--ink);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr;
  gap: 40px;
  align-items: center;
}

.cta h2 {
  font-size: clamp(42px, 5vw, 74px);
  margin: 0;
  letter-spacing: -.05em;
  line-height: .95;
}

.cta .button {
  justify-self: end;
  box-shadow: 6px 6px 0 rgba(255,255,255,.9);
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  background: #041425;
  color: #dbe6ed;
  padding: 54px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr .6fr .6fr;
  gap: 60px;
}

.footer-logo {
  width: 210px;
  filter: brightness(0) invert(1);
  opacity: .92;
  margin-bottom: 22px;
}

.footer-copy {
  color: #91a5b5;
  max-width: 450px;
  line-height: 1.7;
}

.footer-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #61e0de;
  font-weight: 900;
  margin-bottom: 16px;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a {
  color: #dbe6ed;
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 42px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7e93a5;
  font-size: 13px;
}

/* =========================================================
   LEGAL PAGES
   ========================================================= */

.legal-hero {
  background: var(--ink);
  color: #fff;
  padding: 84px 0 70px;
  border-bottom: 6px solid var(--cyan);
}

.legal-hero h1 {
  font-size: clamp(50px,7vw,88px);
  margin-bottom: 18px;
}

.legal-hero p {
  color: #b9c7d2;
  max-width: 700px;
  line-height: 1.65;
}

.legal {
  background: #fff;
}

.legal-grid {
  display: grid;
  grid-template-columns: 280px minmax(0,760px);
  gap: 70px;
  padding: 80px 0 110px;
}

.legal-nav {
  position: sticky;
  top: 120px;
  align-self: start;
  font-size: 14px;
}

.legal-nav strong {
  display: block;
  margin-bottom: 14px;
}

.legal-nav a {
  display: block;
  padding: 9px 0;
  color: var(--muted);
  text-decoration: none;
}

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

.legal-content h2 {
  margin: 48px 0 16px;
  font-size: 31px;
  letter-spacing: -.025em;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content h3 {
  margin: 28px 0 12px;
}

.legal-content p,
.legal-content li {
  color: #415466;
  line-height: 1.75;
}

.legal-content ul {
  padding-left: 22px;
}

.notice {
  border-left: 4px solid var(--cyan);
  background: var(--paper);
  padding: 18px 20px;
  margin: 28px 0;
  color: #415466;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .nav-links {
    display: none;
  }

  .mobile-menu {
    display: inline-flex;
    border: 1px solid var(--ink);
    background: transparent;
    padding: 10px 12px;
    font-weight: 900;
  }

  .mobile-open .nav-links {
    display: flex;
    position: absolute;
    top: 84px;
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
    border-bottom: 1px solid var(--line);
  }

  .hero-grid,
  .section-head,
  .case-grid,
  .cta-grid,
  .footer-grid,
  .legal-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding: 72px 0 60px;
  }

  .hero-panel {
    min-height: 500px;
    border-left: 0;
    border-top: 1px solid var(--ink);
  }

  .process-visual {
    width: min(90%, 500px);
    height: 440px;
  }

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

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

  .section-head {
    gap: 24px;
  }

  .cta .button {
    justify-self: start;
  }

  .legal-nav {
    position: static;
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 580px) {

  .container {
    width: min(100% - 28px, var(--max));
  }

  .brand img {
    width: 180px;
  }

  .nav {
    min-height: 74px;
  }

  .mobile-open .nav-links {
    top: 74px;
  }

  h1 {
    font-size: 54px;
  }

  .lead {
    font-size: 18px;
  }

  .section {
    padding: 78px 0;
  }

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

  .hero-panel {
    min-height: 520px;
  }

  .process-visual {
    width: 94%;
    height: 430px;
    grid-template-columns: 1fr 78px 1fr;
    gap: 9px;
  }

  .process-label {
    font-size: 8px;
  }

  .mess-tag {
    font-size: 7px;
    padding: 7px 6px;
  }

  .core-door {
    width: 54px;
    height: 82px;
  }

  .door-panel {
    width: 45px;
    height: 75px;
    left: -6px;
  }

  .door-panel span {
    top: 35px;
  }

  .clean-flow {
    padding-left: 18px;
    gap: 22px;
  }

  .flow-item strong {
    font-size: 9px;
  }

  .flow-item span {
    font-size: 7px;
  }

  .case-visual {
    box-shadow: 9px 9px 0 var(--cyan);
  }

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

/* =========================================================
   ACCESSIBILITY
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
