:root {
  --bg: #050402;
  --bg-soft: #0d0a06;
  --panel: rgba(14, 11, 8, 0.88);
  --line: rgba(231, 190, 105, 0.16);
  --line-strong: rgba(242, 205, 124, 0.34);
  --text: #f2eee7;
  --muted: #c6bca9;
  --gold: #ddb259;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "Avenir Next", "Helvetica Neue", "Segoe UI Variable", sans-serif;
  background:
    radial-gradient(circle at top center, rgba(221, 178, 89, 0.12), transparent 28%),
    linear-gradient(180deg, #050402 0%, #090704 38%, #050402 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  background:
    linear-gradient(135deg, transparent 0 10%, rgba(221, 178, 89, 0.06) 10.2%, transparent 10.5%) 0 0 / 360px 360px,
    linear-gradient(-135deg, transparent 0 11%, rgba(221, 178, 89, 0.04) 11.2%, transparent 11.6%) 0 0 / 420px 420px;
}

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

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

ul,
ol {
  margin: 0;
  padding: 0;
}

h1,
h2,
h3,
h4,
strong {
  margin: 0;
  font-family: "Avenir Next Condensed", "Avenir Next", "Arial Narrow", sans-serif;
  letter-spacing: 0.02em;
}

p {
  margin: 0;
}

p,
li,
span {
  line-height: 1.62;
}

.site-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.backdrop-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.58;
}

.orb-a {
  top: 100px;
  left: -30px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(221, 178, 89, 0.22), transparent 70%);
  animation: drift 12s ease-in-out infinite;
}

.orb-b {
  top: 34%;
  right: -50px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(243, 224, 187, 0.14), transparent 72%);
  animation: drift 15s ease-in-out infinite reverse;
}

.orb-c {
  bottom: 8%;
  left: 9%;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(221, 178, 89, 0.12), transparent 70%);
  animation: drift 11s ease-in-out infinite 1.4s;
}

.page-shell {
  position: relative;
  width: min(100%, var(--max-width));
  margin: 0 auto;
  padding: 20px 22px 48px;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 22px;
  background: rgba(8, 6, 4, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.header-drawer {
  display: contents;
}

.menu-toggle,
.menu-backdrop {
  display: none;
}

.menu-toggle {
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  cursor: pointer;
}

.menu-toggle__line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 69;
  border: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  background: rgba(2, 2, 2, 0.66);
  backdrop-filter: blur(8px);
  transition: opacity 220ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.34);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 1.02rem;
  letter-spacing: 0.12em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.site-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 14px 6px 8px;
  border-radius: 999px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.nav-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.nav-label {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--text);
  border-color: rgba(242, 205, 124, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.lang-switch a.is-current {
  background: linear-gradient(135deg, rgba(221, 178, 89, 0.24), rgba(255, 255, 255, 0.06));
  color: var(--text);
}

.lang-switch.is-dropdown-ready {
  padding: 0;
  border: 0;
  background: transparent;
}

.lang-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  min-width: 40px;
  padding: 0 12px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

.lang-trigger__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--gold);
}

.lang-trigger__icon svg {
  width: 100%;
  height: 100%;
}

.lang-trigger__caret {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.lang-switch.is-open .lang-trigger__caret {
  transform: rotate(45deg);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  min-width: 180px;
  padding: 8px;
  border-radius: 18px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  background: rgba(12, 9, 6, 0.98);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.lang-switch.is-open .lang-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-switch.is-dropdown-ready .lang-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease;
}

.lang-switch.is-dropdown-ready .lang-menu__link:hover,
.lang-switch.is-dropdown-ready .lang-menu__link:focus-visible,
.lang-switch.is-dropdown-ready .lang-menu__link.is-current {
  background: rgba(221, 178, 89, 0.12);
  color: var(--text);
}

.profile-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(242, 205, 124, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.profile-button:hover,
.profile-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(242, 205, 124, 0.28);
  background: rgba(255, 255, 255, 0.05);
}

.profile-button img {
  width: 26px;
  height: 26px;
}

.profile-button.is-authenticated {
  border-color: rgba(242, 205, 124, 0.3);
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.16), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.04);
}

