:root {
  --gold: #c8a24e;
  --gold-light: #f1d88b;
  --gold-dark: #73511f;
  --metallic-gold-gradient: linear-gradient(135deg, #76531f 0%, #bf9340 28%, #f1d88b 48%, #c8a24e 64%, #6d4b1d 100%);
  --dark-bg: #050506;
  --graphite: #111214;
  --border-gold-subtle: rgba(200, 162, 78, 0.24);
  --ink: #f3efe4;
  --muted: rgba(243, 239, 228, 0.68);
  --faint: rgba(243, 239, 228, 0.1);
  --panel: rgba(17, 18, 20, 0.78);
  --panel-strong: rgba(22, 23, 25, 0.96);
  --line: rgba(255, 255, 255, 0.1);
  --success: #8fd7b1;
  --danger: #f0a29c;
  --teal: #78a99c;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.46);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 100%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #070708 0%, var(--dark-bg) 48%, #0a0a0b 100%);
  background-size: 48px 48px, 96px 96px, auto;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  z-index: -2;
}

body::before {
  background:
    linear-gradient(112deg, rgba(200, 162, 78, 0.09), transparent 32%),
    linear-gradient(244deg, rgba(120, 169, 156, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 18%);
}

body::after {
  opacity: 0.08;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)' opacity='0.65'/%3E%3C/svg%3E");
  z-index: -1;
}

img,
svg {
  display: block;
}

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

button {
  border: 0;
}

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

::selection {
  background: rgba(200, 162, 78, 0.35);
  color: var(--ink);
}

.container {
  width: min(100% - 32px, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--border-gold-subtle);
  border-radius: 6px;
  padding: 10px 14px;
  background: var(--graphite);
  color: var(--ink);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(5, 5, 6, 0.44);
  transition: background 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  border-color: rgba(200, 162, 78, 0.16);
  background: rgba(5, 5, 6, 0.82);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 0 20px rgba(200, 162, 78, 0.18));
}

.brand-text {
  color: rgba(243, 239, 228, 0.9);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.desktop-nav {
  display: none;
  align-items: center;
  gap: 28px;
  color: rgba(243, 239, 228, 0.64);
  font-size: 0.88rem;
}

.desktop-nav a {
  transition: color 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--gold-light);
}

.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 6px;
  padding: 12px 18px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  transform: translateX(-120%) skewX(-16deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  content: "";
  transition: transform 620ms ease;
}

.btn:hover::before,
.btn:focus-visible::before {
  transform: translateX(120%) skewX(-16deg);
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
}

.btn-primary {
  border: 1px solid rgba(241, 216, 139, 0.58);
  background: var(--metallic-gold-gradient);
  color: #0d0b07;
  box-shadow: 0 14px 34px rgba(200, 162, 78, 0.18), inset 0 1px rgba(255, 255, 255, 0.36);
}

.btn-secondary {
  border: 1px solid var(--border-gold-subtle);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(241, 216, 139, 0.46);
  background: rgba(255, 255, 255, 0.07);
}

.btn-small {
  display: none;
  min-height: 40px;
  padding: 10px 15px;
  font-size: 0.86rem;
}

.btn-large {
  min-height: 52px;
  padding-inline: 24px;
}

.mobile-toggle {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
}

.mobile-toggle span {
  display: block;
  width: 18px;
  height: 1px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.site-header.menu-open .mobile-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .mobile-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.menu-open .mobile-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: grid;
  max-height: 0;
  overflow: hidden;
  gap: 2px;
  padding: 0 16px;
  background: rgba(5, 5, 6, 0.94);
  transition: max-height 260ms ease, padding 260ms ease;
}

.site-header.menu-open .mobile-nav {
  max-height: 420px;
  padding-bottom: 18px;
}

.mobile-nav a,
.mobile-nav button {
  width: 100%;
}

.mobile-nav a {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 14px 2px;
  color: rgba(243, 239, 228, 0.78);
}

.section-shell,
.section {
  position: relative;
  overflow: hidden;
}

.hero {
  min-height: 92svh;
  padding: 120px 0 58px;
}

.hero::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 5, 6, 0.15), rgba(5, 5, 6, 0.88)),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(200, 162, 78, 0.055) 121px, transparent 122px);
  content: "";
}

