/* =========================================================
   EVALLOOP AI
   Visual system inspired by the supplied reference
   ========================================================= */

:root {
  --bg: #101211;
  --panel: #171b18;
  --panel2: #1d221f;

  --ink: #f1f1ef;
  --muted: #a4aaa6;
  --dim: #727974;

  --line: rgba(241, 241, 239, 0.14);
  --line-soft: rgba(241, 241, 239, 0.08);

  --green: #3ecf8e;
  --green2: #85e7ba;
  --darkgreen: #13261c;

  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "DM Mono", monospace;

  --max: 1200px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* =========================================================
   RESET
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 50% -15%,
      rgba(62, 207, 142, 0.075),
      transparent 35%
    ),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: rgba(62, 207, 142, 0.25);
  color: var(--ink);
}

/* =========================================================
   TYPOGRAPHY
   ONLY 300 / 400 / 500
   ========================================================= */

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-weight: 300;
  letter-spacing: -0.04em;
}

p {
  color: var(--muted);
  font-weight: 300;
}

.mono-label,
.section-kicker,
.card-label,
.capability-index,
.capability-symbol,
.process-number,
.process-title,
.dashboard-kicker,
.dashboard-run,
.dashboard-user,
.footer-label,
.window-title,
.window-code,
.hero-meta,
.pricing-name,
.pricing-status,
.sidebar-label,
.sidebar-item,
.score-label,
.analysis-header,
.dashboard-bottom,
.quality-meter-label,
.architecture-header,
.architecture-node,
.announcement-text,
.announcement-link {
  font-family: var(--mono);
}

/* =========================================================
   CONTAINER
   ========================================================= */

.container {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

/* =========================================================
   BACKGROUND
   ========================================================= */

.background-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;

  background-image:
    linear-gradient(
      rgba(241, 241, 239, 0.025) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(241, 241, 239, 0.025) 1px,
      transparent 1px
    );

  background-size: 48px 48px;

  mask-image: linear-gradient(
    to bottom,
    black 0%,
    rgba(0, 0, 0, 0.55) 55%,
    transparent 100%
  );
}

.background-glow {
  position: fixed;
  width: 700px;
  height: 700px;
  left: 50%;
  top: -500px;
  transform: translateX(-50%);
  z-index: -2;
  pointer-events: none;

  background: radial-gradient(
    circle,
    rgba(62, 207, 142, 0.085),
    transparent 68%
  );

  filter: blur(10px);
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */

.page-progress {
  position: fixed;
  left: 0;
  top: 0;
  width: 0%;
  height: 2px;
  z-index: 9999;

  background: var(--green);

  box-shadow:
    0 0 12px rgba(62, 207, 142, 0.35);

  pointer-events: none;
}

/* =========================================================
   CUSTOM CURSOR
   ========================================================= */

.cursor-dot,
.cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 10000;

  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.08s linear;
}

.cursor-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.cursor-ring {
  width: 30px;
  height: 30px;
  margin-left: -12.5px;
  margin-top: -12.5px;

  border: 1px solid rgba(62, 207, 142, 0.45);
  border-radius: 50%;

  transition:
    width 0.25s var(--ease),
    height 0.25s var(--ease),
    margin 0.25s var(--ease),
    border-color 0.25s ease,
    opacity 0.25s ease;
}

.cursor-ring.active {
  width: 44px;
  height: 44px;
  margin-left: -19.5px;
  margin-top: -19.5px;

  border-color: var(--green);
}

/* =========================================================
   ANNOUNCEMENT
   ========================================================= */

.announcement-bar {
  min-height: 34px;
  border-bottom: 1px solid var(--line-soft);

  background: rgba(16, 18, 17, 0.72);
  backdrop-filter: blur(12px);

  position: relative;
  z-index: 100;
}

.announcement-inner {
  min-height: 34px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.announcement-left {
  display: flex;
  align-items: center;
  gap: 10px;

  min-width: 0;
}

.status-dot,
.live-dot,
.tag-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;

  background: var(--green);

  box-shadow:
    0 0 10px rgba(62, 207, 142, 0.6);

  flex: 0 0 auto;
}

