:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --bg-top: #f6f8fc;
  --bg-bottom: #ffffff;
  --surface: #ffffff;
  --surface-tint: #f1f3fa;
  --text: #111827;
  --muted: #5c6473;
  --accent: #d90429;
  --accent-dark: #b20321;
  --accent-soft: #ffe5ea;
  --brand-dark: #101934;
  --brand-soft: #152044;
  --shadow: 0 28px 80px -40px rgba(15, 23, 42, 0.45);
  --radius-lg: 20px;
  --radius-md: 14px;
  --transition: 160ms ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

body.page {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 50%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

html {
  scroll-behavior: smooth;
}

[hidden] {
  display: none !important;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.shell {
  width: min(1080px, 92vw);
  margin-inline: auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffffff;
  font-weight: 600;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  color: var(--brand-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition), border-color var(--transition);
}

.link-pill:hover {
  background: rgba(17, 24, 39, 0.06);
  border-color: rgba(17, 24, 39, 0.14);
  transform: translateY(-1px);
}

.site-header {
  padding: 18px 0;
  background: radial-gradient(circle at 0% 0%, rgba(217, 4, 41, 0.12), transparent 45%),
              linear-gradient(120deg, #111a35 0%, #0c1224 100%);
  color: #ffffff;
}

.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-logo {
  width: clamp(48px, 10vw, 72px);
  height: auto;
  padding: 8px;
  background: #ffffff;
  border-radius: 8px;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
}

.site-header__logo span {
  font-size: 0.92rem;
  text-transform: uppercase;
  opacity: 0.82;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-header__actions .link-pill {
  color: #f1f5ff;
  border-color: rgba(255, 255, 255, 0.22);
}

.site-header__actions .link-pill:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
}

.site-header__actions .btn.accent {
  box-shadow: 0 12px 32px -20px rgba(217, 4, 41, 0.9);
}

.hero {
  padding: 0;
  background: linear-gradient(180deg, rgba(12, 19, 41, 0.85), rgba(12, 19, 41, 0));
  min-height: calc(100vh - 80px);
}

.hero__panel-container {
  padding-inline: 0;
  height: 100%;
}

.hero__panel {
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(340px, 1.05fr);
  overflow: hidden;
  box-shadow: 0 42px 120px -60px rgba(15, 23, 42, 0.6);
  background: var(--surface);
  min-height: calc(100vh - 80px);
}

.hero__image {
  position: relative;
  background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.45)),
    url('/static/images/fs25-banner.jpg');
  background-size: cover;
  background-position: center;
  min-height: clamp(280px, 38vw, 460px);
}

.hero__inner {
  background: linear-gradient(135deg, rgba(16, 25, 52, 0.92), rgba(217, 4, 41, 0.78));
  display: flex;
  align-items: stretch;
}

.hero__content {
  display: grid;
  gap: 16px;
  padding: clamp(32px, 5vw, 56px);
  color: #fff;
}


.hero__identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__logo {
  width: clamp(56px, 10vw, 80px);
  height: auto;
  padding: 8px;
  background: #ffffff;
  border-radius: 8px;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.35));
}

.hero__meta {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.9);
}

.hero__meta--accent {
  opacity: 1;
  font-weight: 600;
  color: #ffffff;
}

.hero__title {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.6px;
}

.hero__subtitle {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.hero__author {
  margin: 16px 0 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}

.hero__author .by-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.15em;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 6px 0 8px;
}

.hero__author .author-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.4em;
  font-weight: 700;
  color: #ff3b54;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition), text-shadow var(--transition);
  display: inline-block;
  text-shadow: 0 2px 16px rgba(255, 59, 84, 0.5);
  margin: 0 6px;
}

.hero__author .author-name:hover {
  color: #ffffff;
  transform: translateY(-2px);
  text-shadow: 0 4px 20px rgba(255, 255, 255, 0.8);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.hero .btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.hero .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.workspace {
  display: grid;
  gap: 36px;
  padding: clamp(40px, 5vw, 64px) 0 56px;
}

.panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(28px, 4vw, 40px);
  position: relative;
}

.panel::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(140deg, rgba(217, 4, 41, 0.18), rgba(17, 24, 39, 0.0));
  z-index: -1;
  opacity: 0.7;
}

