
/* Atavacron v3 — premium phosphor consulting product
   Denser rhythm, stronger body contrast, scarce amber accents. */

:root {
  --bg: #0a0f0c;
  --bg-deep: #070b09;
  --bg-elevated: #0e1511;
  --bg-card: #121a15;
  --bg-card-hover: #162119;
  --border: #1e2a22;
  --border-strong: #2f4236;
  --text: #e0ebe2;
  --text-bright: #f5faf6;
  --text-muted: #a8b8ad;
  --text-dim: #6a7a6e;
  --phosphor: #7dff9a;
  --phosphor-bright: #a8ffbc;
  --phosphor-dim: #3d8f52;
  --phosphor-glow: rgba(125, 255, 154, 0.18);
  --phosphor-glow-strong: rgba(125, 255, 154, 0.32);
  --amber: #c9a86c;
  --amber-bright: #e0c08a;
  --amber-glow: rgba(201, 168, 108, 0.22);
  --focus: #7dff9a;
  --radius: 6px;
  --radius-lg: 10px;
  --font-sans: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --max: 40rem;
  --wide: 68rem;
  --space: clamp(1rem, 3.5vw, 1.75rem);
  --header-h: 3.5rem;
  --chat-z: 200;
  --ease: 0.18s ease;
  --section-pad: clamp(1.85rem, 4.5vw, 3rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-scan,
  .cursor-blink,
  body::after {
    display: none !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.58;
  color: var(--text);
  background: var(--bg-deep);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -12%, rgba(61, 143, 82, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 35% at 88% 18%, rgba(125, 255, 154, 0.05), transparent 48%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  -webkit-font-smoothing: antialiased;
}

/* Subtle CRT scanline + faint grid texture */
body::after {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  opacity: 0.035;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(0, 0, 0, 0.45) 2px,
      rgba(0, 0, 0, 0.45) 4px
    );
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(125, 255, 154, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 154, 0.35) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, black, transparent 75%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--phosphor);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--ease), opacity var(--ease);
}

a:hover {
  color: var(--phosphor-bright);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space);
  z-index: 10000;
  padding: 0.5rem 1rem;
  background: var(--phosphor);
  color: var(--bg-deep);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  position: relative;
  z-index: 1;
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 9, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-bright);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--phosphor);
}

.logo-mark {
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--phosphor);
  border-radius: 1px;
  box-shadow:
    0 0 10px var(--phosphor-glow-strong),
    0 0 3px var(--phosphor);
}

.logo-mark.small {
  width: 0.45rem;
  height: 0.45rem;
}

.logo-text {
  font-size: 1rem;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--phosphor);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a140a;
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 0 14px var(--amber-glow);
  transition: background var(--ease), box-shadow var(--ease);
}

.nav-cta:hover {
  background: var(--amber-bright);
  box-shadow: 0 0 20px var(--amber-glow);
}

/* —— Hero (dense two-column) —— */
.hero {
  position: relative;
  padding: clamp(1.5rem, 3.5vw, 2.35rem) 0 clamp(1.75rem, 4vw, 2.5rem);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 2rem;
    align-items: stretch;
  }
}

.hero-copy {
  min-width: 0;
}

.hero-glow {
  position: absolute;
  top: -15%;
  left: 8%;
  width: 55%;
  height: 65%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(125, 255, 154, 0.08), transparent 65%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(125, 255, 154, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(125, 255, 154, 0.5) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(180deg, black 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, black 0%, transparent 85%);
}

.eyebrow,
.section-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--phosphor);
  text-transform: uppercase;
}

.section-eyebrow {
  margin-bottom: 0.4rem;
  opacity: 0.9;
}

.cursor-blink {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  background: var(--phosphor);
  box-shadow: 0 0 8px var(--phosphor);
  animation: blink 1.1s step-end infinite;
  flex-shrink: 0;
}

@keyframes blink {
  50% { opacity: 0; }
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.85rem, 4.6vw, 2.85rem);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--text-bright);
  text-shadow:
    0 0 48px rgba(125, 255, 154, 0.14),
    0 1px 0 rgba(255, 255, 255, 0.04);
}

.lede {
  margin: 0 0 1.25rem;
  font-size: clamp(1.02rem, 1.9vw, 1.12rem);
  line-height: 1.52;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), color var(--ease), box-shadow var(--ease);
}

.btn-primary {
  background: var(--amber);
  color: #1a140a;
  border-color: var(--amber);
  box-shadow: 0 0 18px var(--amber-glow);
}

.btn-primary:hover {
  background: var(--amber-bright);
  color: #1a140a;
  box-shadow: 0 0 26px var(--amber-glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--phosphor-dim);
  color: var(--phosphor);
  box-shadow: 0 0 16px var(--phosphor-glow);
}

.btn-lg {
  padding: 0.85rem 1.55rem;
  font-size: 1rem;
}

/* Hero Tavvy mock — 2-turn conversation */
.hero-panel {
  display: none;
}

@media (min-width: 900px) {
  .hero-panel {
    display: block;
  }
}