.mono-label {
  color: var(--green2);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.announcement-divider {
  width: 1px;
  height: 11px;
  background: var(--line);
}

.announcement-text,
.announcement-link {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.announcement-link {
  color: var(--green2);
  transition: color 0.25s ease;
}

.announcement-link:hover {
  color: var(--ink);
}

.announcement-link span {
  margin-left: 4px;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;

  border-bottom: 1px solid var(--line-soft);

  background: rgba(16, 18, 17, 0.78);
  backdrop-filter: blur(16px);
}

.nav-inner {
  min-height: 76px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: baseline;

  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: -0.04em;
  color: var(--ink);

  white-space: nowrap;
}

.brand-cursor {
  color: var(--green);
  animation: blink 1.2s infinite;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-left: auto;
}

.nav-dropdown {
  position: relative;
  height: 76px;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-chevron {
  color: var(--green2);
  font-size: 14px;
  line-height: 1;
  transform: translateY(-1px);
  transition: transform 0.3s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown:focus-within .nav-dropdown-trigger,
.nav-dropdown-trigger[aria-expanded="true"] {
  color: var(--ink);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron,
.nav-dropdown-trigger[aria-expanded="true"] .nav-chevron {
  transform: translateY(1px) rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  z-index: 200;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: rgba(23, 27, 24, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -8px) scale(0.97);
  transform-origin: top center;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s var(--ease);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0) scale(1);
}

.nav-dropdown-menu a {
  display: grid;
  gap: 3px;
  min-width: 232px;
  padding: 12px 13px;
  border-radius: 3px;
  color: var(--ink);
  font-size: 11px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  outline: none;
  background: rgba(62, 207, 142, 0.09);
  color: var(--green2);
}

.nav-dropdown-menu small {
  color: var(--dim);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 300;
}

.desktop-nav a,
.nav-login {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;

  transition:
    color 0.25s ease,
    opacity 0.25s ease;
}

.desktop-nav a:hover,
.nav-login:hover {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

/* =========================================================
   BUTTONS
   ========================================================= */

.button {
  min-height: 44px;
  padding: 0 17px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  border: 1px solid rgba(62, 207, 142, 0.35);
  border-radius: 3px;

  background: rgba(62, 207, 142, 0.045);
  color: var(--green2);

  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;

  cursor: pointer;

  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    transform 0.25s var(--ease),
    box-shadow 0.25s ease;
}

.button:hover {
  background: rgba(62, 207, 142, 0.10);
  border-color: rgba(62, 207, 142, 0.8);
  color: var(--ink);

  transform: translateY(-1px);

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.18),
    0 0 20px rgba(62, 207, 142, 0.045);
}

.button:focus-visible {
  outline: 1px solid var(--green);
  outline-offset: 4px;
}

.button-primary {
  background: var(--darkgreen);
  border-color: rgba(62, 207, 142, 0.65);
  color: var(--green2);
}

.button-primary:hover {
  background: #193223;
  border-color: var(--green);
}

.button-secondary {
  background: rgba(29, 34, 31, 0.8);
  border-color: var(--line);
  color: var(--muted);
}

.button-secondary:hover {
  border-color: rgba(62, 207, 142, 0.45);
  color: var(--green2);
}

.button-small {
  min-height: 34px;
  padding: 0 13px;
}

.button-large {
  min-height: 50px;
  padding: 0 22px;
}

.button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.button:disabled:hover {
  background: rgba(62, 207, 142, 0.045);
  border-color: rgba(62, 207, 142, 0.35);
  color: var(--green2);
}

/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu-button {
  display: none;

  width: 40px;
  height: 40px;

  border: 1px solid var(--line);
  background: var(--panel);

  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;

  cursor: pointer;
}

.mobile-menu-button span {
  width: 16px;
  height: 1px;
  background: var(--muted);

  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.mobile-menu-button.active span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.mobile-menu-button.active span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

/* =========================================================
   SECTIONS
   ========================================================= */

.section {
  padding: 120px 0;
  position: relative;
}

.section-border {
  border-top: 1px solid var(--line-soft);
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--green2);

  font-size: 10px;
  letter-spacing: 0.10em;
}

.kicker-line {
  width: 26px;
  height: 1px;
  background: var(--green);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 60px;
}

.section-heading h2 {
  margin-top: 20px;

  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.98;
}

.section-heading h2 span,
.hero h1 span,
.download-content h2 span,
.auth-copy h2 span,
.cta-panel h2 span {
  color: var(--green);
}

.section-heading > p {
  max-width: 610px;
  margin-top: 25px;

  font-size: 15px;
  line-height: 1.8;
}

.split-heading {
  display: grid;
  grid-template-columns: 1fr 0.55fr;
  gap: 70px;
  align-items: end;
}

.split-heading > p {
  margin: 0;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  padding-top: 105px;
  padding-bottom: 125px;

  min-height: calc(100vh - 110px);

  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  margin-top: 26px;

  font-size: clamp(64px, 8vw, 112px);
  line-height: 0.88;
}

.hero h1 span {
  display: block;
}

.hero-description {
  max-width: 600px;
  margin-top: 32px;

  font-size: 16px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;

  margin-top: 28px;

  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.meta-dot {
  color: var(--green);
}

.meta-divider {
  width: 1px;
  height: 12px;
  background: var(--line);
  margin: 0 3px;
}

/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
  position: relative;
  min-height: 500px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.evaluation-window {
  position: relative;

  width: min(100%, 510px);

  border: 1px solid var(--line);
  background:
    linear-gradient(
      145deg,
      rgba(29, 34, 31, 0.94),
      rgba(23, 27, 24, 0.88)
    );

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.32);

  overflow: hidden;
}

.window-header {
  height: 45px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 0 16px;

  border-bottom: 1px solid var(--line-soft);

  background: rgba(16, 18, 17, 0.5);
}

.window-title,
.window-code {
  font-size: 9px;
  letter-spacing: 0.06em;
}

.window-title {
  display: flex;
  align-items: center;
  gap: 8px;

  color: var(--muted);
}

.window-code {
  color: var(--dim);
}

.evaluation-body {
  padding: 45px 38px 25px;
}

.evaluation-orb {
  position: relative;

  width: 170px;
  height: 170px;

  margin: 0 auto 35px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.orb-ring {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(62, 207, 142, 0.18);
  border-radius: 50%;
}

.orb-ring-one {
  animation: orbitSpin 12s linear infinite;
}

.orb-ring-two {
  inset: 18px;

  border-color: rgba(62, 207, 142, 0.30);

  animation: orbitSpinReverse 8s linear infinite;
}

.orb-core {
  width: 70px;
  height: 70px;

  border-radius: 50%;

  background:
    radial-gradient(
      circle at 40% 35%,
      rgba(133, 231, 186, 0.8),
      rgba(62, 207, 142, 0.25) 35%,
      rgba(19, 38, 28, 0.9) 70%
    );

  border: 1px solid rgba(62, 207, 142, 0.65);

  box-shadow:
    0 0 40px rgba(62, 207, 142, 0.16),
    inset 0 0 30px rgba(62, 207, 142, 0.12);

  animation: breathe 3.5s ease-in-out infinite;
}

.evaluation-status {
  position: relative;

  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);

  overflow: hidden;
}

.status-label {
  color: var(--dim);

  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.status-value {
  margin-top: 5px;

  color: var(--green2);

  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;

  height: 1px;

  background: var(--green);

  box-shadow:
    0 0 12px rgba(62, 207, 142, 0.5);

  animation: scan 2.7s linear infinite;
}

.evaluation-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;

  margin-top: 20px;

  border: 1px solid var(--line-soft);
  background: var(--line-soft);
}

.metric {
  padding: 16px 10px;

  background: var(--panel);
  text-align: center;
}

.metric > span {
  display: block;

  color: var(--dim);

  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.metric-value {
  margin-top: 7px;

  font-family: var(--mono);
  font-size: 17px;
  color: var(--ink);
}

.metric-green {
  color: var(--green2);
}

.evaluation-footer {
  display: flex;
  justify-content: space-between;

  margin-top: 20px;

  color: var(--dim);

  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.evaluation-footer span:last-child {
  color: var(--green);
}

.floating-tag {
  position: absolute;

  padding: 9px 12px;

  border: 1px solid var(--line);
  background: rgba(23, 27, 24, 0.9);

  color: var(--muted);

  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.04em;

  backdrop-filter: blur(10px);

  animation: float 5s ease-in-out infinite;
}

.tag-one {
  left: -8px;
  top: 90px;

  display: flex;
  align-items: center;
  gap: 8px;
}

.tag-two {
  right: -10px;
  bottom: 105px;
  animation-delay: -2s;
}

.tag-two span {
  color: var(--green2);
  margin-left: 5px;
}

/* =========================================================
   ABOUT
   ========================================================= */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1px;

  background: var(--line);
  border: 1px solid var(--line);
}

.about-card {
  min-height: 330px;

  padding: 30px;

  background: var(--panel);

  display: flex;
  flex-direction: column;
  justify-content: space-between;

  transition:
    background 0.3s ease,
    transform 0.3s var(--ease);
}

.about-card:hover {
  background: var(--panel2);
  transform: translateY(-3px);
}

.card-number {
  color: var(--green);

  font-family: var(--mono);
  font-size: 10px;
}

.card-content {
  margin-top: 60px;
}

.card-label {
  color: var(--dim);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.card-content h3 {
  margin-top: 14px;

  font-size: 26px;
  line-height: 1.12;
}

.card-content p {
  margin-top: 18px;

  font-size: 13px;
  line-height: 1.7;
}

/* =========================================================
   PROCESS
   ========================================================= */

.process-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0;
}

.process-step {
  min-height: 260px;

  padding: 25px;

  border: 1px solid var(--line);

  background: var(--panel);

  position: relative;

  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.process-step:hover {
  background: var(--panel2);
  border-color: rgba(62, 207, 142, 0.25);
}

.process-highlight {
  background:
    linear-gradient(
      145deg,
      rgba(19, 38, 28, 0.95),
      var(--panel)
    );

  border-color: rgba(62, 207, 142, 0.32);
}

.process-number {
  color: var(--dim);
  font-size: 9px;
}

.process-icon {
  margin-top: 40px;

  color: var(--green);

  font-size: 25px;
}

.process-title {
  margin-top: 20px;

  color: var(--ink);

  font-size: 10px;
  letter-spacing: 0.07em;
}

.process-step p {
  margin-top: 12px;

  font-size: 12px;
  line-height: 1.65;
}

.process-connector {
  width: 28px;
  align-self: center;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(62, 207, 142, 0.35),
      transparent
    );
}

/* =========================================================
   ARCHITECTURE
   ========================================================= */

.architecture {
  margin-top: 60px;

  border: 1px solid var(--line);
  background: var(--panel);
}

.architecture-header {
  display: flex;
  justify-content: space-between;

  padding: 14px 18px;

  border-bottom: 1px solid var(--line-soft);

  color: var(--dim);

  font-size: 8px;
  letter-spacing: 0.07em;
}

.architecture-flow {
  min-height: 130px;

  padding: 30px;

  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;

  overflow-x: auto;
}

.architecture-node {
  min-width: 105px;
  height: 52px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--line);

  background: var(--panel2);

  color: var(--muted);

  font-size: 8px;
  letter-spacing: 0.05em;

  white-space: nowrap;
}

.architecture-node-active {
  border-color: rgba(62, 207, 142, 0.6);

  background: var(--darkgreen);

  color: var(--green2);

  box-shadow:
    0 0 30px rgba(62, 207, 142, 0.06);
}

.architecture-arrow {
  color: var(--green);
  font-family: var(--mono);
}

/* =========================================================
   CAPABILITIES
   ========================================================= */

.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;

  background: var(--line);
  border: 1px solid var(--line);
}

.capability-card {
  min-height: 290px;

  padding: 28px;

  background: var(--panel);

  transition:
    background 0.3s ease,
    transform 0.3s var(--ease);
}

.capability-card:hover {
  background: var(--panel2);
  transform: translateY(-3px);
}

.capability-large {
  grid-row: span 2;
  min-height: 581px;

  background:
    linear-gradient(
      150deg,
      rgba(19, 38, 28, 0.75),
      var(--panel)
    );
}

.capability-wide {
  grid-column: span 2;

  min-height: 290px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.capability-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.capability-index {
  color: var(--dim);
  font-size: 9px;
}

.capability-symbol {
  color: var(--green);
  font-size: 18px;
}

.capability-card h3 {
  margin-top: 75px;

  font-size: 27px;
  line-height: 1.05;
}

.capability-card p {
  margin-top: 15px;

  max-width: 400px;

  font-size: 13px;
  line-height: 1.75;
}

.capability-line {
  height: 1px;

  margin-top: 50px;

  background:
    linear-gradient(
      90deg,
      var(--green),
      transparent
    );

  opacity: 0.4;
}

.capability-status {
  display: flex;
  justify-content: space-between;

  margin-top: 15px;

  font-family: var(--mono);
  font-size: 8px;
  color: var(--dim);
}

.capability-status span:last-child {
  color: var(--green);
}

.capability-wide-content h3 {
  margin-top: 75px;
}

.quality-meter {
  align-self: end;
}

.quality-meter-label {
  display: flex;
  justify-content: space-between;

  margin-bottom: 10px;

  color: var(--dim);

  font-size: 8px;
}

.quality-meter-label span:last-child {
  color: var(--green2);
}

.quality-meter-track {
  height: 3px;

  background: rgba(241, 241, 239, 0.08);
}

.quality-meter-fill {
  width: 94.3%;
  height: 100%;

  background: var(--green);

  box-shadow:
    0 0 10px rgba(62, 207, 142, 0.25);
}

/* =========================================================
   DASHBOARD
   ========================================================= */

.dashboard {
  border: 1px solid var(--line);

  background: #121513;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.35);
}

.dashboard-topbar {
  min-height: 50px;

  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;

  padding: 0 18px;

  border-bottom: 1px solid var(--line-soft);

  font-family: var(--mono);
  font-size: 8px;
}

.dashboard-brand {
  color: var(--ink);
}

.dashboard-nav {
  display: flex;
  gap: 28px;
  color: var(--dim);
}

.dashboard-nav-active {
  color: var(--green2);
}

.dashboard-user {
  justify-self: end;
  color: var(--dim);
}

.dashboard-content {
  display: grid;
  grid-template-columns: 185px 1fr;
}

.dashboard-sidebar {
  min-height: 520px;

  padding: 25px 15px;

  border-right: 1px solid var(--line-soft);

  background: rgba(23, 27, 24, 0.45);
}

.sidebar-label {
  margin: 12px 8px;

  color: var(--dim);

  font-size: 7px;
  letter-spacing: 0.08em;
}

.sidebar-item {
  padding: 9px 8px;

  color: var(--muted);

  font-size: 8px;

  border-left: 1px solid transparent;
}

.sidebar-item-active {
  color: var(--green2);

  border-left-color: var(--green);

  background: rgba(62, 207, 142, 0.045);
}

.sidebar-divider {
  height: 1px;
  background: var(--line-soft);

  margin: 20px 8px;
}

.dashboard-main {
  padding: 30px;
  min-width: 0;
}

.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.dashboard-kicker {
  color: var(--dim);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.dashboard-heading h3 {
  margin-top: 6px;
  font-size: 26px;
}

.dashboard-run {
  padding: 6px 9px;

  color: var(--green);

  border: 1px solid rgba(62, 207, 142, 0.25);

  font-size: 7px;
}

.dashboard-score-row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 1px;

  margin-top: 30px;

  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}

.score-card {
  min-height: 135px;
  padding: 18px;

  background: var(--panel);
}

.score-main {
  background:
    linear-gradient(
      145deg,
      rgba(19, 38, 28, 0.7),
      var(--panel)
    );
}

.score-label {
  color: var(--dim);
  font-size: 7px;
  letter-spacing: 0.06em;
}

.score-number {
  margin-top: 14px;

  color: var(--green2);

  font-family: var(--mono);
  font-size: 38px;
  line-height: 1;
}

.score-description {
  margin-top: 10px;

  color: var(--muted);

  font-size: 9px;
}

.small-score {
  margin-top: 17px;

  font-family: var(--mono);
  font-size: 25px;
  color: var(--ink);
}

.score-bar {
  height: 2px;
  margin-top: 14px;

  background: rgba(241, 241, 239, 0.08);
}

.score-bar span {
  display: block;
  height: 100%;

  background: var(--green);
}

.dashboard-analysis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;

  margin-top: 1px;

  background: var(--line-soft);
}

.analysis-card {
  min-height: 170px;

  padding: 20px;

  background: var(--panel);
}

.analysis-header {
  display: flex;
  justify-content: space-between;

  color: var(--dim);

  font-size: 7px;
  letter-spacing: 0.06em;
}

.analysis-header span:last-child {
  color: var(--green);
}

.analysis-item {
  display: flex;
  gap: 14px;

  margin-top: 25px;
}

.analysis-icon {
  width: 25px;
  height: 25px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border: 1px solid rgba(62, 207, 142, 0.25);

  color: var(--green);

  font-family: var(--mono);
  font-size: 9px;
}

.analysis-item strong {
  font-size: 12px;
  font-weight: 400;
}

.analysis-item p {
  margin-top: 6px;

  font-size: 10px;
  line-height: 1.6;
}

.summary-text {
  margin-top: 25px;

  max-width: 430px;

  font-size: 11px;
  line-height: 1.8;
}

.dashboard-bottom {
  display: flex;
  justify-content: space-between;

  margin-top: 20px;

  color: var(--dim);

  font-size: 7px;
}

/* =========================================================
   DOWNLOAD
   ========================================================= */

.download-panel {
  min-height: 450px;

  display: grid;
  grid-template-columns: 1fr 0.65fr;

  border: 1px solid var(--line);

  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(62, 207, 142, 0.055),
      transparent 40%
    ),
    var(--panel);

  overflow: hidden;
}

.download-content {
  padding: 65px;
  align-self: center;
}

.download-content h2 {
  margin-top: 22px;

  max-width: 650px;

  font-size: clamp(42px, 5vw, 65px);
  line-height: 0.98;
}

.download-content p {
  max-width: 560px;

  margin-top: 25px;

  font-size: 14px;
  line-height: 1.8;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;

  margin-top: 30px;
}

.download-visual {
  min-height: 450px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-left: 1px solid var(--line-soft);
}

.download-orbit {
  width: 260px;
  height: 260px;

  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(62, 207, 142, 0.16);
  border-radius: 50%;
}

.orbit-a {
  animation: orbitSpin 16s linear infinite;
}

.orbit-b {
  inset: 28px;
  border-color: rgba(62, 207, 142, 0.25);

  animation: orbitSpinReverse 10s linear infinite;
}

.orbit-c {
  inset: 65px;
  border-color: rgba(62, 207, 142, 0.4);

  animation: orbitSpin 7s linear infinite;
}

.download-core {
  width: 72px;
  height: 72px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--green);

  background: var(--darkgreen);

  color: var(--green2);

  font-family: var(--mono);
  font-size: 16px;

  box-shadow:
    0 0 40px rgba(62, 207, 142, 0.12);
}

/* =========================================================
   PRICING
   ========================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 1px;

  background: var(--line);
  border: 1px solid var(--line);
}

.pricing-card {
  padding: 35px;

  background: var(--panel);
}

.pricing-main {
  background:
    linear-gradient(
      145deg,
      rgba(19, 38, 28, 0.65),
      var(--panel)
    );
}

.pricing-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pricing-name {
  color: var(--green2);

  font-size: 10px;
  letter-spacing: 0.08em;
}

.pricing-status {
  padding: 5px 8px;

  border: 1px solid rgba(62, 207, 142, 0.25);

  color: var(--green);

  font-size: 7px;
}

.pricing-price {
  display: flex;
  align-items: baseline;

  margin-top: 40px;
}

.price-symbol {
  color: var(--green);

  font-family: var(--mono);
  font-size: 20px;
}

.price-number {
  margin-left: 7px;

  font-family: var(--mono);
  font-size: 70px;
  line-height: 1;

  font-weight: 400;
}

.price-period {
  margin-left: 10px;

  color: var(--dim);

  font-family: var(--mono);
  font-size: 8px;
}

.pricing-description {
  margin-top: 15px;

  font-size: 13px;
}

.pricing-divider {
  height: 1px;

  margin: 30px 0;

  background: var(--line-soft);
}

.pricing-features {
  list-style: none;

  display: grid;
  gap: 14px;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;

  color: var(--muted);

  font-size: 12px;
}

.pricing-features li span {
  color: var(--green);
  font-family: var(--mono);
}

.pricing-button {
  width: 100%;
  margin-top: 35px;
}

.pricing-info {
  background: var(--panel);
  padding: 35px;
}

.pricing-info-row {
  min-height: 70px;

  display: flex;
  justify-content: space-between;
  align-items: center;

  border-bottom: 1px solid var(--line-soft);

  font-family: var(--mono);
  font-size: 8px;
}

.pricing-info-row span:first-child {
  color: var(--dim);
}

.pricing-info-row span:last-child {
  color: var(--green2);
}

.pricing-info-note {
  display: flex;
  gap: 10px;

  margin-top: 35px;

  color: var(--dim);

  font-family: var(--mono);
  font-size: 8px;
  line-height: 1.7;
}

.note-symbol {
  color: var(--green);
}

/* =========================================================
   AUTH
   ========================================================= */

.auth-panel {
  min-height: 300px;

  padding: 55px;

  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;

  border: 1px solid var(--line);

  background:
    linear-gradient(
      135deg,
      rgba(23, 27, 24, 0.95),
      rgba(19, 38, 28, 0.38)
    );
}

.auth-copy h2 {
  margin-top: 20px;

  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
}

.auth-copy p {
  max-width: 570px;

  margin-top: 20px;

  font-size: 14px;
}

.auth-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
}

