/* CyberStack site styles. One file for every page. Colours are the original CyberStack palette. */
:root {
  --red: #a71100;
  --red-bright: #db1600;
  --navy: #0c0d1f;
  --ink: #16172b;
  --grey: #636477;
  --grey-light: #f5f5f5;
  --line: #d9d9de;
  --blue: #0b54b2;
  --max: 1170px;
  --font: 'Red Hat Display', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.75 var(--font); color: var(--ink); background: #fff; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.red { color: var(--red); }
.grey { color: var(--grey); }
.bg-light { background: var(--grey-light); }
.section { padding: 70px 0; }
.section.tight { padding: 40px 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .06); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 80px; gap: 20px; }
.logo img { width: 170px; height: auto; }
.menu { display: flex; align-items: center; gap: 4px; }
.menu > a, .menu .dd > a { display: block; padding: 10px 18px; border-radius: 6px; text-decoration: none; font-size: 17px; font-weight: 500; color: var(--ink); transition: background .15s, color .15s; }
.menu > a:hover, .menu .dd > a:hover { color: var(--blue); }
.menu a[aria-current="page"] { background: var(--blue); color: #fff; box-shadow: 0 6px 14px rgba(11, 84, 178, .25); }
.menu a[aria-current="page"]:hover { color: #fff; }
.dd { position: relative; }
.dd-menu { position: absolute; left: 0; top: 100%; min-width: 210px; background: #fff; border-radius: 6px; box-shadow: 0 12px 30px rgba(12, 13, 31, .14); padding: 8px 0; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd-menu a { display: block; padding: 9px 20px; text-decoration: none; font-size: 15px; color: var(--ink); }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { color: var(--red); }
.burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn { display: inline-block; padding: 12px 18px; border: 1px solid var(--grey); border-radius: 4px; background: var(--grey); color: #fff; font: 700 15px/1.2 var(--font); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--navy); border-color: var(--navy); }
.btn-outline { background: transparent; border-color: var(--red-bright); color: #fff; }
.btn-outline:hover { background: var(--red); border-color: var(--red); }
.btn-link { background: none; border: 0; color: var(--grey); padding: 8px 0; font-weight: 600; }
.btn-link:hover { background: none; color: var(--red); }
.btn-row { margin-top: 28px; }

/* ---------- Heroes and title bands ---------- */
.hero { position: relative; background: var(--navy) url(img/hero-network.jpg) center / cover no-repeat; color: #fff; text-align: center; padding: 100px 20px; min-height: 440px; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 64px); font-weight: 700; letter-spacing: -.5px; margin: 0 0 .4em; }
.hero .eyebrow { font-size: clamp(16px, 2vw, 22px); font-weight: 500; margin-bottom: 14px; }
.hero .lede { font-size: clamp(17px, 2vw, 24px); font-weight: 700; margin: 0; }
.hero .sub { font-size: 20px; margin: 0; }
.hero .hero-icon { width: 104px; margin: 0 auto 6px; }
.hero.spaced h1 { font-weight: 500; letter-spacing: .12em; text-shadow: 0 6px 14px rgba(0, 0, 0, .6); }

.band { background: var(--navy) url(img/hero-network.jpg) center / cover no-repeat; color: #fff; text-align: center; padding: 34px 20px; margin: 30px 0; }
.band.red { background-image: url(img/red-grid.jpg); background-color: #000; background-position: left center; }
.band.black { background: #000; padding: 14px 20px; }
.band h1, .band h2 { margin: 0; font-size: clamp(28px, 4vw, 48px); }
.band h2.small, .band p.title { font-size: clamp(18px, 2vw, 20px); font-weight: 700; margin: 0; }
.band p { margin: 6px 0 0; font-weight: 600; }

/* ---------- Layout helpers ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.split.top { align-items: start; }
.split.wide-left { grid-template-columns: 3fr 2fr; }
.split .copy { text-align: center; }
.split .copy.left { text-align: left; }
.panel-split { display: grid; grid-template-columns: 5fr 7fr; align-items: stretch; background: var(--grey-light); }
.panel-split .copy { padding: 50px 30px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.panel-split .media { min-height: 300px; background-size: cover; background-position: center; }
.panel-split.dark { background: #000; color: #fff; }
.panel-split.dark .copy { text-align: left; }
.kicker { font-size: clamp(26px, 3vw, 36px); font-weight: 700; color: var(--red-bright); line-height: 1.3; margin-bottom: .8em; }
.lead-strong { font-size: 22px; font-weight: 600; line-height: 1.4; }
.eyebrow-dark { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.h-section { font-size: clamp(26px, 3vw, 36px); text-transform: none; }
.rule { border: 0; border-top: 1px solid var(--red); margin: 40px 0; }

/* Feature grids: red title (optionally with the shield icon) and a short text */
.features { display: grid; gap: 40px 30px; }
.features.cols-4 { grid-template-columns: repeat(4, 1fr); }
.features.cols-3 { grid-template-columns: repeat(3, 1fr); }
.features.cols-2 { grid-template-columns: repeat(2, 1fr); }
.features h3 { font-size: 16px; font-weight: 700; color: var(--red-bright); line-height: 1.6; margin: 0 0 8px; }
.features .shield::before { content: ''; display: inline-block; width: 15px; height: 16px; margin-right: 6px; vertical-align: -2px; background: url(img/shield.png) center / contain no-repeat; }
.features p { margin: 0; font-size: 15px; line-height: 2; }
.features.centered { text-align: center; }
.features.dividers > div { padding: 0 20px; border-left: 1px solid var(--line); }
.features.dividers > div:first-child { border-left: 0; }
.features.list h3 { margin: 0; }

.checks { list-style: none; margin: 0 0 1em; }
.checks li { position: relative; padding-left: 26px; margin: 4px 0; font-size: 19px; }
.checks li::before { content: ''; position: absolute; left: 0; top: .55em; width: 14px; height: 10px; background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23c8c8c8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.on-dark .checks li::before, .checks.white li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10'%3E%3Cpath d='M1 5l4 4 8-8' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.checks.small li { font-size: 16px; }

/* ---------- Home ---------- */
.intro { text-align: left; }
.intro img { width: 80px; margin: 0 auto 18px; }
.intro p { font-size: 16px; line-height: 2.2; }
.carousel { position: relative; max-width: 960px; margin: 40px auto 0; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track img { width: 100%; aspect-ratio: 1429 / 2000; object-fit: cover; scroll-snap-align: start; }
.carousel-nav { display: flex; justify-content: flex-end; gap: 12px; margin-bottom: 14px; }
.carousel-nav button { background: none; border: 0; cursor: pointer; padding: 6px; color: var(--red); }
.carousel-nav svg { width: 22px; height: 22px; display: block; }
.dots { display: flex; gap: 10px; margin-top: 16px; }
.dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; border: 0; background: var(--navy); cursor: pointer; }
.dots button[aria-current="true"] { background: var(--red); }
.hex { background: #f3f3f3 url(img/hexagon-bg.jpg) center / cover no-repeat; text-align: center; padding: 30px 20px 50px; }
.hex h2 { font-size: clamp(26px, 3.4vw, 38px); max-width: 1040px; margin: 0 auto .7em; }
.hex p { color: var(--red); font-weight: 500; margin: 0; }

/* Accordion (native <details>) */
.accordion { display: grid; gap: 6px; }
.accordion details { border: 1px solid #c8c8c8; border-radius: 26px; background: transparent; }
.accordion summary { list-style: none; cursor: pointer; padding: 13px 50px 13px 30px; font: 700 18px/1.4 Arial, Helvetica, sans-serif; position: relative; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: ''; position: absolute; right: 26px; top: 50%; width: 9px; height: 9px; border-right: 2px solid #9a9aa8; border-bottom: 2px solid #9a9aa8; transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.accordion details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.accordion.chevron-left summary { padding-left: 66px; }
.accordion.chevron-left summary::after { left: 36px; right: auto; transform: translateY(-50%) rotate(-45deg); border-color: var(--grey); border-width: 3px; }
.accordion.chevron-left details[open] summary::after { transform: translateY(-70%) rotate(45deg); }
.accordion .acc-body { padding: 0 30px 18px; }
.accordion .acc-body p { margin: 0 0 .7em; font-size: 15px; line-height: 2; color: var(--red); font-weight: 500; }
.accordion.plain .acc-body p { color: var(--ink); font-weight: 400; }

/* ---------- Tabs (CRISPER benefits) ---------- */
.tabs { display: grid; grid-template-columns: 240px 1fr; gap: 20px; }
.tablist { display: grid; gap: 20px; align-content: start; }
.tablist button { text-align: left; padding: 13px 26px; border: 1px solid var(--red); background: var(--red); color: #fff; font: 500 16px/1.2 Arial, Helvetica, sans-serif; cursor: pointer; }
.tablist button[aria-selected="true"] { background: #000; }
.tabpanel p { color: var(--red); font-weight: 700; line-height: 2.2; margin: 0; }

/* ---------- Products slider ---------- */
.slider-wrap { background: var(--grey-light); padding: 40px 0 15px; }
.slider { position: relative; overflow: hidden; }
.slides { display: flex; transition: transform .6s ease; }
.slides img { flex: 0 0 100%; width: 100%; aspect-ratio: 1755 / 646; object-fit: cover; }
.slider .dots { position: absolute; left: 0; right: 0; bottom: 14px; justify-content: center; }
.slider .dots button { background: rgba(255, 255, 255, .25); }
.slider .dots button[aria-current="true"] { background: var(--red-bright); }

/* ---------- Services ---------- */
.service { position: relative; padding: 60px 140px 50px 140px; }
.service.dark { background: var(--navy) url(img/hero-network.jpg) center / cover no-repeat; color: #fff; }
.service.light { background: var(--grey-light); }
.service h3 { font-size: 30px; font-weight: 600; }
.service p { font-size: 20px; line-height: 1.5; color: var(--grey); }
.service.dark p { color: #fff; }
.service .icon { position: absolute; right: 15px; bottom: 20px; width: 150px; }
.service.light .icon { filter: invert(1) brightness(.25); }   /* the AI-head icon is white artwork */
.service .btn-row { margin-top: 10px; text-align: center; max-width: 790px; }

/* ---------- About ---------- */
.about-head { display: flex; align-items: center; gap: 40px; margin-bottom: 30px; }
.about-head img { width: 60px; }
.about-head h2 { font-size: 32px; margin: 0; }
.justify p { text-align: justify; color: var(--grey); line-height: 2.2; }
.team { text-align: center; color: var(--grey); font-size: 22px; line-height: 1.6; }
.team .label { color: var(--red); }
.certs { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; margin: 34px 0 50px; color: var(--red); font-size: 22px; }
.about-h { color: var(--red); font-size: 26px; font-weight: 500; margin-top: 10px; }

/* ---------- Contact ---------- */
.contact-hero .addr { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 40px; font-size: clamp(20px, 2.4vw, 30px); font-weight: 700; line-height: 1.3; }
.contact-hero .addr > :first-child { text-align: right; }
.contact-hero .addr > :last-child { text-align: left; }
.contact-hero .addr a { text-decoration: none; }
.contact-hero .addr a:hover { text-decoration: underline; }
.get-in-touch h2 { font-size: clamp(36px, 4vw, 50px); }
.get-in-touch img { width: 270px; margin: 30px auto; }
.get-in-touch .fortify { color: #b4b4bd; font-size: 22px; font-weight: 700; line-height: 1.6; text-align: left; }

.form { display: grid; gap: 22px; }
.form label { position: absolute; left: -9999px; }
.form input, .form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--ink); padding: 12px 0; font: 18px/1.4 var(--font); color: var(--ink); background: transparent; border-radius: 0; }
.form textarea { min-height: 240px; resize: vertical; }
.form input::placeholder, .form textarea::placeholder { color: var(--grey); }
.form input:focus, .form textarea:focus { outline: 0; border-bottom-color: var(--blue); }
.form .actions { text-align: center; }
.form .form-status { margin: 0; font-size: 15px; color: var(--grey); min-height: 1.5em; text-align: center; }
.form.boxed { background: var(--grey-light); padding: 24px; }
.form.boxed input { border-bottom-color: #c8c8c8; }
.demo-split { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.demo-split h2 { text-align: center; font-size: 30px; }

/* ---------- Resources ---------- */
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 30px; }
.res-card { display: grid; grid-template-columns: 270fr 300fr; min-height: 280px; }
.res-card img { width: 100%; height: 100%; object-fit: cover; }
.res-card .panel { background: var(--red); color: #fff; padding: 30px; display: flex; flex-direction: column; justify-content: center; }
.res-card h2 { font-size: 22px; margin: 0 0 18px; }
.res-card a { color: #e7c9c4; font-weight: 700; text-decoration: none; padding-left: 17px; }
.res-card a:hover { color: #fff; text-decoration: underline; }
.soon { text-align: right; color: #c2c2c8; font-size: 22px; font-weight: 700; margin-top: 40px; }

/* ---------- Privacy / prose ---------- */
.prose h1 { font-size: clamp(36px, 4vw, 54px); margin-bottom: .8em; }
.prose h2 { font-size: 22px; margin: 1.8em 0 .9em; }
.prose p { color: var(--grey); font-size: 19px; line-height: 1.6; }

/* ---------- Footer ---------- */
.site-footer { padding: 70px 0 30px; border-top: 1px solid #eee; margin-top: 60px; }
.fgrid { display: grid; grid-template-columns: 1fr .8fr 1.5fr 1.7fr 1fr; gap: 30px; align-items: start; }
.fgrid .flogo img { width: 160px; margin-top: 30px; }
.fgrid h4 { color: var(--red-bright); font-size: 19px; font-weight: 700; margin: 0 0 10px; }
.fgrid a { display: block; color: var(--grey); text-decoration: none; font-size: 15px; line-height: 2.3; }
.fgrid a:hover { color: var(--red); }
.legal { text-align: center; color: var(--grey); font-size: 15px; margin-top: 50px; }
.legal a { color: var(--grey); text-decoration: none; }
.legal a:hover { color: var(--red); }
.legal .r { color: var(--red); }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 120px 20px; }
.notfound h1 { font-size: 72px; color: var(--red); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .service { padding: 50px 40px 180px; }
  .service .icon { right: 30px; width: 120px; }
  .fgrid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; background: #fff; padding: 10px 20px 20px; box-shadow: 0 14px 30px rgba(12, 13, 31, .12); display: none; }
  .menu.open { display: flex; }
  .menu > a, .menu .dd > a { padding: 12px 14px; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 6px 14px; }
  .features.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .features.dividers > div:nth-child(odd) { border-left: 0; }
}
@media (max-width: 760px) {
  .section { padding: 50px 0; }
  .hero { min-height: 340px; padding: 70px 20px; }
  .split, .split.wide-left, .panel-split, .demo-split, .tabs, .res-grid { grid-template-columns: 1fr; }
  .features.cols-3, .features.cols-2, .features.cols-4 { grid-template-columns: 1fr; }
  .features.dividers > div { border-left: 0; padding: 0; }
  .carousel-track { grid-auto-columns: 80%; }
  .contact-hero .addr { grid-template-columns: 1fr; gap: 16px; }
  .contact-hero .addr > :first-child, .contact-hero .addr > :last-child { text-align: center; }
  .certs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-head { gap: 20px; }
  .res-card { grid-template-columns: 1fr; }
  .res-card img { height: 220px; }
  .fgrid { grid-template-columns: 1fr 1fr; }
  .fgrid .flogo { grid-column: 1 / -1; }
  .fgrid .flogo img { margin-top: 0; }
  .service { padding: 40px 20px 170px; }
  .soon { text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html, .carousel-track { scroll-behavior: auto; }
  .slides { transition: none; }
}