.hero-panel__frame {
  height: 100%;
  min-height: 18.5rem;
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--phosphor-dim);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(125, 255, 154, 0.12),
    0 0 36px var(--phosphor-glow),
    0 12px 40px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-panel__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.hero-panel__status {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--phosphor);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--phosphor);
}

.hero-panel__title {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.hero-panel__body {
  flex: 1 1 auto;
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(125, 255, 154, 0.015) 3px,
      rgba(125, 255, 154, 0.015) 4px
    ),
    var(--bg-deep);
}

.hero-panel__msg {
  max-width: 96%;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.45;
  border-radius: var(--radius);
}

.hero-panel__msg--user {
  margin-left: auto;
  color: var(--bg-deep);
  background: var(--phosphor);
  border-bottom-right-radius: 2px;
}

.hero-panel__msg--bot {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.hero-panel__label {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}

.hero-panel__composer {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.hero-panel__input {
  flex: 1 1 auto;
  padding: 0.5rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
}

.hero-panel__send {
  flex: 0 0 auto;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a140a;
  background: var(--amber);
  border-radius: var(--radius);
}

.hero-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 40%,
    rgba(125, 255, 154, 0.04) 50%,
    transparent 60%
  );
  background-size: 200% 100%;
  animation: scan-sweep 14s ease-in-out infinite;
}

@keyframes scan-sweep {
  0%, 100% { background-position: 100% 0; }
  50% { background-position: 0% 0; }
}

/* —— Shared section titles —— */
.scenarios h2,
.how h2,
.proof h2,
.talk h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.8vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-bright);
}

.section-intro {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.section-intro strong {
  color: var(--text);
  font-weight: 600;
}

/* —— Where we help (scenario cards) —— */
.scenarios {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.scenario-grid {
  display: grid;
  gap: 0.95rem;
  margin: 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .scenario-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.scenario {
  padding: 1.2rem 1.15rem 1.3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease), transform var(--ease);
}

.scenario:hover {
  border-color: var(--phosphor-dim);
  background: var(--bg-card-hover);
  box-shadow:
    0 0 0 1px rgba(125, 255, 154, 0.1),
    0 0 28px var(--phosphor-glow),
    0 8px 24px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.scenario-tag {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 0.2rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(201, 168, 108, 0.1);
  border: 1px solid rgba(201, 168, 108, 0.28);
  border-radius: 999px;
}

.scenario h3 {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text-bright);
}

.scenario-sit {
  margin: 0 0 0.7rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.scenario-do {
  margin: 0;
  padding-top: 0.65rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.scenario-do strong {
  color: var(--phosphor);
  font-weight: 600;
}

/* —— How we work —— */
.how {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 55% 50% at 15% 0%, rgba(125, 255, 154, 0.05), transparent 55%),
    var(--bg-elevated);
}

.how-grid {
  display: grid;
  gap: 0.95rem;
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .how-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
}

.how-step {
  padding: 1.2rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-top: 2px solid var(--amber);
  transition: border-color var(--ease), box-shadow var(--ease), background var(--ease);
}

.how-step:hover {
  border-color: var(--phosphor-dim);
  border-top-color: var(--amber-bright);
  background: var(--bg-card-hover);
  box-shadow:
    0 0 0 1px rgba(201, 168, 108, 0.1),
    0 0 24px var(--amber-glow);
}

.how-num {
  display: block;
  margin-bottom: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--amber);
  text-shadow: 0 0 10px var(--amber-glow);
}

.how-step h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text-bright);
}

.how-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Sample deliverable callout */
.deliverable {
  padding: 1.15rem 1.25rem 1.25rem;
  background: rgba(201, 168, 108, 0.06);
  border: 1px solid rgba(201, 168, 108, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: 0 0 28px rgba(201, 168, 108, 0.08);
}

.deliverable-badge {
  display: inline-block;
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}

.deliverable h3 {
  margin: 0 0 0.45rem;
  font-size: 1.08rem;
  font-weight: 650;
  color: var(--text-bright);
}

.deliverable p {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 40rem;
}

/* —— What you leave with —— */
.proof {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
}

.proof-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 38rem;
}

.proof-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--text);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.proof-list li:hover {
  border-color: var(--phosphor-dim);
  box-shadow: 0 0 18px var(--phosphor-glow);
}

.proof-check {
  flex: 0 0 auto;
  width: 0.85rem;
  height: 0.85rem;
  margin-top: 0.2rem;
  background: var(--phosphor);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--phosphor-glow);
  clip-path: polygon(14% 44%, 0 65%, 36% 100%, 100% 18%, 82% 0, 36% 62%);
}

/* —— Talk CTA band —— */
.talk {
  padding: var(--section-pad) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 80% at 50% 100%, rgba(125, 255, 154, 0.08), transparent 55%),
    var(--bg-deep);
}

.talk-inner {
  max-width: var(--max);
}

.talk-inner > p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* —— Footer —— */
.site-footer {
  padding: 1.35rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
}

.footer-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-dim);
}

.footer-meta a {
  color: var(--text-dim);
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--phosphor);
}

