body.loading {
  overflow: hidden;
}

body.loading>*:not(#boot-loader):not(script):not(svg[aria-hidden]) {
  opacity: 0 !important;
  pointer-events: none !important;
}

.boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #05080f;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s ease, filter .6s ease;
}

.boot-overlay.boot-fade {
  opacity: 0;
  filter: blur(6px);
  pointer-events: none;
}

.boot-container {
  width: min(620px, 90vw);
  position: relative;
  font-family: 'JetBrains Mono', monospace;
}

.boot-scanline {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(0deg,
      transparent,
      transparent 2px,
      rgba(255, 255, 255, .015) 2px,
      rgba(255, 255, 255, .015) 4px);
  z-index: 10000;
  animation: scanlineScroll 8s linear infinite;
}

@keyframes scanlineScroll {
  0% {
    background-position-y: 0;
  }

  100% {
    background-position-y: 100vh;
  }
}

.boot-ascii {
  margin-bottom: 1.5rem;
  text-align: center;
}

.ascii-line {
  font-size: clamp(.55rem, 1.8vw, .82rem);
  line-height: 1.35;
  color: var(--teal, #6fb69d);
  white-space: pre;
  opacity: 0;
  animation: asciiReveal .3s ease forwards;
  text-shadow: 0 0 12px rgba(111, 182, 157, .4);
}

@keyframes asciiReveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.boot-log {
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 1.2rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.boot-log::-webkit-scrollbar {
  display: none;
}

.boot-line {
  font-size: .75rem;
  line-height: 1.8;
  color: #64748b;
  opacity: 0;
  animation: lineAppear .25s ease forwards;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@keyframes lineAppear {
  from {
    opacity: 0;
    transform: translateX(-8px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.boot-ok {
  color: var(--teal, #6fb69d);
}

.boot-warn {
  color: var(--amber, #e6c76d);
}

.boot-info {
  color: #94a3b8;
}

.boot-progress {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1.4rem;
}

.boot-bar {
  flex: 1;
  height: 3px;
  background: #1a2332;
  border-radius: 3px;
  overflow: hidden;
}

.boot-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--teal, #6fb69d), var(--lavender, #b5c69a));
  border-radius: 3px;
  transition: width .2s ease;
  box-shadow: 0 0 10px rgba(111, 182, 157, .5);
}

.boot-bar-percent {
  font-size: .68rem;
  color: var(--muted, #94a3b8);
  min-width: 2.5rem;
  text-align: right;
}

.boot-ready {
  font-size: .78rem;
  color: var(--teal, #6fb69d);
  display: flex;
  align-items: center;
  gap: .55rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
  text-shadow: 0 0 14px rgba(111, 182, 157, .5);
}

.boot-ready.show {
  opacity: 1;
  transform: translateY(0);
}

.boot-ready-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal, #6fb69d);
  box-shadow: 0 0 8px var(--teal, #6fb69d);
  animation: readyPulse 1s ease-in-out infinite;
}

@keyframes readyPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.8);
  }
}

.boot-overlay::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  animation: crtFlicker 0.12s infinite;
  background: transparent;
}

@keyframes crtFlicker {
  0% {
    opacity: .97;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: .98;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #090f1c;
  --surface: #101827;
  --card: #151f2d;
  --border: #243443;

  --lavender: #b5c69a;
  --teal: #6fb69d;
  --rose: #f38ba8;
  --amber: #e6c76d;

  --text: #edf2f7;
  --muted: #94a3b8;

  --mono: 'JetBrains Mono', monospace;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  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)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2.5rem;
  height: 58px;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(8, 12, 24, .88);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -.03em;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: .45rem;
  text-decoration: none;
}

.nav-logo-icon {
  color: var(--lavender);
  display: -webkit-flex;
  display: flex;
}

.nav-logo em {
  color: var(--teal);
  font-style: normal;
}

.nav-status {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: .55rem;
  background: rgba(94, 234, 212, .07);
  border: 1px solid rgba(94, 234, 212, .18);
  border-radius: 999px;
  padding: .35rem .9rem;
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--teal);
  letter-spacing: .04em;
  -webkit-user-select: none;
  user-select: none;
}

.nav-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 6px var(--teal);
  -webkit-animation: statusblink 2.4s ease-in-out infinite;
  animation: statusblink 2.4s ease-in-out infinite;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

@-webkit-keyframes statusblink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

@keyframes statusblink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: .35
  }
}

@media (max-width: 479px) {
  nav {
    padding: 0 1.2rem;
  }

  .nav-status span.nav-status-label {
    display: none;
  }
}

.hero {
  min-height: 100vh;
  min-height: -webkit-fill-available;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 2rem 5rem;
  position: relative;
}

.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(196, 181, 253, .07) 0%, transparent 65%);
  pointer-events: none;
  animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {

  0%,
  100% {
    transform: scale(1);
    opacity: .5
  }

  50% {
    transform: scale(1.08);
    opacity: 1
  }
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--teal);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.hero-eyebrow svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  opacity: .7;
}