.profile-shell {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
}

.profile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  border: 0;
  padding: 0;
  background: rgba(4, 3, 2, 0.58);
}

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

.profile-menu {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 121;
  display: grid;
  gap: 8px;
  width: min(296px, calc(100vw - 32px));
  padding: 12px;
  overflow: visible;
  border-radius: 22px;
  border: 1px solid rgba(242, 205, 124, 0.16);
  background: rgba(12, 9, 6, 0.97);
  box-shadow: var(--shadow);
  isolation: isolate;
}

.profile-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--profile-menu-arrow-left, calc(100% - 32px));
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(242, 205, 124, 0.16);
  border-left: 1px solid rgba(242, 205, 124, 0.16);
  background: rgba(12, 9, 6, 0.97);
  transform: translateX(-50%) rotate(45deg);
}

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

.profile-menu__head {
  display: grid;
  gap: 4px;
  padding: 8px 10px 12px;
}

.profile-menu__head strong {
  font-size: 1rem;
  line-height: 1.1;
}

.profile-menu__head small {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
  word-break: break-word;
}

.profile-menu__actions {
  display: grid;
  gap: 8px;
}

.profile-menu__link,
.profile-menu__logout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  width: 100%;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(242, 205, 124, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.profile-menu__link:hover,
.profile-menu__link:focus-visible,
.profile-menu__logout:hover,
.profile-menu__logout:focus-visible {
  border-color: rgba(242, 205, 124, 0.24);
  background: rgba(221, 178, 89, 0.08);
  transform: translateY(-1px);
}

.section {
  padding-top: 88px;
}

.eyebrow,
.panel-label {
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.eyebrow {
  margin-bottom: 16px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 28px;
  align-items: start;
}

.hero-copy h1,
.section-heading h2,
.contact-banner h2 {
  max-width: 13ch;
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.95;
}

.page-hero .hero-copy h1 {
  max-width: 11.5ch;
  font-size: clamp(2.35rem, 4.4vw, 4.1rem);
}

.lead,
.section-heading > p:not(.eyebrow) {
  max-width: 62ch;
  margin-top: 18px;
  color: var(--muted);
}

.hero-actions,
.section-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, rgba(221, 178, 89, 0.3), rgba(242, 238, 231, 0.12));
  box-shadow: 0 16px 32px rgba(221, 178, 89, 0.12);
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.03);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(242, 205, 124, 0.24);
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.2), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.04);
  box-shadow: 0 14px 28px rgba(221, 178, 89, 0.08);
}

.button-ghost {
  min-height: 42px;
  padding-inline: 16px;
}

.stat-grid,
.pricing-grid,
.faq-grid,
.route-grid,
.detail-grid,
.capability-grid {
  display: grid;
  gap: 16px;
}

.stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 22px;
}

.frame-metal,
.stat-card,
.product-link-card,
.module-card,
.case-card,
.process-card,
.faq-card,
.route-card,
.contact-banner,
.visual-card,
.summary-panel,
.pricing-card,
.capability-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
}

.frame-metal::before,
.stat-card::before,
.product-link-card::before,
.module-card::before,
.case-card::before,
.process-card::before,
.faq-card::before,
.route-card::before,
.contact-banner::before,
.visual-card::before,
.summary-panel::before,
.pricing-card::before,
.capability-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), transparent 30%),
    linear-gradient(315deg, rgba(221, 178, 89, 0.08), transparent 32%);
}

.stat-card {
  padding: 16px;
  border-radius: var(--radius-md);
  background: rgba(13, 10, 7, 0.84);
}

.stat-card span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.stat-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.02rem;
}

.hero-visual,
.page-hero-visual {
  display: grid;
  gap: 16px;
}

.visual-card,
.summary-panel,
.contact-banner {
  border-radius: var(--radius-xl);
  background: rgba(11, 8, 5, 0.92);
}

.visual-card {
  padding: 14px;
}

.visual-card img {
  width: 100%;
  min-height: 320px;
  border-radius: 24px;
  object-fit: cover;
}

.visual-card-portrait img {
  min-height: 0;
  height: 520px;
  object-fit: contain;
  background: rgba(7, 5, 3, 0.92);
}

