/* ═══════════════════════════════════════════════════════════════
   RENATO BALDUINO — v5.0
   Inspired by: rbp-shader-template, Enki's Web Studio, ReactBits
   Dark immersive editorial design
   ═══════════════════════════════════════════════════════════════ */

/* ─── Fonts ─── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;1,500;1,600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── Tokens ─── */
:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --surface: #1a1a1a;
  --surface-hover: #222222;
  --ink: #f0f0f0;
  --ink-muted: #999999;
  --ink-subtle: #666666;
  --accent: #c8ff00;
  --accent-dim: rgba(200, 255, 0, 0.12);
  --lilac: #b8a4e0;
  --lilac-dim: rgba(184, 164, 224, 0.12);
  --green-muted: #7c9c80;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
  --container: 1360px;
  --px: clamp(24px, 5vw, 80px);
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; font: inherit; }

/* ─── Container ─── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--px);
}

/* ─── Global Typography ─── */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.04em; line-height: 0.95; }
h2 i, h3 em { font-family: var(--serif); font-weight: 500; font-style: italic; letter-spacing: -0.03em; }
.kicker {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

/* ─── Shared: Roll text effect ─── */
.roll {
  display: inline-block;
  overflow: hidden;
  position: relative;
  vertical-align: bottom;
}
.roll::after {
  content: attr(data-text);
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
}
a:hover .roll,
button:hover .roll {
  animation: roll-up 0.4s var(--ease) forwards;
}
@keyframes roll-up {
  to { transform: translateY(-100%); }
}

/* ─── Shared: Line link ─── */
.line-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  border-bottom: 1px solid var(--border-hover);
  padding-bottom: 4px;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.line-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ─── Shared: Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  font: 500 12px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
  z-index: 0;
}
.btn:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}
.btn span, .btn .btn-arrow {
  position: relative;
  z-index: 1;
}
.btn:hover {
  color: var(--bg);
  border-color: var(--accent);
}
.btn--primary {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--primary::before { background: #fff; }
.btn--primary:hover { color: var(--bg); }
.btn--ghost {
  border-color: var(--border-hover);
}
.btn--outline {
  border-color: var(--border-hover);
  margin-top: 32px;
}
.btn--accent {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.btn--accent::before { background: #fff; }
.btn--submit { width: 100%; justify-content: center; }
.btn-arrow {
  font-size: 16px;
  transition: transform 0.3s var(--ease);
}
.btn:hover .btn-arrow { transform: translate(2px, -2px); }

/* ═══════════════════════════════════════════
   PRELOADER
   ═══════════════════════════════════════════ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  transition: opacity 0.6s var(--ease), visibility 0.6s;
}
.preloader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.preloader-brand {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: grid;
  place-items: center;
  font: 600 16px var(--mono);
  color: var(--accent);
  animation: pulse-brand 1.8s ease-in-out infinite;
}
@keyframes pulse-brand {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
.preloader-line {
  width: 120px;
  height: 2px;
  background: var(--border);
  border-radius: 1px;
  overflow: hidden;
}
.preloader-line i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--accent);
  transform-origin: left;
  animation: preloader-fill 1.4s var(--ease) forwards;
}
@keyframes preloader-fill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.preloader-text {
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-subtle);
}

/* ═══════════════════════════════════════════
   GRAIN OVERLAY
   ═══════════════════════════════════════════ */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 128px;
  mix-blend-mode: overlay;
}

/* ═══════════════════════════════════════════
   FIXED NAV BAR
   ═══════════════════════════════════════════ */
.bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--px);
  height: 72px;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  transition: transform 0.4s var(--ease);
}
.bar.is-hidden { transform: translateY(-100%); }
.bar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bar-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid rgba(200, 255, 0, 0.6);
  display: grid;
  place-items: center;
  font: 600 11px var(--mono);
  color: var(--accent);
  transition: border-color 0.3s, background 0.3s;
}
.bar-logo:hover .bar-mark {
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.bar-name {
  font: 700 12px/1.1 var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bar-name em { font-style: normal; color: var(--ink-subtle); }
.bar-nav {
  display: flex;
  gap: 8px;
}
.bar-link {
  padding: 8px 16px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  border-radius: 6px;
  transition: color 0.3s, background 0.3s;
}
.bar-link:hover {
  color: var(--ink);
  background: var(--surface);
}
.bar-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--bg);
  border-radius: 6px;
  transition: background 0.3s, transform 0.3s;
}
.bar-cta:hover { background: #d4ff33; transform: translateY(-1px); }
.bar-cta-arrow { font-size: 14px; }

/* Menu Toggle */
.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  position: relative;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s var(--ease);
}
.menu-toggle.is-active span:first-child { transform: rotate(45deg) translate(2.5px, 2.5px); }
.menu-toggle.is-active span:last-child { transform: rotate(-45deg) translate(2.5px, -2.5px); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px var(--px) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s;
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-links a {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  font: 500 clamp(28px, 6vw, 48px)/1 var(--sans);
  letter-spacing: -0.03em;
  transition: color 0.3s;
}
.mobile-menu-links a:hover { color: var(--accent); }
.menu-idx {
  font: 400 12px var(--mono);
  color: var(--ink-subtle);
}
.mobile-menu-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: 400 12px var(--mono);
  color: var(--ink-subtle);
}
.mobile-menu-foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ═══════════════════════════════════════════
   HERO — Scroll-Driven Frame Sequence & Dynamic Staged Layout
   ═══════════════════════════════════════════ */