.hero-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.04em;
  margin-bottom: 1.5rem;
}

.hero-title .grad {
  background: -webkit-linear-gradient(135deg, var(--lavender) 30%, var(--teal));
  background: linear-gradient(135deg, var(--lavender) 30%, var(--teal));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 500px;
  line-height: 1.75;
  margin-bottom: 2.8rem;
}

.hero-cta {
  display: -webkit-flex;
  display: flex;
  gap: 1rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-justify-content: center;
  justify-content: center;
}

.btn {
  padding: .75rem 1.75rem;
  border-radius: 9px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: .88rem;
  cursor: pointer;
  text-decoration: none;
  -webkit-transition: all .25s;
  transition: all .25s;
  border: none;
  display: -webkit-inline-flex;
  display: inline-flex;
  -webkit-align-items: center;
  align-items: center;
  gap: .45rem;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
}

.btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.btn-primary {
  background: -webkit-linear-gradient(135deg, var(--lavender), #a78bfa);
  background: linear-gradient(135deg, var(--lavender), #a78bfa);
  color: #0a0214;
}

.btn-primary:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(196, 181, 253, .28);
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--lavender);
  color: var(--lavender);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

section {
  padding: 6rem 2rem;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section-label {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--lavender);
  letter-spacing: .15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  opacity: .75;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.section-label svg {
  width: 12px;
  height: 12px;
  stroke: var(--lavender);
}

.section-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--muted);
  line-height: 1.75;
  max-width: 560px;
}

.checker-wrap {
  margin-top: 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(196, 181, 253, .04), 0 20px 60px rgba(0, 0, 0, .4);
}

