/*
  Design philosophy reminder: Executive Dark Modernism with Revenue-Operations Futurism.
  Preserve Apex’s recognizable dark/gold brand while making the experience cleaner, more premium, conversion-focused, and dashboard-like.
*/

:root {
  --bg: #070707;
  --bg-2: #0b0b0a;
  --panel: rgba(21, 21, 20, 0.78);
  --panel-strong: rgba(14, 14, 13, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(213, 177, 92, 0.3);
  --text: #f7f4ed;
  --muted: #b9b4aa;
  --muted-2: #827d73;
  --gold: #d5b15c;
  --gold-2: #efcc73;
  --gold-dark: #9a7630;
  --red: #c84d47;
  --cyan: #6dc8d7;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 82% 12%, rgba(213, 177, 92, 0.08), transparent 28rem),
    radial-gradient(circle at 8% 28%, rgba(109, 200, 215, 0.075), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 999;
  transform: translateY(-160%);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  background: var(--gold);
  color: #080807;
  font-weight: 800;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.container.narrow {
  width: min(calc(100% - 40px), 900px);
}

.section-dark,
.section-panel {
  position: relative;
  padding: 112px 0;
}

.section-bordered {
  border-top: 1px solid rgba(255, 255, 255, 0.065);
  border-bottom: 1px solid rgba(255, 255, 255, 0.065);
}

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(7, 7, 7, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.92);
  border-color: rgba(213, 177, 92, 0.17);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.32);
}

.header-inner {
  width: min(calc(100% - 32px), 1240px);
  margin-inline: auto;
  min-height: 98px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand img {
  width: clamp(210px, 26vw, 450px);
  height: auto;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.35));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 3.5vw, 4.5rem);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav > a:not(.nav-cta) {
  position: relative;
  color: rgba(247, 244, 237, 0.86);
}

.site-nav > a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--gold);
  transition: transform 0.25s ease;
}

.site-nav > a:not(.nav-cta):hover::after,
.site-nav > a:not(.nav-cta):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  border-radius: 0;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}

.nav-cta,
.btn-primary {
  color: #070707;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  box-shadow: 0 16px 36px rgba(213, 177, 92, 0.18);
}

.nav-cta:hover,
.btn-primary:hover,
.nav-cta:focus-visible,
.btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 54px rgba(213, 177, 92, 0.24);
}

.btn-secondary {
  color: var(--gold-2);
  border-color: rgba(213, 177, 92, 0.55);
  background: rgba(11, 11, 10, 0.58);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: var(--gold-2);
  background: rgba(213, 177, 92, 0.09);
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 160px 0 96px;
  overflow: hidden;
}

.hero-bg,
.cta-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(7, 7, 7, 0.92) 0%, rgba(7, 7, 7, 0.78) 38%, rgba(7, 7, 7, 0.38) 100%),
    linear-gradient(180deg, rgba(7, 7, 7, 0.28), rgba(7, 7, 7, 0.88)),
    url("assets/apex-hero-revenue-infrastructure.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.015);
  animation: slowDrift 18s ease-in-out infinite alternate;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.75), transparent 70%);
  opacity: 0.22;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 780px;
  padding-top: 2rem;
}

.eyebrow,
.section-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--gold);
  font-weight: 800;
}

.pill {
  width: max-content;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.95rem;
  border: 1px solid rgba(213, 177, 92, 0.26);
  border-radius: 999px;
  background: rgba(213, 177, 92, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--gold-2);
  box-shadow: 0 0 16px rgba(213, 177, 92, 0.6);
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Manrope", system-ui, sans-serif;
  line-height: 1.02;
  letter-spacing: -0.055em;
  margin: 0;
}

h1 {
  margin-top: 1.45rem;
  font-size: clamp(3.2rem, 7.3vw, 6.4rem);
  max-width: 760px;
}

h1 span,
h2 span,
.final-cta h2 span {
  color: var(--gold);
}

