/* ============================================================
   C-IT — UI components (shell, hero, schema, cards, etc.)
   ============================================================ */

/* ——— Top utility bar ——— */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.04em;
}
.topbar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 32px;
  gap: var(--sp-6);
}
.topbar__left, .topbar__right {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.topbar a { color: rgba(255,255,255,.78); transition: color .15s; }
.topbar a:hover { color: var(--cyan-400); }
.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cyan-400);
}
.topbar__status .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-400);
  box-shadow: 0 0 6px var(--cyan-400);
  animation: pulse 2s infinite;
}
.topbar__sep { opacity: .3; }
.lang-switch {
  display: inline-flex;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--r-xs);
  overflow: hidden;
}
.lang-switch a {
  padding: 3px 8px;
  font-weight: 600;
}
.lang-switch a.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}

@media (max-width: 760px) {
  .topbar__left .hide-sm, .topbar__right .hide-sm { display: none; }
}

/* ——— Header / nav ——— */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(12px);
  background: rgba(255,255,255,.92);
}
.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 68px;
  gap: var(--sp-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 18px;
  color: var(--ink);
}
.brand__mark {
  width: 30px;
  height: 30px;
  background: var(--ink);
  color: var(--cyan-400);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.04em;
  position: relative;
  overflow: hidden;
}
.brand__mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(0,184,212,.25) 60%, transparent 70%);
}
.brand__sep {
  opacity: .35;
  font-weight: 400;
}
.brand__tag {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav a {
  padding: 8px 14px;
  font-size: var(--t-sm);
  color: var(--ink-2);
  font-weight: 500;
  border-radius: var(--r);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.active {
  color: var(--ink);
  background: var(--bg);
}
.nav a.active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan-500);
  margin-right: 8px;
  vertical-align: middle;
  transform: translateY(-1px);
}

.header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px) {
  .nav a { padding: 8px 10px; font-size: 13px; }
  .brand__tag { display: none; }
  .brand__sep { display: none; }
}
@media (max-width: 720px) {
  .nav { display: none; }
}

/* ——— Footer ——— */
.footer {
  background: var(--navy-950);
  color: rgba(255,255,255,.7);
  padding: var(--sp-11) 0 var(--sp-7);
  margin-top: var(--sp-11);
  position: relative;
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 20%, black 0%, transparent 70%);
}
.footer__inner { position: relative; }
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--sp-9);
  margin-bottom: var(--sp-9);
}
.footer h4 {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan-400);
  margin: 0 0 var(--sp-4);
  font-weight: 500;
}
.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer a {
  color: rgba(255,255,255,.72);
  font-size: 14px;
  transition: color .15s;
}
.footer a:hover { color: var(--cyan-400); }
.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.footer__brand p {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,.65);
  max-width: 38ch;
  margin: 0;
}
.footer__brand .brand { color: #fff; }
.footer__brand .brand__tag { color: rgba(255,255,255,.45); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.5);
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.footer__legal { display: flex; gap: var(--sp-5); }
.footer__legal a { font-family: var(--f-mono); font-size: var(--t-mono-xs); letter-spacing: 0.06em; }

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-7); }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ——— Hero ——— */
.hero {
  position: relative;
  padding: var(--sp-11) 0 var(--sp-12);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.hero__grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
  pointer-events: none;
}
.hero__container { position: relative; }

.hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--sp-7);
}
.hero__breadcrumb .ref {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  background: var(--surface);
  color: var(--cyan-600);
}
.hero__breadcrumb .ref .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan-500);
  box-shadow: 0 0 5px var(--cyan-500);
}

.hero__title {
  margin: 0 0 var(--sp-6);
  max-width: 1100px;
}
.hero__title em {
  font-style: normal;
  color: var(--cyan-600);
  background: linear-gradient(180deg, transparent 70%, rgba(0,184,212,.18) 70%);
  padding: 0 4px;
}
.hero__lead {
  max-width: 60ch;
  margin: 0 0 var(--sp-7);
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: var(--sp-9);
}

