@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
  --ink: #0d1b2a;
  --navy: #12395b;
  --blue: #1b4f7a;
  --paper: #f7f9fb;
  --cloud: #edf2f7;
  --white: #fff;
  --slate: #526172;
  --line: #d7e0e8;
  --auto: #0b8f89;
  --auto-dark: #076a66;
  --auto-soft: #e3f5f3;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --shadow: 0 18px 55px rgba(13, 27, 42, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
[id] { scroll-margin-top: 100px; }
:focus-visible { outline: 3px solid var(--auto); outline-offset: 4px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: fixed; top: 8px; left: 16px; z-index: 100; padding: 12px 20px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* Navigation works as ordinary links when JavaScript is unavailable. */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(247, 249, 251, .97); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-in { position: relative; min-height: 78px; display: flex; align-items: center; gap: 24px; }
.brand { font: 400 25px/1 var(--serif); white-space: nowrap; margin-right: auto; }
.brand span { color: var(--blue); }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 600; }
.nav-links a { padding-block: 10px; }
.nav-links a:hover { color: var(--blue); }
.nav-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 2px; }
.nav-links .auto-link { color: var(--auto-dark); }
.nav-contact, .mobile-toggle { display: none; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; border: 1px solid var(--ink); background: var(--ink); color: white; padding: 14px 21px; font-weight: 600; text-align: center; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(13, 27, 42, .16); }
.button.secondary { background: transparent; color: var(--ink); }
.button.auto { background: var(--auto-dark); border-color: var(--auto-dark); }
.button.on-dark { color: white; border-color: white; }
.button:disabled { cursor: not-allowed; opacity: .65; transform: none; box-shadow: none; }
.nav .button { padding: 10px 16px; font-size: 14px; }