.hero-lead {
  max-width: 690px;
  margin: 1.45rem 0 0;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  color: rgba(247, 244, 237, 0.82);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.microcopy {
  margin: 1rem 0 0;
  color: rgba(185, 180, 170, 0.72);
  font-size: 0.9rem;
}

.scroll-cue {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 34px;
  width: 20px;
  height: 36px;
  transform: translateX(-50%);
  border: 2px solid rgba(247, 244, 237, 0.36);
  border-radius: 999px;
}

.scroll-cue span {
  position: absolute;
  left: 50%;
  top: 7px;
  width: 4px;
  height: 8px;
  border-radius: 999px;
  background: var(--gold);
  transform: translateX(-50%);
  animation: wheel 1.8s ease-in-out infinite;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.98fr);
  gap: clamp(3rem, 7vw, 6.5rem);
  align-items: center;
}

.section-copy h2,
.center-heading h2,
.final-cta h2 {
  margin-top: 0.8rem;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
}

.section-lead,
.center-heading p,
.final-cta p {
  color: var(--muted);
  font-size: 1.05rem;
}

.section-copy .section-lead {
  margin: 1.35rem 0 0;
  max-width: 620px;
}

.fault-list {
  display: grid;
  gap: 1.35rem;
  margin-top: 2.4rem;
}

.fault-item {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 0.9rem;
  align-items: start;
}

.fault-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #ffd5d1;
  background: rgba(200, 77, 71, 0.16);
  border: 1px solid rgba(200, 77, 71, 0.3);
  font-weight: 900;
  line-height: 1;
}

.fault-item h3,
.benefit-list h3 {
  margin: 0;
  font-size: 1.04rem;
  letter-spacing: -0.02em;
}

.fault-item p,
.benefit-list p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.built-line {
  margin: 2.6rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.105);
  font-weight: 800;
  font-size: 1.32rem;
}

.built-line span {
  color: var(--gold);
}

.diagnostic-card,
.system-card,
.leader-card,
.delivery-card,
.metrics-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  overflow: hidden;
}

.diagnostic-card::before,
.system-card::before,
.leader-card::before,
.delivery-card::before,
.metrics-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 20% 0%, rgba(213, 177, 92, 0.13), transparent 22rem);
  opacity: 0.7;
}

.diagnostic-card {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.diagnostic-image {
  border-radius: 17px;
  overflow: hidden;
  background: #020202;
  border: 1px solid rgba(255, 255, 255, 0.065);
}

.diagnostic-image img {
  aspect-ratio: 16 / 8.2;
  width: 100%;
  object-fit: cover;
}

.leakage-panel {
  position: relative;
  margin-top: 1.25rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 16px;
  background: rgba(4, 4, 4, 0.6);
}

.leakage-panel h3 {
  margin: 0 0 0.8rem;
  text-transform: uppercase;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
}

.leakage-panel li {
  color: var(--muted);
  font-size: 0.93rem;
  margin-top: 0.45rem;
}

.leakage-panel li::before {
  content: "×";
  color: var(--red);
  margin-right: 0.55rem;
}

.center-heading {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.center-heading p:not(.section-kicker) {
  margin: 1.1rem auto 0;
  max-width: 680px;
}

.service-grid,
.why-grid {
  display: grid;
  gap: 1.75rem;
  margin-top: 4.3rem;
}

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

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

.system-card,
.leader-card {
  padding: clamp(1.55rem, 3vw, 2.15rem);
  min-height: 310px;
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.system-card:hover,
.leader-card:hover {
  transform: translateY(-6px);
  border-color: rgba(213, 177, 92, 0.34);
  background:
    linear-gradient(145deg, rgba(213, 177, 92, 0.06), rgba(255, 255, 255, 0.025)),
    var(--panel);
}

.card-icon,
.small-icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--gold-2);
  background: rgba(213, 177, 92, 0.12);
  border: 1px solid rgba(213, 177, 92, 0.13);
  box-shadow: inset 0 0 24px rgba(213, 177, 92, 0.06);
  font-weight: 900;
  font-size: 1.18rem;
}

.system-card h3,
.leader-card h3 {
  position: relative;
  margin-top: 1.45rem;
  font-size: 1.45rem;
  letter-spacing: -0.035em;
}

.system-card p,
.leader-card p {
  position: relative;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.system-card ul,
.leader-card ul {
  position: relative;
  margin-top: 1.35rem;
  display: grid;
  gap: 0.55rem;
  color: rgba(247, 244, 237, 0.88);
  font-size: 0.95rem;
}

.system-card li::before {
  content: "•";
  color: var(--gold);
  margin-right: 0.5rem;
}

.check-list li::before {
  content: "✓";
  color: var(--gold);
  margin-right: 0.6rem;
}

.center-action {
  text-align: center;
  margin-top: 2.35rem;
}

.text-link {
  display: inline-flex;
  color: var(--gold-2);
  font-weight: 800;
  border-bottom: 1px solid rgba(213, 177, 92, 0.55);
  padding-bottom: 0.22rem;
}

.scarcity-note {
  width: max-content;
  max-width: 100%;
  margin: 3rem auto 0;
  color: var(--muted);
  font-size: 0.94rem;
  text-align: center;
}

.scarcity-note::before {
  content: "▣";
  color: var(--gold);
  margin-right: 0.55rem;
}

.section-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  border-bottom: 1px solid rgba(255, 255, 255, 0.075);
}

.delivery-card {
  margin-top: 2.5rem;
  padding: clamp(1.5rem, 4vw, 2.8rem);
}

.delivery-card ul {
  position: relative;
  display: grid;
  gap: 1.25rem;
}

.delivery-card li {
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
}

.delivery-card li span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(213, 177, 92, 0.16);
  color: var(--gold-2);
}

