/*
  Shared visual override for the private terminal / deep-web aesthetic.
  Loaded after the inline page styles so the existing layout and content stay intact.
*/

:root {
  --green: #5cffbd;
  --green-dark: #12d486;
  --black: #020403;
  --off-white: #f3f7ef;
  --muted: #a5ada6;
  --dim: #637067;
  --dark: #050907;
  --card: rgba(5, 12, 9, 0.92);
  --border: rgba(92, 255, 189, 0.18);
  --red: #ff4b3e;
  --cyan: #49d9ff;
  --amber: #f5c84b;
}

html {
  background: #020403;
}

body {
  background-color: #020403;
  background-image:
    linear-gradient(90deg, rgba(92, 255, 189, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(92, 255, 189, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, #020403 0%, #05100c 48%, #020403 100%);
  background-attachment: fixed;
  background-size: 54px 54px, 54px 54px, auto;
}

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

body::before {
  opacity: 0.2;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, transparent 0 31px, rgba(92, 255, 189, 0.03) 31px 32px);
  mix-blend-mode: screen;
}

body::after {
  opacity: 0.18;
  background:
    linear-gradient(115deg, transparent 0 34%, rgba(73, 217, 255, 0.08) 34.2%, transparent 34.8%),
    linear-gradient(245deg, transparent 0 66%, rgba(245, 200, 75, 0.07) 66.2%, transparent 66.8%);
}

::selection {
  background: var(--green);
  color: var(--black);
}

.nav {
  z-index: 1600;
  border-bottom: 1px solid rgba(92, 255, 189, 0.22);
  background:
    linear-gradient(90deg, rgba(2, 4, 3, 0.98), rgba(2, 10, 7, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 28px, rgba(92, 255, 189, 0.04) 28px 29px);
  box-shadow: 0 1px 0 rgba(92, 255, 189, 0.1), 0 18px 44px rgba(0, 0, 0, 0.45);
}

.nav-logo {
  color: var(--off-white);
  text-shadow: 0 0 18px rgba(92, 255, 189, 0.25);
}

.nav-logo::before {
  content: "~/ ";
  color: var(--green);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  font-weight: 500;
}

.language-toggle,
.nav-back {
  border-color: rgba(92, 255, 189, 0.22);
  background: rgba(0, 0, 0, 0.36);
}

.language-toggle a[aria-current="page"] {
  box-shadow: 0 0 18px rgba(92, 255, 189, 0.32);
}

.section {
  position: relative;
  isolation: isolate;
}

.section::before,
main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.44;
  background-image:
    linear-gradient(90deg, rgba(92, 255, 189, 0.032) 1px, transparent 1px),
    linear-gradient(rgba(92, 255, 189, 0.024) 1px, transparent 1px);
  background-size: 36px 36px;
}

.container,
.application {
  position: relative;
  z-index: 1;
}

.section.black {
  background:
    linear-gradient(180deg, rgba(2, 4, 3, 0.96), rgba(4, 11, 8, 0.96)),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(73, 217, 255, 0.035) 47px 48px);
}

.section.dark {
  background:
    linear-gradient(180deg, rgba(4, 10, 8, 0.98), rgba(1, 5, 4, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 34px, rgba(92, 255, 189, 0.035) 34px 35px);
}

.section.green-bg {
  background:
    linear-gradient(135deg, rgba(92, 255, 189, 0.98), rgba(28, 196, 128, 0.98)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.12) 1px, transparent 1px),
    linear-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
}

.eyebrow,
.section-label,
.hero-sub-stat,
.cta-note,
.metric-label,
.case-study-source,
.footer-bar,
.disclaimer p,
.dinner-cta-price,
label,
.nav-back {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.eyebrow::before,
.section-label::before,
.hero-sub-stat::before,
.cta-note::before {
  content: "> ";
  color: var(--cyan);
}

.section-label {
  color: rgba(92, 255, 189, 0.74);
}

.green-bg .section-label,
.green-bg .eyebrow {
  color: rgba(0, 0, 0, 0.68);
}

.divider {
  width: 132px;
  height: 1px;
  margin-bottom: 30px;
  background:
    repeating-linear-gradient(90deg, var(--green) 0 8px, transparent 8px 13px),
    linear-gradient(90deg, rgba(92, 255, 189, 0.95), transparent);
  box-shadow: 0 0 18px rgba(92, 255, 189, 0.38);
}

.green-bg .divider {
  background: repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0 8px, transparent 8px 13px);
  box-shadow: none;
}

h1,
h2,
h3 {
  text-shadow: 0 0 24px rgba(92, 255, 189, 0.16), 2px 0 0 rgba(255, 75, 62, 0.09);
}

h1::after {
  content: "_";
  display: inline-block;
  margin-left: 0.06em;
  color: var(--green);
  animation: terminal-cursor 1.08s steps(2, end) infinite;
}

.accent {
  color: var(--green);
  text-shadow: 0 0 22px rgba(92, 255, 189, 0.42);
}

.red {
  color: var(--red);
  text-shadow: 0 0 18px rgba(255, 75, 62, 0.24);
}

.body-text {
  color: var(--muted);
}

.body-text strong {
  color: var(--green);
}

.btn,
.submit {
  position: relative;
  border-radius: 0;
  border-color: rgba(92, 255, 189, 0.7);
  box-shadow: 4px 4px 0 rgba(92, 255, 189, 0.18);
  text-shadow: 0 0 12px rgba(0, 0, 0, 0.26);
}

.btn:hover,
.btn:focus-visible,
.submit:hover,
.submit:focus-visible {
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(92, 255, 189, 0.24), 0 0 28px rgba(92, 255, 189, 0.18);
}

.btn-green,
.submit {
  background: var(--green);
  color: var(--black);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.25);
}