/* Homepage */
.hero { min-height: 690px; display: grid; align-items: center; background-image: linear-gradient(rgba(27,79,122,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(27,79,122,.055) 1px, transparent 1px); background-size: 80px 80px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 64px; align-items: center; }
.eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 13px; letter-spacing: .16em; font-weight: 700; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ''; width: 32px; height: 2px; flex-shrink: 0; background: currentColor; }
.eyebrow .auto-word { color: var(--auto-dark); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.1; margin: 0; overflow-wrap: break-word; }
h1 { font-size: clamp(48px, 6vw, 83px); letter-spacing: -.035em; margin: 24px 0; }
h1 em { color: var(--blue); font-weight: 400; }
.hero p { font-size: 20px; color: var(--slate); max-width: 720px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.trust-row { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 28px; color: var(--slate); font-size: 14px; }
.trust-row span::before { content: '✓'; color: var(--auto-dark); margin-right: 7px; }
.signal-card { background: rgba(255,255,255,.92); border: 1px solid var(--line); border-top: 4px solid var(--auto); box-shadow: var(--shadow); padding: 30px; }
.signal-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 22px; }
.status { font-size: 12px; white-space: nowrap; color: var(--auto-dark); background: var(--auto-soft); padding: 4px 8px; }
.data-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 9px; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); }
.data-icon { width: 36px; height: 36px; display: grid; place-items: center; background: var(--cloud); color: var(--blue); font-weight: 700; }
.data-row strong { font-size: 15px; }
.data-row small { display: block; color: var(--slate); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--auto); }
.auto-ribbon { background: var(--auto-dark); color: white; padding: 22px 0; }
.auto-ribbon strong { font-size: 18px; }
.auto-ribbon span { color: #c7eeeb; }

/* Shared sections */
section { padding: 105px 0; }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(36px, 5vw, 62px); margin: 18px 0; }
.section-head p { font-size: 19px; color: var(--slate); }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { background: white; border: 1px solid var(--line); padding: 34px; }
.card.auto-card { border-top: 4px solid var(--auto); }
.num { font-size: 13px; color: var(--blue); font-weight: 700; letter-spacing: .12em; }
.card h3 { font-size: 30px; margin: 35px 0 15px; }
.card p { color: var(--slate); }
.text-link { font-weight: 700; color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.auto-card .text-link { color: var(--auto-dark); }
.automation { background: var(--ink); color: white; position: relative; overflow: hidden; }
.automation::after { content: ''; position: absolute; width: 520px; height: 520px; pointer-events: none; border: 1px solid rgba(22,178,168,.22); border-radius: 50%; right: -180px; top: -180px; box-shadow: 0 0 0 90px rgba(22,178,168,.035), 0 0 0 180px rgba(22,178,168,.025); }
.automation-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 70px; align-items: start; position: relative; z-index: 1; }
.automation h2 { font-size: clamp(36px, 5vw, 65px); margin: 20px 0; }
.automation p { color: #cbd6df; }
.checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { border: 1px solid rgba(255,255,255,.14); padding: 17px 18px; background: rgba(255,255,255,.035); }
.check strong { display: block; color: white; }
.check small { color: #bcc9d4; }
.flow { display: flex; align-items: center; gap: 7px; margin: 28px 0; flex-wrap: wrap; }
.flow span { border: 1px solid rgba(97,210,202,.5); padding: 8px 10px; color: #bce9e6; font-size: 13px; }
.flow b { color: #61d2ca; }
.situations, .process { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.situation { padding: 28px; border-top: 3px solid var(--blue); background: white; }
.situation h3 { font-size: 24px; margin: 14px 0; }
.situation p { color: var(--slate); font-size: 15px; }
.process { list-style: none; padding: 0; margin: 0; counter-reset: cooperation; }
.process-step { counter-increment: cooperation; padding-right: 22px; }
.process-step::before { content: counter(cooperation); font: 400 54px/1 var(--serif); color: var(--blue); }
.process-step h3 { font: 600 18px/1.3 var(--sans); margin: 16px 0 8px; }
.process-step p { color: var(--slate); font-size: 15px; }
.tech { background: var(--cloud); }
.tech-grid, .about-grid, .contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 70px; align-items: center; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag { background: white; border: 1px solid var(--line); padding: 13px 17px; font-weight: 600; }
.portrait-placeholder { min-height: 430px; background: linear-gradient(145deg, var(--navy), var(--ink)); position: relative; overflow: hidden; }
.portrait-placeholder::before { content: 'K2'; font: 400 190px/1 var(--serif); color: rgba(255,255,255,.06); position: absolute; }
.proofs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px; }
.proof { background: var(--paper); padding: 18px; }
.proof strong { font-size: 22px; display: block; }
.faq { max-width: 850px; margin: auto; }
.faq details { border-top: 1px solid var(--line); padding: 21px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; }
.faq p { color: var(--slate); padding-right: 25px; }

/* Contact: deliberately local preview, no message transport. */
.contact { background: var(--cloud); }
.contact-title { font-size: clamp(36px, 5vw, 52px); margin: 20px 0; }
.contact-form { background: white; border: 1px solid var(--line); padding: 35px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; min-width: 0; max-width: 100%; border: 1px solid #a0afbe; background: var(--paper); padding: 13px; color: var(--ink); }
.field textarea { min-height: 125px; resize: vertical; }
.micro { font-size: 13px; color: var(--slate); }
.form-preview { font-size: 14px; color: var(--slate); margin: 0 0 22px; border-left: 3px solid var(--auto); padding-left: 12px; }
.form-status { margin: 16px 0 0; color: var(--auto-dark); font-weight: 500; }
.form-status:empty { display: none; }
.botcheck { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.contact-phone { text-decoration: underline; text-underline-offset: 3px; }

/* Subpages */
.subhero { padding: 110px 0 75px; background: var(--cloud); border-bottom: 1px solid var(--line); }
.subhero h1 { font-size: clamp(40px, 6vw, 76px); max-width: 900px; }
.subhero p { font-size: 20px; color: var(--slate); max-width: 760px; }
.content-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 70px; }
.sticky-title { position: sticky; top: 120px; align-self: start; }
.content-title { font-size: clamp(36px, 4.6vw, 48px); margin-top: 20px; }
.content-list { display: grid; gap: 14px; }
.content-item { background: white; border: 1px solid var(--line); padding: 27px; }
.content-item h3 { font-size: 26px; margin-bottom: 9px; }
.content-item p { color: var(--slate); margin: 0; }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps > li { counter-increment: step; }
.steps > li > h3::before { content: counter(step) '. '; }
.band { background: var(--blue); color: white; }
.band .section-head p { color: #dbe8f1; }
.band .eyebrow { color: #b4d9f4; }
.page-auto .subhero { background: var(--auto-soft); }
.page-auto .eyebrow, .page-auto .text-link { color: var(--auto-dark); }
.automation .eyebrow { color: #61d2ca; }
footer { background: var(--ink); color: white; padding: 38px 0; }
.footer-in { display: flex; justify-content: space-between; gap: 30px; align-items: center; flex-wrap: wrap; }
footer .brand span { color: #b4d9f4; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #c6d2dd; font-size: 14px; }
.automation :focus-visible, footer :focus-visible, .band :focus-visible { outline-color: #61d2ca; }

@media (max-width: 1100px) {
  .nav-in { flex-wrap: wrap; }
  .nav-links { order: 3; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 14px; }
  .nav-links a { padding: 12px 18px; }
  .nav-contact { display: block; }
  .nav.nav-enhanced .mobile-toggle { display: inline-flex; min-width: 48px; min-height: 48px; align-items: center; justify-content: center; border: 1px solid var(--line); background: white; font-size: 16px; color: var(--ink); }
  .nav.nav-enhanced .nav-links { display: none; position: absolute; top: 100%; left: 0; max-height: calc(100dvh - 90px); overflow-y: auto; padding: 8px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.nav-enhanced.is-open .nav-links { display: flex; }
  .nav:not(.nav-enhanced) { position: static; }
}

@media (max-width: 980px) {
  .hero-grid, .automation-grid, .tech-grid, .about-grid, .contact-grid, .content-grid { grid-template-columns: minmax(0, 1fr); }
  .hero { padding: 80px 0; }
  .signal-card { max-width: 620px; }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .situations, .process { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sticky-title { position: static; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { width: min(calc(100% - 30px), 1180px); }
  .nav-in { min-height: 68px; gap: 12px; }
  .nav .header-cta { display: none; }
  .hero { min-height: auto; padding: 55px 0; }
  h1 { font-size: clamp(38px, 10vw, 48px); }
  .subhero { padding: 60px 0; }
  .subhero h1 { font-size: clamp(36px, 10vw, 48px); }
  .eyebrow { letter-spacing: .10em; font-size: 12px; }
  .eyebrow::before { width: 20px; }
  section { padding: 72px 0; }
  .section-head h2, .automation h2, .content-title, .contact-title { font-size: clamp(32px, 8.5vw, 40px); }
  .checks, .situations, .process, .proofs, .form-row { grid-template-columns: minmax(0, 1fr); }
  .actions { align-items: stretch; flex-direction: column; }
  .actions .button, .contact-form .button { width: 100%; }
  .signal-card, .contact-form, .card, .content-item { padding: 22px; }
  .signal-title { flex-direction: column; align-items: flex-start; }
  .hero-grid, .automation-grid, .tech-grid, .about-grid, .contact-grid, .content-grid { gap: 40px; }
  .footer-in, .footer-links { align-items: flex-start; flex-direction: column; }
  .portrait-placeholder { min-height: 280px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .button:hover { transform: none; }
}