/* ——— Stat strip (data, mono) ——— */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat-strip > div {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--line);
  position: relative;
}
.stat-strip > div:last-child { border-right: none; }
.stat-strip .label {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 6px;
}
.stat-strip .value {
  font-family: var(--f-display);
  font-size: 36px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.stat-strip .value sup {
  font-size: 16px;
  color: var(--cyan-600);
  font-weight: 500;
}
.stat-strip .meta {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  color: var(--ok);
  margin-top: 4px;
}
@media (max-width: 720px) {
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .stat-strip > div:nth-child(2) { border-right: none; }
  .stat-strip > div:nth-child(1), .stat-strip > div:nth-child(2) { border-bottom: 1px solid var(--line); }
}

/* ——— Live console (right side of hero) ——— */
.console {
  background: var(--navy-950);
  border-radius: var(--r-lg);
  border: 1px solid var(--navy-800);
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(8,16,30,.4);
  position: relative;
}
.console__head {
  background: linear-gradient(180deg, var(--navy-900), var(--navy-950));
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dark-line);
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.55);
}
.console__head .lights {
  display: inline-flex;
  gap: 6px;
}
.console__head .lights span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.18);
}
.console__head .lights span.on { background: var(--cyan-400); box-shadow: 0 0 6px var(--cyan-400); }

.console__body {
  padding: 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: rgba(255,255,255,.78);
}

/* Schema area */
.schema {
  position: relative;
  height: 320px;
  background:
    linear-gradient(180deg, rgba(0,184,212,.04), transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(0,184,212,.06), transparent 70%);
  border: 1px solid var(--dark-line);
  border-radius: var(--r);
  margin: 12px 0;
  overflow: hidden;
}
.schema svg { width: 100%; height: 100%; display: block; }

/* ——— Service cards (grid + expansion) ——— */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
@media (max-width: 760px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-7);
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.svc-card:nth-child(2n) { border-right: none; }
.svc-card:nth-last-child(-n+2):not(:nth-child(2n)) { /* default */ }
.svc-grid > .svc-card:last-child { border-bottom: none; }
.svc-grid > .svc-card:nth-last-child(2):nth-child(odd) { border-bottom: none; }
@media (max-width: 760px) {
  .svc-card { border-right: none; }
  .svc-grid > .svc-card:last-child { border-bottom: none; }
}

.svc-card:hover { background: var(--surface-2); }
.svc-card.is-open { background: var(--navy-50); }

.svc-card__num {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  color: var(--ink-4);
  margin-bottom: var(--sp-4);
}
.svc-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-3);
}
.svc-card__icon {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.svc-card__icon svg { width: 18px; height: 18px; }
.svc-card.is-open .svc-card__icon { background: var(--ink); color: var(--cyan-400); border-color: var(--ink); }

.svc-card h3 { margin-bottom: 8px; }
.svc-card p { font-size: var(--t-sm); color: var(--ink-3); margin: 0; }

.svc-card__expand {
  width: 26px; height: 26px;
  border-radius: var(--r-xs);
  border: 1px solid var(--line-2);
  display: grid; place-items: center;
  background: var(--surface);
  color: var(--ink-2);
  transition: transform .25s;
  flex-shrink: 0;
}
.svc-card.is-open .svc-card__expand {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: rotate(45deg);
}

.svc-card__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s ease;
}
.svc-card.is-open .svc-card__details { grid-template-rows: 1fr; }
.svc-card__details > div { overflow: hidden; }
.svc-card__details-inner {
  padding-top: var(--sp-5);
  margin-top: var(--sp-5);
  border-top: 1px dashed var(--line-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}
@media (max-width: 720px) { .svc-card__details-inner { grid-template-columns: 1fr; } }

.svc-card__details h4 {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin: 0 0 var(--sp-3);
  font-weight: 500;
}
.svc-card__feats { list-style: none; margin: 0; padding: 0; }
.svc-card__feats li {
  font-size: var(--t-sm);
  color: var(--ink-2);
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  padding: 4px 0;
}
.svc-card__feats li::before {
  content: "+";
  font-family: var(--f-mono);
  color: var(--cyan-600);
  font-weight: 600;
}

.svc-card__specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
}
.svc-card__specs > div {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px dotted var(--line-2);
  color: var(--ink-3);
}
.svc-card__specs > div:last-child { border-bottom: none; }
.svc-card__specs strong { color: var(--ink); font-weight: 600; }

