/* Shared visual system overrides */

:root {
  --marta-primary-text: #ffffff;
  --marta-accent-readable: #d74176;
  --marta-font-base: "DM Sans", sans-serif;
  --marta-font-display: "DM Sans", sans-serif;
  --marta-font-display-weight: 300;
}

body {
  font-family: var(--marta-font-base);
}

/* Former serif surfaces now use DM Sans Light. */
.font-serif {
  font-family: var(--marta-font-display) !important;
  font-weight: var(--marta-font-display-weight) !important;
  font-optical-sizing: auto;
}

/* Unify light-gray copy to white for readability. */
.text-gray-200,
.text-gray-300,
.text-gray-400,
[class^="text-gray-200/"],
[class*=" text-gray-200/"],
[class^="text-gray-300/"],
[class*=" text-gray-300/"],
[class^="text-gray-400/"],
[class*=" text-gray-400/"] {
  color: var(--marta-primary-text) !important;
}

[class*="placeholder:text-gray-200"]::placeholder,
[class*="placeholder:text-gray-300"]::placeholder,
[class*="placeholder:text-gray-400"]::placeholder {
  color: var(--marta-primary-text) !important;
  opacity: 0.8;
}

.text-brand-light {
  color: var(--marta-accent-readable) !important;
  font-weight: 600;
}

/* Hero accent words use color, not extra weight. */
h1 .text-brand-light,
h2 .text-brand-light {
  font-weight: inherit !important;
}

#dynamic-date-scramble {
  font-weight: inherit !important;
}

[class*="text-brand-light/70"] {
  color: rgba(215, 65, 118, 0.9) !important;
}

[class*="text-brand-light/50"] {
  color: rgba(215, 65, 118, 0.78) !important;
}

.calendly-inline-widget,
.calendly-inline-widget iframe {
  width: 100% !important;
  min-width: 0 !important;
}

/* Fail-safe: never hide page content if reveal scripts fail to execute. */
.reveal {
  opacity: 1 !important;
  transform: none !important;
}

@media (min-width: 768px) {
  /* Wider desktop header without increasing height. */
  #nav-container {
    max-width: 420px !important;
  }

  #nav-container.expanded,
  #nav-container:hover {
    max-width: min(1360px, calc(100vw - 3rem)) !important;
  }
}

@media (max-width: 767px) {
  #nav-container {
    max-width: calc(100vw - 2rem) !important;
    width: 100% !important;
  }

  #nav-container.expanded,
  #nav-container:hover {
    max-width: calc(100vw - 2rem) !important;
  }
}

/* Case Study Dossier Cards */
.case-study-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

@media (min-width: 1024px) {
  .case-study-card {
    flex-direction: row;
  }
}

.case-study-card__context {
  padding: 2.5rem;
  border-bottom: 1px solid rgba(232, 68, 127, 0.2);
}

@media (min-width: 768px) {
  .case-study-card__context {
    padding: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .case-study-card__context {
    width: 55%;
    border-bottom: none;
    border-right: 1px solid rgba(232, 68, 127, 0.2);
  }
}

.case-study-card__metrics {
  padding: 2.5rem;
  background: rgba(30, 15, 24, 0.6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}

@media (min-width: 768px) {
  .case-study-card__metrics {
    padding: 3.5rem;
  }
}

@media (min-width: 1024px) {
  .case-study-card__metrics {
    width: 45%;
  }
}

.case-study-card__stat {
  font-family: var(--marta-font-display);
  font-weight: var(--marta-font-display-weight);
  font-size: 2rem;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

@media (min-width: 768px) {
  .case-study-card__stat {
    font-size: 2.5rem;
  }
}

/* HubSpot embedded form overrides */
#hs-funnel-form-target .hs-form {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

#hs-funnel-form-target .hs-form fieldset {
  flex: 1 1 0;
  min-width: min(300px, 100%);
  max-width: none !important;
}

#hs-funnel-form-target .hs-form .hs-input {
  width: 100% !important;
  height: 3.5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.5rem;
  outline: none;
  transition: border-color 0.3s ease, background 0.3s ease;
}

#hs-funnel-form-target .hs-form .hs-input:focus {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

#hs-funnel-form-target .hs-form .hs-input::placeholder {
  color: rgba(255, 255, 255, 0.7) !important;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

#hs-funnel-form-target .hs-form .hs-submit {
  flex: 0 0 auto;
}

#hs-funnel-form-target .hs-form .hs-button {
  height: 3.5rem;
  padding: 0 2rem;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

#hs-funnel-form-target .hs-form .hs-button:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

#hs-funnel-form-target .hs-form label,
#hs-funnel-form-target .hs-form .hs-error-msgs {
  display: none !important;
}

#hs-funnel-form-target .submitted-message {
  color: #fff;
  font-family: "DM Sans", sans-serif;
  font-size: 0.875rem;
}

/* --- AMBIENT BACKGROUND GLOWS --- */
.ambient-glow-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.6;
  mix-blend-mode: screen;
}

.glow-cyan {
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  background: rgba(166, 228, 244, 0.12);
  top: 5%;
  right: -20%;
}

.glow-magenta {
  width: 60vw;
  height: 60vw;
  max-width: 800px;
  max-height: 800px;
  background: rgba(216, 43, 75, 0.15);
  bottom: -10%;
  left: -15%;
}

/* --- FROSTED GLASS CARDS --- */
.tech-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease;
}

.tech-panel:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Optional crosshair suppression for glass treatment */
.crosshairs::before,
.crosshairs::after {
  display: none !important;
}

/* --- TRANSLUCENT PILL BUTTONS --- */
a.btn-glass-pill,
button.btn-glass-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 56px;
  padding: 0 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  text-decoration: none;
}

a.btn-glass-pill:hover,
button.btn-glass-pill:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-glass-pill-sm {
  height: 44px;
  padding: 0 24px;
  font-size: 12px;
}

/* --- SECONDARY PILL BUTTONS --- */
a.btn-secondary-pill,
button.btn-secondary-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  height: 56px;
  padding: 0 36px;
  background: rgba(232, 68, 127, 0.08);
  border: 1px solid rgba(232, 68, 127, 0.45);
  border-radius: 9999px;
  color: #f8d8e5;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  white-space: nowrap;
  transition: all 0.3s ease;
  text-decoration: none;
}

a.btn-secondary-pill:hover,
button.btn-secondary-pill:hover {
  background: rgba(232, 68, 127, 0.16);
  border-color: rgba(232, 68, 127, 0.7);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(232, 68, 127, 0.18);
}

.btn-secondary-pill-sm {
  height: 44px;
  padding: 0 24px;
  font-size: 12px;
}

/* --- NAV RESOURCE CTA --- */
.btn-nav-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: #d74176;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn-nav-resource:hover {
  color: #fff;
}

.btn-nav-resource-block {
  border-color: rgba(199, 44, 108, 0.3);
  background: #2a1020;
}

.btn-nav-resource-block:hover {
  background: rgba(199, 44, 108, 0.1);
  border-color: rgba(199, 44, 108, 0.45);
}