.terminal-bar {
  background: var(--surface);
  padding: .7rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .45rem;
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-r {
  background: #ff5f56;
}

.dot-y {
  background: #ffbd2e;
}

.dot-g {
  background: #27c93f;
}

.terminal-title {
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--muted);
  margin-left: auto;
  margin-right: auto;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.terminal-title svg {
  width: 12px;
  height: 12px;
  stroke: var(--muted);
}

.checker-body {
  padding: 2rem;
}

.checker-prompt {
  font-family: var(--mono);
  font-size: .83rem;
  color: var(--teal);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.checker-prompt .dim {
  color: var(--muted);
}

.questions {
  display: flex;
  flex-direction: column;
  gap: .65rem;
  margin-bottom: 1.75rem;
}

.question-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .95rem 1.2rem;
  display: flex;
  align-items: center;
  gap: .9rem;
  cursor: pointer;
  transition: all .2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.question-item:hover {
  border-color: #2d3660;
  background: #111627;
}

.question-item.selected {
  border-color: rgba(94, 234, 212, .4);
  background: rgba(94, 234, 212, .05);
}

.q-check {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  background: transparent;
}

.q-check svg {
  width: 12px;
  height: 12px;
  stroke: transparent;
  stroke-width: 2.5;
  transition: stroke .15s;
}

.question-item.selected .q-check {
  background: var(--teal);
  border-color: var(--teal);
}

.question-item.selected .q-check svg {
  stroke: #042f2e;
}

.q-text {
  font-size: .88rem;
  line-height: 1.45;
  color: var(--text);
}

.verdict-btn {
  width: 100%;
  padding: .85rem;
  border-radius: 9px;
  background: rgba(196, 181, 253, .07);
  border: 1px solid rgba(196, 181, 253, .15);
  color: var(--lavender);
  font-family: var(--mono);
  font-size: .82rem;
  cursor: pointer;
  transition: all .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.verdict-btn svg {
  width: 14px;
  height: 14px;
  stroke: var(--lavender);
}

.verdict-btn:hover {
  background: rgba(196, 181, 253, .13);
  border-color: rgba(196, 181, 253, .3);
}

.verdict-output {
  margin-top: 1.25rem;
  border-radius: 10px;
  padding: 1.4rem 1.5rem;
  font-family: var(--mono);
  font-size: .83rem;
  line-height: 1.85;
  display: none;
  animation: fadeSlide .35s ease;
}

.verdict-output.show {
  display: block;
}

@keyframes fadeSlide {
  from {
    opacity: 0;
    transform: translateY(8px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

.verdict-clean {
  background: rgba(94, 234, 212, .07);
  border: 1px solid rgba(94, 234, 212, .2);
  color: var(--teal);
}

.verdict-skid {
  background: rgba(251, 113, 133, .07);
  border: 1px solid rgba(251, 113, 133, .2);
  color: var(--rose);
}

.verdict-mid {
  background: rgba(251, 191, 36, .07);
  border: 1px solid rgba(251, 191, 36, .2);
  color: var(--amber);
}

.verdict-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .95rem;
  font-weight: 600;
  margin-bottom: .6rem;
}

.verdict-header svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  flex-shrink: 0;
}

.verdict-msg {
  opacity: .8;
}

.manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
}

.rule-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.rule-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: -webkit-linear-gradient(90deg, var(--lavender), var(--teal));
  background: linear-gradient(90deg, var(--lavender), var(--teal));
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: left;
  transform-origin: left;
  -webkit-transition: -webkit-transform .3s;
  transition: transform .3s;
}

.rule-card:hover {
  border-color: #252f55;
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.rule-card:hover::after {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.rule-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(196, 181, 253, .1);
  border: 1px solid rgba(196, 181, 253, .15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.rule-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--lavender);
  stroke-width: 1.8;
}

.rule-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}

.rule-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.65;
}

.lexicon {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.lex-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color .2s, background .2s;
}

.lex-item:hover {
  border-color: #252f55;
  background: #151b2e;
}

.lex-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  flex-shrink: 0;
  background: rgba(94, 234, 212, .08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: .1rem;
}

.lex-icon svg {
  width: 14px;
  height: 14px;
  stroke: var(--teal);
  stroke-width: 1.8;
}

.lex-body {}

.lex-term {
  font-family: var(--mono);
  font-size: .82rem;
  color: var(--teal);
  margin-bottom: .25rem;
}

.lex-def {
  font-size: .87rem;
  color: var(--muted);
  line-height: 1.6;
}

.opposite-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
  margin-top: 3rem;
}

.opp-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  -webkit-transition: all .25s;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}

.opp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: -webkit-linear-gradient(90deg, var(--teal), #34d399);
  background: linear-gradient(90deg, var(--teal), #34d399);
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transform-origin: left;
  transform-origin: left;
  -webkit-transition: -webkit-transform .3s;
  transition: transform .3s;
}

.opp-card:hover {
  border-color: rgba(94, 234, 212, .25);
  -webkit-transform: translateY(-3px);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .3);
}

.opp-card:hover::before {
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}

.opp-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(94, 234, 212, .1);
  border: 1px solid rgba(94, 234, 212, .15);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.opp-icon svg {
  width: 17px;
  height: 17px;
  stroke: var(--teal);
  stroke-width: 1.8;
}

.opp-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .45rem;
  letter-spacing: -.01em;
}