.panel-head h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 600;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.upload-form {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.dropzone {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 6vw, 48px);
  border: 1px dashed rgba(17, 24, 39, 0.08);
  background: linear-gradient(180deg, var(--surface), var(--surface-tint));
  display: grid;
  place-items: center;
  gap: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  color: var(--muted);
}

.dropzone:hover {
  border-color: rgba(217, 4, 41, 0.55);
  box-shadow: 0 20px 48px -28px rgba(217, 4, 41, 0.45);
  transform: translateY(-2px);
}

.dropzone--active {
  border-color: var(--accent);
  background: linear-gradient(180deg, var(--surface), rgba(255, 229, 234, 0.85));
  color: var(--accent-dark);
}

.drop-visual {
  display: inline-flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.drop-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.drop-callout {
  font-size: 1.05rem;
  color: var(--text);
  font-weight: 600;
}

.drop-meta {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  opacity: 0.55;
}

.drop-hint {
  margin: 0;
  font-size: 0.85rem;
}

.btn {
  appearance: none;
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.96rem;
  padding: 12px 20px;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}

.btn.accent {
  background: linear-gradient(120deg, var(--accent) 0%, #ff3b54 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px -20px rgba(217, 4, 41, 0.72);
}

.btn.accent:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 24px 48px -22px rgba(217, 4, 41, 0.78);
}

.btn.ghost {
  background: rgba(17, 24, 39, 0.06);
  color: var(--text);
}

.btn.ghost:hover {
  background: rgba(17, 24, 39, 0.12);
}

.btn-detect {
  font-size: 1rem;
  padding: 14px 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  position: relative;
  overflow: hidden;
}

.btn-detect svg {
  animation: pulse-icon 2s ease-in-out infinite;
}

.btn-detect:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 28px 52px -24px rgba(217, 4, 41, 0.85);
}

.btn-detect:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}

@keyframes pulse-icon {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.preview {
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(255, 255, 255, 0.7));
  padding: clamp(20px, 4vw, 28px);
  display: grid;
  gap: 18px;
}

.preview img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(15, 23, 42, 0.08);
  object-fit: cover;
}

.preview-meta {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  background: rgba(17, 24, 39, 0.04);
  padding: 16px 18px;
  border-radius: var(--radius-md);
}

.preview-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 4px;
}

.preview-meta dd {
  margin: 0;
  font-weight: 600;
}

.preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.result-placeholder {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(17, 24, 39, 0.08);
  padding: 40px 24px;
  text-align: center;
  color: var(--muted);
  display: grid;
  gap: 12px;
}

.result-placeholder .emoji {
  font-size: 2.4rem;
}

.result {
  display: grid;
  gap: 20px;
}

.result-stage {
  min-height: 320px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), rgba(248, 249, 255, 0.85));
  border: 1px solid rgba(17, 24, 39, 0.08);
  overflow: hidden;
}

.result-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080c16;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.result-actions a,
.result-actions button {
  text-decoration: none;
}

.spinner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 6px solid rgba(17, 24, 39, 0.08);
  border-top-color: var(--accent);
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.model-selector {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.05), rgba(17, 24, 39, 0.05));
  border: 1px solid rgba(217, 4, 41, 0.15);
  margin-top: 24px;
  margin-bottom: 24px;
}

.model-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brand-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.model-label svg {
  color: var(--accent);
}

.model-dropdown {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 2px solid rgba(17, 24, 39, 0.1);
  background: var(--surface);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: inherit;
}

.model-dropdown:hover {
  border-color: rgba(217, 4, 41, 0.3);
}

.model-dropdown:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.1);
}

.stat-strip {
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.stat-card {
  padding: 18px 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 249, 255, 0.95));
  border: 1px solid rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px -12px rgba(217, 4, 41, 0.3);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-label svg {
  opacity: 0.6;
}

.stat-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand-dark);
  letter-spacing: -0.02em;
}

.stat-model {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 600;
}

.sample-section {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed rgba(17, 24, 39, 0.12);
}

.sample-toggle {
  appearance: none;
  width: 100%;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.04), rgba(17, 24, 39, 0.04));
  border: 1px dashed rgba(217, 4, 41, 0.15);
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
}

