/* ============== ROOT TOKENS ============== */
:root {
  --green: #1bc704;
  --green-soft: rgba(27, 199, 4, 0.12);
  --green-dim: rgba(27, 199, 4, 0.5);
  --violet: #8B5CF6;
  --violet-soft: rgba(139, 92, 246, 0.12);
  --violet-dim: rgba(139, 92, 246, 0.5);

  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.12);
  --cyan: #06b6d4;
  --cyan-soft: rgba(6, 182, 212, 0.12);
  --pink: #ec4899;
  --pink-soft: rgba(236, 72, 153, 0.12);
  --red: #dc2626;
  --red-soft: rgba(220, 38, 38, 0.12);
  --blue: #2563eb;
  --blue-soft: rgba(37, 99, 235, 0.12);

  --bg-0: #050510;
  --bg-1: #0B0B14;
  --bg-2: #11111c;
  --bg-card: #14141f;
  --bg-card-2: #1a1a26;

  --text: #ffffff;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --max-w: 1200px;
  --section-pad-y: clamp(80px, 12vw, 140px);
  --container-pad-x: clamp(20px, 5vw, 64px);

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-1);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 2px 6px;
  background: rgba(139, 92, 246, 0.10);
  border-radius: 4px;
  color: #d8c8ff;
}

.hidden { display: none !important; }

/* ============== SHARED PRIMITIVES ============== */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--container-pad-x);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 22px;
  display: inline-block;
}
.eyebrow.violet { color: var(--violet); }
.section-title {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 22px;
  text-wrap: balance;
}
.section-title.small {
  font-size: clamp(26px, 3.4vw, 38px);
}
.section-sub {
  font-size: clamp(17px, 1.6vw, 21px);
  color: var(--text-muted);
  max-width: 56ch;
  line-height: 1.5;
}
section.block {
  padding: var(--section-pad-y) 0;
  position: relative;
}
section.block + section.block { border-top: 1px solid var(--border); }
.section-head { margin-bottom: 64px; }
.body-block {
  max-width: 64ch;
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.7;
}
.body-block + .body-block { margin-top: 18px; }
.body-block strong { color: #fff; font-weight: 500; }

/* ============== HEADER ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--container-pad-x);
  background: linear-gradient(to bottom, rgba(5,5,16,0.7), rgba(5,5,16,0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.logo-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
  max-width: var(--max-w);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  height: 28px;
}
.logo-sachsensolar img {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}
.logo-catalyx {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: #fff;
}
.logo-catalyx img {
  height: 26px; width: 26px;
  object-fit: contain;
}
.logo-catalyx em {
  font-style: normal;
  font-weight: 400;
  color: var(--violet);
  margin-left: 2px;
}
.gradient-stripe {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--green), var(--violet));
  opacity: 0.6;
  max-width: 420px;
}

/* ============== STICKY SUB-NAV ============== */
.sub-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(5, 5, 16, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transform: translateY(-100%);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.sub-nav.visible { transform: translateY(0); }
.sub-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px var(--container-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.sub-nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}
.sub-nav-links a {
  transition: color 200ms;
  padding: 6px 0;
}
.sub-nav-links a:hover { color: #fff; }
.sub-nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--green);
  border: 1px solid var(--green-dim);
  padding: 8px 14px;
  border-radius: 6px;
  transition: all 200ms;
}
.sub-nav-cta:hover {
  background: var(--green);
  color: var(--bg-0);
  border-color: var(--green);
}

/* ============== HERO ============== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px var(--container-pad-x) 80px;
  background: var(--bg-0);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  transform-origin: center;
  transition: transform 400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero-image {
  position: absolute;
  inset: 0;
  background-image: url('assets/hero-bg.png');
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.hero-glow-pulse {
  position: absolute;
  top: 50%; right: 0;
  width: 70%;
  height: 80%;
  transform: translateY(-50%);
  background: radial-gradient(ellipse 60% 50% at 60% 50%, rgba(27, 199, 4, 0.6) 0%, rgba(27, 199, 4, 0) 70%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: glow-pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.25; }
}
.hero-particles {
  position: absolute;
  top: 0; right: 0;
  width: 33%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  bottom: -10px;
  animation: drift linear infinite;
  filter: blur(0.3px);
}
.particle.green {
  background: rgba(120, 240, 100, 0.7);
  box-shadow: 0 0 4px rgba(27, 199, 4, 0.6);
}
@keyframes drift {
  0% { transform: translateY(0) translateX(0); opacity: 0; }
  10% { opacity: 0.6; }
  90% { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(var(--drift-x, 20px)); opacity: 0; }
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,16,0.85) 0%, rgba(5,5,16,0.3) 40%, rgba(5,5,16,0) 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 50%;
  margin-left: 6%;
}
.hero-content .eyebrow {
  color: var(--green);
  margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(38px, 5.2vw, 70px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.04;
  margin-bottom: 28px;
  color: #fff;
}
.hero-headline .line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: line-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero-headline .line:nth-child(1) { animation-delay: 100ms; }
.hero-headline .line:nth-child(2) { animation-delay: 250ms; }
.hero-headline .line:nth-child(3) { animation-delay: 480ms; }
.hero-headline .accent {
  color: var(--green);
}
@keyframes line-in {
  to { opacity: 1; transform: translateY(0); }
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,0.85);
  margin-bottom: 18px;
  max-width: 38ch;
  opacity: 0;
  animation: fade-up 500ms ease-out 800ms forwards;
}
.hero-body {
  font-size: 15.5px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 48ch;
  opacity: 0;
  animation: fade-up 500ms ease-out 1000ms forwards;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 18px;
  opacity: 0;
  animation: fade-up 500ms ease-out 1200ms forwards;
}
.hero-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  transition: border-color 200ms, gap 200ms;
}
.hero-cta-primary:hover {
  border-color: var(--green);
  gap: 14px;
}
.hero-cta-primary .arrow {
  font-size: 20px;
  color: var(--green);
  animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}
.hero-cta-secondary {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 200ms;
}
.hero-cta-secondary:hover { color: var(--violet); }

.scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.scroll-hint-line {
  display: block;
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4), transparent);
  animation: scroll-line 2.5s ease-in-out infinite;
}
@keyframes scroll-line {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 1; }
}

/* ============== ABLAUF ============== */
.ablauf-bg { background: var(--bg-1); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.step-card {
  background: var(--bg-card);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background 240ms;
}
.step-card:hover { background: var(--bg-card-2); }
.step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.16em;
  font-weight: 500;
}
.step-title {
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.step-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============== HINTERGRUND ============== */
.hintergrund-bg { background: var(--bg-0); }
.bg-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 880px;
}
.bg-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: border-color 200ms, transform 200ms;
}
.bg-item:hover {
  border-color: rgba(139, 92, 246, 0.3);
  transform: translateY(-2px);
}
.bg-item-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--violet-soft);
  color: var(--violet);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bg-item:nth-child(1) .bg-item-icon { background: var(--green-soft); color: var(--green); }