.btn-dark {
  border-color: rgba(0, 0, 0, 0.82);
  background: #020403;
  color: var(--green);
}

.btn-outline-dark {
  border-color: rgba(0, 0, 0, 0.74);
  background: rgba(0, 0, 0, 0.06);
}

.hero {
  border-bottom-color: rgba(92, 255, 189, 0.2);
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(2, 4, 3, 0.98) 0%, rgba(2, 10, 7, 0.95) 52%, rgba(8, 38, 27, 0.74) 100%),
    linear-gradient(90deg, rgba(92, 255, 189, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(92, 255, 189, 0.05) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(2, 4, 3, 0) 0%, rgba(2, 4, 3, 0.24) 38%, rgba(92, 255, 189, 0.22) 100%),
    url("/assets/brand-character-hero.jpg") center right / cover no-repeat;
  opacity: 0.22;
  filter: grayscale(0.32) saturate(0.82) contrast(1.18);
}

.hero .container {
  border-left: 1px solid rgba(92, 255, 189, 0.26);
  padding-left: clamp(20px, 4vw, 42px);
}

.hero-ghost {
  color: rgba(92, 255, 189, 0.08);
  text-shadow: 0 0 46px rgba(92, 255, 189, 0.28);
}

.ticker {
  border-top: 1px solid rgba(92, 255, 189, 0.28);
  border-bottom: 1px solid rgba(92, 255, 189, 0.28);
  background:
    linear-gradient(90deg, rgba(2, 4, 3, 0.98), rgba(4, 16, 11, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 42px, rgba(92, 255, 189, 0.06) 42px 43px);
  color: var(--green);
  box-shadow: inset 0 0 26px rgba(92, 255, 189, 0.08);
}

.ticker-inner {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  padding: 20px 0;
  font-size: 39px;
  text-shadow: 0 0 12px rgba(92, 255, 189, 0.42);
}

.zero-big {
  color: var(--green);
  text-shadow: 0 0 34px rgba(92, 255, 189, 0.32);
}

.disclaimer {
  border-left-color: rgba(245, 200, 75, 0.72);
  background: linear-gradient(90deg, rgba(245, 200, 75, 0.06), transparent);
  padding: 16px 0 16px 18px;
}

.card,
.tree-item,
.metric,
.case-study-card,
.faq-item,
.form-panel {
  position: relative;
  border-color: rgba(92, 255, 189, 0.18);
  background:
    linear-gradient(180deg, rgba(7, 18, 13, 0.95), rgba(3, 7, 5, 0.96)),
    linear-gradient(90deg, rgba(92, 255, 189, 0.035) 1px, transparent 1px),
    linear-gradient(rgba(92, 255, 189, 0.026) 1px, transparent 1px);
  background-size: auto, 28px 28px, 28px 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 42px rgba(0, 0, 0, 0.22);
}

.card::before,
.tree-item::before,
.metric::before,
.case-study-card::before,
.faq-item::before,
.form-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--green), var(--cyan), transparent);
}

.card-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(92, 255, 189, 0.28);
  background: rgba(92, 255, 189, 0.055);
  box-shadow: inset 0 0 16px rgba(92, 255, 189, 0.08);
}

.card p,
.tree-body,
.faq-item p,
.case-study-body p {
  color: #a6afa8;
}

.errors-section h2 {
  max-width: 980px;
}

.errors-section .body-text {
  max-width: 760px;
}

