/*
Theme Name: Custenus
Theme URI: https://custenus.com
Author: Custenus
Description: Marketing theme for Custenus, Custenus S11 and Custenus Cloud.
Version: 1.0.13
Text Domain: custenus
*/

:root {
  color-scheme: dark;
  --bg: #000211;
  --surface: #071426;
  --surface-strong: #0b1e34;
  --line: #173a5e;
  --text: #f5f9ff;
  --muted: #9cb3ca;
  --blue: #29a9ff;
  --cyan: #52ddff;
  --green: #38d996;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(156, 179, 202, 0.14);
  background: rgba(0, 2, 17, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.site-header__inner,
.section__inner,
.site-footer__inner {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header__inner {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.wordmark {
  text-decoration: none;
  font-size: 1.02rem;
}

.brand-name {
  white-space: nowrap;
  font-weight: 800;
  letter-spacing: 0.025em;
}

.brand-name__base {
  color: var(--text);
}

.brand-name__accent {
  color: var(--blue);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 650;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.site-nav .site-nav__login {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid rgba(82, 221, 255, 0.48);
  border-radius: 5px;
  color: var(--text);
  font-weight: 750;
}

.site-nav .site-nav__login:hover,
.site-nav .site-nav__login:focus-visible {
  border-color: var(--cyan);
  background: rgba(41, 169, 255, 0.12);
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--blue);
  color: #00111f;
  text-decoration: none;
  font-weight: 800;
}

.button:hover,
.button:focus-visible {
  background: var(--cyan);
}

.button--quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.hero {
  min-height: min(720px, calc(100svh - 64px));
  display: grid;
  align-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000211;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("assets/custenus-s11-hero.webp");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 2, 17, 0.98) 0%, rgba(0, 2, 17, 0.9) 28%, rgba(0, 2, 17, 0.38) 58%, rgba(0, 2, 17, 0.08) 100%),
    linear-gradient(0deg, rgba(0, 2, 17, 0.72) 0%, transparent 42%);
}

.hero__content {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 96px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 700px;
  margin-bottom: 18px;
  font-size: clamp(2.35rem, 5vw, 3.8rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 30px;
  color: #c8d8e8;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.signal-bar {
  border-top: 1px solid rgba(82, 221, 255, 0.22);
  border-bottom: 1px solid rgba(82, 221, 255, 0.14);
  background: #030b18;
}

.signal-bar__inner {
  width: min(calc(100% - 40px), var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.signal-bar span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c8d8e8;
  font-size: 0.82rem;
  font-weight: 750;
}

.signal-bar i,
.live-pill i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 14px rgba(56, 217, 150, 0.82);
}

.section {
  padding: 104px 0;
  border-top: 1px solid rgba(23, 58, 94, 0.72);
}

.section--surface {
  background: var(--surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-heading h2 {
  margin-bottom: 14px;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.section-heading p,
.feature p,
.manifesto p,
.journey__step > div > p:last-child,
.system-card > p,
.section-heading--split > p {
  color: var(--muted);
}

.section-heading--split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 80px;
  align-items: end;
}

.section-heading--split h2,
.section-heading--split > p {
  margin-bottom: 0;
}

.system-visual {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr);
  align-items: stretch;
}

.system-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid rgba(41, 169, 255, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgba(15, 42, 68, 0.72), rgba(4, 13, 28, 0.96)),
    #071426;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.system-card__top {
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.system-card__label {
  font-size: 0.85rem;
  font-weight: 800;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid rgba(56, 217, 150, 0.24);
  border-radius: 999px;
  color: #9debc9;
  font-size: 0.68rem;
  font-weight: 750;
}

.system-card > p {
  margin: auto 0 0;
  padding-top: 22px;
  font-size: 0.88rem;
}

.keypad-graphic {
  width: min(100%, 310px);
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid rgba(82, 221, 255, 0.24);
  border-radius: 9px;
  background: #030c1d;
  box-shadow: inset 0 0 40px rgba(41, 169, 255, 0.06);
}

.keypad-graphic__mark {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.keypad-graphic__mark span {
  width: 24px;
  height: 24px;
  margin-bottom: 6px;
  border: 2px solid var(--blue);
  border-radius: 50% 50% 42% 42%;
  box-shadow: 0 0 18px rgba(41, 169, 255, 0.72);
}

.keypad-graphic__mark strong {
  font-size: 0.88rem;
  letter-spacing: 0.16em;
}

.keypad-graphic__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.keypad-graphic__grid i {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(41, 169, 255, 0.56);
  border-radius: 4px;
  color: #e6f4ff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 750;
}

.keypad-graphic__scan {
  margin-top: 6px;
  padding: 6px;
  border: 1px solid rgba(41, 169, 255, 0.56);
  border-radius: 4px;
  color: #9fd8ff;
  text-align: center;
  font-size: 0.6rem;
  font-weight: 750;
}

.terminal-product {
  position: relative;
  width: min(100%, 520px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(82, 221, 255, 0.18);
  border-radius: 10px;
  background: #020817;
  box-shadow: 0 20px 54px rgba(0, 0, 0, 0.38);
}

.terminal-product img {
  width: 100%;
  height: auto;
  display: block;
}

.system-flow {
  align-self: center;
  display: grid;
  grid-template-columns: 1fr 14px 1fr;
  align-items: center;
}

.system-flow span {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--blue));
}

.system-flow span:last-child {
  background: linear-gradient(90deg, var(--blue), transparent);
}

.system-flow i {
  width: 14px;
  height: 14px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 0 20px rgba(82, 221, 255, 0.68);
}

.cloud-time {
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 750;
}

.cloud-mock {
  padding: 16px;
  border: 1px solid rgba(82, 221, 255, 0.14);
  border-radius: 8px;
  background: #030c1d;
}

.cloud-mock__stats {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cloud-mock__stats div {
  padding: 12px;
  border-radius: 5px;
  background: rgba(41, 169, 255, 0.08);
}

.cloud-mock small {
  display: block;
  color: var(--muted);
  font-size: 0.58rem;
}

.cloud-mock__stats strong {
  display: block;
  margin-top: 3px;
  font-size: 1.25rem;
}

.cloud-mock__activity > div {
  min-width: 0;
  padding: 9px 2px;
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 9px;
  align-items: center;
  border-top: 1px solid rgba(156, 179, 202, 0.1);
}

.avatar {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(41, 169, 255, 0.16);
  color: var(--cyan);
  font-size: 0.55rem;
  font-weight: 800;
}

.cloud-mock__activity p {
  min-width: 0;
  margin: 0;
  font-size: 0.68rem;
}

.cloud-mock__activity strong {
  display: block;
}

.cloud-mock__activity time {
  color: var(--muted);
  font-size: 0.58rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.feature {
  min-width: 0;
  padding: 34px;
  background: var(--surface-strong);
}

.feature__number {
  display: block;
  margin-bottom: 54px;
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.feature h3 {
  margin-bottom: 9px;
  font-size: 1.16rem;
}

.feature p {
  margin-bottom: 0;
}

.journey {
  border-top: 1px solid var(--line);
}

.journey__step {
  padding: 28px 0;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 28px;
  border-bottom: 1px solid var(--line);
}

.journey__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(82, 221, 255, 0.36);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: inset 0 0 20px rgba(41, 169, 255, 0.08);
}

.journey__step > div {
  display: grid;
  grid-template-columns: minmax(160px, 0.55fr) minmax(220px, 0.8fr) minmax(260px, 1fr);
  gap: 28px;
  align-items: start;
}

.journey__step h3,
.journey__step p {
  margin-bottom: 0;
}

.journey__step h3 {
  font-size: 1.12rem;
}

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 64px;
  align-items: start;
}

.manifesto blockquote {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.7rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 80px;
  align-items: start;
}

.faq-layout .section-heading {
  margin-bottom: 0;
}

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

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

.faq-list summary {
  position: relative;
  padding: 24px 42px 24px 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 22px;
  right: 4px;
  color: var(--cyan);
  font-size: 1.25rem;
  font-weight: 400;
}

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

.faq-list details p {
  max-width: 700px;
  margin: -4px 42px 24px 0;
  color: var(--muted);
}

.section--cta {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 40%, rgba(41, 169, 255, 0.18), transparent 32%),
    linear-gradient(135deg, #071426, #000211);
}

.section--cta::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  top: 50%;
  right: 8%;
  border: 1px solid rgba(82, 221, 255, 0.12);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow:
    0 0 0 52px rgba(82, 221, 255, 0.025),
    0 0 0 104px rgba(82, 221, 255, 0.018);
  pointer-events: none;
}

.cta {
  position: relative;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 60px;
}

.cta h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
}

.cta__actions {
  flex: 0 0 auto;
  display: flex;
  gap: 10px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #00020d;
}

.site-footer__inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 700;
}

@media (max-width: 820px) {
  .site-nav a:not(.site-nav__login) {
    display: none;
  }

  .hero {
    min-height: min(680px, calc(100svh - 60px));
  }

  .hero::before {
    background-position: 62% center;
  }

  .hero::after {
    background:
      linear-gradient(90deg, rgba(0, 2, 17, 0.96) 0%, rgba(0, 2, 17, 0.82) 48%, rgba(0, 2, 17, 0.24) 100%),
      linear-gradient(0deg, rgba(0, 2, 17, 0.76) 0%, transparent 52%);
  }

  .hero__content {
    padding: 76px 0;
  }

  .signal-bar__inner {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    padding: 20px 0;
  }

  .system-visual {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .system-flow {
    width: 1px;
    height: 50px;
    margin: 0 auto;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 14px 1fr;
  }

  .system-flow span {
    width: 1px;
    height: auto;
    background: linear-gradient(0deg, var(--blue), transparent);
  }

  .system-flow span:last-child {
    background: linear-gradient(0deg, transparent, var(--blue));
  }

  .section-heading--split,
  .feature-grid,
  .manifesto,
  .faq-layout {
    grid-template-columns: 1fr;
  }

  .section-heading--split {
    gap: 18px;
  }

  .faq-layout {
    gap: 30px;
  }

  .journey__step > div {
    grid-template-columns: 1fr 1fr;
  }

  .journey__step > div > p:last-child {
    grid-column: 1 / -1;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .site-header__inner,
  .section__inner,
  .site-footer__inner,
  .hero__content {
    width: min(calc(100% - 28px), var(--max));
  }

  .site-header__inner {
    min-height: 60px;
  }

  .site-nav {
    gap: 0;
  }

  .site-nav .site-nav__login {
    min-height: 36px;
    padding: 0 13px;
  }

  .button {
    min-height: 44px;
    padding: 0 15px;
  }

  .hero {
    min-height: min(660px, calc(100svh - 60px));
    align-items: end;
  }

  .hero::before {
    background-position: 68% center;
  }

  .hero::after {
    background:
      linear-gradient(0deg, rgba(0, 2, 17, 0.99) 0%, rgba(0, 2, 17, 0.88) 52%, rgba(0, 2, 17, 0.12) 100%),
      linear-gradient(90deg, rgba(0, 2, 17, 0.6) 0%, transparent 100%);
  }

  .hero__content {
    padding: 210px 0 36px;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .button {
    width: 100%;
  }

  .signal-bar__inner {
    width: min(calc(100% - 28px), var(--max));
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .section {
    padding: 72px 0;
  }

  .system-card {
    padding: 18px;
  }

  .journey__step {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
  }

  .journey__icon {
    width: 46px;
    height: 46px;
  }

  .journey__step > div {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .journey__step > div > p:last-child {
    grid-column: auto;
  }

  .feature {
    padding: 26px;
  }

  .feature__number {
    margin-bottom: 32px;
  }

  .cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .cta__actions .button {
    width: 100%;
  }
}