.delivery-card p {
  position: relative;
  margin: 2.3rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  font-weight: 800;
}

.delivery-card strong {
  color: var(--gold);
}

.proof-layout {
  align-items: start;
}

.benefit-list {
  display: grid;
  gap: 1.45rem;
  margin-top: 2.4rem;
}

.benefit-list article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 1rem;
  align-items: start;
}

.small-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 0.95rem;
}

.metrics-card {
  padding: clamp(1.4rem, 3vw, 2.5rem);
}

.metric-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem 1.2rem;
}

.metric-grid div {
  min-height: 92px;
}

.metric-grid strong {
  display: block;
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.metric-grid span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.metrics-card p {
  position: relative;
  margin: 2.2rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.095);
  text-align: center;
  color: var(--muted);
}

.metrics-card strong {
  color: var(--text);
}

.final-cta {
  position: relative;
  padding: 120px 0;
  text-align: center;
  overflow: hidden;
}

.cta-bg {
  background-image:
    linear-gradient(180deg, rgba(7, 7, 7, 0.52), rgba(7, 7, 7, 0.94)),
    radial-gradient(circle at 50% 48%, rgba(7, 7, 7, 0.18), rgba(7, 7, 7, 0.78)),
    url("assets/apex-system-network-texture.png");
  background-position: center;
  background-size: cover;
  opacity: 0.95;
}

.final-cta .container {
  position: relative;
  z-index: 2;
}

.final-cta h2 {
  margin-inline: auto;
  max-width: 880px;
}

.final-cta p:not(.section-kicker) {
  max-width: 670px;
  margin: 1.4rem auto 0;
}

.centered-actions {
  justify-content: center;
}

.site-footer {
  padding: 72px 0 26px;
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.085);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.55fr));
  gap: 3rem;
}

.footer-logo {
  width: min(340px, 100%);
  margin-bottom: 1rem;
}

