:root {
  --bg: #f4f7fb;
  --bg-soft: #eef3f8;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --surface-alt: #f1f5fb;
  --text: #162433;
  --muted: #6a7a8b;
  --accent: #2f80ff;
  --accent-dark: #2263c8;
  --accent-soft: #e9f1ff;
  --line: #dbe4ee;
  --line-strong: #cfd9e5;
  --shadow: 0 16px 36px rgba(17, 31, 50, 0.06);
  --shadow-soft: 0 10px 22px rgba(17, 31, 50, 0.05);
  --warning-bg: #fff6ea;
  --warning-text: #9d641f;
  --success-bg: #edf8f1;
  --success-text: #1b7040;
  --danger-bg: #fff1f0;
  --danger-text: #aa3b35;
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 255, 0.10), transparent 18%),
    linear-gradient(180deg, #f9fbfe 0%, var(--bg) 100%);
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.hero-card,
.metric-card,
.section-card,
.overview-card,
.result-card,
.profile-card,
.panel-card,
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 18px 18px 20px;
  margin-bottom: 20px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-soft) 100%);
}

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 2px 4px 16px;
}

.hero-brand {
  font-size: 1.24rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-nav-links,
.hero-actions,
.mode-switch,
.card-actions,
.database-search-actions,
.pagination-bar,
.metric-row,
.results-layout,
.hero-spec-bar,
.overview-grid,
.card-grid,
.profile-layout,
.contact-note-grid,
.database-search-shell {
  display: flex;
}

.hero-nav-links {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-pill,
.ghost-button,
.hero-secondary,
.database-page-button,
.mode-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nav-pill:hover,
.ghost-button:hover,
.hero-secondary:hover,
.database-page-button:hover,
.mode-switch button:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 128, 255, 0.24);
  color: var(--text);
}

.nav-cta,
.hero-primary,
.primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, #59a0ff 100%);
  color: #fff;
  box-shadow: 0 10px 20px rgba(47, 128, 255, 0.18);
  font-weight: 700;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.nav-cta:disabled,
.hero-primary:disabled,
.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
  box-shadow: none;
  filter: grayscale(0.02);
}

.nav-cta:hover,
.hero-primary:hover,
.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 26px rgba(47, 128, 255, 0.24);
  filter: saturate(1.06);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 24px;
  align-items: center;
}

.hero-copy-zone {
  padding: 10px 6px;
}

.hero-kicker,
.section-eyebrow,
.highlight-eyebrow,
.profile-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 128, 255, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-title {
  margin: 16px 0 14px;
  max-width: 520px;
  font-size: clamp(2.55rem, 5vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy,
.section-heading p,
.panel-copy,
.overview-copy,
.result-meta,
.detail-line,
.profile-subcopy,
.inline-feedback,
.hero-visual-copy,
.insight-card-copy,
.overview-item-copy {
  color: var(--muted);
  line-height: 1.75;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

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

.hero-visual-button {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.hero-visual-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 390px;
  padding: 22px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(22, 36, 51, 0.06) 100%),
    linear-gradient(135deg, #efe6da 0%, #f4f7fb 48%, #e8eef5 100%);
  box-shadow: var(--shadow-soft);
}

.hero-visual-shell::before {
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  width: 42%;
  background:
    repeating-linear-gradient(
      90deg,
      rgba(22, 36, 51, 0.08) 0,
      rgba(22, 36, 51, 0.08) 10px,
      transparent 10px,
      transparent 36px
    );
  opacity: 0.42;
}

.hero-visual-shell::after {
  content: "";
  position: absolute;
  left: 9%;
  right: 8%;
  bottom: 12%;
  height: 34%;
  border-radius: 120px 120px 42px 42px;
  background: linear-gradient(180deg, #ffffff 0%, #dfe7ef 100%);
  box-shadow: 0 22px 36px rgba(17, 31, 50, 0.12);
  transform: skewX(-5deg);
}

.hero-visual-shell > * {
  position: relative;
  z-index: 2;
}

.hero-visual-eyebrow {
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.88);
}

.hero-visual-title {
  max-width: 340px;
  margin-bottom: 8px;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.05;
}

.hero-spec-bar {
  gap: 12px;
  margin-top: 12px;
}

.hero-spec-item {
  flex: 1 1 0;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 128, 255, 0.10);
  box-shadow: var(--shadow-soft);
}

.hero-spec-label,
.metric-label,
.mini-label,
.premium-chip-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-spec-value,
.premium-chip-value,
.mini-value,
.metric-value {
  font-weight: 700;
}

.metric-row {
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  flex: 1 1 0;
  min-height: 132px;
  padding: 18px;
  background:
    radial-gradient(circle at top right, rgba(47, 128, 255, 0.08), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
}

.metric-value {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
}

.main-grid {
  display: grid;
  gap: 20px;
}

.section-card,
.overview-card {
  padding: 22px;
}

.section-card-large {
  min-height: 120px;
}

.section-heading,
.section-subheading,
.profile-topline,
.database-search-shell {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.section-heading h2,
.section-subheading h3,
.overview-title,
.result-section-title,
.highlight-title,
.profile-main-title {
  margin: 8px 0 8px;
  letter-spacing: -0.03em;
}

.progress-block {
  margin: 14px 0 18px;
}

.progress-copy {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.95rem;
}

.progress-track,
.score-bar {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #edf2f8;
  overflow: hidden;
}

.progress-fill,
.score-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent) 0%, #6ea9ff 100%);
}

.guided-answer-intro,
.inline-feedback {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 128, 255, 0.12);
  font-size: 0.95rem;
}

.inline-feedback-warning {
  background: var(--warning-bg);
  border-color: rgba(255, 179, 107, 0.25);
  color: var(--warning-text);
}

.inline-feedback-danger {
  background: var(--danger-bg);
  border-color: rgba(170, 59, 53, 0.18);
  color: var(--danger-text);
}

.inline-feedback-success {
  background: var(--success-bg);
  border-color: rgba(27, 112, 64, 0.14);
  color: var(--success-text);
}

.hidden {
  display: none !important;
}

.guided-card,
.panel-card,
.profile-shell,
.highlight-card,
.fine-tuning-shell,
.database-highlight-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.guided-card {
  padding: 20px;
}

.guided-card h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
}

