/* ── Nav ──────────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  gap: 32px;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 1.575rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--gray-600);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--gray-900); }

.nav-cta {
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .nav-links { display: none; }
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero {
  background: var(--surface-dark);
  color: #fff;
  padding-block: clamp(80px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}

/* Faint green radial glow */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(34,197,94,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-human);
  margin-bottom: 20px;
}

.hero-eyebrow::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-human);
  flex-shrink: 0;
}

.hero h1 {
  font-size: var(--text-hero);
  color: #fff;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.65);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.65;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-secondary {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.5);
  transition: color var(--transition);
}

.hero-secondary:hover { color: rgba(255,255,255,0.8); }

/* Screenshot mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-screenshot-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.06);
  max-width: 100%;
}

.hero-screenshot {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 14px;
}

/* The actual pill badge — matches content.css exactly */
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  background: rgba(0,0,0,0.75);
  color: #fff;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* Animation states */
.badge-pill.state-loading .badge-dot {
  background: #888;
  animation: badge-pulse 1s infinite;
}

.badge-pill.state-human .badge-dot  { background: var(--color-human); }
.badge-pill.state-mixed .badge-dot  { background: var(--color-mixed); }
.badge-pill.state-ai    .badge-dot  { background: var(--color-ai); }

@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { display: none; }
}

/* ── Positioning section ──────────────────────────────────────────────────── */

.section-positioning {
  background: var(--surface-muted);
}

.positioning-body {
  max-width: 660px;
  margin-inline: auto;
  text-align: center;
}

.positioning-body h2 {
  margin-bottom: 20px;
}

.positioning-body p {
  font-size: var(--text-lg);
}

/* ── How It Works ─────────────────────────────────────────────────────────── */

.step-card {
  padding: 32px 28px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: box-shadow var(--transition);
}

.step-card:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: var(--text-xl);
  margin-bottom: 10px;
}

/* ── Product Cards ────────────────────────────────────────────────────────── */

.product-card {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: box-shadow var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
}

.product-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-md);
}

.product-label {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gray-100);
  color: var(--gray-600);
  width: fit-content;
}

.product-card.featured .product-label {
  background: var(--accent-light);
  color: var(--accent);
}

.product-card h3 {
  font-size: var(--text-2xl);
  margin-bottom: 0;
}

.product-card p {
  flex: 1;
}

.product-card .btn {
  width: fit-content;
  margin-top: auto;
}

/* ── Social Proof Strip ───────────────────────────────────────────────────── */

.stats-strip {
  background: var(--surface-muted);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  padding-block: 56px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-weight: 500;
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ── Demo CTA (dark section) ──────────────────────────────────────────────── */

.section-demo-cta {
  background: var(--surface-dark);
  color: #fff;
  text-align: center;
  padding-block: clamp(72px, 10vw, 112px);
}

.section-demo-cta h2 {
  color: #fff;
  margin-bottom: 16px;
}

.section-demo-cta p {
  color: rgba(255,255,255,0.6);
  font-size: var(--text-lg);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: 36px;
}

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--gray-200);
  padding-block: 56px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-top: 8px;
  max-width: 220px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
  letter-spacing: 0;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--gray-400);
  transition: color var(--transition);
}

.footer-col a:hover { color: var(--gray-900); }

.footer-bottom {
  border-top: 1px solid var(--gray-200);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: var(--text-sm);
  color: var(--gray-400);
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--gray-400);
  font-style: italic;
}

@media (max-width: 768px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .footer-top {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ── Scan Page ────────────────────────────────────────────────────────────── */

.scan-page {
  min-height: calc(100vh - 60px);
  background: var(--surface-muted);
  padding-block: clamp(40px, 6vw, 72px);
}

.scan-header {
  margin-bottom: 40px;
}

.scan-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: 8px;
}

.scan-header p {
  font-size: var(--text-lg);
  color: var(--gray-600);
}

.scan-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .scan-layout {
    grid-template-columns: 1fr;
  }
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--gray-200);
  margin-bottom: 20px;
}

.tab-btn {
  padding: 10px 16px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gray-400);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  transition: color var(--transition), border-color var(--transition);
}

.tab-btn.active {
  color: var(--gray-900);
  border-bottom-color: var(--accent);
}

.tab-btn:hover:not(.active) { color: var(--gray-600); }

/* Input panel */
.input-panel {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.tab-pane { display: none; }
.tab-pane.active { display: block; }

.scan-textarea {
  width: 100%;
  min-height: 200px;
  resize: vertical;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-size: 16px; /* Prevent iOS zoom */
  color: var(--gray-900);
  transition: border-color var(--transition);
  line-height: 1.6;
}

.scan-textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.scan-textarea::placeholder { color: var(--gray-400); }

.char-counter {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 6px;
  text-align: right;
  transition: color var(--transition);
}

.char-counter.ready { color: var(--color-human-text); font-weight: 600; }

.url-input {
  width: 100%;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 16px;
  color: var(--gray-900);
  transition: border-color var(--transition);
}

.url-input:focus {
  outline: none;
  border-color: var(--accent);
}

.url-hint {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-top: 6px;
}

.scan-submit {
  margin-top: 20px;
  width: 100%;
  justify-content: center;
  padding: 14px;
  font-size: var(--text-base);
  position: relative;
}

/* Spinner on button */
.btn-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.loading .btn-spinner { display: block; }

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

/* Result panel */
.result-panel {
  background: var(--surface);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 300px;
}

/* Idle state */
.result-idle {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  text-align: center;
  color: var(--gray-400);
  gap: 12px;
}

.result-idle-icon {
  width: 48px;
  height: 48px;
  border: 2px dashed var(--gray-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

/* Skeleton */
.skeleton-block {
  background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%);
  background-size: 200% 100%;
  animation: skeleton-sweep 1.4s ease infinite;
  border-radius: 4px;
}

@keyframes skeleton-sweep {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Result content */
.result-verdict {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.result-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.result-label {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--gray-900);
}

.result-probability {
  font-size: var(--text-sm);
  color: var(--gray-400);
  margin-bottom: 20px;
}

/* Score bar */
.score-bar-wrap {
  margin-bottom: 8px;
}

.score-bar {
  height: 8px;
  background: var(--gray-100);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 6px;
}

.score-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  width: 0;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-fill.human { background: var(--color-human); }
.score-fill.mixed { background: var(--color-mixed); }
.score-fill.ai    { background: var(--color-ai); }

.score-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: 20px;
}

.result-summary {
  font-size: var(--text-sm);
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 20px;
}

.result-divider {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 16px;
}

.result-meta {
  font-size: var(--text-xs);
  color: var(--gray-400);
  margin-bottom: 20px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Error card */
.error-card {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-md);
  padding: 20px;
}

.error-card h3 {
  font-size: var(--text-base);
  color: #991b1b;
  margin-bottom: 6px;
}

.error-card p {
  font-size: var(--text-sm);
  color: #b91c1c;
}
