@font-face {
  font-family: "IBM Plex Sans";
  src: url("/fonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-700-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #eef3f8;
  --surface: #ffffff;
  --surface-quiet: #e5ebf2;
  --ink: #0b0d12;
  --ink-soft: #536175;
  --accent: #2238e8;
  --accent-ink: #ffffff;
  --beam: #5ce1ff;
  --line: rgba(11, 13, 18, 0.12);
  --line-strong: rgba(11, 13, 18, 0.28);
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(56px, 8vw, 104px);
  --measure: 68ch;
  --max: 1320px;
  --radius: 2px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--canvas);
  color: var(--ink);
  font-family: "IBM Plex Sans", Arial, sans-serif;
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.58;
}

body,
button,
input,
select,
textarea {
  font: inherit;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: var(--accent);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

nav[aria-label="Principal"] {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(238, 243, 248, 0.97);
}

.nav-left,
.nav-right,
.nav-links {
  display: flex;
  align-items: center;
}

.nav-left {
  min-width: 0;
  gap: clamp(28px, 4vw, 64px);
}

.nav-right {
  gap: 14px;
}

.nav-links {
  gap: clamp(18px, 2vw, 30px);
}

.logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: "IBM Plex Mono", monospace;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.logo img {
  width: 132px;
  height: auto;
}

.logo .mark {
  width: 22px;
  height: 22px;
}

.nav-link {
  position: relative;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-decoration: none;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent);
  transition: transform 160ms var(--ease);
}

.nav-link:hover::after,
.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.cta-btn,
.cta-ghost,
.footer-cta {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 11px 17px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms var(--ease), color 150ms var(--ease), transform 120ms var(--ease);
  white-space: nowrap;
}

.cta-btn {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-btn:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.cta-ghost,
.footer-cta {
  background: transparent;
  color: var(--accent);
}

.cta-ghost:hover,
.footer-cta:hover {
  background: var(--accent);
  color: var(--accent-ink);
}

.cta-btn:active,
.cta-ghost:active,
.footer-cta:active {
  transform: translateY(1px);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
}

.nav-burger span {
  display: block;
  height: 1px;
  margin: 5px 0;
  background: currentColor;
}

main {
  overflow: clip;
}

main > section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: var(--section) var(--gutter);
  border-top: 1px solid var(--line);
}

main > section:first-child {
  border-top: 0;
}

#hero,
.page-hero {
  min-height: min(720px, calc(100svh - 68px));
  display: grid;
  align-content: center;
  text-align: left !important;
}

.kicker,
.idx,
.per,
.sector,
.tag,
.parallel-label,
.page-meta,
.breadcrumbs {
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 18px 0 24px !important;
  font-size: clamp(48px, 6.2vw, 88px) !important;
  line-height: 0.96;
}

h2 {
  max-width: 20ch;
  margin: 18px 0 26px;
  font-size: clamp(36px, 4.5vw, 62px);
  line-height: 1;
}

h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.1;
}

h4 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

p,
li {
  text-wrap: pretty;
}