.guided-options,
.chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.guided-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.guided-option:hover {
  border-color: rgba(47, 128, 255, 0.28);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.guided-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.guided-actions,
.card-actions,
.contact-note-grid,
.database-search-actions,
.pagination-bar {
  gap: 12px;
}

.guided-actions {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  margin-top: 18px;
}

.fine-tuning-shell {
  margin: 0 0 18px;
  padding: 18px;
}

.fine-tuning-shell summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
}

.fine-tuning-placeholder,
.fine-tuning-intro {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  border: 1px solid rgba(47, 128, 255, 0.14);
}

.fine-tuning-placeholder {
  color: var(--muted);
  line-height: 1.7;
}

.fine-tuning-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
  margin-top: 18px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  font-weight: 700;
  font-size: 0.95rem;
}

.field-group span {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(47, 128, 255, 0.18);
  border-radius: 18px;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 255, 0.06);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field-group textarea {
  min-height: 132px;
  padding: 14px 16px;
  resize: vertical;
}

.field-group input:focus,
.field-group select:focus,
.field-group textarea:focus {
  outline: none;
  border-color: rgba(47, 128, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 128, 255, 0.12);
}

.field-group select[multiple] {
  min-height: 140px;
  padding: 12px;
}

.field-group-wide {
  grid-column: 1 / -1;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.checkbox-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-alt);
}

.checkbox-chip input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.results-layout {
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}

.results-layout > :first-child {
  flex: 1.08 1 0;
}

.results-side-column {
  flex: 0.92 1 0;
  display: grid;
  gap: 16px;
}

.premium-strip,
.insight-grid,
.card-grid,
.profile-layout {
  gap: 16px;
}

.premium-strip {
  margin: 4px 0 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.premium-chip,
.insight-card,
.mini-metric,
.overview-item,
.contact-note-card {
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
}

.premium-chip,
.insight-card,
.contact-note-card {
  padding: 16px;
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 18px;
}

.highlight-card,
.result-card,
.profile-card,
.panel-card,
.profile-shell {
  padding: 20px;
}

.highlight-eyebrow,
.profile-kicker {
  margin-bottom: 10px;
}

.highlight-title,
.profile-main-title {
  font-size: clamp(1.95rem, 3vw, 2.5rem);
}

.result-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 10px;
}

.result-name {
  font-size: 1.18rem;
  font-weight: 700;
}

.result-price,
.score-text {
  color: var(--accent);
  font-weight: 700;
}

.score-text {
  margin-bottom: 8px;
}

.score-bar {
  margin: 10px 0 16px;
}

.reason-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.reason-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 128, 255, 0.12);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.mini-metric {
  padding: 12px 14px;
}

.detail-line {
  margin-top: 6px;
}

.detail-line-strong {
  color: var(--text);
  font-weight: 700;
}

.warning-line {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: var(--warning-bg);
  color: var(--warning-text);
  line-height: 1.55;
}

.result-image-shell,
.profile-image-shell,
.highlight-image-shell {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(47, 128, 255, 0.10);
  background:
    radial-gradient(circle at top left, rgba(47, 128, 255, 0.08), transparent 36%),
    linear-gradient(180deg, #f9fbfe 0%, #edf3fa 100%);
  box-shadow: var(--shadow-soft);
}

.result-image-shell {
  min-height: 228px;
  margin-bottom: 16px;
}

.highlight-image-shell,
.profile-image-shell {
  min-height: 320px;
  margin-bottom: 16px;
}

.vehicle-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: inherit;
  max-height: inherit;
}