.hero-track {
  position: relative;
  width: 100%;
  height: 340vh; /* Scroll runway for the 119-frame sequence */
  background: var(--bg);
}

.hero-stage {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  background: radial-gradient(circle at 50% 50%, #11140e 0%, var(--bg) 80%);
}

/* ── Visual Canvas Layer ── */
.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-frame-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
  mix-blend-mode: lighten;
  filter: contrast(1.08) brightness(0.96);
  transition: opacity 0.3s ease;
  will-change: transform;
}

.hero-visual-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 25%, rgba(10, 10, 10, 0.5) 60%, var(--bg) 92%),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.85) 0%, transparent 22%, transparent 72%, rgba(10, 10, 10, 0.95) 100%),
    linear-gradient(to right, rgba(10, 10, 10, 0.8) 0%, transparent 20%, transparent 80%, rgba(10, 10, 10, 0.8) 100%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(650px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(200, 255, 0, 0.12), transparent 60%);
  transition: background 0.1s ease-out;
  pointer-events: none;
}

/* ── Interactive Mouse Particles Canvas (Kept as requested) ── */
.hero-shader {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* ── HUD Bar: Top Metadata ── */
.hero-hud {
  position: absolute;
  top: calc(var(--py) + 54px);
  left: var(--px);
  right: var(--px);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  pointer-events: none;
}

.hero-hud-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.hero-hud-pill i {
  color: var(--accent);
  font-style: normal;
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: live-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* ── Dynamic Staged Typography Steps Container ── */
.hero-steps-container {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px var(--px) 80px;
  pointer-events: none;
}

.hero-step {
  position: absolute;
  max-width: 960px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(32px);
  pointer-events: none;
  will-change: opacity, transform;
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
}

.hero-step.is-active {
  pointer-events: auto;
}

.hero-step-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* ── STEP 1: Main Title ── */
.hero-tag {
  display: inline-block;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  padding: 6px 14px;
  background: rgba(200, 255, 0, 0.08);
  border: 1px solid rgba(200, 255, 0, 0.22);
  border-radius: 999px;
}

.hero-title {
  font-size: clamp(48px, 8.5vw, 115px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.05em;
  margin-bottom: 24px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.85);
}

.hero-line--main {
  display: block;
  color: #ffffff;
}

.hero-line--accent {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -0.03em;
  margin-top: 4px;
}

.hero-step-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 400 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-subtle);
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.scroll-arrow {
  color: var(--accent);
  display: inline-block;
  animation: bounce-y 1.6s ease-in-out infinite;
}

@keyframes bounce-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

/* ── STEP 2: Philosophy & Strategic Lead ── */
.hero-subtitle {
  font-size: clamp(38px, 6.8vw, 84px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: #ffffff;
  margin-bottom: 28px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.9);
}

.hero-subtitle-em {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  color: var(--accent);
  margin-right: 8px;
}

.hero-lead-glass {
  max-width: 680px;
  padding: 26px 36px;
  background: rgba(12, 14, 10, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-lead-glass .hero-lead {
  font-size: clamp(16px, 1.8vw, 21px);
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.6;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* ── STEP 3: Proof & Direct Conversion ── */
.hero-proof-banner {
  margin-bottom: 36px;
}

.hero-proof-badge {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 18px 32px;
  background: rgba(14, 16, 12, 0.75);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(200, 255, 0, 0.28);
  border-radius: 999px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px rgba(200, 255, 0, 0.08);
}

.hero-proof-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5.5vw, 68px);
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.04em;
}

.hero-proof-label {
  font: 400 13px/1.35 var(--mono);
  text-transform: uppercase;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  text-align: left;
}

.hero-proof-label strong {
  display: block;
  color: #ffffff;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Bottom Scroll / Touch Drag Cue ── */
.hero-scroll-cue {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-scroll-cue.is-hidden {
  opacity: 0;
  transform: translate(-50%, 16px);
}

.cue-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(18, 18, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-subtle);
}

.cue-mouse {
  width: 14px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 8px;
  position: relative;
  display: flex;
  justify-content: center;
}

.cue-mouse i {
  position: absolute;
  top: 4px;
  width: 2px;
  height: 5px;
  background: var(--accent);
  border-radius: 1px;
  animation: mouse-wheel 1.6s ease infinite;
}

@keyframes mouse-wheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(8px); opacity: 0; }
}

/* ── Responsive adjustments for Hero ── */
@media (max-width: 768px) {
  .hero-track {
    height: 300vh;
  }
  .hero-hud {
    top: calc(var(--py) + 40px);
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .hero-hud-pill {
    font-size: 10px;
    padding: 6px 12px;
  }
  .hero-steps-container {
    padding: 120px var(--px) 60px;
  }
  .hero-lead-glass {
    padding: 20px 22px;
  }
  .hero-proof-badge {
    padding: 14px 22px;
    gap: 14px;
  }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-scroll-cue {
    bottom: 20px;
  }
}

/* ─── Reveal Animations ─── */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.hero-line {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
}
.hero-line.is-visible {
  clip-path: inset(0 0 0% 0);
}

/* ═══════════════════════════════════════════
   ABOUT / ECOSSISTEMA — word reveal
   ═══════════════════════════════════════════ */
.about {
  padding: clamp(120px, 16vh, 200px) 0;
  background: var(--bg);
}
.about-kicker {
  font: 500 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 40px;
}
.about-text {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 1000px;
}
.about-text .word {
  display: inline-block;
  opacity: 0.15;
  transition: opacity 0.5s var(--ease);
}
.about-text .word.is-lit {
  opacity: 1;
}

/* ═══════════════════════════════════════════
   PILLARS — spotlight cards
   ═══════════════════════════════════════════ */
.pillars {
  padding: clamp(80px, 10vh, 140px) 0;
  background: var(--bg);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.pillar-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 400px;
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.pillar-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(600px circle at var(--spot-x, 50%) var(--spot-y, 50%), rgba(255,255,255,0.04), transparent 50%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.pillar-card:hover::before { opacity: 1; }
.pillar-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.pillar-card--accent {
  background: var(--accent-dim);
  border-color: rgba(200, 255, 0, 0.15);
}
.pillar-card--accent:hover { border-color: rgba(200, 255, 0, 0.35); }
.pillar-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.pillar-card-top svg {
  color: var(--ink-muted);
  transition: color 0.3s;
}
.pillar-card:hover .pillar-card-top svg { color: var(--accent); }
.pillar-no {
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-subtle);
}
.pillar-card-bottom h3 {
  font-size: 26px;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.pillar-card-bottom em {
  color: var(--ink-muted);
}
.pillar-card-bottom p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ═══════════════════════════════════════════
   KINETIC MARQUEE BAND
   ═══════════════════════════════════════════ */
.band {
  padding: 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.band-row {
  overflow: hidden;
  white-space: nowrap;
}
.band-row--ghost { margin-top: 12px; }
.band-track {
  display: inline-flex;
  align-items: center;
  gap: 0;
  animation: marquee 30s linear infinite;
  will-change: transform;
}
.band-row--ghost .band-track {
  animation-direction: reverse;
}
.band-track span {
  font: 600 clamp(36px, 6vw, 72px)/1 var(--sans);
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--ink);
  padding: 0 24px;
  -webkit-text-stroke: 1px var(--ink);
}
.band-row--ghost .band-track span {
  color: transparent;
  -webkit-text-stroke: 1px var(--ink-subtle);
}
.band-track i {
  font-style: normal;
  color: var(--accent);
  font-size: 20px;
  padding: 0 16px;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════
   SERVICES — stacked card over bg image
   ═══════════════════════════════════════════ */
.services {
  position: relative;
  min-height: 100vh;
  background: var(--bg);
}
.services-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}
.services-media {
  position: absolute;
  inset: 0;
}
.services-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
.services-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 30%, transparent 60%, var(--bg) 100%);
}
.services-cards {
  position: relative;
  z-index: 1;
  padding-top: 14vh;
  padding-bottom: 10vh;
}
.services-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.services-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.services-card-head h2 {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.05em;
  margin-top: 16px;
}
.services-card-num {
  font: 400 clamp(60px, 10vw, 120px) var(--serif);
  color: var(--accent-dim);
  line-height: 1;
}
.services-card-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
}
.services-card-col p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}
.check-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-muted);
}
.check-list li::before {
  content: '✦';
  color: var(--lilac);
  margin-right: 12px;
}