.opp-desc {
  font-size: .83rem;
  color: var(--muted);
  line-height: 1.65;
}

.opp-banner {
  margin-top: 2.5rem;
  background: rgba(94, 234, 212, .06);
  border: 1px solid rgba(94, 234, 212, .18);
  border-radius: 12px;
  padding: 1.3rem 1.6rem;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  gap: 1rem;
}

.opp-banner svg {
  width: 18px;
  height: 18px;
  stroke: var(--teal);
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-top: .15rem;
}

.opp-banner-text {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
}

.opp-banner-text strong {
  color: var(--teal);
  font-weight: 600;
}

.divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 900px;
  margin: 0 auto;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2.2rem 2.5rem;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  font-size: .8rem;
  color: var(--muted);
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  font-family: var(--mono);
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: .4rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.footer-brand svg {
  width: 13px;
  height: 13px;
  stroke: var(--teal);
}

.footer-links {
  display: -webkit-flex;
  display: flex;
  gap: 1.5rem;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  -webkit-transition: color .2s;
  transition: color .2s;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  gap: .3rem;
}

.footer-links a svg {
  width: 12px;
  height: 12px;
  stroke: currentColor;
}

.footer-links a:hover {
  color: var(--lavender);
}

.cursor {
  display: inline-block;
  width: 2px;
  height: .9em;
  background: var(--lavender);
  vertical-align: middle;
  animation: blink 1s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #2e3a60;
}

@media (min-width: 1440px) {
  section {
    max-width: 1000px;
  }

  .hero-sub {
    max-width: 560px;
  }
}

@media (max-width: 1023px) {
  section {
    padding: 5rem 2rem;
  }

  .hero {
    padding: 7rem 2rem 5rem;
  }

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

@media (max-width: 767px) {
  nav {
    padding: 1rem 1.5rem;
  }

  section {
    padding: 4rem 1.5rem;
  }

  .hero {
    padding: 6rem 1.5rem 4.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .hero-sub {
    font-size: .97rem;
  }

  .manifesto-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .checker-body {
    padding: 1.5rem;
  }

  footer {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 599px) {
  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
    letter-spacing: -.03em;
  }

  .section-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .btn {
    padding: .7rem 1.4rem;
    font-size: .84rem;
  }

  .hero-cta {
    gap: .75rem;
  }

  .lex-item {
    -webkit-flex-direction: column;
    flex-direction: column;
    gap: .6rem;
  }

  .lex-icon {
    margin-top: 0;
  }
}

@media (max-width: 479px) {
  nav {
    padding: .9rem 1.2rem;
  }

  .nav-logo {
    font-size: .95rem;
  }

  section {
    padding: 3.5rem 1.2rem;
  }

  .hero {
    padding: 5.5rem 1.2rem 4rem;
  }

  .hero-title {
    font-size: clamp(1.85rem, 10vw, 2.4rem);
  }

  .hero-eyebrow {
    font-size: .68rem;
    gap: .4rem;
  }

  .hero-sub {
    font-size: .9rem;
    max-width: 100%;
  }

  .checker-body {
    padding: 1.2rem;
  }

  .checker-prompt {
    font-size: .78rem;
  }

  .q-text {
    font-size: .82rem;
  }

  .question-item {
    padding: .85rem 1rem;
    gap: .75rem;
  }

  .verdict-btn {
    font-size: .78rem;
  }

  .rule-card {
    padding: 1.2rem;
  }

  footer {
    -webkit-flex-direction: column;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
    padding: 1.8rem 1.2rem;
  }

  .footer-links {
    -webkit-justify-content: center;
    justify-content: center;
    gap: 1.2rem;
  }
}

@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

* {
  min-width: 0;
}

.hero-glow {
  width: min(700px, 90vw) !important;
  height: min(700px, 90vw) !important;
  max-width: 700px;
  max-height: 700px;
}

.checker-wrap,
.questions,
.question-item {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 480px) {
  .hero-cta {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }

  .terminal-title {
    font-size: 0.65rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}