.sample-toggle:hover {
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.08), rgba(17, 24, 39, 0.06));
  border-color: var(--accent);
  border-style: solid;
  color: var(--brand-dark);
  transform: translateY(-1px);
}

.sample-toggle-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sample-toggle-content svg {
  color: var(--accent);
  flex-shrink: 0;
}

.sample-toggle-icon {
  color: var(--accent);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.sample-toggle[aria-expanded="true"] .sample-toggle-icon {
  transform: rotate(180deg);
}

.sample-content {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
  padding: 0 20px;
}

.sample-content:not([hidden]) {
  max-height: 300px;
  opacity: 1;
  padding: 20px;
  margin-top: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(217, 4, 41, 0.03), rgba(17, 24, 39, 0.03));
  border: 1px solid rgba(217, 4, 41, 0.1);
}

.sample-subtitle {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
}

.sample-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(217, 4, 41, 0.3) rgba(17, 24, 39, 0.1);
  padding: 8px 4px 12px;
  margin: -4px;
}

.sample-gallery::-webkit-scrollbar {
  height: 8px;
}

.sample-gallery::-webkit-scrollbar-track {
  background: rgba(17, 24, 39, 0.06);
  border-radius: 4px;
}

.sample-gallery::-webkit-scrollbar-thumb {
  background: rgba(217, 4, 41, 0.3);
  border-radius: 4px;
  transition: background var(--transition);
}

.sample-gallery::-webkit-scrollbar-thumb:hover {
  background: rgba(217, 4, 41, 0.5);
}

.sample-item {
  flex: 0 0 auto;
  width: 160px;
  height: 120px;
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: var(--surface);
  position: relative;
}

.sample-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--accent);
  box-shadow: 0 12px 28px -12px rgba(217, 4, 41, 0.4);
}

.sample-item.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 4, 41, 0.15);
}

.sample-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sample-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.15));
  opacity: 0;
  transition: opacity var(--transition);
}

.sample-item:hover::after {
  opacity: 1;
}

.sample-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 80px;
  padding: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  background: rgba(17, 24, 39, 0.04);
  border: 1px dashed rgba(17, 24, 39, 0.15);
}

.site-footer {
  margin-top: auto;
  padding: 48px 0 56px;
  background: #0b0f1d;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer p {
  margin: 0 0 16px;
}

.footer-tags {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-tags span {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.site-footer small {
  opacity: 0.6;
}

.site-footer .by-text {
  font-family: 'Dancing Script', cursive;
  font-size: 1.1em;
  font-weight: 600;
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 6px 0 8px;
}

.site-footer .author-name {
  font-family: 'Dancing Script', cursive;
  font-size: 1.35em;
  font-weight: 700;
  color: #ff3b54;
  text-decoration: none;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
  text-shadow: 0 2px 12px rgba(217, 4, 41, 0.4);
  margin: 0 6px;
}

.site-footer .author-name:hover {
  color: #d90429;
  transform: translateY(-2px);
  text-shadow: 0 4px 16px rgba(217, 4, 41, 0.6);
}

.site-footer p {
  line-height: 1.8;
  margin: 0 0 20px;
}

.section {
  padding: clamp(48px, 8vw, 80px) 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(15, 23, 42, 0.02));
}

.section:nth-of-type(odd) {
  background: linear-gradient(180deg, rgba(236, 238, 249, 0.3), rgba(255, 255, 255, 0));
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.section-tag {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 4, 41, 0.1);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.6vw, 2.4rem);
  letter-spacing: -0.4px;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.section--narrative {
  background: linear-gradient(115deg, rgba(15, 23, 42, 0.06), rgba(255, 255, 255, 0.8));
}

.narrative-layout {
  display: grid;
  gap: clamp(32px, 6vw, 48px);
  align-items: start;
}

.stepper {
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}

.stepper li {
  position: relative;
  padding: 22px clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 42px -36px rgba(15, 23, 42, 0.6);
  overflow: hidden;
}

.stepper li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 22px;
  right: clamp(20px, 4vw, 32px);
  font-weight: 700;
  color: rgba(17, 24, 39, 0.08);
  font-size: clamp(2.6rem, 6vw, 3.6rem);
}