.vehicle-image-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: inherit;
  color: var(--text);
}

.vehicle-image-fallback-mark {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(47, 128, 255, 0.16) 0%, rgba(255, 179, 107, 0.18) 100%);
  color: var(--accent-dark);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.vehicle-image-fallback-copy {
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.profile-insight-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.profile-insight-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.profile-insight-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.profile-insight-copy {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.contact-note-grid {
  flex-direction: column;
}

.contact-note-card h4 {
  margin: 0 0 8px;
}

.contact-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form-card {
  margin-top: 18px;
  padding: 22px;
  border-radius: 28px;
  border: 1px solid rgba(47, 128, 255, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  box-shadow: var(--shadow);
}

.contact-form-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.2vw, 1.9rem);
  letter-spacing: -0.03em;
}

.contact-request-form {
  margin-top: 18px;
}

.contact-submit-row {
  align-items: start;
}

.contact-submit-button {
  min-width: min(100%, 360px);
  white-space: nowrap;
}

.contact-submit-button:disabled {
  cursor: wait;
  filter: grayscale(0.08);
  opacity: 0.82;
}

.database-search-shell {
  align-items: flex-end;
  gap: 16px;
  margin: 16px 0;
}

.database-search-field {
  flex: 1 1 0;
  display: grid;
  gap: 8px;
}

.database-search-field label {
  font-weight: 700;
}

.database-search-field input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border: 1.5px solid rgba(47, 128, 255, 0.18);
  border-radius: 18px;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(47, 128, 255, 0.06);
}