.visual-card-copy {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.visual-card-copy strong {
  font-size: 1.18rem;
}

.summary-panel,
.process-card,
.faq-card,
.pricing-card,
.capability-card {
  padding: 22px;
}

.summary-panel ul,
.process-card ul,
.faq-card ul {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  list-style: none;
}

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

.product-link-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-radius: 28px;
  background: rgba(11, 8, 5, 0.92);
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-link-card:hover,
.product-link-card:focus-visible {
  border-color: rgba(242, 205, 124, 0.28);
}

.product-link-card-feature {
  min-height: 100%;
}

.product-link-card img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: contain;
}

.product-link-copy h3 {
  margin-top: 8px;
  font-size: 1.56rem;
  line-height: 1;
}

.product-link-copy p {
  margin-top: 10px;
  color: var(--muted);
}

.card-arrow {
  color: var(--gold);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.route-grid,
.detail-grid,
.faq-grid,
.pricing-grid,
.capability-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.route-card,
.module-card,
.case-card,
.pricing-card {
  padding: 20px;
  border-radius: 24px;
  background: rgba(11, 8, 5, 0.92);
}

.route-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(221, 178, 89, 0.24), rgba(255, 255, 255, 0.06));
  color: var(--text);
  font-weight: 700;
}

.route-card h3,
.process-card h3,
.faq-card h3,
.pricing-card h3,
.module-card h3,
.case-card h3,
.capability-card h3 {
  font-size: 1.48rem;
  line-height: 1;
}

.route-card p,
.process-card p,
.faq-card p,
.pricing-card p,
.module-card p,
.case-card p,
.capability-card p {
  margin-top: 12px;
  color: var(--muted);
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.92fr);
  gap: 28px;
  align-items: start;
}

.page-hero-indicators {
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.7fr);
  gap: 44px;
}

.page-hero-indicators .hero-copy h1 {
  max-width: 18.5ch;
}

.page-hero-indicators .hero-copy {
  padding-right: 12px;
}

.page-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.page-badge,
.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 205, 124, 0.22);
  background: rgba(221, 178, 89, 0.1);
  color: var(--text);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.page-hero-visual .visual-card img,
.media-card img {
  min-height: 280px;
}

.section-heading h2 {
  max-width: 13ch;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
}

.module-grid,
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.website-shot-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.module-media,
.case-media {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 7, 5, 0.9);
}

.module-media {
  position: relative;
  margin-bottom: 16px;
}

.module-media img,
.case-media img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.case-media-portrait img {
  height: 440px;
  object-fit: contain;
  background: rgba(7, 5, 3, 0.92);
}

.case-media-web img {
  height: 250px;
  object-fit: contain;
  background: rgba(7, 5, 3, 0.92);
}

.image-zoomable {
  cursor: zoom-in;
}

.module-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(221, 178, 89, 0.22);
  background: rgba(12, 9, 6, 0.8);
  color: var(--text);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.feature-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 16px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(221, 178, 89, 0.35);
}

.access-layout,
.detail-grid,
.pricing-grid,
.faq-grid,
.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.process-card {
  border-radius: 24px;
  background: rgba(11, 8, 5, 0.92);
}

.steps {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  list-style: none;
  counter-reset: steps;
}

.steps li {
  position: relative;
  padding: 14px 14px 14px 58px;
  border-radius: 18px;
  border: 1px solid rgba(221, 178, 89, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(221, 178, 89, 0.24), rgba(255, 255, 255, 0.06));
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.steps strong {
  display: block;
  font-size: 1rem;
}

.steps span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.tag-group {
  margin-top: 16px;
}

.tag-group h4 {
  margin: 0 0 8px;
  font-size: 0.9rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pricing-card strong {
  display: block;
  margin-top: 12px;
  color: var(--text);
  font-size: 1.78rem;
  line-height: 1;
}

.pricing-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.capability-card {
  border-radius: 24px;
  background: rgba(11, 8, 5, 0.92);
}

.contact-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.08), transparent 36%),
    rgba(11, 8, 5, 0.94);
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.auth-modal.is-open {
  display: flex;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 2, 0.7);
  backdrop-filter: blur(10px);
}