.sep {
  margin: 0 0.4rem;
}

/* —— Tavvy (.ata-chat) —— */
.ata-chat {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right, 0px));
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  z-index: var(--chat-z);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  font-family: var(--font-sans);
}

.ata-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.15rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1a140a;
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 999px;
  cursor: pointer;
  box-shadow:
    0 0 20px var(--amber-glow),
    0 8px 24px rgba(0, 0, 0, 0.35);
  transition: background var(--ease), box-shadow var(--ease), transform var(--ease);
}

.ata-chat__launcher:hover {
  background: var(--amber-bright);
  box-shadow:
    0 0 28px var(--amber-glow),
    0 10px 28px rgba(0, 0, 0, 0.4);
}

.ata-chat__launcher[aria-expanded="true"] {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
}

.ata-chat__launcher-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 1px;
  background: #1a140a;
  box-shadow: 0 0 0 2px rgba(26, 20, 10, 0.25);
  animation: blink 1.2s step-end infinite;
}

.ata-chat__panel {
  width: min(100vw - 2rem, 22.5rem);
  max-height: min(70vh, 32rem);
  display: flex;
  flex-direction: column;
  background: var(--bg-deep);
  border: 1px solid var(--phosphor-dim);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgba(125, 255, 154, 0.12),
    0 0 40px var(--phosphor-glow),
    0 16px 48px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  transform-origin: bottom right;
  animation: ata-panel-in 0.22s ease;
}

.ata-chat__panel[hidden] {
  display: none !important;
}

@keyframes ata-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ata-chat__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.ata-chat__header-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ata-chat__status {
  width: 0.45rem;
  height: 0.45rem;
  background: var(--phosphor);
  border-radius: 1px;
  box-shadow: 0 0 8px var(--phosphor);
}

.ata-chat__title {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--phosphor);
}

.ata-chat__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease);
}

.ata-chat__close:hover {
  color: var(--phosphor);
  border-color: var(--border);
}

.ata-chat__messages {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 1rem 0.9rem;
  min-height: 10rem;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 3px,
      rgba(125, 255, 154, 0.015) 3px,
      rgba(125, 255, 154, 0.015) 4px
    ),
    var(--bg-deep);
}

.ata-chat__empty {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ata-chat__empty[hidden] {
  display: none !important;
}

.ata-chat__empty-line {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.ata-chat__suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ata-chat__chip {
  padding: 0.4rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.02em;
  color: var(--phosphor);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.ata-chat__chip:hover {
  border-color: var(--phosphor-dim);
  background: rgba(125, 255, 154, 0.06);
  box-shadow: 0 0 12px var(--phosphor-glow);
}

.ata-chat__msg {
  margin: 0 0 0.75rem;
  max-width: 95%;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  line-height: 1.5;
  border-radius: var(--radius);
}

.ata-chat__msg:last-child {
  margin-bottom: 0;
}

.ata-chat__msg--user {
  margin-left: auto;
  color: var(--bg-deep);
  background: var(--phosphor);
  border-bottom-right-radius: 2px;
}

.ata-chat__msg--bot {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-bottom-left-radius: 2px;
}

.ata-chat__msg--bot .ata-chat__msg-label {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--phosphor-dim);
}

.ata-chat__lead {
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  background: rgba(201, 168, 108, 0.06);
}

.ata-chat__lead[hidden] {
  display: none !important;
}

.ata-chat__lead-ask {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--amber);
}

.ata-chat__lead-form {
  display: flex;
  gap: 0.4rem;
}

.ata-chat__lead-form[hidden] {
  display: none !important;
}

.ata-chat__lead-success {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--phosphor);
}

.ata-chat__lead-success[hidden] {
  display: none !important;
}

.ata-chat__composer {
  display: flex;
  gap: 0.4rem;
  padding: 0.75rem 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.ata-chat__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.55rem 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.ata-chat__input::placeholder {
  color: var(--text-dim);
}

.ata-chat__input:focus {
  border-color: var(--phosphor-dim);
  box-shadow: 0 0 0 2px var(--phosphor-glow);
  outline: none;
}

.ata-chat__send {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--bg-deep);
  background: var(--phosphor);
  border: 1px solid var(--phosphor);
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--ease);
}

.ata-chat__send:hover {
  background: var(--phosphor-bright);
}

.ata-chat__send--amber {
  background: var(--amber);
  border-color: var(--amber);
  color: #1a140a;
}

.ata-chat__send--amber:hover {
  background: var(--amber-bright);
}

body.ata-chat-open {
  overflow: hidden;
}

@media (min-width: 540px) {
  body.ata-chat-open {
    overflow: auto;
  }
}

@media (max-width: 480px) {
  .nav ul {
    gap: 0.25rem 0.55rem;
  }

  .nav a {
    font-size: 0.78rem;
  }

  .nav-cta {
    padding: 0.35rem 0.6rem;
    font-size: 0.68rem;
  }

  .hero h1 {
    font-size: clamp(1.65rem, 7.5vw, 2rem);
  }

  .lede {
    font-size: 0.98rem;
  }
}