.site-footer p,
.footer-bottom {
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer h3 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.site-footer a,
.footer-contact-link {
  display: block;
  margin-top: 0.65rem;
  color: rgba(247, 244, 237, 0.84);
  transition: color 0.2s ease;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--gold-2);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 2rem;
  margin-top: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@keyframes slowDrift {
  from { transform: scale(1.015) translate3d(0, 0, 0); }
  to { transform: scale(1.045) translate3d(-1.2%, -0.6%, 0); }
}

@keyframes wheel {
  0%, 100% { opacity: 0.25; transform: translate(-50%, 0); }
  40% { opacity: 1; transform: translate(-50%, 9px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

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

@media (max-width: 980px) {
  .header-inner {
    min-height: 82px;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 112;
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 2rem;
    padding: 7rem 1.5rem 2rem;
    background: rgba(7, 7, 7, 0.96);
    backdrop-filter: blur(22px);
    transform: translateY(-105%);
    transition: transform 0.3s ease;
    font-size: 1.2rem;
  }

  .site-nav.is-open {
    transform: translateY(0);
  }

  .nav-cta {
    width: min(100%, 320px);
  }

  .hero {
    min-height: 880px;
    padding-top: 128px;
  }

  .split-layout,
  .proof-layout {
    grid-template-columns: 1fr;
  }

  .service-grid,
  .why-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .leader-card,
  .system-card {
    min-height: auto;
  }
}

@media (max-width: 640px) {
  .container,
  .container.narrow {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand img {
    width: min(68vw, 290px);
  }

  .section-dark,
  .section-panel,
  .final-cta {
    padding: 82px 0;
  }

  .hero {
    min-height: 820px;
    padding: 116px 0 72px;
  }

  .hero-bg {
    background-image:
      linear-gradient(90deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.72)),
      linear-gradient(180deg, rgba(7, 7, 7, 0.22), rgba(7, 7, 7, 0.92)),
      url("assets/apex-hero-revenue-infrastructure.png");
    background-position: 58% center;
  }

  h1 {
    font-size: clamp(2.75rem, 14vw, 4.2rem);
  }

  .hero-actions,
  .centered-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .nav-cta {
    width: 100%;
  }

  .diagnostic-image img {
    aspect-ratio: 4 / 3;
  }

  .metric-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .metric-grid div {
    min-height: 72px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

/*
  Design philosophy reminder: Executive Dark Modernism with Revenue-Operations Futurism.
  Modal styling must feel like a premium inline extension of the existing Apex site, not a redesign.
*/

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 240;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-shell.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(213, 177, 92, 0.16), transparent 30rem),
    rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(14px);
}

.inquiry-modal {
  position: relative;
  width: min(100%, 780px);
  max-height: min(90svh, 860px);
  overflow-y: auto;
  padding: clamp(1.35rem, 4vw, 2.6rem);
  border-radius: var(--radius);
  border: 1px solid rgba(213, 177, 92, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(9, 9, 8, 0.97);
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.68), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.24s ease;
}

.modal-shell.is-open .inquiry-modal {
  transform: translateY(0) scale(1);
}

.inquiry-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(circle at 18% 0%, rgba(213, 177, 92, 0.12), transparent 22rem),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  opacity: 0.58;
}

.inquiry-modal > * {
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
  font-size: 1.55rem;
  line-height: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover,
.modal-close:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(213, 177, 92, 0.42);
  background: rgba(213, 177, 92, 0.1);
}

.inquiry-modal h2 {
  margin-top: 0.65rem;
  padding-right: 2.6rem;
  font-size: clamp(2rem, 5vw, 3.45rem);
}

.inquiry-modal p:not(.section-kicker) {
  max-width: 650px;
  margin: 1rem 0 0;
  color: var(--muted);
}

.inquiry-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.inquiry-form label {
  display: grid;
  gap: 0.45rem;
  color: rgba(247, 244, 237, 0.88);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: -0.005em;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.34);
  color: var(--text);
  padding: 0.9rem 1rem;
  font: inherit;
  font-weight: 600;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.inquiry-form textarea {
  resize: vertical;
  min-height: 128px;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
  color: rgba(185, 180, 170, 0.55);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: rgba(213, 177, 92, 0.58);
  background: rgba(0, 0, 0, 0.46);
  box-shadow: 0 0 0 4px rgba(213, 177, 92, 0.1);
}

.inquiry-form select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 22px, calc(100% - 12px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.form-submit {
  margin-top: 0.4rem;
  width: 100%;
}

.form-submit:disabled {
  opacity: 0.72;
  cursor: wait;
}

.form-note {
  margin: 0 !important;
  color: rgba(185, 180, 170, 0.76) !important;
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 640px) {
  .modal-shell {
    align-items: end;
    padding: 0.75rem;
  }

  .inquiry-modal {
    width: 100%;
    max-height: 92svh;
    border-radius: 20px;
    padding: 1.25rem;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .inquiry-modal h2 {
    padding-right: 2.4rem;
  }
}
