:root {
  color-scheme: light;
  --ink: #0e1728;
  --muted: #46566b;
  --line: #dce3eb;
  --navy: #101b2c;
  --light: #f3f6fa;
  --accent: #244ed5;
  --sky: #c0d0ff;
  font: 100%/1.6 "Segoe UI", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: white; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #3772ff; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2.7rem, 5.3vw, 5.9rem); }
h2 { font-size: clamp(2rem, 4vw, 3.75rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.95rem); }
.wrap { width: min(100% - 3.5rem, 87rem); margin-inline: auto; }
.skip { position: absolute; z-index: 20; left: 1rem; top: 1rem; padding: .5rem 1rem; background: white; transform: translateY(-180%); }
.skip:focus { transform: none; }
header { background: white; border-bottom: 1px solid var(--line); }
.head { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 1.3rem; }
.wordmark { font-weight: 850; font-size: 1.48rem; letter-spacing: -.058em; text-decoration: none; }
.wordmark span { color: var(--accent); margin-right: .18em; }
.nav { display: flex; align-items: center; gap: clamp(.85rem, 2.25vw, 2rem); }
.nav > a { font-size: .94rem; font-weight: 650; text-decoration: none; }
.nav > a:hover { color: var(--accent); text-decoration: underline; }
.languages { display: flex; align-items: center; gap: .12rem; font-size: .875rem; }
.languages a { display: grid; place-items: center; min-width: 2.15rem; min-height: 2.15rem; text-decoration: none; border-radius: .25rem; }
.languages a:hover { background: var(--light); }
.languages [aria-current] { color: var(--accent); font-weight: 800; background: #e9efff; }
.menu-toggle { display: none; padding: .55rem .8rem; color: var(--ink); font: inherit; font-weight: 650; background: white; border: 1px solid var(--line); border-radius: .35rem; }
.hero { background: var(--navy); color: white; padding-block: clamp(2.5rem, 5vw, 5rem); }
.hero-grid, .case-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(1.6rem, 5vw, 5.8rem); }
.hero-copy { padding-block: clamp(.5rem, 3vw, 2.2rem); }
.eyebrow { margin-bottom: 1rem; color: #3352a2; font-size: .89rem; font-weight: 760; }
.hero .eyebrow, .contact .eyebrow { color: var(--sky); }
.hero .intro { margin-top: 1.4rem; max-width: 35rem; color: #d3deec; }
.intro { font-size: clamp(1.05rem, 1.6vw, 1.23rem); color: var(--muted); }
.hero-shot img { aspect-ratio: 1.17; object-fit: cover; object-position: 48% center; border-radius: .6rem; }
.hero-shot figcaption { color: #c8d4e5; margin-top: .65rem; font-size: .9rem; }
.buttons { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.8rem; }
.button { display: inline-flex; align-items: center; min-height: 3rem; padding: .68rem 1.18rem; border: 1px solid transparent; border-radius: .35rem; background: var(--accent); color: white; font-weight: 720; text-decoration: none; }
.button:hover { background: #193aa8; }
.button-secondary { border-color: #8395b3; background: transparent; }
.button-secondary:hover { background: #253755; }
.content-section { padding-block: clamp(3.2rem, 7vw, 7rem); }
.section-intro { max-width: 42rem; }
.section-intro > .intro, .article .intro { margin-top: 1rem; }
.business-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2.2rem; }
.business { padding: clamp(1rem, 2vw, 1.7rem); border: 1px solid var(--line); border-top: 3px solid var(--card-color); border-radius: .45rem; display: flex; flex-direction: column; min-width: 0; }
.business p { margin-block: .9rem 1.2rem; color: var(--muted); }
.business a, .text-link { color: #153eb4; font-weight: 720; }
.business a { align-self: flex-start; margin-top: auto; }
.case { background: var(--light); }
.case img { border-radius: .55rem; aspect-ratio: 1.23; object-fit: cover; }
.case .intro { margin-block: 1rem 1.6rem; }
.case .button { margin-bottom: .2rem; }
.contact { background: var(--navy); color: white; }
.contact .intro { color: #d3deec; margin-block: 1rem; }
.contact address { padding: 1.35rem; border: 1px solid #617089; border-radius: .45rem; font-style: normal; color: #e0e9f4; }
.contact address strong { color: white; }
.contact address p + p { margin-top: .9rem; }
footer { background: #0a1322; color: #dce5f2; padding-block: 1.4rem; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem 1.2rem; font-size: .9rem; }
.article { padding-block: clamp(2.6rem, 7vw, 6.5rem); min-height: 65vh; }
.article h1 { font-size: clamp(2.5rem, 5vw, 5rem); }
.article-copy { max-width: 54rem; }
.article .back { display: inline-block; margin-bottom: 1.5rem; }
.article .lede { max-width: 56rem; }
.article .section-intro { margin-top: 3.25rem; }
.article .section-intro h2 { font-size: clamp(1.85rem, 3vw, 3rem); }
.article .section-intro p { margin-top: .85rem; }
.project-hero { margin-top: 2rem; max-width: 71rem; }
.project-hero img { max-height: 29rem; object-fit: cover; border-radius: .55rem; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 1.4rem 0 2.5rem; }
.gallery figure { min-width: 0; background: var(--light); border-radius: .45rem; overflow: hidden; }
.gallery img { aspect-ratio: 4 / 3; object-fit: contain; background: #101a2b; }
.gallery figcaption { padding: .8rem; color: var(--muted); }
.article-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-top: 1.4rem; }
html { scroll-padding-top: 1rem; }
@media (max-width: 66rem) {
  .business-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 50rem) {
  .wrap { width: calc(100% - 2rem); }
  .head { flex-wrap: wrap; gap: .45rem .7rem; min-height: auto; padding-block: .7rem; }
  .head .menu-toggle { display: block; order: 2; }
  .nav { width: 100%; order: 4; flex-direction: column; align-items: stretch; gap: 0; }
  .nav[hidden] { display: none; }
  .nav > a { padding-block: .65rem; border-top: 1px solid var(--line); }
  .languages { margin-inline-start: auto; }
  .hero-grid, .case-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-shot img { aspect-ratio: 1.65; }
}
@media (max-width: 35rem) {
  .business-grid, .gallery { grid-template-columns: 1fr; }
  .gallery img { max-height: 19rem; }
}

.menu-toggle[hidden] { display: none; }
.cloud-note { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); align-items: center; }
.cloud-note h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
.cloud-note p { color: var(--muted); margin-top: .7rem; }
.cloud-note img { aspect-ratio: 2.7; background: #080808; }
@media (max-width: 35rem) { .cloud-note { grid-template-columns: 1fr; } }

/* Wordmark badge */
.wordmark { display: inline-flex; align-items: center; }
.wordmark span { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: .45em; border-radius: .32em; background: var(--accent); color: white; font-size: .82em; letter-spacing: 0; }

/* Hero: device-to-app stack */
.stack-wrap { padding: clamp(1.1rem, 2.5vw, 1.8rem); border: 1px solid #2c3c58; border-radius: .7rem; background: linear-gradient(160deg, #16243b, #0d1626); }
.stack { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; counter-reset: step; }
.stack li { position: relative; display: flex; gap: .95rem; align-items: center; padding: .85rem 1rem; border: 1px solid #304363; border-radius: .5rem; background: #142039; }
.stack li + li::before { content: ""; position: absolute; left: 2.05rem; top: -.9rem; height: .9rem; border-left: 2px dashed #5a78c7; }
.stack svg, .stack-energy svg { flex: none; width: 2.1rem; height: 2.1rem; padding: .35rem; border-radius: .4rem; background: #22397a; fill: none; stroke: #c0d0ff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.stack strong, .stack-energy strong { display: block; color: white; font-size: 1.02rem; }
.stack span, .stack-energy span { color: #b9c7dc; font-size: .92rem; line-height: 1.4; }
.stack-energy { display: flex; gap: .95rem; align-items: center; margin-top: 1.1rem; padding: .85rem 1rem; border: 1px solid #5e4a22; border-radius: .5rem; background: #2a2414; }
.stack-energy svg { background: #6b5320; stroke: #ffe2a3; }

/* Why Cybentis */
.why { border-top: 1px solid var(--line); }
.why-grid { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-grid li { padding: clamp(1rem, 2vw, 1.6rem); border-radius: .45rem; background: var(--light); }
.why-grid h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
.why-grid p { margin-top: .7rem; color: var(--muted); }
@media (max-width: 66rem) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 35rem) { .why-grid { grid-template-columns: 1fr; } }

/* Privacy notice */
.privacy .section-intro { margin-top: 2.6rem; }
.privacy .section-intro h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
.privacy .section-intro p + p { margin-top: .8rem; }
.privacy ul { margin: .85rem 0 0; padding-left: 1.2rem; }
.privacy li + li { margin-top: .45rem; }

/* Shared helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.button-ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.button-ghost:hover { background: #e9efff; }
.case-buttons { margin-top: 0; }

/* TiD demo */
.demo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; margin: 3rem 0 2.5rem; padding: clamp(1.4rem, 4vw, 3rem); border-radius: .7rem; background: var(--navy); color: white; }
.demo .eyebrow { color: var(--sky); }
.demo h2 { font-size: clamp(1.85rem, 3vw, 3rem); }
.demo-copy p { margin-top: .9rem; color: #d3deec; }
.demo-copy .demo-note { font-size: .9rem; color: #9fb0c9; }
.phone { padding: 1.1rem; border: 1px solid #304363; border-radius: 1.6rem; background: #0b1424; box-shadow: 0 1.2rem 3rem rgb(0 0 0 / .35); }
.phone-head { display: flex; justify-content: space-between; align-items: center; padding: .2rem .3rem .9rem; font-size: .9rem; }
.phone-app { font-weight: 800; }
.status { display: inline-flex; align-items: center; gap: .45rem; color: #d3deec; }
.dot { width: .65rem; height: .65rem; border-radius: 50%; background: #3ccf7a; box-shadow: 0 0 0 .2rem rgb(60 207 122 / .2); }
.dot[data-state="stopped"] { background: #f0a43a; box-shadow: 0 0 0 .2rem rgb(240 164 58 / .2); }
.dot[data-state="done"] { background: #8fa5ff; box-shadow: none; }
.readings { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin: 0; }
.readings div { padding: .75rem; border-radius: .6rem; background: #142039; }
.readings dt { font-size: .8rem; color: #9fb0c9; }
.readings dd { margin: .2rem 0 0; font-size: 1.2rem; font-weight: 750; font-variant-numeric: tabular-nums; }
.progress { height: .5rem; margin: 1rem 0; border-radius: 1rem; background: #22304a; overflow: hidden; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, #3158da, #3ccf7a); transition: width .8s ease; }
.speed-control { display: grid; gap: .45rem; font-size: .9rem; color: #d3deec; }
.speed-control output { font-weight: 800; color: white; }
.speed-control input { width: 100%; accent-color: #3772ff; }
.demo-toggle { width: 100%; justify-content: center; margin-top: 1rem; }
@media (prefers-reduced-motion: reduce) { .progress span { transition: none; } }
@media (max-width: 50rem) { .demo { grid-template-columns: 1fr; } }

/* Topic chips in contact */
.topics { margin: 1.2rem 0 1.4rem; padding: 0; border: 0; }
.topics legend { margin-bottom: .7rem; font-weight: 700; color: white; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-block; padding: .5rem .9rem; border: 1px solid #617089; border-radius: 2rem; color: #e0e9f4; font-size: .92rem; }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: white; font-weight: 700; }
.chips input:focus-visible + span { outline: 3px solid #3772ff; outline-offset: 3px; }

/* Language suggestion */
.lang-hint { background: #e9efff; border-bottom: 1px solid #c8d6ff; }
.lang-hint-inner { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; padding-block: .6rem; }
.lang-hint p { font-weight: 650; }
.lang-hint .button { min-height: 2.4rem; padding: .4rem .9rem; }
.lang-hint-close { margin-left: auto; width: 2.4rem; height: 2.4rem; border: 0; border-radius: .35rem; background: transparent; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; }
.lang-hint-close:hover { background: #d6e1ff; }