/* ——— Section headers w/ side label ——— */
.section-head-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-7);
  margin-bottom: var(--sp-9);
  align-items: end;
  border-top: 1px solid var(--ink);
  padding-top: var(--sp-5);
}
.section-head-row .side {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.section-head-row .side .ref {
  color: var(--cyan-600);
  letter-spacing: 0.06em;
}
.section-head-row .lead { max-width: 56ch; }
@media (max-width: 760px) {
  .section-head-row { grid-template-columns: 1fr; gap: var(--sp-4); }
}

/* ——— Process / steps ——— */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: var(--sp-7);
  position: relative;
}
.step__n {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  color: var(--cyan-600);
  margin-bottom: var(--sp-4);
}
.step h3 { margin-bottom: var(--sp-2); }
.step p { font-size: var(--t-sm); color: var(--ink-3); margin: 0; }
.step::after {
  content: "→";
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--surface);
  color: var(--ink-4);
  width: 16px; height: 16px;
  display: grid; place-items: center;
  font-size: 14px;
  z-index: 1;
}
.step:last-child::after { display: none; }
@media (max-width: 900px) {
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .step:nth-child(2)::after { display: none; }
}
@media (max-width: 560px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step::after { display: none; }
}

/* ——— Trust strip ——— */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: var(--sp-7) 0;
  background: var(--surface-2);
}
.trust__inner {
  display: grid;
  grid-template-columns: 200px 1fr;
  align-items: center;
  gap: var(--sp-7);
}
.trust__label {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.trust__logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--sp-5);
  align-items: center;
}
.trust__logo {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-4);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.trust__logo::before {
  content: "";
  width: 18px; height: 18px;
  background: var(--ink-4);
  -webkit-mask: var(--mask) center/contain no-repeat;
  mask: var(--mask) center/contain no-repeat;
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .trust__inner { grid-template-columns: 1fr; }
  .trust__logos { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .trust__logos { grid-template-columns: repeat(2, 1fr); }
}

/* ——— CTA band ——— */
.cta-band {
  background: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--sp-9) var(--sp-9);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 80% at 100% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 100% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.cta-band__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--sp-9);
  align-items: center;
  position: relative;
}
.cta-band h2 { color: #fff; margin: 0 0 var(--sp-3); font-size: var(--t-2xl); }
.cta-band p { color: rgba(255,255,255,.72); margin: 0; max-width: 56ch; }
.cta-band__actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 760px) {
  .cta-band__inner { grid-template-columns: 1fr; }
  .cta-band__actions { justify-content: flex-start; }
  .cta-band { padding: var(--sp-7); }
}

/* ——— Spec table ——— */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
}
.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--surface-2);
}
.spec-table td.mono { font-family: var(--f-mono); color: var(--ink-2); }

/* ——— Page header (sub pages) ——— */
.page-head {
  position: relative;
  padding: var(--sp-10) 0 var(--sp-9);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.page-head__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
    linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, black 0%, transparent 80%);
}
.page-head__inner { position: relative; }
.page-head__bc {
  display: flex;
  gap: var(--sp-3);
  align-items: center;
  font-family: var(--f-mono);
  font-size: var(--t-mono-xs);
  color: var(--ink-4);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.page-head__bc a { color: var(--ink-3); border-bottom: 1px dotted var(--line-strong); padding-bottom: 1px; }
.page-head__bc a:hover { color: var(--cyan-600); border-color: var(--cyan-500); }
.page-head__bc .sep { color: var(--ink-5); }