.auth-modal__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 960px);
  max-height: calc(100vh - 40px);
  padding: 24px;
  overflow-y: auto;
  border-radius: 30px;
  border: 1px solid rgba(242, 205, 124, 0.16);
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.08), transparent 38%),
    rgba(10, 8, 5, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  -webkit-overflow-scrolling: touch;
}

.auth-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(242, 205, 124, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-modal__content {
  display: grid;
  gap: 18px;
}

.auth-modal__heading {
  max-width: 44rem;
}

.auth-modal__heading h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 0.96;
}

.auth-modal__heading p {
  margin-top: 12px;
  color: var(--muted);
}

.auth-modal__tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid rgba(242, 205, 124, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.auth-modal__tab {
  border: 0;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.auth-modal__tab.is-active {
  background: rgba(221, 178, 89, 0.14);
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(221, 178, 89, 0.18);
}

.auth-modal__pane[hidden] {
  display: none !important;
}

.auth-inline-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.auth-inline-card h3 {
  font-size: 1.58rem;
  line-height: 1;
}

.auth-inline-card p {
  margin-top: 12px;
  color: var(--muted);
}

.auth-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.auth-option {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.auth-option h3 {
  font-size: 1.5rem;
  line-height: 1;
}

.auth-option p {
  margin-top: 12px;
  color: var(--muted);
}

.auth-option .button {
  margin-top: 18px;
  width: 100%;
}

.auth-modal__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}

.auth-modal__meta p {
  color: var(--muted);
}

.auth-modal-open,
.menu-open,
.image-lightbox-open {
  overflow: hidden;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.field-grid {
  display: grid;
  gap: 12px;
}

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

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.field-control {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  border-radius: 16px;
  outline: none;
  color: var(--text);
  font: inherit;
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field-control:focus {
  border-color: rgba(242, 205, 124, 0.32);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(221, 178, 89, 0.08);
}

.field-control::placeholder {
  color: rgba(198, 188, 169, 0.58);
}

.field-note,
.account-email {
  color: var(--muted);
}

.account-email {
  margin-top: 10px;
}

.form-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.form-status[hidden],
.cabinet-section[hidden] {
  display: none !important;
}

.form-status.is-success {
  color: var(--text);
  border-color: rgba(221, 178, 89, 0.22);
  background: rgba(221, 178, 89, 0.1);
}

.form-status.is-error {
  color: #f6d7cc;
  border-color: rgba(244, 124, 92, 0.22);
  background: rgba(116, 32, 20, 0.22);
}

.analytics-key-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.analytics-key-form .field-group {
  display: grid;
  gap: 8px;
}

.analytics-metrics-grid,
.analytics-list {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.analytics-metrics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.analytics-metric,
.analytics-list-card,
.analytics-event-row {
  border-radius: 24px;
  background: rgba(11, 8, 5, 0.92);
}

.analytics-metric {
  padding: 20px;
}

.analytics-metric span {
  display: block;
  color: var(--gold);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.analytics-metric strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1;
}

.analytics-list-card,
.analytics-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
}

.analytics-list-card p:last-child,
.analytics-event-row p:last-child {
  margin-top: 8px;
  color: var(--muted);
  word-break: break-word;
}

.analytics-list-card strong {
  font-size: 1.5rem;
  line-height: 1;
  white-space: nowrap;
}

.analytics-empty {
  padding: 18px 20px;
  border: 1px solid rgba(221, 178, 89, 0.12);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.detail-grid-wide {
  grid-template-columns: 1.15fr 0.85fr;
}

.analytics-timeline,
.analytics-recent {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.analytics-timeline-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 146px;
  gap: 16px;
  align-items: center;
}

.analytics-timeline-meta,
.analytics-timeline-values,
.analytics-event-meta {
  display: grid;
  gap: 4px;
}

.analytics-timeline-meta span,
.analytics-timeline-values span,
.analytics-event-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.analytics-timeline-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.analytics-timeline-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(221, 178, 89, 0.9), rgba(242, 238, 231, 0.38));
  box-shadow: 0 0 18px rgba(221, 178, 89, 0.18);
}

.analytics-event-row {
  align-items: flex-start;
}

.analytics-event-meta {
  text-align: right;
  white-space: nowrap;
}

.button[disabled] {
  opacity: 0.62;
  pointer-events: none;
}

.cabinet-live-grid {
  align-items: start;
}

.cabinet-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}

.cabinet-orders {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.cabinet-order {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(221, 178, 89, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.cabinet-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.cabinet-order-head h4 {
  font-size: 1.08rem;
  line-height: 1.1;
}

.cabinet-order-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}

.cabinet-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.cabinet-order-note {
  margin-top: 12px;
  color: var(--muted);
}

.cabinet-empty {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(242, 205, 124, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
}

.cabinet-empty strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
}

.cabinet-empty p {
  margin-top: 8px;
}

.cabinet-empty .button {
  justify-self: start;
}

.dashboard-preview {
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.08), transparent 38%),
    rgba(11, 8, 5, 0.94);
}

.dashboard-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.dashboard-preview-head strong {
  display: block;
  font-size: 1.56rem;
  line-height: 1;
}

.dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-metric {
  padding: 16px;
  border-radius: 20px;
  background: rgba(13, 10, 7, 0.84);
}

.dashboard-metric span {
  display: block;
  color: var(--gold);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.dashboard-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.06rem;
  line-height: 1.2;
}

.dashboard-status-list {
  display: grid;
  gap: 10px;
}

.dashboard-status-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(221, 178, 89, 0.14);
  background: rgba(255, 255, 255, 0.03);
}

.dashboard-status-row strong {
  display: block;
  font-size: 1rem;
}

.dashboard-status-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(242, 205, 124, 0.22);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-pill-live {
  background: rgba(221, 178, 89, 0.16);
  color: var(--text);
}

.status-pill-warm {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.status-pill-muted {
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px 0 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.section-heading-compact {
  margin-bottom: 0;
}

.bottom-links-panel {
  display: grid;
  gap: 22px;
  padding: 28px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.08), transparent 36%),
    rgba(11, 8, 5, 0.94);
}

.bottom-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.bottom-links-grid .button {
  width: 100%;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.image-lightbox.is-open {
  display: flex;
}

.image-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 2, 2, 0.82);
  backdrop-filter: blur(10px);
}