.database-search-field input:focus {
  outline: none;
  border-color: rgba(47, 128, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(47, 128, 255, 0.12);
}

.database-search-actions {
  align-items: stretch;
}

.database-search-actions button {
  min-width: 180px;
}

.database-highlight-card {
  padding: 18px;
  margin-bottom: 18px;
}

.mode-switch {
  gap: 10px;
  flex-wrap: wrap;
}

.mode-switch button.is-active,
.database-page-button.is-active {
  border-color: rgba(47, 128, 255, 0.4);
  color: var(--accent-dark);
  background: var(--accent-soft);
}

.table-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.light-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.light-table thead {
  background: var(--surface-alt);
}

.light-table th,
.light-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.light-table th {
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.light-table tbody tr:hover {
  background: rgba(47, 128, 255, 0.04);
}

.table-row-button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.pagination-bar {
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
}

.pagination-bar.hidden {
  display: none !important;
}

.pagination-info {
  color: var(--muted);
  font-size: 0.92rem;
}

.overview-card {
  text-align: center;
}

.overview-copy {
  max-width: 760px;
  margin: 0 auto;
}

.overview-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-item {
  padding: 18px;
  text-align: left;
}

.overview-item-title {
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-showcase-card {
  text-align: left;
  overflow: hidden;
}

.footer-showcase-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 22px;
  align-items: start;
}

.footer-showcase-copy {
  min-width: 0;
}

.footer-contact-stack {
  display: grid;
  gap: 16px;
}

.footer-contact-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(47, 128, 255, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: var(--shadow-soft);
}

.footer-mini-label,
.footer-column-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.footer-mail {
  display: block;
  margin-bottom: 8px;
  color: var(--accent-dark);
  text-decoration: none;
  font-weight: 700;
}

.footer-mail:hover {
  text-decoration: underline;
}

.contact-mail-list {
  margin-top: 12px;
}

.footer-subdomain-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.subdomain-chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(47, 128, 255, 0.12);
  color: var(--accent-dark);
  font-size: 0.84rem;
  font-weight: 700;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.footer-column {
  padding: 18px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  box-shadow: var(--shadow-soft);
}

.footer-link-button {
  display: block;
  width: 100%;
  margin: 0 0 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-align: left;
  font-weight: 600;
}

.footer-link-button:hover {
  color: var(--accent-dark);
}

.footer-bottomline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.loading-shell {
  display: grid;
  place-items: center;
  min-height: 260px;
  color: var(--muted);
}

.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(47, 128, 255, 0.14);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
  margin-bottom: 12px;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .profile-layout,
  .results-layout,
  .overview-grid,
  .footer-showcase-top,
  .footer-columns,
  .insight-grid,
  .premium-strip {
    grid-template-columns: 1fr;
    display: grid;
  }

  .results-layout,
  .hero-spec-bar,
  .metric-row,
  .database-search-shell {
    flex-direction: column;
  }

  .database-search-actions,
  .hero-nav,
  .section-heading,
  .footer-bottomline {
    flex-direction: column;
    align-items: stretch;
  }

  .database-search-actions button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: calc(100% - 16px);
    padding-top: 12px;
  }

  .hero-card,
  .section-card,
  .overview-card,
  .metric-card {
    border-radius: 26px;
    padding: 18px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .hero-actions,
  .hero-nav-links,
  .guided-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .metric-row,
  .results-layout,
  .database-search-shell,
  .database-search-actions,
  .pagination-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-pill,
  .nav-cta,
  .hero-primary,
  .hero-secondary,
  .ghost-button,
  .primary-button {
    width: 100%;
  }

  .guided-options,
  .chip-grid,
  .checkbox-grid,
  .fine-tuning-form,
  .profile-insight-grid,
  .card-grid,
  .overview-grid,
  .insight-grid,
  .premium-strip,
  .mini-grid {
    grid-template-columns: 1fr;
  }

  .footer-showcase-card {
    padding: 16px;
  }

  .footer-showcase-top {
    gap: 14px;
  }

  .footer-contact-stack {
    gap: 10px;
  }

  .footer-contact-card,
  .footer-column {
    padding: 14px;
    border-radius: 18px;
    box-shadow: none;
  }

  .footer-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
  }

  .footer-mini-label,
  .footer-column-title {
    margin-bottom: 6px;
    font-size: 0.82rem;
  }

  .footer-mail {
    margin-bottom: 6px;
    font-size: 0.92rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }

  .footer-link-button {
    margin-bottom: 8px;
    font-size: 0.92rem;
  }

  .subdomain-chip {
    padding: 6px 10px;
    font-size: 0.74rem;
  }

  .footer-bottomline {
    margin-top: 14px;
    padding-top: 14px;
    font-size: 0.84rem;
    gap: 8px;
  }

  .footer-showcase-card .overview-title {
    margin: 6px 0 8px;
    font-size: 1.7rem;
    line-height: 1.08;
  }

  .footer-showcase-card .overview-copy,
  .footer-showcase-card .overview-item-copy {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .metric-row {
    gap: 12px;
  }

  .metric-card,
  .hero-card,
  .section-card,
  .overview-card,
  .guided-card,
  .panel-card,
  .highlight-card,
  .result-card,
  .profile-card,
  .database-highlight-card,
  .fine-tuning-shell,
  .table-shell,
  .inline-feedback {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .metric-card {
    flex: none;
    min-height: 0;
  }

  .section-heading,
  .section-subheading,
  .result-topline,
  .database-search-shell {
    flex-direction: column;
    align-items: stretch;
  }

  .database-search-actions,
  .pagination-bar {
    gap: 10px;
  }

  .hero-grid > *,
  .results-layout > *,
  .profile-layout > *,
  .section-heading > *,
  .section-subheading > * {
    width: 100%;
    min-width: 0;
  }

  .hero-copy-zone,
  .hero-visual,
  .results-side-column {
    width: 100%;
  }

  .hero-visual-button,
  .database-search-actions button,
  .pagination-bar button,
  .card-actions button,
  .guided-actions button {
    width: 100%;
  }

  .light-table {
    font-size: 0.88rem;
  }

  .light-table th,
  .light-table td {
    padding: 10px 12px;
  }

  .footer-link-button {
    margin-bottom: 12px;
  }
}

@media (max-width: 520px) {
  .site-shell {
    width: calc(100% - 12px);
  }

  .hero-card,
  .section-card,
  .overview-card,
  .metric-card,
  .guided-card,
  .panel-card,
  .highlight-card,
  .result-card,
  .profile-card,
  .database-highlight-card,
  .fine-tuning-shell {
    padding: 16px;
    border-radius: 22px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-copy,
  .section-heading p,
  .detail-line,
  .profile-subcopy,
  .overview-item-copy,
  .inline-feedback {
    font-size: 0.95rem;
  }

  .hero-visual-shell,
  .result-image-shell,
  .highlight-image-shell,
  .profile-image-shell {
    min-height: 240px;
  }

  .result-image-shell {
    min-height: 210px;
  }

  .guided-option,
  .checkbox-chip,
  .database-search-field input,
  .field-group input,
  .field-group select,
  .field-group textarea {
    width: 100%;
  }

  .footer-showcase-card {
    padding: 14px;
  }

  .footer-contact-card,
  .footer-column {
    padding: 12px;
    border-radius: 16px;
  }

  .footer-columns {
    gap: 8px;
  }

  .footer-showcase-card .overview-title {
    font-size: 1.52rem;
  }

  .footer-showcase-card .overview-copy,
  .footer-showcase-card .overview-item-copy,
  .footer-link-button,
  .footer-bottomline {
    font-size: 0.88rem;
  }

  .footer-mini-label,
  .footer-column-title {
    font-size: 0.78rem;
  }

  .subdomain-chip {
    padding: 5px 9px;
    font-size: 0.7rem;
  }
}