.bg-item:nth-child(2) .bg-item-icon { background: var(--violet-soft); color: var(--violet); }
.bg-item:nth-child(3) .bg-item-icon { background: var(--amber-soft); color: var(--amber); }
.bg-item-content { flex: 1; min-width: 0; }
.bg-item-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.bg-item-body {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============== SZENARIEN ============== */
.szenarien-bg { background: var(--bg-1); }
.persona-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.persona-bonus-head {
  margin: 80px 0 32px;
}
.persona-card {
  position: relative;
  text-align: left;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 200ms, transform 200ms, box-shadow 200ms, background 200ms;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.persona-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
  background: var(--bg-card-2);
}
.persona-card.selected {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(27, 199, 4, 0.06), var(--bg-card));
  box-shadow: 0 0 0 1px var(--green), 0 8px 24px rgba(27, 199, 4, 0.18);
}
.persona-card.selected::after {
  content: "Ausgewählt";
  position: absolute;
  top: 14px;
  right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--bg-0);
  background: var(--green);
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.persona-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.persona-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--avatar-bg, var(--green));
  color: var(--avatar-fg, var(--bg-0));
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.persona-avatar.bonus-avatar svg {
  display: block;
}
.persona-meta { min-width: 0; }
.persona-name {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.persona-role {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}
.persona-scenario {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}
.persona-foot {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.persona-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--green-soft);
  font-weight: 500;
}
.persona-tag.violet { color: var(--violet); background: var(--violet-soft); }
.persona-tag.amber { color: var(--amber); background: var(--amber-soft); }
.persona-tag.cyan { color: var(--cyan); background: var(--cyan-soft); }
.persona-tag.pink { color: var(--pink); background: var(--pink-soft); }
.persona-tag.red { color: var(--red); background: var(--red-soft); }
.persona-tag.blue { color: var(--blue); background: var(--blue-soft); }
.persona-tag.dim { color: var(--text-dim); background: rgba(255,255,255,0.04); }
.persona-expect {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.5;
  font-style: italic;
}