.hero-inner {
  position: relative;
  display: grid;
  min-height: calc(92svh - 178px);
  align-items: center;
  gap: 42px;
}

.hero-copy {
  max-width: 920px;
}

.hero-logo {
  width: 132px;
  height: 132px;
  margin-bottom: 22px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 18px 42px rgba(200, 162, 78, 0.22));
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.04;
}

h1 {
  max-width: 900px;
  font-size: 3.15rem;
}

.hero-subtitle {
  max-width: 820px;
  margin: 26px 0 0;
  color: rgba(243, 239, 228, 0.76);
  font-size: 1.06rem;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 34px;
}

.hero-proof {
  display: grid;
  gap: 12px;
  border-top: 1px solid var(--border-gold-subtle);
  padding-top: 22px;
}

.hero-proof div {
  display: grid;
  gap: 6px;
}

.hero-proof span {
  background: var(--metallic-gold-gradient);
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  -webkit-background-clip: text;
}

.hero-proof p {
  margin: 0;
  color: rgba(243, 239, 228, 0.62);
  font-size: 0.92rem;
}

.section {
  padding: 96px 0;
}

.section::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.018), transparent);
  content: "";
  pointer-events: none;
}

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

.section-heading.centered {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 14px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-heading h2,
.final-cta h2,
.modal-heading h2 {
  font-size: 2.32rem;
}

.section-heading p,
.final-cta p,
.modal-heading p,
.intelligence-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.82;
}

.service-grid {
  display: grid;
  gap: 16px;
}

.service-card,
.signal-card,
.metric-card,
.method-step {
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.06);
}