/* ═══════════════════════════════════════════
   PRODUCTS / PREMIAÇÕES
   ═══════════════════════════════════════════ */
.products {
  padding: clamp(100px, 12vh, 160px) 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.products-header {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: end;
  margin-bottom: 56px;
}
.products-header h2 {
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: -0.05em;
  color: var(--accent);
}
.products-header p {
  font-size: 16px;
  color: var(--ink-muted);
  line-height: 1.6;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.product-card {
  position: relative;
  min-height: 360px;
  padding: 28px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); }
.product-card--dark { background: #152e27; color: var(--ink); }
.product-card--green { background: var(--green-muted); color: #0a0a0a; }
.product-card--lilac { background: var(--lilac); color: #0a0a0a; }
.product-idx {
  font: 400 11px var(--mono);
  color: inherit;
  opacity: 0.6;
}
.product-icon {
  font-size: 48px;
  margin: 32px 0 24px;
  line-height: 1;
}
.product-card h3 {
  font: 500 32px var(--serif);
  letter-spacing: -0.03em;
  margin-bottom: 10px;
}
.product-card p {
  font-size: 14px;
  opacity: 0.75;
  line-height: 1.5;
  max-width: 260px;
}
.product-card .line-link {
  position: absolute;
  bottom: 28px;
  color: inherit;
  border-color: rgba(0,0,0,0.2);
}
.product-card--dark .line-link { border-color: rgba(255,255,255,0.2); }
.products-advantages {
  display: flex;
  gap: 28px;
  align-items: center;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  font: 400 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.products-advantages span {
  color: var(--accent);
  margin-right: auto;
}
.products-advantages p { margin: 0; }

/* ═══════════════════════════════════════════
   EDUCATION
   ═══════════════════════════════════════════ */
.education {
  padding: clamp(100px, 12vh, 160px) 0;
  background: radial-gradient(ellipse at 75% 20%, rgba(184,164,224,.08), transparent 42%), var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.education-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.education-intro h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.education-intro p {
  color: var(--ink-muted);
  font-size: 16px;
  max-width: 350px;
  line-height: 1.55;
}
.course-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
}
.course-top {
  display: flex;
  justify-content: space-between;
  font: 400 11px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 48px;
}
.course-card h3 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.05em;
  margin-bottom: 18px;
}
.course-card > p {
  color: var(--ink-muted);
  font-size: 15px;
  max-width: 470px;
  line-height: 1.55;
}
.course-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-top: 32px;
}
.course-bottom ul {
  color: var(--ink-muted);
  font-size: 13px;
}
.course-bottom li + li { margin-top: 8px; }
.course-bottom li::before {
  content: '+';
  color: var(--accent);
  margin-right: 10px;
}

/* ═══════════════════════════════════════════
   TALKS
   ═══════════════════════════════════════════ */
.talks {
  padding: clamp(100px, 12vh, 160px) 0;
  background: radial-gradient(ellipse at 82% 16%, rgba(200,255,0,.06), transparent 42%), var(--bg-card);
  border-top: 1px solid var(--border);
}
.talks-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.talks-number {
  font: 500 clamp(80px, 14vw, 180px) var(--serif);
  color: var(--lilac-dim);
  line-height: 0.85;
}
.talks-content h2 {
  font-size: clamp(36px, 4.5vw, 60px);
  letter-spacing: -0.05em;
  margin-bottom: 24px;
}
.talks-content p {
  max-width: 440px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
}
.talks-content blockquote {
  border-left: 2px solid var(--lilac);
  padding-left: 20px;
  font: italic 500 20px/1.35 var(--serif);
  max-width: 440px;
  margin: 28px 0;
  color: var(--ink);
}
.talks-steps {
  grid-column: 1 / -1;
  font: 400 12px var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  line-height: 2.5;
}
.talks-step-num {
  color: var(--lilac);
  margin-right: 12px;
  margin-left: 16px;
}
.talks-step-num:first-child { margin-left: 0; }

/* ═══════════════════════════════════════════
   PROOF
   ═══════════════════════════════════════════ */
.proof {
  padding: clamp(100px, 12vh, 160px) 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.proof-grid {
  display: grid;
  grid-template-columns: 0.6fr 1.4fr;
  gap: clamp(32px, 6vw, 80px);
  margin-top: 40px;
  align-items: start;
}
.proof h2 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: -0.05em;
}
.proof-logos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.proof-logo {
  padding: 28px 20px 28px 0;
  border-bottom: 1px solid var(--border);
  font: 500 15px/1.1 var(--mono);
  letter-spacing: -0.04em;
  color: var(--ink-muted);
  transition: color 0.3s;
}
.proof-logo:hover { color: var(--accent); }

/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact {
  padding: clamp(100px, 12vh, 160px) 0;
  background: radial-gradient(ellipse at 16% 25%, rgba(184,164,224,.07), transparent 40%), var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.contact-wrap {
  max-width: 680px;
}
.contact-card h2 {
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -0.05em;
  color: var(--accent);
  margin-bottom: 18px;
}
.contact-card > p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 40px;
}
.contact form {
  display: grid;
  gap: 24px;
}
.field {
  display: block;
}
.field span {
  display: block;
  font: 500 11px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  margin-bottom: 10px;
}
.field input,
.field select {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  color: var(--ink);
  font: 400 16px var(--sans);
  outline: none;
  transition: border-color 0.3s;
}
.field input:focus,
.field select:focus {
  border-color: var(--accent);
}
.field input::placeholder { color: var(--ink-subtle); }
.field select option { background: var(--bg); color: var(--ink); }
.contact small {
  display: block;
  font: 400 11px var(--mono);
  color: var(--ink-subtle);
  text-align: center;
  margin-top: -8px;
}

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: clamp(48px, 6vh, 80px) 0 24px;
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 56px);
  margin-bottom: 56px;
}
.footer-cols h3 {
  font: 500 12px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  margin-bottom: 16px;
  font-size: 12px;
}
.foot-link {
  display: block;
  font: 400 13px var(--sans);
  color: var(--ink-muted);
  padding: 6px 0;
  transition: color 0.3s;
  overflow: hidden;
}
.foot-link:hover { color: var(--accent); }
.footer-note p {
  font-size: 14px;
  color: var(--ink-muted);
  line-height: 1.55;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 28px;
  position: relative;
}
/* TechText Component Styles */
.tech-text {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  user-select: none;
}

.tech-text-canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.footer-techtext-container {
  width: 100%;
  height: 300px;
  max-height: 85vh;
  position: relative;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 12px;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
  font: 400 11px var(--mono);
  color: var(--ink-subtle);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.footer-legal p { margin: 0; }
.foot-top { margin-left: auto; }

/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (max-width: 1100px) {
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .pillar-card:last-child { grid-column: 1 / -1; }
  .products-header { grid-template-columns: 1fr; }
}

@media (max-width: 850px) {
  .bar-nav, .bar-cta { display: none; }
  .menu-toggle { display: flex; }

  .pillars-grid,
  .products-grid,
  .services-card-body,
  .education-grid,
  .talks-grid,
  .proof-grid,
  .products-header,
  .footer-cols {
    grid-template-columns: 1fr;
  }
  .pillar-card:last-child { grid-column: auto; }

  .hero { align-items: center; padding-top: 140px; }
  .hero-title { font-size: clamp(40px, 10vw, 72px); }
  .hero-photo img { object-position: 60% center; }

  .pillar-card { min-height: 300px; }

  .services-cards { padding-top: 12vh; padding-bottom: 8vh; }

  .talks-number { display: none; }

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

  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-note { grid-column: 1 / -1; }
  .footer-legal { flex-direction: column; align-items: flex-start; }
  .foot-top { margin-left: 0; }
  .footer-big { font-size: clamp(36px, 12vw, 80px); }

  .course-bottom { flex-direction: column; align-items: flex-start; }
  .course-bottom .btn { width: 100%; justify-content: center; }

  .products-advantages { flex-direction: column; align-items: flex-start; }
  .products-advantages span { margin-right: 0; }

  .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .proof-logos { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}


/* ── Mobile clarity, safe spacing and hero diagnostic dialog ── */
@media (max-width: 600px) {
  :root { --px: clamp(20px, 6vw, 28px); }

  .hero-track { height: max(300vh, 2100px); }
  .hero-stage { height: 100svh; min-height: 100vh; }
  .hero-hud { display: none; }
  .hero-steps-container {
    padding: calc(88px + env(safe-area-inset-top)) var(--px) calc(74px + env(safe-area-inset-bottom));
  }
  .hero-step {
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom));
    left: var(--px);
    right: var(--px);
    width: auto;
    max-width: 470px;
    margin-inline: auto;
    align-items: flex-start;
    text-align: left;
    max-height: calc(100svh - 174px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 4px 2px 8px;
  }
  .hero-step-content { align-items: flex-start; text-align: left; }
  .hero-kicker-tag {
    max-width: 100%;
    font-size: 9px;
    letter-spacing: .09em;
    line-height: 1.35;
    white-space: normal;
    margin-bottom: 16px;
  }
  .hero-title {
    max-width: 100%;
    font-size: clamp(40px, 11vw, 54px);
    line-height: .99;
    letter-spacing: -.045em;
    margin-bottom: 18px;
  }
  .hero-step-hint {
    max-width: 100%;
    gap: 7px;
    font-size: 9px;
    letter-spacing: .07em;
    padding: 8px 12px;
  }
  .hero-subtitle {
    font-size: clamp(34px, 9.5vw, 46px);
    line-height: 1.02;
    margin-bottom: 18px;
  }
  .hero-lead-glass {
    width: 100%;
    padding: 18px;
    border-radius: 14px;
  }
  .hero-lead-glass .hero-lead { font-size: 14px; line-height: 1.55; }
  .hero-proof-banner { width: 100%; margin-bottom: 18px; }
  .hero-proof-badge {
    width: 100%;
    justify-content: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-radius: 16px;
  }
  .hero-proof-num { font-size: clamp(40px, 12vw, 52px); }
  .hero-proof-label { font-size: 10px; line-height: 1.4; }
  .hero-actions {
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }
  .hero-actions .btn {
    width: 100%;
    min-height: 50px;
    justify-content: space-between;
    gap: 10px;
    padding: 13px 15px;
    font-size: 10px;
    line-height: 1.35;
    letter-spacing: .025em;
    white-space: normal;
    text-align: left;
  }
  .hero-actions .btn > span:first-child { max-width: calc(100% - 28px); }
  .hero-scroll-cue { display: none; }
}

.diagnostic-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 760px);
  overflow: auto;
  margin: auto;
  padding: 0;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--border-hover);
  border-radius: 18px;
  box-shadow: 0 24px 100px rgba(0, 0, 0, .72);
}
.diagnostic-dialog::backdrop { background: rgba(0, 0, 0, .78); backdrop-filter: blur(8px); }
.diagnostic-dialog-inner { padding: clamp(22px, 5vw, 36px); }
.diagnostic-dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.diagnostic-dialog-heading h2 { max-width: 420px; font-size: clamp(26px, 5vw, 36px); line-height: 1.04; letter-spacing: -.045em; }
.diagnostic-dialog-heading p { margin-top: 10px; max-width: 420px; color: var(--ink-muted); font-size: 14px; line-height: 1.55; }
.diagnostic-dialog-heading .kicker { margin-bottom: 12px; }
.diagnostic-close {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}
.diagnostic-close:hover, .diagnostic-close:focus-visible { color: var(--ink); border-color: var(--accent); outline: none; }
#hero-diagnostic-form { display: grid; gap: 16px; }
.diagnostic-field { display: grid; gap: 7px; color: var(--ink-muted); font-size: 12px; }
.diagnostic-field input, .diagnostic-field select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border-hover);
  border-radius: 8px;
  font: 400 14px/1.4 var(--sans);
}
.diagnostic-field select:invalid { color: var(--ink-subtle); }
.diagnostic-field input::placeholder { color: var(--ink-subtle); }
.diagnostic-field input:focus, .diagnostic-field select:focus { border-color: var(--accent); outline: 2px solid var(--accent-dim); }
.diagnostic-field option { color: var(--ink); background: var(--bg-elevated); }
.diagnostic-submit { min-height: 50px; justify-content: space-between; width: 100%; margin-top: 2px; }
#hero-diagnostic-form small { color: var(--ink-subtle); font-size: 11px; line-height: 1.5; }
@media (max-width: 420px) {
  .diagnostic-dialog { width: calc(100vw - 24px); border-radius: 15px; }
  .diagnostic-dialog-inner { padding: 20px; }
  .diagnostic-dialog-heading { gap: 10px; }
}