/* ============== TEST CTA ============== */
.test-bg {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.test-bg::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 800px; height: 800px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 50% 50% at 50% 50%, rgba(27, 199, 4, 0.06), transparent 70%);
  pointer-events: none;
}
.test-card {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, var(--bg-card), var(--bg-card-2)) padding-box,
    linear-gradient(135deg, var(--green), var(--violet)) border-box;
  border: 1px solid transparent;
  border-radius: 20px;
  padding: 3px;
}
.test-card-inner {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-card-2));
  border-radius: 18px;
  padding: 56px 48px;
  text-align: center;
}
.test-card-inner .eyebrow {
  margin-bottom: 18px;
}
.test-card-inner .section-title {
  margin-bottom: 24px;
}
.test-quote {
  margin: 0 auto 32px;
  max-width: 580px;
  position: relative;
  padding: 24px 28px 24px 36px;
  background: rgba(255,255,255,0.03);
  border-left: 2px solid var(--green);
  border-radius: 0 8px 8px 0;
  text-align: left;
}
.test-quote-mark {
  position: absolute;
  top: 6px;
  left: 12px;
  font-family: Georgia, serif;
  font-size: 36px;
  color: var(--green);
  line-height: 1;
  opacity: 0.6;
}
.test-quote p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  font-style: italic;
}
.test-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 600;
  color: var(--bg-0);
  background: var(--green);
  border-radius: 10px;
  letter-spacing: -0.005em;
  transition: all 200ms;
  box-shadow: 0 2px 8px rgba(27, 199, 4, 0.25);
}
.btn-cta-primary:hover:not(:disabled) {
  background: #19b504;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 199, 4, 0.35);
}
.btn-cta-primary:disabled {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  cursor: not-allowed;
  box-shadow: none;
}
.btn-cta-primary .btn-icon {
  display: inline-flex;
  align-items: center;
}
.btn-cta-primary .btn-icon svg {
  display: block;
}
.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 22px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.02);
  border-radius: 10px;
  transition: all 200ms;
}
.btn-cta-secondary:hover {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.3);
}
.test-hint {
  font-size: 12px;
  color: var(--text-dim);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.test-hint-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(27,199,4,0.5);
  animation: pulse-ring 2s ease-out infinite;
}
@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(27,199,4,0.5); }
  100% { box-shadow: 0 0 0 10px rgba(27,199,4,0); }
}

.test-altcall {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.test-altcall-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.test-altcall-body {
  font-size: 16px;
  color: rgba(255,255,255,0.92);
  margin: 0 0 8px;
}
.test-altcall-number {
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--green);
  text-decoration: none;
  letter-spacing: 0.02em;
  font-weight: 600;
  border-bottom: 1px dashed rgba(27,199,4,0.4);
  padding-bottom: 1px;
  margin-left: 4px;
}
.test-altcall-number:hover {
  border-bottom-color: var(--green);
}
.test-altcall-note {
  font-size: 12.5px;
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 520px;
  margin: 6px auto 0;
}
.test-altcall-note code {
  font-family: var(--font-mono);
  font-size: 12px;
  background: rgba(255,255,255,0.06);
  padding: 1px 6px;
  border-radius: 3px;
  color: rgba(255,255,255,0.85);
}

/* ============== CAPABILITY LIST ============== */
.kann-bg { background: var(--bg-0); }
.capability-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 32px;
  max-width: 900px;
}
.capability-list li {
  font-size: 15.5px;
  color: rgba(255,255,255,0.9);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.5;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cap-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

/* ============== HINWEISE ============== */
.hinweise-bg { background: var(--bg-1); }
.hinweise-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 0;
  border-left: 2px solid var(--violet);
  padding-left: 36px;
}
.hinweise-wrap .section-title {
  font-size: clamp(28px, 3.6vw, 40px);
}

