:root {
  --bg: #111111;
  --bg-soft: #161616;
  --bg-panel: #141414;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --line: rgba(255, 255, 255, 0.11);
  --line-strong: rgba(255, 255, 255, 0.26);
  --cyan: #00ffff;
  --magenta: #ff00ff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
  --max-width: 1440px;
  --font-heading: "Bahnschrift", "Arial Narrow", sans-serif;
  --font-body: "Segoe UI", "Trebuchet MS", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  cursor: pointer;
}

input,
textarea,
select {
  width: 100%;
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  outline: none;
}

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

textarea {
  resize: vertical;
}

select option {
  color: #111111;
}

.page {
  background:
    radial-gradient(circle at top center, rgba(255, 255, 255, 0.04), transparent 38%),
    var(--bg);
}

.site-shell {
  width: min(calc(100% - clamp(1.5rem, 4vw, 4rem)), var(--max-width));
  margin: 0 auto;
}

.site-header,
.page-main,
.site-footer,
.flash-stack {
  position: relative;
  z-index: 1;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(17, 17, 17, 0.98);
}

.site-header__inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.site-header__inner--home {
  justify-content: space-between;
}

.site-header__inner--internal {
  justify-content: space-between;
}

.site-header__zone--center {
  display: flex;
  justify-content: center;
  flex: 1 1 320px;
}

.site-header__zone--left {
  display: flex;
  align-items: center;
}

.site-header__zone--right,
.site-header__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
}

.site-header__actions {
  margin-left: auto;
  flex: 0 0 auto;
}

.internal-page-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.2rem, 1.8vw, 1.9rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.back-link:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.brand__media {
  width: clamp(62px, 7vw, 84px);
  height: clamp(76px, 9vw, 104px);
  flex-shrink: 0;
  overflow: hidden;
}

.site-header--home .brand__media {
  width: clamp(66px, 8vw, 88px);
  height: clamp(82px, 10vw, 110px);
}

.site-header--internal .brand__media,
.site-footer .brand__media {
  width: clamp(54px, 6vw, 64px);
  height: clamp(68px, 8vw, 80px);
}

.brand__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.25rem, 2.4vw, 3rem);
  flex-wrap: wrap;
}

.site-nav--home {
  flex: 1 1 420px;
  min-width: min(100%, 320px);
}