.stepper h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}

.stepper p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.narrative-highlight {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 36px);
  background: linear-gradient(145deg, rgba(217, 4, 41, 0.08), rgba(17, 24, 39, 0.05));
  box-shadow: 0 24px 56px -40px rgba(217, 4, 41, 0.6);
  display: grid;
  gap: 16px;
}

.narrative-highlight h3 {
  margin: 0;
}

.narrative-highlight ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.narrative-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  font-weight: 600;
}

.insights-grid {
  display: grid;
  gap: clamp(18px, 3vw, 24px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.insight-card {
  padding: clamp(24px, 4vw, 32px);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 60px -44px rgba(15, 23, 42, 0.5);
  display: grid;
  gap: 16px;
}

.insight-card h3 {
  margin: 0;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.insight-meta {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(17, 24, 39, 0.52);
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-list details {
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: clamp(18px, 3vw, 24px);
  box-shadow: 0 24px 50px -40px rgba(15, 23, 42, 0.45);
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  position: relative;
  padding-right: 36px;
}

.faq-list summary::marker {
  display: none;
}

.faq-list summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.4rem;
  color: rgba(17, 24, 39, 0.4);
  transition: transform var(--transition);
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
}

.faq-list p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.section--cta {
  background: linear-gradient(120deg, #101934 0%, #d90429 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}

.section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(16, 25, 52, 0.95), rgba(217, 4, 41, 0.85));
  z-index: 0;
}

.section--cta .shell {
  position: relative;
  z-index: 1;
}

.cta-shell {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(24px, 5vw, 48px);
  justify-content: space-between;
  align-items: center;
}

.cta-shell .section-title,
.cta-shell .section-lead {
  color: #fff;
}

.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.cta-actions .btn.ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.cta-actions .btn.ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 920px) {
  .workspace {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }

  .narrative-layout {
    grid-template-columns: minmax(280px, 1.05fr) minmax(260px, 0.95fr);
  }
}

@media (max-width: 768px) {
  .hero__panel-container {
    padding-inline: clamp(0.75rem, 3vw, 1.5rem);
  }

  .stat-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__author .author-name {
    font-size: 1.25em;
  }

  .site-header__actions {
    gap: 8px;
  }

  .link-pill {
    font-size: 0.85rem;
    padding: 8px 12px;
  }
}

@media (max-width: 640px) {
  .panel {
    padding: 20px;
  }

  .hero {
    padding: clamp(24px, 6vw, 40px) 0;
  }

  .hero__panel-container {
    padding-inline: 0.5rem;
  }

  .hero__panel {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .hero__image {
    min-height: 200px;
  }

  .hero__content {
    padding: clamp(24px, 4vw, 32px);
  }

  .hero__title {
    font-size: 1.75rem;
  }

  .hero__author {
    font-size: 0.88rem;
  }

  .hero__author .author-name {
    font-size: 1.2em;
  }

  .result-stage {
    min-height: 240px;
  }

  .preview-actions,
  .result-actions {
    flex-direction: column;
  }

  .preview-actions .btn,
  .result-actions .btn {
    width: 100%;
  }

  .site-header__bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .site-header__actions {
    width: 100%;
    justify-content: space-between;
  }

  .stat-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .stat-card {
    padding: 14px 12px;
  }

  .cta-shell {
    gap: 24px;
  }

  .cta-actions {
    width: 100%;
    flex-direction: column;
  }

  .cta-actions .btn {
    width: 100%;
  }

  .model-selector {
    padding: 14px;
  }

  .sample-section {
    margin-top: 20px;
    padding-top: 20px;
  }

  .sample-toggle {
    padding: 14px 16px;
    font-size: 0.88rem;
  }

  .sample-content:not([hidden]) {
    padding: 16px;
  }

  .sample-gallery {
    gap: 10px;
    padding: 6px 2px 10px;
    scrollbar-width: thin;
  }

  .sample-gallery::-webkit-scrollbar {
    height: 6px;
  }

  .sample-item {
    width: 140px;
    height: 105px;
  }

  .sample-item:active {
    transform: scale(0.97);
  }

  .btn-detect {
    font-size: 0.95rem;
    padding: 13px 20px;
  }
}