/* ============== FEEDBACK REMINDER ============== */
.feedback-bg {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}
.feedback-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 40% at 50% 50%, rgba(139,92,246,0.08), transparent);
  pointer-events: none;
}
.feedback-wrap {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.feedback-wrap .section-sub { margin: 0 auto 36px; }
.feedback-cta-row {
  display: flex;
  justify-content: center;
  gap: 14px;
}

/* ============== FOOTER ============== */
.site-footer {
  background: var(--bg-0);
  padding: 56px var(--container-pad-x) 32px;
  border-top: 1px solid var(--border);
}
.footer-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 32px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
  font-weight: 500;
}
.footer-col p,
.footer-col a {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============== MODAL ============== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5, 5, 16, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  animation: fade-in 200ms ease-out forwards;
}
.modal-backdrop.hidden {
  display: none;
  animation: none;
}
@keyframes fade-in { to { opacity: 1; } }
.modal-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  animation: modal-in 350ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
@keyframes modal-in { to { transform: translateY(0); } }
.modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 8px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 200ms;
}
.modal-close:hover {
  background: rgba(255,255,255,0.05);
  color: #fff;
}
.modal-body {
  padding: 40px 36px 36px;
}
.modal-title {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 8px;
}
.modal-sub {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 28px;
}
.field {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  letter-spacing: -0.005em;
}
.field input[type="text"],
.field textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  color: #fff;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 150ms, background 150ms;
}
.field input[type="text"]::placeholder,
.field textarea::placeholder {
  color: var(--text-dim);
}
.field input[type="text"]:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green);
  background: rgba(27, 199, 4, 0.04);
}
.field textarea {
  resize: vertical;
  min-height: 60px;
  line-height: 1.5;
}
.star-row {
  display: flex;
  gap: 6px;
}
.star {
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  color: var(--text-dim);
  transition: all 150ms;
  border: 1px solid transparent;
}
.star svg { width: 22px; height: 22px; }
.star:hover {
  color: var(--green);
  background: var(--green-soft);
}
.star.active {
  color: var(--green);
  background: var(--green-soft);
  border-color: rgba(27, 199, 4, 0.3);
}
.star.active svg { fill: var(--green); }

.radio-pile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.radio-pill {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 150ms;
  font-size: 14.5px;
  color: rgba(255,255,255,0.85);
}
.radio-pill:hover { background: rgba(255,255,255,0.05); border-color: var(--border-strong); }
.radio-pill input {
  appearance: none;
  width: 16px; height: 16px;
  border: 1.5px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  margin: 0;
  flex-shrink: 0;
  position: relative;
  transition: all 150ms;
}
.radio-pill input:checked {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 3px var(--bg-card);
}
.radio-pill:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
  color: #fff;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.modal-actions .btn-cta-primary {
  flex: 1;
  justify-content: center;
}
.modal-status {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-muted);
  min-height: 18px;
  text-align: center;
}
.modal-status.error { color: #F87171; }

.modal-success {
  padding: 64px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.modal-success.hidden { display: none; }
.success-check {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: check-pop 500ms cubic-bezier(0.2, 1.4, 0.4, 1);
}
@keyframes check-pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.modal-success h3 {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -0.01em;
}
.modal-success p {
  font-size: 15px;
  color: var(--text-muted);
}

/* ============== SCROLL REVEAL ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms ease-out, transform 600ms ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============== RESPONSIVE ============== */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr; }
  .persona-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .sub-nav-links { gap: 18px; font-size: 12px; }
  .hero-content { max-width: 65%; }
  .test-card-inner { padding: 48px 32px; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero { padding: 100px 24px 60px; min-height: 90vh; }
  .hero-vignette {
    background: linear-gradient(to bottom, rgba(5,5,16,0.4) 0%, rgba(5,5,16,0.85) 100%);
  }
  .hero-content { max-width: 100%; margin-left: 0; }
  .hero-particles { width: 100%; }
  .persona-grid { grid-template-columns: 1fr; }
  .bg-item { padding: 22px 22px; flex-direction: column; gap: 14px; }
  .field-row { grid-template-columns: 1fr; }
  .sub-nav-links { display: none; }
  .sub-nav-inner { justify-content: flex-end; }
  .footer-bottom { flex-direction: column; }
  .modal-body { padding: 32px 24px; }
  .test-card-inner { padding: 40px 24px; }

  /* Header: hide CATALYX wordmark on mobile */
  .logo-catalyx span { display: none; }
  .gradient-stripe { max-width: 200px; }
  .logo-lockup { gap: 12px; }
  .site-header { padding: 14px var(--container-pad-x); }
}

@media (max-width: 380px) {
  .hero-headline { font-size: 34px; line-height: 1.05; }
  .hero { padding: 90px 18px 50px; }
  .container { padding: 0 18px; }
  .star { width: 36px; height: 36px; }
  .test-card-inner { padding: 32px 20px; }
}

/* ============== REDUCED MOTION ============== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .hero-glow-pulse { display: none; }
  .hero-particles { display: none; }
  .scroll-hint { display: none; }
  .hero-bg { transform: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-headline .line { opacity: 1; transform: none; }
  .hero-sub, .hero-body, .hero-ctas { opacity: 1; }
  .test-hint-dot { animation: none; }
}
