@font-face {
  font-family: 'AvenirLTStd';
  src: url('/assets/fonts/AvenirLTStd-Book.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirLTStd';
  src: url('/assets/fonts/AvenirLTStd-Roman.otf') format('opentype');
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: 'AvenirLTStd';
  src: url('/assets/fonts/AvenirLTStd-Black.otf') format('opentype');
  font-weight: 800;
  font-style: normal;
}

:root {
  --bg-overlay: rgba(0, 0, 0, 0.52);
  --surface: rgba(10, 28, 33, 0.78);
  --surface-soft: rgba(10, 28, 33, 0.58);
  --text: #e8f8f5;
  --muted: #c8ebe5;
  --line: rgba(196, 238, 230, 0.24);
  --accent: #66d9c5;
  --accent-strong: #3ccab0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  color: var(--text);
  font-family: 'AvenirLTStd', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #0F7870;
  background: -webkit-linear-gradient(145deg, rgba(15, 120, 112, 1) 0%, rgba(15, 120, 112, 1) 67%, rgba(0, 0, 0, 1) 100%);
  background: -moz-linear-gradient(145deg, rgba(15, 120, 112, 1) 0%, rgba(15, 120, 112, 1) 67%, rgba(0, 0, 0, 1) 100%);
  background: linear-gradient(145deg, rgba(15, 120, 112, 1) 0%, rgba(15, 120, 112, 1) 67%, rgba(0, 0, 0, 1) 100%);
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#0F7870", endColorstr="#000000", GradientType=0);
  background: url('/assets/img/background.webp');
  background-size: cover;
  background-attachment: fixed;
}

.site-shell {
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-overlay), rgba(0, 0, 0, 0.68));
  display: flex;
  flex-direction: column;
}

