/*
 * Legacy compatibility layer
 * Older theme rules continue below to preserve page-level parity during
 * migration. Do not add new brand rules beneath this boundary.
 */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font: 400 16px/1.65 Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 76% -8%, rgba(200, 184, 141, 0.24), transparent 34%),
    linear-gradient(180deg, #05070c 0%, #03060b 52%, #06070c 100%);
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

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

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #080c13;
  color: var(--text);
}

input::placeholder,
textarea::placeholder {
  color: #8f989d;
}

input[type="checkbox"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--brand);
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand-strong);
  outline-offset: 2px;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 60px 0;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-head h2,
.section-title h1,
.section-title h2,
.card h1,
.card h2,
.card h3 {
  margin: 0;
  color: var(--text-strong);
  font-family: Manrope, Inter, "Segoe UI", Arial, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section-head h2,
.section-title h2 {
  font-size: clamp(1.55rem, 2.8vw, 3rem);
}

.section-intro {
  margin: 12px 0 0;
  max-width: 72ch;
  color: rgba(215, 220, 224, 0.78);
}

.panel-label,
.card-meta {
  margin: 0;
  color: rgba(185, 192, 200, 0.78);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease, border-color 150ms ease, color 150ms ease;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button-primary {
  background: linear-gradient(140deg, var(--brand), var(--brand-strong));
  color: #111318;
  box-shadow: 0 12px 30px rgba(200, 184, 141, 0.18);
}

.button-secondary {
  background: rgba(18, 19, 24, 0.92);
  border-color: rgba(173, 178, 182, 0.24);
  color: #eef1f4;
}

.button-ghost {
  background: transparent;
  border-color: rgba(173, 178, 182, 0.22);
  color: rgba(238, 240, 242, 0.86);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  border-bottom: 1px solid rgba(173, 178, 182, 0.12);
  background: rgba(5, 7, 12, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(2, 7, 16, 0.22);
}

.site-header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-height: 78px;
  transition: min-height 180ms ease;
}

.site-header.is-condensed .site-header-inner {
  min-height: 74px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand-logo {
  display: block;
  height: 40px;
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 999px;
  color: rgba(238, 240, 242, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
  background: rgba(173, 178, 182, 0.10);
  text-decoration: none;
}

.header-nav-link.is-active {
  background: rgba(200, 184, 141, 0.16);
  color: #f4f1e9;
  box-shadow: inset 0 0 0 1px rgba(200, 184, 141, 0.26);
}

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

.header-search {
  display: flex;
}

.header-search input {
  min-width: 190px;
  width: clamp(190px, 21vw, 240px);
  min-height: 44px;
  border-radius: 999px;
  background: rgba(5, 8, 13, 0.92);
}

.header-submit-cta {
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: #111318;
  color: var(--text-strong);
}