.auth-login-link {
  color: var(--dim);

  font-family: var(--mono);
  font-size: 8px;

  transition: color 0.25s ease;
}

.auth-login-link:hover {
  color: var(--green2);
}

/* =========================================================
   FAQ
   ========================================================= */

.faq-list {
  max-width: 900px;

  margin: 0 auto;
}

.faq-item {
  border-top: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  width: 100%;

  min-height: 82px;

  padding: 0;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 30px;

  border: 0;
  background: transparent;

  color: var(--ink);

  text-align: left;

  cursor: pointer;

  font-size: 16px;
  font-weight: 300;
}

.faq-icon {
  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  flex: 0 0 auto;

  border: 1px solid var(--line);

  color: var(--green);

  font-family: var(--mono);
  font-size: 14px;

  transition:
    transform 0.3s var(--ease),
    background 0.3s ease,
    border-color 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);

  background: var(--darkgreen);
  border-color: rgba(62, 207, 142, 0.4);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;

  transition: grid-template-rows 0.35s var(--ease);
}

.faq-answer p {
  overflow: hidden;

  max-width: 720px;

  font-size: 13px;
  line-height: 1.8;

  padding-right: 50px;
}

.faq-item.active .faq-answer {
  grid-template-rows: 1fr;
}

.faq-item.active .faq-answer p {
  padding-bottom: 28px;
}