.page-main {
  flex: 1;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(6, 22, 26, 0.65);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand-logo {
  width: 152px;
  height: auto;
  display: block;
}

.primary-nav {
  margin-left: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  padding: 0.55rem 0.6rem;
  border-radius: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
  transition: background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  background: rgba(102, 217, 197, 0.1);
}

.dropdown {
  position: absolute;
  left: 0;
  top: 100%; /* Align directly to bottom of nav-item to prevent gap */
  min-width: 220px;
  background: rgba(7, 23, 27, 0.98);
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  padding: 0.45rem;
  display: none;
  z-index: 100;
  margin-top: -2px; /* Slight overlap to ensure hover continuity */
}

.nav-item {
  position: relative;
  padding-bottom: 10px; /* Invisible padding to catch the mouse during movement */
  margin-bottom: -10px;
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown a {
  color: var(--muted);
  text-decoration: none;
  display: block;
  padding: 0.5rem 0.6rem;
  border-radius: 0.45rem;
  font-size: 0.88rem;
}

.dropdown a:hover {
  background: rgba(102, 217, 197, 0.14);
  color: var(--text);
}

.auth-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.link-muted {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.link-muted:hover {
  color: var(--text);
}

.aystos-user-bar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 50;
  font-size: 0.72rem;
  padding: 0.25rem 0.7rem;
  background: rgba(6, 22, 26, 0.85);
  border-bottom-left-radius: 0.4rem;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.aystos-user-bar:hover {
  color: var(--accent);
  background: rgba(6, 22, 26, 0.95);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 0.65rem;
  border: 1px solid var(--line);
  padding: 0.68rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.button-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #09342f;
}

.button-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}

.button-secondary {
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  background: rgba(102, 217, 197, 0.12);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  color: var(--text);
  padding: 0.5rem 0.75rem;
}

.page-main {
  padding-block: 2.2rem 3rem;
  display: grid;
  gap: 1.1rem;
}

.hero-panel {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--accent);
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  font-weight: 800;
}

.hero-panel h1 {
  margin-top: 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.hero-button {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  padding: 0.85rem 2rem;
  display: block;
  margin-left: auto;
  width: fit-content;
}

.lead {
  margin: 0.8rem 0 0;
  max-width: 70ch;
  color: var(--muted);
  line-height: 1.55;
}

.button-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.1rem;
}

.card p,
.card li {
  color: var(--muted);
  line-height: 1.5;
}

.card ul,
.card ol {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
}

.card-tag {
  margin: 0 0 0.45rem;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stat-card h2 {
  font-size: 2rem;
  color: var(--accent);
}

.form-card input {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid var(--line);
  background: rgba(4, 19, 22, 0.85);
  color: var(--text);
  padding: 0.75rem 0.85rem;
  font: inherit;
}

.field-label {
  font-size: 0.9rem;
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 0.65rem;
}

.progress-track {
  margin-top: 0.5rem;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  overflow: hidden;
}

.progress-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  transition: width 220ms linear;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.status-list {
  margin-top: 1rem;
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.status-list li {
  position: relative;
  padding-left: 1.35rem;
}

.status-list li::before {
  content: 'o';
  position: absolute;
  left: 0;
  color: var(--muted);
}

.status-list li.done::before {
  content: 'v';
  color: var(--accent);
}

.compact-grid {
  margin-top: 0.8rem;
}

.mini {
  padding: 0.8rem;
}

.mini h3 {
  font-size: 0.9rem;
  color: var(--muted);
}

.mini p {
  margin-top: 0.45rem;
  font-size: 1.05rem;
  color: var(--text);
}

.mini-stat {
  background: rgba(5, 20, 23, 0.74);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.85rem;
  text-align: center;
}

.mini-stat strong {
  display: block;
  font-size: 1.55rem;
  color: var(--accent);
}

.mini-stat span {
  color: var(--muted);
  font-size: 0.9rem;
}

.tagline {
  margin-top: 1rem;
  color: var(--muted);
}

.pricing-grid .card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.pricing-grid .featured {
  outline: 2px solid rgba(102, 217, 197, 0.4);
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--text);
}

.price span,
.price-period {
  font-size: 1rem;
  font-weight: 500;
  color: var(--muted);
}

.price-annual {
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0;
}

.pricing-features h3 {
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 1rem 0 0.3rem;
}

.pricing-features ul {
  margin: 0;
  padding-left: 1.2rem;
}

.pricing-features li {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.9rem;
}

.feature-disabled li {
  color: rgba(200, 235, 229, 0.3);
  list-style: none;
  margin-left: -1.2rem;
}

.pricing-matrix-section,
.pricing-note {
  padding-left: 0;
}

.pricing-note {
  max-width: 700px;
  margin: 3rem auto;
}

.pricing-note p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 0.8rem 0;
}

.pricing-faq {
  margin-top: 4rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-faq h2 {
  text-align: center;
  margin-bottom: 2rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-item summary {
  padding: 1.1rem 1.3rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::before {
  content: '+';
  margin-right: 0.8rem;
  color: var(--accent);
  font-weight: 700;
}

.faq-item[open] summary::before {
  content: '−';
}

.faq-item p {
  padding: 0 1.3rem 1.1rem;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.guide-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: rgba(2, 12, 15, 0.85);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.85rem;
  color: var(--muted);
}

.content-section {
  margin-top: 3.5rem;
  padding-left: 1.6rem;
}

.content-section h2 {
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
  margin: 0 0 1.2rem;
}

.section-text {
  max-width: 42rem;
}

.content-section p,
.section-text p {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 1rem;
}

.section-text p:last-child {
  margin-bottom: 0;
}

.section-text ul {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  list-style: disc;
}

.section-text li {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section-text li strong {
  color: var(--text);
}

.section-text strong {
  color: var(--text);
  font-weight: 600;
}

.section-text a:not(.button),
.content-section a:not(.button) {
  color: #e0f5f0;
  text-decoration: none;
  border-bottom: 1px solid rgba(102, 217, 197, 0.3);
  transition: color 0.15s, border-color 0.15s;
}

.section-text a:not(.button):visited,
.content-section a:not(.button):visited {
  color: #d0ebe5;
}

.section-text a:not(.button):hover,
.content-section a:not(.button):hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.section-text a:not(.button)::before,
.content-section a:not(.button)::before {
  content: '';
  display: inline-block;
  width: 0.65em;
  height: 0.65em;
  margin-right: 0.15em;
  vertical-align: -0.0em;
  background: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 01.708 0l6 6a.5.5 0 010 .708l-6 6a.5.5 0 01-.708-.708L10.293 8 4.646 2.354a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M4.646 1.646a.5.5 0 01.708 0l6 6a.5.5 0 010 .708l-6 6a.5.5 0 01-.708-.708L10.293 8 4.646 2.354a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.section-text a:not(.button)[href^="#"]::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3E%3C/svg%3E");
}

.section-text code,
.content-section code {
  background: rgba(102, 217, 197, 0.08);
  border: 1px solid rgba(102, 217, 197, 0.15);
  border-radius: 0.25rem;
  padding: 0.15em 0.4em;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.88em;
  color: var(--accent);
}

.cta-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 4rem 2rem;
  border-radius: 2rem;
  text-align: center;
  margin-top: 5rem;
  margin-bottom: 3rem;
}

.cta-block h2 {
  color: #fff;
  margin: 0 0 0.5rem;
}

.cta-block .lead {
  margin: 0.8rem auto 2rem;
}

.narrative-body {
  max-width: 800px;
  margin: 0 auto;
  color: var(--muted);
  line-height: 1.8;
}

.narrative-body h2:first-child {
  margin-top: 1rem;
}

.narrative-body h2 {
  margin-top: 3.5rem;
  font-size: 1.8rem;
  color: var(--accent);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.5rem;
}

.narrative-body p {
  margin-top: 1.4rem;
  font-size: 1.15rem;
}

.narrative-body p:last-child {
  margin-bottom: 2rem;
}

.narrative-body strong {
  color: var(--text);
  font-weight: 500;
}

.site-footer {
  margin-top: 1.2rem;
  border-top: 1px solid var(--line);
  background: rgba(4, 18, 21, 0.88);
}

.footer-grid {
  padding: 1.6rem 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr repeat(4, 1fr);
}

.footer-brand p {
  margin-top: 0.5rem;
  color: var(--muted);
}

.site-footer h3 {
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--accent);
}

.site-footer ul {
  margin: 0.7rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.site-footer a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p,
.fine-print {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.footer-legal {
  display: inline-flex;
  gap: 1.5rem;
}

.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
}

.footer-legal a:hover {
  color: var(--text);
}

/* ── Product mockup figures ── */
.figure-mockup {
  margin: 2.5rem auto 1rem;
  max-width: 560px;
}

.mockup-window,
.terminal-window {
  background: rgba(2, 10, 13, 0.92);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  overflow: hidden;
}

.mockup-titlebar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.55rem 0.9rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--line);
}

.mockup-dots {
  display: flex;
  gap: 0.3rem;
}

.mockup-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.mockup-url {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
}

.mockup-body {
  padding: 1.6rem;
}

/* Score gauge (Cockpit) */
.score-header {
  text-align: center;
  margin-bottom: 1.4rem;
}

.score-gauge {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: conic-gradient(var(--accent) 0deg, var(--accent) var(--score-deg, 259deg), rgba(255, 255, 255, 0.06) var(--score-deg, 259deg), rgba(255, 255, 255, 0.06) 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
}

.score-gauge-inner {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(2, 10, 13, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.score-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.score-label {
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin-top: 0.15rem;
}

.score-site {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.score-breakdown {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1.2rem;
}

.score-row {
  display: grid;
  grid-template-columns: 1fr 120px 36px;
  align-items: center;
  gap: 0.6rem;
}

.score-cat {
  font-size: 0.78rem;
  color: var(--muted);
}

.score-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  overflow: hidden;
}

.score-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
  transition: width 1.2s ease-out;
}

/* Gauge fill animation */
.score-gauge {
  transition: background 0.8s ease-out;
}
.mockup-body.animate .score-bar span {
  width: var(--bar-width) !important;
}
.mockup-body:not(.animate) .score-bar span {
  width: 0 !important;
}
.mockup-body:not(.animate) .score-gauge {
  background: conic-gradient(var(--accent) 0deg, var(--accent) 0deg, rgba(255, 255, 255, 0.06) 0deg, rgba(255, 255, 255, 0.06) 360deg) !important;
}
.mockup-body.animate .score-gauge {
  transition: none;
  animation: gaugeGrow 1.2s ease-out forwards;
}
@keyframes gaugeGrow {
  from { background: conic-gradient(var(--accent) 0deg, var(--accent) 0deg, rgba(255,255,255,0.06) 0deg, rgba(255,255,255,0.06) 360deg); }
  to { background: conic-gradient(var(--accent) 0deg, var(--accent) var(--score-deg), rgba(255,255,255,0.06) var(--score-deg), rgba(255,255,255,0.06) 360deg); }
}

.score-pct {
  font-size: 0.75rem;
  color: var(--accent);
  text-align: right;
  font-weight: 600;
}

.score-pct.warn {
  color: #e8a84c;
}

.score-issues {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.issue-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.issue-tag.critical {
  background: rgba(220, 60, 60, 0.18);
  color: #f07070;
  border: 1px solid rgba(220, 60, 60, 0.3);
}

.issue-tag.warning {
  background: rgba(232, 168, 76, 0.15);
  color: #e8a84c;
  border: 1px solid rgba(232, 168, 76, 0.25);
}

.issue-tag.info {
  background: rgba(102, 217, 197, 0.1);
  color: var(--accent);
  border: 1px solid rgba(102, 217, 197, 0.2);
}

/* Terminal mockup (Client) */
.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
  font-size: 0.82rem;
  line-height: 1.9;
}

.term-line {
  color: var(--muted);
  white-space: nowrap;
}

.term-blank {
  height: 0.6rem;
}

.term-prompt {
  color: var(--accent);
  margin-right: 0.4rem;
}

.term-ok {
  color: var(--accent);
  margin-right: 0.3rem;
}

.term-accent {
  color: var(--accent);
  font-weight: 600;
}

/* Search mockup */
.search-mockup-body {
  padding: 1.2rem;
}

.search-input-mock {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  padding: 0.65rem 0.9rem;
  margin-bottom: 1rem;
}

.search-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.search-query-text {
  color: var(--text);
  font-size: 0.88rem;
}

.search-answer-mock {
  background: rgba(102, 217, 197, 0.04);
  border: 1px solid rgba(102, 217, 197, 0.15);
  border-radius: 0.6rem;
  padding: 1rem 1.1rem;
}

.answer-badge {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: rgba(102, 217, 197, 0.12);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  margin-bottom: 0.6rem;
}

.search-answer-mock p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--muted);
}

.search-answer-mock strong {
  color: var(--text);
}

.answer-sources {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.sources-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.answer-sources a {
  font-size: 0.72rem;
  color: var(--accent);
  text-decoration: none;
  background: rgba(102, 217, 197, 0.08);
  padding: 0.15rem 0.45rem;
  border-radius: 3px;
}

/* Comparison table */
.comparison-wrap {
  margin: 2rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  overflow: hidden;
  font-size: 0.9rem;
}

.comparison-table th {
  background: rgba(0, 0, 0, 0.3);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.9rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.comparison-table th:first-child {
  text-align: left;
  width: 40%;
}

.comparison-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(196, 238, 230, 0.08);
  color: var(--muted);
  text-align: center;
}

.comparison-table td:first-child {
  text-align: left;
  color: var(--text);
  font-weight: 500;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comp-group td {
  background: rgba(102, 217, 197, 0.06);
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent) !important;
  padding: 0.5rem 1rem;
  text-align: left !important;
}

.comp-yes {
  color: var(--accent) !important;
  font-weight: 700;
  font-size: 1.1rem;
}

.comp-no {
  color: rgba(200, 235, 229, 0.2) !important;
}

@media (max-width: 960px) {
  .grid-3,
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .primary-nav {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: rgba(6, 22, 26, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1.25rem 1rem;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
  }

  .primary-nav.open {
    display: flex;
  }

  .dropdown {
    position: static;
    display: block;
    margin-top: 0.45rem;
    background: rgba(4, 17, 20, 0.9);
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .auth-links {
    display: none;
  }
}

@media (max-width: 760px) {
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .container {
    width: min(1120px, calc(100% - 1.3rem));
  }

  .hero-panel,
  .card {
    padding: 0.95rem;
  }

  .content-section {
    padding-left: 0.95rem;
  }

  .score-row {
    grid-template-columns: 1fr 80px 30px;
  }

  .term-line {
    white-space: normal;
    word-break: break-all;
  }

  .comparison-table {
    font-size: 0.8rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.5rem 0.6rem;
  }
}

/* Section entrance animation */
.content-section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.content-section.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Cockpit page — alternating section cards */
[data-page="platform-cockpit"] .content-section:nth-child(even) {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem;
}

/* Cockpit page — mockup responsive */
@media (max-width: 480px) {
  .score-gauge { width: 90px; height: 90px; }
  .score-gauge-inner { width: 70px; height: 70px; }
  .score-value { font-size: 1.4rem; }
  .score-row { grid-template-columns: 1fr 60px 30px; }
  .figure-mockup { margin: 1.5rem auto 0.5rem; }
}

/* Client page — alternating section cards */
[data-page="platform-client"] .content-section:nth-child(even) {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.6rem;
}

/* Terminal typing animation */
.terminal-body .term-line,
.terminal-body .term-blank {
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}
.terminal-body.animate .term-line,
.terminal-body.animate .term-blank {
  opacity: 1;
  transform: translateX(0);
}

/* Ethical Statement page */
[data-page="legal-ethical-statement"] .content-section {
  width: 62%;
}