.lead {
  max-width: var(--measure);
  color: var(--ink-soft);
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

#hero .lead,
.page-hero .lead {
  max-width: 62ch !important;
  margin: 0 0 30px !important;
}

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

main > section:not(#hero) > .lead + .lead {
  margin-top: 18px;
}

main > section:not(#hero) > :where(h2, .lead, ul, ol, .faq) {
  max-width: 900px;
}

.grid,
.sectors,
.security-grid,
.cases-wrap,
.plan-comparator {
  display: grid;
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}

.grid.c3,
.sectors {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card,
.sector-chip,
.security-item,
.case,
.plan-comparator > a {
  min-width: 0;
  padding: 24px 22px 28px 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}

.card,
.sector-chip,
.plan-comparator > a {
  border-right: 1px solid var(--line);
  padding-left: 20px;
}

.card:nth-child(4n + 1),
.sector-chip:nth-child(4n + 1) {
  padding-left: 0;
}

.card:nth-child(4n),
.sector-chip:nth-child(4n) {
  border-right: 0;
}

.card:hover,
.sector-chip:hover,
.plan-comparator > a:hover {
  background: var(--surface);
  color: var(--ink);
}

.card h3,
.sector-chip b,
.plan-comparator strong {
  display: block;
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.card p,
.sector-chip span,
.plan-comparator small,
.security-item p,
.case p {
  display: block;
  margin: 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

.plan-comparator {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.plan-comparator > a {
  position: relative;
  border-right: 1px solid var(--line);
  padding-left: 20px;
}

.plan-comparator > a:first-child {
  padding-left: 0;
}

.plan-comparator > a:last-child {
  border-right: 0;
}

.plan-comparator > a > span:not(.plan-comparator-index) {
  display: block;
  margin: 14px 0 5px;
  font-size: 21px;
  font-weight: 600;
}

.plan-comparator-index {
  display: block;
  margin-bottom: 42px;
  color: var(--accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
}

.plan-card-outcome {
  margin-top: 24px !important;
}

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

.security-item {
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.security-item + .security-item {
  padding-left: 28px;
}

.security-item:last-child {
  border-right: 0;
}

.security-item .idx {
  margin-bottom: 52px;
}

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

.case {
  display: grid;
  min-height: 260px;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  padding-right: 28px;
  border-right: 1px solid var(--line);
}

.case:nth-child(even) {
  padding-left: 28px;
  border-right: 0;
}

.nums {
  display: flex;
  gap: 28px;
  margin-top: 28px;
}

.nums b,
.nums span {
  display: block;
}

.nums b {
  font-size: 22px;
}

.nums span {
  color: var(--ink-soft);
  font-size: 13px;
}

.faq,
.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq details,
.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq summary,
.faq-list summary {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  cursor: pointer;
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: -0.02em;
  list-style: none;
}

.faq summary::after,
.faq-list summary::after {
  color: var(--accent);
  content: "+";
  font-family: "IBM Plex Mono", monospace;
  font-size: 18px;
}

.faq details[open] summary::after,
.faq-list details[open] summary::after {
  content: "−";
}

.faq summary::-webkit-details-marker,
.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq details p,
.faq-list details p {
  max-width: 70ch;
  padding: 0 48px 24px 0;
  color: var(--ink-soft);
}

main form,
.assessment-form,
.form-card {
  max-width: 880px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

input,
textarea,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
}

footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.1fr) minmax(0, 2fr) minmax(220px, 0.8fr);
  gap: clamp(28px, 5vw, 80px);
  padding: clamp(52px, 7vw, 90px) var(--gutter);
  background: var(--ink);
  color: #dbe4ee;
}

footer > div {
  min-width: 0;
}

footer .logo,
footer a {
  color: #fff;
}

footer a:hover {
  color: var(--beam);
}

footer h4,
.footer-title {
  margin: 0 0 14px;
  color: #91a0b5;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

footer p {
  margin: 0;
  color: #91a0b5;
  font-size: 14px;
}

.lang-switch {
  display: inline-flex;
  gap: 4px;
}

.lang-switch a,
.lang-switch button {
  min-width: 32px;
  min-height: 32px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink-soft);
  font-family: "IBM Plex Mono", monospace;
  font-size: 10px;
}

.lang-switch :is(.on, [aria-current="page"]) {
  border-color: var(--accent);
  color: var(--accent);
}

@media (hover: hover) and (pointer: fine) {
  .card,
  .sector-chip,
  .plan-comparator > a {
    transition: background-color 160ms var(--ease), transform 160ms var(--ease);
  }

  .card:hover,
  .sector-chip:hover,
  .plan-comparator > a:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 1080px) {
  .nav-links {
    gap: 16px;
  }

  .grid.c3,
  .sectors,
  .plan-comparator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card:nth-child(4n + 1),
  .sector-chip:nth-child(4n + 1) {
    padding-left: 20px;
  }

  .card:nth-child(2n + 1),
  .sector-chip:nth-child(2n + 1),
  .plan-comparator > a:nth-child(2n + 1) {
    padding-left: 0;
  }

  .card:nth-child(4n),
  .sector-chip:nth-child(4n),
  .card:nth-child(2n + 1),
  .sector-chip:nth-child(2n + 1),
  .plan-comparator > a:nth-child(2n + 1) {
    border-right: 1px solid var(--line);
  }

  .card:nth-child(2n),
  .sector-chip:nth-child(2n),
  .plan-comparator > a:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 16px;
  }

  nav[aria-label="Principal"] {
    min-height: 60px;
  }

  .nav-burger {
    display: block;
  }

  .nav-links {
    position: fixed;
    z-index: 99;
    inset: 60px 0 auto;
    display: none;
    align-items: stretch;
    padding: 18px var(--gutter) 26px;
    border-bottom: 1px solid var(--line-strong);
    background: var(--canvas);
    flex-direction: column;
  }

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

  .nav-right > .cta-btn {
    display: none;
  }

  .nav-link {
    padding: 10px 0;
    font-size: 13px;
  }

  #hero,
  .page-hero {
    min-height: 620px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 64px) !important;
  }

  h2 {
    font-size: clamp(34px, 9.5vw, 52px);
  }

  .security-grid,
  .cases-wrap {
    grid-template-columns: 1fr;
  }

  .security-item,
  .security-item + .security-item,
  .case,
  .case:nth-child(even) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .case {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  footer {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 560px) {
  :root {
    --gutter: 18px;
    --section: 52px;
  }

  .logo img {
    width: 116px;
  }

  .grid.c3,
  .sectors,
  .plan-comparator,
  footer {
    grid-template-columns: 1fr;
  }

  .card,
  .sector-chip,
  .plan-comparator > a,
  .card:nth-child(n),
  .sector-chip:nth-child(n),
  .plan-comparator > a:nth-child(n) {
    padding-right: 0;
    padding-left: 0;
    border-right: 0;
  }

  .plan-comparator-index,
  .security-item .idx {
    margin-bottom: 24px;
  }

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

  .hero-ctas > *,
  .page-actions > * {
    width: 100%;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