/* ── Four-step editorial business diagnosis ── */
.diagnostic-dialog {
  position: fixed;
  width: min(860px, calc(100vw - 32px));
  max-width: none;
  max-height: min(90dvh, 820px);
  overflow-y: auto;
  margin: auto;
  padding: 0;
  color: #f4f4f2;
  background: #111112;
  border: 1px solid #39393b;
  border-radius: 2px;
  box-shadow: 0 28px 110px rgba(0, 0, 0, .8);
}
.diagnostic-dialog::backdrop { background: rgba(0, 0, 0, .86); backdrop-filter: blur(8px); }
.diagnostic-dialog[open] { animation: diagnostic-enter .22s ease-out both; }
@keyframes diagnostic-enter { from { opacity: 0; transform: translateY(10px) scale(.99); } to { opacity: 1; transform: none; } }
.diagnostic-dialog-inner { position: relative; padding: clamp(26px, 6.5vw, 68px); }
.diagnostic-dialog-top { position: relative; display: flex; align-items: center; margin: -2px 48px 48px 0; }
.diagnostic-progress { display: flex; width: 100%; gap: 8px; }
.diagnostic-progress span { flex: 1; height: 2px; background: #353537; transition: background .25s ease; }
.diagnostic-progress span.is-current, .diagnostic-progress span.is-complete { background: #b5f229; }
.diagnostic-close { position: absolute; top: -4px; right: -48px; display: grid; place-items: center; width: 42px; height: 42px; padding: 0; color: #f4f4f2; background: transparent; border: 1px solid #454548; border-radius: 0; font: 300 28px/1 var(--sans); }
.diagnostic-close:hover, .diagnostic-close:focus-visible { color: #b5f229; border-color: #b5f229; outline: none; }
.diagnostic-step[hidden], .diagnostic-result[hidden], #hero-diagnostic-form[hidden] { display: none !important; }
.diagnostic-step-meta, .diagnostic-priority-label { margin: 0 0 16px; color: #b5f229; font: 500 10px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.diagnostic-step-meta span { color: #a1a1a4; }
.diagnostic-step h2, .diagnostic-result-title { max-width: 640px; margin: 0 0 26px; color: #f4f4f2; font-size: clamp(28px, 4.2vw, 42px); font-weight: 600; line-height: 1.08; letter-spacing: -.045em; }
.diagnostic-options { display: grid; gap: 9px; }
.diagnostic-option { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 54px; padding: 14px 18px; color: #f0f0ef; text-align: left; background: #171719; border: 1px solid #343437; border-radius: 0; font: 400 14px/1.45 var(--sans); cursor: pointer; transition: border-color .18s ease, background .18s ease, color .18s ease; }
.diagnostic-option > span:first-child { min-width: 0; }
.diagnostic-option > span:last-child { flex: 0 0 auto; color: #b8b8b9; font-size: 18px; }
.diagnostic-option:hover, .diagnostic-option:focus-visible, .diagnostic-option.is-selected { color: #fff; background: #1d1f19; border-color: #b5f229; outline: none; }
.diagnostic-option:hover > span:last-child, .diagnostic-option.is-selected > span:last-child { color: #b5f229; }
.diagnostic-back { margin: -18px 0 22px; padding: 0; color: #bdbdbf; background: none; border: 0; font: 400 11px/1.4 var(--mono); cursor: pointer; }
.diagnostic-back:hover, .diagnostic-back:focus-visible { color: #b5f229; outline: none; }
.diagnostic-fields { display: grid; gap: 16px; }
.diagnostic-field { display: grid; gap: 8px; color: #a1a1a4; font: 500 10px/1.4 var(--mono); letter-spacing: .07em; }
.diagnostic-field input { width: 100%; min-height: 50px; padding: 13px 14px; color: #f4f4f2; background: #171719; border: 1px solid #343437; border-radius: 0; font: 400 14px/1.4 var(--sans); letter-spacing: 0; }
.diagnostic-field input::placeholder { color: #77777a; }
.diagnostic-field input:focus { border-color: #b5f229; outline: 2px solid rgba(181, 242, 41, .16); }
.diagnostic-submit { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 52px; margin-top: 20px; padding: 14px 18px; color: #10110b; background: #b5f229; border: 1px solid #b5f229; border-radius: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .02em; }
.diagnostic-submit:hover, .diagnostic-submit:focus-visible { color: #10110b; background: #c7ff42; border-color: #c7ff42; outline: 2px solid rgba(181, 242, 41, .28); }
.diagnostic-result-title { margin-bottom: 24px; }
.diagnostic-result-title span { color: #b5f229; }
.diagnostic-priority { margin: 0 0 20px; padding: 20px; background: #171719; border: 1px solid #343437; }
.diagnostic-priority .diagnostic-priority-label { margin-bottom: 10px; }
.diagnostic-priority h3 { margin: 0 0 10px; color: #f4f4f2; font-size: clamp(18px, 2.5vw, 24px); line-height: 1.2; letter-spacing: -.025em; }
.diagnostic-priority > p:last-child { margin: 0; color: #bdbdbf; font-size: 13px; line-height: 1.6; }
.diagnostic-summary { display: grid; gap: 0; margin: 0 0 18px; border-top: 1px solid #343437; }
.diagnostic-summary > div { display: grid; grid-template-columns: minmax(95px, .32fr) 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid #343437; }
.diagnostic-summary dt { color: #b5f229; font: 500 9px/1.5 var(--mono); letter-spacing: .05em; }
.diagnostic-summary dd { margin: 0; color: #e5e5e4; font-size: 12px; line-height: 1.5; text-align: right; }
.diagnostic-recommendations { margin: 18px 0 6px; }
.diagnostic-recommendations .diagnostic-priority-label { margin-bottom: 9px; }
.diagnostic-recommendations ol { display: grid; gap: 8px; margin: 0; padding-left: 22px; color: #dededd; font-size: 13px; line-height: 1.5; }
.diagnostic-recommendations li::marker { color: #b5f229; font-family: var(--mono); }
@media (max-width: 600px) {
  .diagnostic-dialog { width: calc(100vw - 24px); max-height: min(92dvh, 900px); }
  .diagnostic-dialog-inner { padding: 24px 18px 20px; }
  .diagnostic-dialog-top { margin: 0 48px 34px 0; }
  .diagnostic-progress { gap: 5px; }
  .diagnostic-close { top: -8px; right: -48px; width: 38px; height: 38px; }
  .diagnostic-step h2, .diagnostic-result-title { font-size: clamp(25px, 8vw, 34px); line-height: 1.08; }
  .diagnostic-option { min-height: 50px; padding: 13px 12px; font-size: 13px; }
  .diagnostic-priority { padding: 16px; }
  .diagnostic-summary > div { grid-template-columns: 82px minmax(0, 1fr); gap: 8px; }
  .diagnostic-summary dd { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .diagnostic-dialog[open], .diagnostic-option, .diagnostic-progress span { animation: none; transition: none; }
}