.error-list {
  display: grid;
  margin-top: 54px;
  border: 1px solid rgba(92, 255, 189, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.error-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 18px;
  padding: 32px;
  border-bottom: 1px solid rgba(92, 255, 189, 0.14);
  background:
    linear-gradient(180deg, rgba(4, 9, 7, 0.82), rgba(2, 4, 3, 0.9)),
    linear-gradient(90deg, rgba(92, 255, 189, 0.025) 1px, transparent 1px);
  background-size: auto, 32px 32px;
}

.error-item:last-child {
  border-bottom: 0;
}

.error-num {
  color: rgba(255, 75, 62, 0.38);
  font-family: "Barlow Condensed", Impact, sans-serif;
  font-size: 58px;
  font-weight: 900;
  line-height: 0.9;
}

.error-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.error-copy h3 {
  max-width: 820px;
  font-size: 25px;
}

.error-copy p:not(.error-kicker) {
  max-width: 860px;
  margin: 14px 0 0;
  color: #8f9991;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.68;
}

.error-copy strong {
  color: #d6ddd5;
}

.freework-section {
  border-top: 8px solid var(--green);
  border-bottom: 8px solid var(--green);
}

.freework-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1fr);
  gap: 58px;
  align-items: center;
}

.freework-left h2 {
  max-width: 620px;
}

.freework-left .body-text strong {
  color: var(--off-white);
}

.freework-kicker {
  margin: 0 0 24px;
  color: #5f6a63;
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.freework-checklist {
  display: grid;
  gap: 18px;
}

.freecheck {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  color: #8f9991;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.55;
}

.freecheck-icon {
  color: var(--green);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 700;
}

.tree-num,
.metric-num {
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.tree-num {
  color: rgba(73, 217, 255, 0.55);
}

.metrics-grid {
  gap: 1px;
  border-color: rgba(92, 255, 189, 0.2);
  background: rgba(92, 255, 189, 0.2);
}

.metric {
  background:
    linear-gradient(180deg, rgba(5, 13, 10, 0.98), rgba(2, 5, 4, 0.98)),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(92, 255, 189, 0.04) 35px 36px);
}

.metric-label {
  color: #7d8a80;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.22;
}

.case-studies-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-top: 40px;
}

.case-study-card {
  overflow: hidden;
}

.case-study-media {
  border-bottom-color: rgba(92, 255, 189, 0.18);
  background: #010302;
}

.case-study-media img,
.visual-panel img {
  display: block;
  width: 100%;
  height: auto;
  filter: saturate(0.82) contrast(1.12);
}

.case-study-body {
  padding: 22px 20px 24px;
}

.case-study-source {
  display: inline-flex;
  margin-top: 18px;
  color: var(--cyan);
  font-family: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  text-decoration: none;
  text-transform: uppercase;
}

.agency-quote {
  color: var(--black);
  text-shadow: none;
}

.green-bg .body-text,
.dinner-cta-copy,
.dinner-cta-price {
  color: rgba(0, 0, 0, 0.74);
}

.dinner-cta-copy strong {
  color: #020403;
}

.footer-bar {
  border-top: 1px solid rgba(92, 255, 189, 0.16);
  padding-top: 22px;
}

main {
  position: relative;
  isolation: isolate;
}

.application {
  position: relative;
}

.form-panel {
  backdrop-filter: blur(14px);
}

.intro {
  color: var(--muted);
}

.budget-note {
  border-left-color: var(--amber);
  background: rgba(245, 200, 75, 0.08);
  color: #d8decf;
}

input,
select {
  border-color: rgba(92, 255, 189, 0.2);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.76), rgba(3, 8, 6, 0.9));
  color: var(--off-white);
}

input:focus,
select:focus {
  border-color: var(--green);
  outline-color: rgba(92, 255, 189, 0.22);
  box-shadow: 0 0 18px rgba(92, 255, 189, 0.14);
}

.visual-panel {
  border-color: rgba(92, 255, 189, 0.28);
  background: #020403;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.38);
}

.visual-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    linear-gradient(135deg, rgba(92, 255, 189, 0.24), rgba(2, 4, 3, 0.7));
}

.visual-panel::after {
  background: linear-gradient(135deg, rgba(2, 4, 3, 0.1), rgba(2, 4, 3, 0.82));
}

.visual-copy strong {
  color: var(--green);
  text-shadow: 0 0 22px rgba(92, 255, 189, 0.4);
}

@keyframes terminal-cursor {
  0%,
  46% {
    opacity: 1;
  }

  47%,
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  h1::after {
    animation: none;
  }
}

@media (max-width: 720px) {
  body {
    background-size: 38px 38px, 38px 38px, auto;
  }

  body::after {
    opacity: 0.1;
  }

  .hero .container {
    border-left: 0;
    padding-left: 20px;
  }

  .btn,
  .submit {
    box-shadow: 3px 3px 0 rgba(92, 255, 189, 0.18);
  }

  .ticker-inner {
    padding: 16px 0;
    font-size: 30px;
  }

  .error-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 20px;
  }

  .error-num {
    font-size: 44px;
  }

  .error-copy h3 {
    font-size: 22px;
  }

  .freework-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .case-studies-grid {
    grid-template-columns: 1fr;
  }

  .freecheck {
    font-size: 15px;
  }
}