.image-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  width: min(100%, 1200px);
  max-height: calc(100vh - 48px);
  padding: 18px;
  border-radius: 28px;
  border: 1px solid rgba(242, 205, 124, 0.14);
  background:
    linear-gradient(135deg, rgba(221, 178, 89, 0.08), transparent 40%),
    rgba(10, 8, 5, 0.97);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
}

.image-lightbox__close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(242, 205, 124, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.1rem;
  cursor: pointer;
}

.image-lightbox__media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 0;
  max-height: calc(100vh - 160px);
  margin: 0 auto;
  overflow: hidden;
}

.image-lightbox__media img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 160px);
  object-fit: contain;
  border-radius: 18px;
}

.image-lightbox__caption {
  color: var(--muted);
  text-align: center;
}

.reveal {
  opacity: 1;
  transform: none;
}

body.js .reveal,
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.72, 0.08, 1);
}

body.js .reveal.is-visible,
.js .reveal.is-visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(14px, -20px, 0) scale(1.06);
  }
}

@media (max-width: 1180px) {
  .hero,
  .page-hero,
  .contact-banner {
    grid-template-columns: 1fr;
  }

  .site-header {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .header-actions {
    justify-content: flex-end;
    flex-wrap: wrap;
  }

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

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

@media (max-width: 860px) {
  .page-shell {
    padding-inline: 16px;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    padding: 12px 14px;
    margin-bottom: 18px;
  }

  .brand-logo {
    width: 42px;
    height: 42px;
  }

  .brand-copy small {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
    z-index: 73;
  }

  body.menu-open .menu-backdrop {
    display: block;
    opacity: 1;
    pointer-events: auto;
  }

  .header-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 71;
    display: grid;
    align-content: start;
    gap: 18px;
    width: min(86vw, 360px);
    padding: 84px 18px 24px;
    border-left: 1px solid rgba(242, 205, 124, 0.14);
    background:
      linear-gradient(135deg, rgba(221, 178, 89, 0.08), transparent 40%),
      rgba(9, 7, 4, 0.98);
    box-shadow: -20px 0 42px rgba(0, 0, 0, 0.42);
    transform: translateX(108%);
    pointer-events: none;
    transition: transform 220ms ease;
  }

  body.menu-open .site-header {
    z-index: 72;
  }

  body.menu-open .header-drawer {
    transform: translateX(0);
    pointer-events: auto;
  }

  .hero-copy h1,
  .section-heading h2,
  .contact-banner h2,
  .page-hero .hero-copy h1 {
    max-width: 11ch;
    font-size: clamp(2.15rem, 9vw, 3.2rem);
  }

  .product-grid-home,
  .route-grid,
  .module-grid,
  .case-grid,
  .website-shot-grid,
  .access-layout,
  .detail-grid,
  .pricing-grid,
  .faq-grid,
  .capability-grid,
  .stat-grid,
  .bottom-links-grid {
    grid-template-columns: 1fr;
  }

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

  .detail-grid-wide {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    padding: 10px 14px 10px 10px;
    border-radius: 18px;
  }

  .nav-icon {
    width: 22px;
    height: 22px;
  }

  .nav-label {
    font-size: 0.7rem;
  }

  .site-nav {
    display: grid;
    gap: 10px;
    overflow: visible;
    padding: 0;
    scrollbar-width: none;
  }

  .header-chat,
  .lang-switch.is-dropdown-ready,
  .hero-actions .button,
  .section-actions .button,
  .contact-actions .button {
    width: 100%;
  }

  .header-actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .profile-shell {
    width: 100%;
  }

  .profile-button {
    width: 100%;
    min-height: 52px;
    border-radius: 18px;
  }

  .profile-button img {
    width: 24px;
    height: 24px;
  }

  .lang-switch.is-dropdown-ready .lang-trigger {
    width: 100%;
    min-height: 52px;
    justify-content: space-between;
    border-radius: 18px;
  }

  .lang-switch.is-dropdown-ready .lang-menu {
    position: static;
    min-width: 0;
    margin-top: 8px;
    transform: none;
    box-shadow: none;
  }

  .lang-switch.is-dropdown-ready:not(.is-open) .lang-menu {
    display: none;
    opacity: 0;
    pointer-events: none;
  }

  .lang-switch.is-dropdown-ready.is-open .lang-menu {
    display: grid;
    opacity: 1;
    pointer-events: auto;
  }

  .product-link-card {
    grid-template-columns: 1fr;
  }

  .dashboard-metrics,
  .dashboard-status-row,
  .auth-option-grid {
    grid-template-columns: 1fr;
  }

  .field-grid.field-grid-double {
    grid-template-columns: 1fr;
  }

  .auth-modal__panel {
    width: 100%;
    max-height: calc(100vh - 24px);
    padding: 20px;
    border-radius: 24px;
  }

  .auth-modal {
    align-items: flex-start;
    padding: 12px;
  }

  .auth-inline-card .button {
    width: 100%;
  }

  .image-lightbox {
    padding: 14px;
  }

  .image-lightbox__dialog {
    padding: 14px;
    border-radius: 22px;
  }

  .image-lightbox__media img {
    max-height: calc(100vh - 120px);
  }

  .auth-modal__meta {
    align-items: flex-start;
  }

  .cabinet-card-actions .button {
    width: 100%;
  }

  .analytics-timeline-row {
    grid-template-columns: 1fr;
  }

  .analytics-event-row,
  .analytics-list-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .analytics-event-meta {
    text-align: left;
    white-space: normal;
  }

  .visual-card img,
  .page-hero-visual .visual-card img,
  .media-card img {
    min-height: 220px;
  }

  .visual-card-portrait img {
    height: 420px;
  }

  .case-media-portrait img {
    height: 360px;
  }

  .contact-banner,
  .bottom-links-panel,
  .summary-panel,
  .process-card,
  .faq-card,
  .pricing-card,
  .capability-card,
  .route-card,
  .module-card,
  .case-card,
  .product-link-card {
    padding: 20px;
  }

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

  .analytics-metrics-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .js .reveal,
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}