/* =========================================================
   FINAL CTA
   ========================================================= */

.final-cta {
  padding-top: 80px;
  padding-bottom: 120px;
}

.cta-panel {
  padding: 70px;

  border: 1px solid rgba(62, 207, 142, 0.18);

  background:
    radial-gradient(
      circle at 80% 50%,
      rgba(62, 207, 142, 0.07),
      transparent 40%
    ),
    var(--panel);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 50px;
}

.cta-panel h2 {
  margin-top: 22px;

  max-width: 800px;

  font-size: clamp(48px, 6vw, 78px);
  line-height: 0.95;
}

.cta-panel p {
  max-width: 550px;

  margin-top: 22px;

  font-size: 14px;
}

.cta-action {
  justify-self: end;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  border-top: 1px solid var(--line-soft);

  padding: 65px 0 25px;

  background: rgba(16, 18, 17, 0.75);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}

.footer-brand p {
  margin-top: 15px;

  font-size: 11px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-label {
  margin-bottom: 5px;

  color: var(--dim);

  font-size: 8px;
  letter-spacing: 0.08em;
}

.footer-column a {
  color: var(--muted);

  font-size: 11px;

  transition: color 0.25s ease;
}

.footer-column a:hover {
  color: var(--green2);
}


.footer-bottom {
  display: flex;
  justify-content: space-between;

  margin-top: 70px;
  padding-top: 20px;

  border-top: 1px solid var(--line-soft);

  color: var(--dim);

  font-family: var(--mono);
  font-size: 7px;
  letter-spacing: 0.05em;
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */

.reveal,
.reveal.visible {
  /* Static final state: no slide, fade, or blur reveal. */
  opacity: 1;
  transform: none;
  filter: none;
  will-change: auto;
  transition: none;
}

/* Scroll-linked depth layers */
.scroll-depth {
  --scroll-shift: 0px;
  translate: 0 var(--scroll-shift);
  will-change: translate;
}

.scroll-depth-slow {
  --scroll-shift: 0px;
  translate: 0 var(--scroll-shift);
  will-change: translate;
}

.hero-visual.scroll-depth {
  rotate: var(--scroll-rotate, 0deg);
  scale: var(--scroll-scale, 1);
  transition: rotate 0.35s var(--ease), scale 0.35s var(--ease);
}

.capability-card,
.process-step,
.about-card,
.pricing-card,
.faq-item {
  translate: 0 var(--scroll-lift, 0px);
  scale: var(--scroll-scale, 1);
  transition: translate 0.18s linear, scale 0.18s linear, border-color 0.35s ease, background 0.35s ease;
  will-change: translate, scale;
}

body.is-scrolling-down .section-kicker::after {
  transform: scaleX(1.35);
  transform-origin: left center;
}

.section-kicker::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-left: 10px;
  vertical-align: middle;
  background: var(--green);
  opacity: 0.65;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease);
}