.site-nav__link {
  position: relative;
  padding-bottom: 0.55rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav__link:hover,
.site-nav__link.is-active {
  color: var(--text);
}

.site-nav__link:hover::after,
.site-nav__link.is-active::after {
  transform: scaleX(1);
}

.header-action {
  min-width: 218px;
}

.menu-toggle,
.menu-close {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

.menu-toggle--internal {
  display: inline-flex;
}

.menu-toggle span,
.menu-close span {
  display: block;
  width: 20px;
  height: 1px;
  background: var(--text);
}

.menu-close {
  position: relative;
}

.menu-close span:first-child {
  position: absolute;
  transform: rotate(45deg);
}

.menu-close span:last-child {
  position: absolute;
  transform: rotate(-45deg);
}

.menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 20;
  padding: 1rem;
  background: rgba(17, 17, 17, 0.97);
}

.menu-drawer[hidden] {
  display: none;
}

.menu-drawer__inner {
  width: min(100%, 420px);
  min-height: calc(100vh - 2rem);
  margin-left: auto;
  padding: 1.5rem;
  border: 1px solid var(--line);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 2rem;
  overflow-y: auto;
}

.menu-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-drawer__label {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.menu-drawer__nav {
  display: grid;
  gap: 1rem;
}

.menu-drawer__link {
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.menu-drawer__link.is-active {
  color: var(--cyan);
}

.menu-open {
  overflow: hidden;
}

.flash-stack {
  width: min(calc(100% - clamp(1.5rem, 4vw, 4rem)), var(--max-width));
  margin: 0 auto;
}

.flash {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}

.flash--success {
  border-left: 3px solid var(--cyan);
}

.flash--warning {
  border-left: 3px solid var(--magenta);
}

.flash--error {
  border-left: 3px solid #ff6d6d;
}

.page-main {
  padding-bottom: 4rem;
}

.section {
  padding: clamp(3.5rem, 7vw, 6rem) 0;
}

.section--tight {
  padding-top: clamp(2.5rem, 5vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section--accent-line {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 0.8rem;
}

.section-heading__eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading__title {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 3.2vw, 3.1rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-showcase {
  border-bottom: 1px solid var(--line);
  padding-bottom: 2.25rem;
}

.page-showcase__grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.98fr) minmax(320px, 1.02fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
}

.page-showcase__copy,
.page-showcase__text {
  display: grid;
  gap: 1rem;
}

.page-showcase__title {
  margin: 0;
  max-width: 13ch;
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.3vw, 4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-wrap: balance;
}

.page-showcase__line {
  width: 4rem;
  height: 1px;
  background: var(--text);
}

.page-showcase__lead,
.page-showcase__text p {
  margin: 0;
  max-width: 42ch;
  color: var(--muted);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 56px;
  padding: 0.95rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms ease;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.button--primary {
  border-color: rgba(255, 255, 255, 0.46);
}

.button--secondary {
  border-color: rgba(255, 255, 255, 0.2);
}

.story-grid,
.feature-grid,
.catalog-grid,
.compact-grid {
  display: grid;
  gap: 1rem;
  margin-top: 2.5rem;
}

.story-grid,
.feature-grid,
.catalog-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.compact-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.story-card,
.feature-card,
.catalog-card,
.compact-card,
.empty-note {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  min-height: 100%;
  padding: 1.15rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
}

.story-card h3,
.feature-card h3,
.catalog-card h3,
.compact-card h3,
.empty-note h3,
.process-row__content h3,
.cta-band h2 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.story-card p,
.feature-card p,
.catalog-card p,
.compact-card p,
.empty-note p,
.process-row__content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.catalog-card__meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.catalog-card__link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding-top: 0.25rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.process-list {
  display: grid;
  gap: 0;
  margin-top: 2.5rem;
}

.process-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}

.process-row:last-child {
  border-bottom: 1px solid var(--line);
}

.process-row__step {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.process-row__content {
  display: grid;
  gap: 0.75rem;
}

.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid var(--line);
}

.cta-band__copy {
  display: grid;
  gap: 0.75rem;
}

.cta-band h2 {
  max-width: 18ch;
  font-size: clamp(1.4rem, 3vw, 2.25rem);
  line-height: 1.04;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 1.25rem;
}

.site-footer__top {
  display: grid;
  grid-template-columns: minmax(240px, 1.25fr) repeat(4, minmax(140px, 1fr));
  gap: 1.1rem 1.4rem;
  align-items: start;
}

.site-footer__brand,
.site-footer__column {
  display: grid;
  align-content: start;
  gap: 0.9rem;
}

.site-footer__brand {
  padding-right: 1.5rem;
}

.site-footer__title {
  margin: 0;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.site-footer__description,
.site-footer__meta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.site-footer__description {
  max-width: 34ch;
}

.site-footer__links,
.site-footer__meta {
  display: grid;
  gap: 0.55rem;
}

.site-footer__links a {
  color: var(--muted);
}

.site-footer__links a:hover {
  color: var(--text);
}

.site-footer__column--note {
  justify-self: stretch;
}

.site-footer__bottom {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1.5rem;
  align-items: start;
}

.site-footer__bottom p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.legal-layout {
  display: grid;
  gap: 1.4rem;
}

.legal-text {
  display: grid;
  gap: 1rem;
  max-width: 78ch;
}

.legal-text p,
.legal-text li,
.legal-text h3 {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.legal-text h3 {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 1180px) {
  .story-grid,
  .feature-grid,
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .site-footer__brand {
    padding-right: 0;
  }
}

@media (max-width: 980px) {
  .site-nav--home,
  .header-action {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .page-showcase__grid,
  .cta-band {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .site-header__inner {
    min-height: 88px;
  }

  .site-header__inner--home,
  .site-header__inner--internal {
    justify-content: space-between;
  }

  .site-header__zone--center {
    justify-content: flex-start;
  }

  .internal-page-title {
    text-align: left;
  }

  .story-grid,
  .feature-grid,
  .catalog-grid,
  .site-footer__top {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom {
    grid-template-columns: 1fr;
  }

  .process-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

@media (max-width: 640px) {
  .brand__media {
    width: 58px;
    height: 72px;
  }

  .site-header--home .brand__media {
    width: 62px;
    height: 78px;
  }

  .section {
    padding: 3rem 0;
  }

  .section--tight {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  .page-showcase__title,
  .section-heading__title {
    max-width: none;
  }

  .back-link {
    min-height: 42px;
    padding: 0 0.8rem;
    font-size: 0.72rem;
  }

  .button,
  .menu-toggle,
  .menu-close {
    min-height: 52px;
  }
}

body.assistant-panel-open {
  overflow: hidden;
}

.assistant-corner-link {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 60;
  width: clamp(80px, 7vw, 104px);
  aspect-ratio: 824 / 960;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(10, 14, 18, 0.9);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  isolation: isolate;
}

.assistant-corner-link__glow {
  position: absolute;
  inset: 18% 18% 10% 18%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(0, 255, 255, 0.32), rgba(0, 255, 255, 0) 72%);
  filter: blur(14px);
  z-index: 0;
}

.assistant-corner-link__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  transform: none;
}