.service-card {
  display: grid;
  min-height: 274px;
  align-content: start;
  gap: 14px;
  padding: 24px;
  color: var(--ink);
  text-align: left;
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease, box-shadow 220ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(241, 216, 139, 0.44);
  background: linear-gradient(180deg, rgba(200, 162, 78, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 22px 64px rgba(0, 0, 0, 0.28), inset 0 1px rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 8px;
  background: rgba(200, 162, 78, 0.08);
  color: var(--gold-light);
}

.service-icon svg,
.modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.service-kicker {
  color: rgba(241, 216, 139, 0.72);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-card strong {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
}

.service-card > span:last-child {
  color: var(--muted);
}

.section-intelligence {
  background: rgba(255, 255, 255, 0.018);
}

.intelligence-layout,
.method-layout {
  display: grid;
  gap: 34px;
}

.intelligence-copy {
  max-width: 620px;
}

.signal-grid,
.metrics-grid,
.method-steps {
  display: grid;
  gap: 16px;
}

.signal-card,
.metric-card,
.method-step {
  padding: 24px;
}

.signal-card span,
.method-step span {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 50%;
  color: var(--gold-light);
  font-size: 0.8rem;
  font-weight: 800;
}

.signal-card h3,
.method-step h3 {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
}

.signal-card p,
.metric-card p,
.method-step p {
  margin: 12px 0 0;
  color: var(--muted);
}

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

.metric-card {
  min-height: 190px;
}

.metric-card strong {
  display: block;
  background: var(--metallic-gold-gradient);
  background-clip: text;
  color: transparent;
  font-family: var(--serif);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.05;
  -webkit-background-clip: text;
}

.final-cta {
  padding-bottom: 112px;
}

.final-cta-inner {
  max-width: 860px;
  border-top: 1px solid var(--border-gold-subtle);
  padding-top: 42px;
}

.final-cta .btn {
  margin-top: 28px;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 34px 0;
  background: rgba(0, 0, 0, 0.32);
}

.footer-inner {
  display: grid;
  gap: 22px;
  align-items: center;
  color: rgba(243, 239, 228, 0.62);
}

.footer-inner > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-inner p {
  margin: 0;
  color: rgba(243, 239, 228, 0.84);
  font-weight: 700;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.74);
  backdrop-filter: blur(16px);
}

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

.modal-panel {
  position: relative;
  width: min(100%, 900px);
  max-height: min(90vh, 920px);
  overflow: auto;
  border: 1px solid var(--border-gold-subtle);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), transparent 28%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.diagnostic-panel {
  padding: 28px;
}

.service-panel {
  max-width: 680px;
  padding: 30px;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 16px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(243, 239, 228, 0.82);
}

.modal-close:hover,
.modal-close:focus-visible {
  border-color: var(--border-gold-subtle);
  color: var(--gold-light);
}

.modal-heading {
  max-width: 680px;
  padding-right: 44px;
}

.diagnostic-form {
  margin-top: 26px;
}

.hp-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hidden-google-frame {
  display: none;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.field span {
  color: rgba(243, 239, 228, 0.84);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  outline: none;
  background: rgba(255, 255, 255, 0.045);
  color: var(--ink);
  padding: 13px 14px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field textarea {
  resize: vertical;
}

.field select {
  color-scheme: dark;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(241, 216, 139, 0.54);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(200, 162, 78, 0.1);
}

.field small {
  min-height: 18px;
  color: var(--danger);
  font-size: 0.8rem;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(240, 162, 156, 0.78);
}

.form-actions {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.form-actions p {
  margin: 0;
  color: rgba(243, 239, 228, 0.5);
  font-size: 0.86rem;
}

.fallback-link {
  color: rgba(241, 216, 139, 0.82);
  text-decoration: underline;
  text-decoration-color: rgba(241, 216, 139, 0.34);
  text-underline-offset: 3px;
}

.fallback-link:hover,
.fallback-link:focus-visible {
  color: var(--gold-light);
  text-decoration-color: var(--gold-light);
}

.privacy-note {
  margin: 16px 0 0;
  color: rgba(243, 239, 228, 0.48);
  font-size: 0.78rem;
  line-height: 1.65;
}

.form-error,
.form-success {
  margin-top: 18px;
  border-radius: 6px;
  padding: 14px 16px;
}

.form-error {
  border: 1px solid rgba(240, 162, 156, 0.4);
  background: rgba(240, 162, 156, 0.1);
  color: #ffd6d2;
}

.form-success {
  border: 1px solid rgba(143, 215, 177, 0.42);
  background: rgba(143, 215, 177, 0.12);
  color: #d8f7e7;
}

.service-detail-list {
  display: grid;
  gap: 12px;
  margin: 26px 0;
  padding: 0;
  list-style: none;
}

.service-detail-list li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.service-detail-list li::before {
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--metallic-gold-gradient);
  content: "";
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 680ms ease, transform 680ms ease;
}

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

.is-loading {
  pointer-events: none;
}

.is-loading::after {
  width: 16px;
  height: 16px;
  margin-left: 10px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: rgba(0, 0, 0, 0.72);
  border-radius: 50%;
  content: "";
  animation: spin 720ms linear infinite;
}

body.modal-open {
  overflow: hidden;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

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

@media (min-width: 560px) {
  .hero-actions,
  .form-actions {
    display: flex;
    align-items: center;
  }

  .hero-proof {
    grid-template-columns: repeat(3, 1fr);
  }

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

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

  .field-wide {
    grid-column: 1 / -1;
  }
}

@media (min-width: 760px) {
  .container {
    width: min(100% - 48px, 1180px);
  }

  .btn-small {
    display: inline-flex;
  }

  h1 {
    font-size: 4.4rem;
  }

  .section-heading h2,
  .final-cta h2,
  .modal-heading h2 {
    font-size: 3.05rem;
  }

  .service-grid,
  .signal-grid,
  .method-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .diagnostic-panel {
    padding: 36px;
  }

  .footer-inner {
    grid-template-columns: 1fr auto auto;
  }
}

@media (min-width: 1020px) {
  .desktop-nav {
    display: flex;
  }

  .mobile-toggle {
    display: none;
  }

  .mobile-nav {
    display: none;
  }

  .hero {
    padding-top: 128px;
  }

  h1 {
    font-size: 5.35rem;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

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

  .intelligence-layout,
  .method-layout {
    grid-template-columns: 0.92fr 1.08fr;
    align-items: start;
  }

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

  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 420px) {
  .brand-text {
    max-width: 134px;
    white-space: normal;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-logo {
    width: 112px;
    height: 112px;
  }

  h1 {
    font-size: 2.54rem;
  }

  .section-heading h2,
  .final-cta h2,
  .modal-heading h2 {
    font-size: 2.05rem;
  }

  .diagnostic-panel,
  .service-panel {
    padding: 24px 18px;
  }
}