.section-border {
  isolation: isolate;
}

.section-border::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at 50% 15%,
    rgba(62, 207, 142, 0.055),
    transparent 48%
  );
  transition: opacity 0.7s ease;
}

.section-border.in-view::before {
  opacity: 1;
}

/* Focus the section currently being read */
.scroll-focus-enabled main > .section {
  position: relative;
  transition: opacity 0.95s var(--ease), filter 0.95s var(--ease), transform 0.95s var(--ease);
  will-change: opacity, filter, transform;
}

.scroll-focus-enabled main > .section:not(.is-current) > .container {
  opacity: 0.28;
  filter: blur(3px) saturate(0.62);
  transform: scale(0.94) translate3d(0, 12px, 0);
  transition: opacity 0.65s var(--ease), filter 0.65s var(--ease), transform 0.65s var(--ease);
}

.scroll-focus-enabled main > .section.is-current > .container {
  opacity: 1;
  filter: none;
  transform: scale(1.035) translate3d(0, 0, 0);
  transition: opacity 0.65s var(--ease), filter 0.65s var(--ease), transform 0.65s var(--ease);
}

.scroll-focus-enabled main > .section.is-current {
  z-index: 2;
}

@media (max-width: 700px) {
  .scroll-focus-enabled main > .section:not(.is-current) > .container {
    opacity: 0.46;
    filter: blur(1.5px) saturate(0.76);
    transform: scale(0.975) translate3d(0, 6px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.visible,
  .scroll-depth,
  .scroll-depth-slow {
    opacity: 1;
    filter: none;
    transform: none;
    translate: none;
    transition: none;
  }
}

/* Static-scrolling presentation: disable parallax, scroll-focus dimming/blur,
   and scroll-linked card/hero movement. */
.scroll-depth,
.scroll-depth-slow {
  translate: none !important;
  will-change: auto !important;
}

.hero-visual.scroll-depth {
  rotate: none !important;
  scale: 1 !important;
  transition: none !important;
}

.capability-card,
.process-step,
.about-card,
.pricing-card,
.faq-item {
  translate: none !important;
  scale: 1 !important;
  will-change: auto !important;
}

.scroll-focus-enabled main > .section,
.scroll-focus-enabled main > .section:not(.is-current) > .container,
.scroll-focus-enabled main > .section.is-current > .container {
  opacity: 1 !important;
  filter: none !important;
  transform: none !important;
  transition: none !important;
  will-change: auto !important;
}

/* =========================================================
   KEYFRAMES
   ========================================================= */

@keyframes blink {
  0%,
  45% {
    opacity: 1;
  }

  46%,
  100% {
    opacity: 0.2;
  }
}

@keyframes orbitSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes orbitSpinReverse {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes breathe {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.8;
  }

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

@keyframes scan {
  0% {
    transform: translateY(0);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  85% {
    opacity: 1;
  }

  100% {
    transform: translateY(55px);
    opacity: 0;
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 70px;
  }

  .hero-content {
    max-width: 800px;
  }

  .hero-visual {
    min-height: 460px;
  }

  .about-grid {
    grid-template-columns: 1fr 1fr;
  }

  .about-card-large {
    grid-column: span 2;
  }

  .process-flow {
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    background: var(--line);
  }

  .process-connector {
    display: none;
  }

  .process-step {
    min-height: 230px;
  }

  .capabilities-grid {
    grid-template-columns: 1fr 1fr;
  }

  .capability-large {
    grid-row: span 1;
    min-height: 290px;
  }

  .capability-wide {
    grid-column: span 2;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .auth-panel {
    grid-template-columns: 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .cta-action {
    justify-self: start;
  }

}

@media (max-width: 800px) {

  .container {
    width: min(calc(100% - 32px), var(--max));
  }

  .desktop-nav,
  .nav-actions {
    display: none;
  }

  .mobile-menu-button {
    display: flex;
  }

  .mobile-nav {
    position: fixed;
    left: 0;
    right: 0;
    top: 110px;

    display: flex;
    flex-direction: column;

    padding: 25px 16px 35px;

    border-bottom: 1px solid var(--line);

    background: rgba(16, 18, 17, 0.98);

    transform: translateY(-120%);
    opacity: 0;

    transition:
      transform 0.35s var(--ease),
      opacity 0.35s ease;

    pointer-events: none;
  }

  .mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-nav > a {
    padding: 16px 5px;

    border-bottom: 1px solid var(--line-soft);

    color: var(--muted);

    font-size: 14px;
  }

  .mobile-nav-dropdown {
    border-bottom: 1px solid var(--line-soft);
  }

  .mobile-nav-dropdown-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 5px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font: inherit;
    font-size: 14px;
    text-align: left;
  }

  .mobile-nav-dropdown-trigger .nav-chevron {
    transition: transform 0.3s var(--ease);
  }

  .mobile-nav-dropdown.is-open .mobile-nav-dropdown-trigger {
    color: var(--green2);
  }

  .mobile-nav-dropdown.is-open .nav-chevron {
    transform: rotate(180deg);
  }

  .mobile-nav-dropdown-menu {
    display: grid;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s var(--ease), opacity 0.3s ease;
  }

  .mobile-nav-dropdown.is-open .mobile-nav-dropdown-menu {
    max-height: 240px;
    padding: 0 0 8px;
    opacity: 1;
  }

  .mobile-nav-dropdown-menu a {
    padding: 10px 18px;
    color: var(--dim);
    font-size: 12px;
  }

  .mobile-nav-dropdown-menu a:hover,
  .mobile-nav-dropdown-menu a:focus-visible {
    color: var(--green2);
  }

  .mobile-nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;

    padding-top: 22px;
  }

  .mobile-nav-actions > a:first-child {
    color: var(--muted);
    font-size: 13px;
  }

  .section {
    padding: 90px 0;
  }

  .hero {
    padding-top: 80px;
    min-height: auto;
  }

  .hero h1 {
    font-size: clamp(58px, 15vw, 90px);
  }

  .hero-description {
    font-size: 14px;
  }

  .hero-visual {
    min-height: 400px;
  }

  .evaluation-window {
    width: 100%;
  }

  .section-heading h2 {
    font-size: clamp(40px, 11vw, 65px);
  }

  .split-heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card-large {
    grid-column: auto;
  }

  .process-flow {
    grid-template-columns: 1fr;
  }

  .capabilities-grid {
    grid-template-columns: 1fr;
  }

  .capability-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .dashboard-content {
    grid-template-columns: 1fr;
  }

  .dashboard-sidebar {
    display: none;
  }

  .dashboard-score-row {
    grid-template-columns: 1fr 1fr;
  }

  .dashboard-analysis {
    grid-template-columns: 1fr;
  }

  .download-panel {
    grid-template-columns: 1fr;
  }

  .download-content {
    padding: 45px 30px;
  }

  .download-visual {
    min-height: 320px;
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

}

@media (max-width: 520px) {

  .announcement-text,
  .announcement-divider {
    display: none;
  }

  .announcement-link {
    font-size: 8px;
  }

  .nav-inner {
    min-height: 66px;
  }

  .mobile-nav {
    top: 100px;
  }

  .hero {
    padding-top: 65px;
  }

  .hero h1 {
    font-size: clamp(52px, 16vw, 75px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-meta {
    line-height: 2;
  }

  .hero-visual {
    min-height: 340px;
  }

  .evaluation-body {
    padding: 30px 18px 20px;
  }

  .evaluation-orb {
    width: 130px;
    height: 130px;
  }

  .orb-core {
    width: 55px;
    height: 55px;
  }

  .evaluation-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .floating-tag {
    display: none;
  }

  .architecture-flow {
    justify-content: flex-start;
  }

  .architecture-node {
    min-width: 90px;
  }

  .dashboard-topbar {
    grid-template-columns: 1fr auto;
  }

  .dashboard-nav {
    display: none;
  }

  .dashboard-main {
    padding: 20px 15px;
  }

  .dashboard-score-row {
    grid-template-columns: 1fr;
  }

  .dashboard-heading {
    flex-direction: column;
  }

  .cta-panel {
    padding: 45px 25px;
  }

  .cta-panel h2 {
    font-size: 48px;
  }

  .auth-panel {
    padding: 40px 25px;
  }

  .pricing-card,
  .pricing-info {
    padding: 28px 22px;
  }

  .cursor-dot,
  .cursor-ring {
    display: none;
  }

}

/* =========================================================
   FOOTER — TABLET & MOBILE RESPONSIVE
   ========================================================= */

@media (max-width: 900px) {

  .site-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .site-footer .footer-brand {
    width: 100%;
  }

  .site-footer .footer-columns {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }

}


@media (max-width: 600px) {

  .site-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .site-footer .footer-top {
    gap: 40px;
  }

  .site-footer .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }

  .site-footer .footer-column {
    min-width: 0;
  }

  .site-footer .footer-column a {
    display: block;
    white-space: normal;
  }

  .site-footer .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

}


@media (max-width: 380px) {

  .site-footer .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .site-footer .footer-bottom {
    gap: 10px;
  }

}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

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

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

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

}
    /* =========================================================
   AUTHENTICATED PROFILE
   ========================================================= */

.auth-logged-out,
.auth-logged-in {
  display: flex;
  align-items: center;
  gap: 14px;
}

.auth-logged-in {
  position: relative;
}

.profile-trigger {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 7px 4px 4px;
  border: 1px solid rgba(241, 241, 239, 0.12);
  border-radius: 999px;
  background: rgba(23, 27, 24, 0.72);
  color: #f1f1ef;
  cursor: pointer;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.profile-trigger:hover {
  border-color: rgba(62, 207, 142, 0.35);
  background: rgba(29, 34, 31, 0.9);
}

.profile-avatar,
.profile-menu-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: #13261c;
  border: 1px solid rgba(62, 207, 142, 0.35);
  color: #85e7ba;
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
}

.profile-avatar {
  width: 30px;
  height: 30px;
}

.profile-name {
  font-size: 12px;
  font-weight: 500;
  color: #f1f1ef;
}

.profile-chevron {
  color: #727974;
  font-size: 13px;
  line-height: 1;
  margin-left: 1px;
}

/* Profile dropdown */

.profile-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 250px;
  padding: 8px;
  border: 1px solid rgba(241, 241, 239, 0.13);
  border-radius: 12px;
  background: rgba(16, 18, 17, 0.97);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(18px);
  z-index: 1000;
}

.profile-menu[aria-hidden="true"] {
  display: none;
}

.profile-menu[aria-hidden="false"] {
  display: block;
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 8px 11px;
}

.profile-menu-avatar {
  width: 38px;
  height: 38px;
  font-size: 12px;
}

.profile-menu-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.profile-menu-identity strong {
  color: #f1f1ef;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-identity span {
  color: #727974;
  font-size: 10px;
  font-family: "DM Mono", monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-menu-divider {
  height: 1px;
  margin: 5px 0;
  background: rgba(241, 241, 239, 0.08);
}

.profile-menu a,
.profile-logout {
  width: 100%;
  display: flex;
  align-items: center;
  padding: 9px 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #a4aaa6;
  text-decoration: none;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  cursor: pointer;
  transition:
    background 140ms ease,
    color 140ms ease;
}

.profile-menu a:hover,
.profile-logout:hover {
  background: rgba(62, 207, 142, 0.07);
  color: #f1f1ef;
}

.profile-logout {
  color: #a4aaa6;
}

/* =========================================================
   MOBILE PROFILE
   ========================================================= */

.mobile-auth-logged-out,
.mobile-auth-logged-in {
  width: 100%;
}

.mobile-auth-logged-in {
  display: flex;
  flex-direction: column;
}

.mobile-profile-summary {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 0 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(241, 241, 239, 0.08);
}

.mobile-profile-summary > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mobile-profile-summary strong {
  color: #f1f1ef;
  font-size: 13px;
  font-weight: 500;
}

.mobile-profile-summary span:not(.profile-avatar) {
  color: #727974;
  font-size: 10px;
  font-family: "DM Mono", monospace;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mobile-profile-logout {
  margin-top: 6px;
  padding: 10px 0;
  border: 0;
  border-top: 1px solid rgba(241, 241, 239, 0.08);
  background: transparent;
  color: #a4aaa6;
  font-family: inherit;
  font-size: 13px;
  text-align: left;
  cursor: pointer;
}

.mobile-profile-logout:hover {
  color: #f1f1ef;
}

@media (max-width: 760px) {

  .profile-name,
  .profile-chevron {
    display: none;
  }

  .profile-trigger {
    padding: 3px;
    border: 0;
    background: transparent;
  }

  .profile-trigger:hover {
    background: transparent;
  }

  .profile-menu {
    right: -4px;
    width: min(250px, calc(100vw - 32px));
  }

}
    /* Authentication states */

.auth-logged-in[hidden],
.auth-logged-out[hidden],
.mobile-auth-logged-in[hidden],
.mobile-auth-logged-out[hidden] {
  display: none !important;
}


/* History page additions; visual tokens and shared navigation come from the reference page. */
.history-main { padding:70px 0 110px; }
.history-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:32px; margin-bottom:48px; }
.history-heading-copy { max-width:760px; }
.history-heading h1 { margin-top:24px; font-size:clamp(48px,7vw,86px); line-height:.94; letter-spacing:-.055em; font-weight:300; }
.history-heading h1 span { color:var(--green); }
.history-heading p { max-width:650px; margin-top:24px; font-size:14px; line-height:1.85; }
.history-heading-actions { display:flex; flex-wrap:wrap; gap:10px; }
.history-block { margin-top:62px; }
.history-section-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:25px; }
.history-section-heading h2 { margin-top:15px; font-size:clamp(30px,4vw,44px); line-height:1.05; font-weight:300; }
.history-section-heading p { max-width:450px; font-size:12px; line-height:1.8; text-align:right; }
.history-actions-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; border:1px solid var(--line); background:var(--line); }
.history-action-card { min-height:150px; display:grid; grid-template-columns:auto 1fr auto; align-items:start; gap:17px; padding:25px; background:var(--panel); transition:background .25s ease; }
.history-action-card:hover { background:var(--panel2); }
.history-action-symbol { width:36px; height:36px; display:grid; place-items:center; border:1px solid rgba(62,207,142,.32); background:var(--darkgreen); color:var(--green2); font-family:var(--mono); font-size:16px; }
.history-action-card h3 { font-size:17px; line-height:1.25; font-weight:400; letter-spacing:-.025em; }
.history-action-card p { margin-top:10px; font-size:11px; line-height:1.7; }
.history-action-arrow { color:var(--green); font-family:var(--mono); font-size:16px; }
.history-kpi-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:1px; border:1px solid var(--line); background:var(--line); }
.history-kpi { min-width:0; min-height:132px; padding:20px 16px; background:var(--panel); }
.history-kpi-label { color:var(--dim); font-family:var(--mono); font-size:8px; letter-spacing:.07em; line-height:1.6; text-transform:uppercase; }
.history-kpi-value { margin-top:17px; color:var(--ink); font-family:var(--mono); font-size:clamp(23px,2.6vw,35px); line-height:1; letter-spacing:-.06em; overflow-wrap:anywhere; }
.history-kpi-value.green { color:var(--green2); }
.history-kpi-note { margin-top:12px; color:var(--dim); font-size:9px; }
.history-panels-grid { display:grid; grid-template-columns:1.15fr .85fr; gap:1px; border:1px solid var(--line); background:var(--line); }
.history-panel { min-width:0; padding:27px; background:var(--panel); }
.history-panel-heading { display:flex; justify-content:space-between; align-items:flex-start; gap:15px; margin-bottom:22px; }
.history-panel-heading h3 { margin-top:10px; font-size:23px; line-height:1.15; font-weight:300; }
.history-panel-description { margin-top:-10px; margin-bottom:24px; font-size:11px; line-height:1.75; }
.history-chart-wrap { position:relative; height:280px; width:100%; }
.history-empty-chart { min-height:250px; display:grid; place-items:center; padding:25px; text-align:center; border:1px dashed var(--line); color:var(--muted); font-family:var(--mono); font-size:10px; }
.history-dimensions { display:grid; gap:18px; }
.history-dimension-top { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; font-size:10px; }
.history-dimension-name { color:var(--muted); }
.history-dimension-score { color:var(--green2); font-family:var(--mono); font-size:9px; }
.history-bar-track { height:3px; background:rgba(241,241,239,.09); }
.history-bar-fill { height:100%; background:var(--green); box-shadow:0 0 10px rgba(62,207,142,.2); }
.history-toolbar { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:18px; }
.history-filters { display:flex; flex-wrap:wrap; gap:5px; }
.history-filter { min-height:34px; padding:0 13px; border:1px solid var(--line); background:transparent; color:var(--muted); font-family:var(--mono); font-size:9px; cursor:pointer; }
.history-filter:hover,.history-filter.active { border-color:rgba(62,207,142,.45); background:var(--darkgreen); color:var(--green2); }
.history-search { display:flex; align-items:center; gap:8px; width:min(280px,100%); min-height:36px; padding:0 12px; border:1px solid var(--line); background:var(--panel); color:var(--muted); }
.history-search input { width:100%; min-width:0; border:0; outline:0; background:transparent; color:var(--ink); font-size:11px; }
.history-table-wrap { overflow-x:auto; border:1px solid var(--line); background:rgba(23,27,24,.72); }
.history-table { width:100%; min-width:720px; border-collapse:collapse; text-align:left; }
.history-table th { padding:14px 16px; border-bottom:1px solid var(--line); color:var(--dim); font-family:var(--mono); font-size:8px; font-weight:400; letter-spacing:.08em; text-transform:uppercase; }
.history-table td { padding:15px 16px; border-bottom:1px solid var(--line-soft); color:var(--muted); font-size:10px; vertical-align:middle; }
.history-table tbody tr:last-child td { border-bottom:0; }
.history-table tbody tr:hover { background:rgba(62,207,142,.025); }
.history-table .date-cell { white-space:nowrap; font-family:var(--mono); font-size:9px; }
.history-table .type-pill { display:inline-flex; padding:4px 6px; border:1px solid var(--line); color:var(--muted); font-family:var(--mono); font-size:8px; }
.history-table .type-pill.general { border-color:rgba(62,207,142,.25); color:var(--green2); }
.history-table .type-pill.compare { border-color:rgba(139,160,255,.28); color:#b7c5ff; }
.history-table .type-pill.safety { border-color:rgba(231,194,115,.28); color:#e7c273; }
.history-table .prompt-cell { max-width:400px; color:var(--ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.history-table .result-cell { color:var(--green2); font-family:var(--mono); font-size:9px; white-space:nowrap; }
.history-table .open-button { min-height:30px; padding:0 10px; border:1px solid rgba(62,207,142,.28); background:transparent; color:var(--green2); font-family:var(--mono); font-size:8px; white-space:nowrap; }
.history-table .open-button:hover { background:rgba(62,207,142,.08); border-color:var(--green); }
.history-empty-state { display:grid; gap:7px; padding:42px 20px; text-align:center; border:1px solid var(--line); color:var(--muted); font-size:11px; }
.history-empty-state strong { color:var(--ink); font-weight:400; }
.history-notice { padding:15px 17px; margin:20px 0; border:1px solid var(--line); background:var(--panel); color:var(--muted); font-size:11px; }
.history-notice.error { border-color:rgba(225,110,110,.4); color:#efb0b0; }
.history-login-gate { max-width:720px; margin:65px auto 120px; padding:55px; border:1px solid var(--line); background:linear-gradient(145deg,rgba(19,38,28,.6),var(--panel)); }
.history-login-gate h1 { margin-top:20px; font-size:clamp(34px,5vw,56px); line-height:1.02; font-weight:300; }
.history-login-gate p { margin:18px 0 25px; font-size:13px; line-height:1.8; }
.history-detail-dialog { width:min(820px,calc(100% - 28px)); max-height:86vh; padding:0; border:1px solid var(--line); background:#121513; color:var(--ink); overflow:auto; }
.history-detail-dialog::backdrop { background:rgba(0,0,0,.78); backdrop-filter:blur(5px); }
.history-dialog-inner { padding:28px; }
.history-dialog-head { display:flex; justify-content:space-between; gap:20px; align-items:flex-start; padding-bottom:20px; border-bottom:1px solid var(--line-soft); }
.history-dialog-head h2 { margin-top:12px; font-size:30px; font-weight:300; }
.history-dialog-close { width:34px; height:34px; border:1px solid var(--line); background:var(--panel); color:var(--muted); font-size:20px; cursor:pointer; }
.history-detail-meta { display:flex; flex-wrap:wrap; gap:8px; margin:18px 0; }
.history-detail-meta span { padding:6px 8px; border:1px solid var(--line); color:var(--muted); font-family:var(--mono); font-size:8px; }
.detail-block { padding:17px; border:1px solid var(--line-soft); background:var(--panel); }
.detail-block h3 { margin-bottom:10px; color:var(--green2); font-family:var(--mono); font-size:9px; font-weight:400; letter-spacing:.08em; text-transform:uppercase; }
.detail-block p,.json-view { color:var(--muted); font-size:11px; line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.json-view { margin:0; font-family:var(--mono); font-size:10px; }
.score-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); }
.score-chip { padding:12px; background:var(--panel2); }
.score-chip span { display:block; color:var(--dim); font-family:var(--mono); font-size:8px; }
.score-chip strong { display:block; margin-top:7px; color:var(--green2); font-family:var(--mono); font-size:14px; font-weight:400; }
[hidden] { display:none !important; }
@media (max-width:1050px) { .history-kpi-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.history-panels-grid{grid-template-columns:1fr} }
@media (max-width:800px) {
 .history-main{padding:55px 0 80px}.history-heading{align-items:flex-start;flex-direction:column;gap:24px;margin-bottom:35px}
 .history-heading-actions{width:100%}.history-heading-actions .button{flex:1}.history-actions-grid{grid-template-columns:1fr}
 .history-action-card{min-height:120px}.history-section-heading{align-items:flex-start;flex-direction:column;gap:10px}
 .history-section-heading p{text-align:left}.history-toolbar{align-items:stretch;flex-direction:column}.history-search{width:100%}
}
@media (max-width:520px) {
 .history-main{padding:42px 0 65px}.history-heading h1{font-size:clamp(44px,13vw,64px)}.history-heading p{font-size:12px}
 .history-block{margin-top:45px}.history-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .history-kpi{min-height:118px;padding:15px 12px}.history-kpi-value{font-size:26px}.history-panel{padding:18px 14px}
 .history-chart-wrap{height:235px}.history-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .history-filter{padding:0 4px}.history-login-gate{margin:35px auto 80px;padding:28px 20px}
 .history-dialog-inner{padding:18px}.history-dialog-head h2{font-size:24px}.score-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}


/* Match class names emitted by the dimension-bar renderer. */
.dimension-row { display:grid; gap:7px; }
.dimension-top { display:flex; justify-content:space-between; gap:12px; margin-bottom:8px; font-size:10px; }
.dimension-name { color:var(--muted); }
.dimension-value { color:var(--green2); font-family:var(--mono); font-size:9px; }
.bar-track { height:3px; background:rgba(241,241,239,.09); }
.bar-fill { height:100%; background:var(--green); box-shadow:0 0 10px rgba(62,207,142,.2); }
.detail-body { display:grid; gap:12px; }

/* =========================================================
   HISTORY PAGE: NAVIGATION OVERFLOW + ACCESSIBILITY FIX
   Keeps the existing navigation and visual design intact.
   ========================================================= */

/* Keep live auth announcements available to screen readers only. */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Let the top announcement row shrink or wrap instead of overflowing. */
.announcement-inner {
  min-width: 0;
  flex-wrap: wrap;
  row-gap: 6px;
  padding-top: 5px;
  padding-bottom: 5px;
}

.announcement-left {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.announcement-left .mono-label,
.announcement-text {
  min-width: 0;
  overflow-wrap: anywhere;
}

.announcement-link {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Keep the Home link within the viewport on narrow screens. */
.history-minimal-header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  min-height: 54px;
}

.history-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 1.4;
}

@media (max-width: 520px) {
  .announcement-inner {
    gap: 6px 12px;
  }

  .announcement-left {
    flex: 1 1 150px;
  }

  .history-minimal-header-inner {
    min-height: 48px;
  }
}
