/* styles.css — Fuck Claude detection site */
:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #2b2622;
  --ink-soft: #6b6259;
  --line: #ece4d9;
  --accent: #d9663f;      /* terracotta */
  --gold: #b8912f;

  --low: #5f7d4f;         /* green */
  --mid: #b8912f;         /* amber/gold */
  --high: #c0392b;        /* red */

  --chip-cn-bg: #fdece7;
  --chip-cn-ink: #c0453a;
  --chip-cn-line: #f3ccc2;
  --chip-soft-bg: #fbf4df;
  --chip-soft-ink: #9a7b21;
  --chip-soft-line: #eddcae;

  --radius: 22px;
  --shadow: 0 18px 50px -24px rgba(80, 55, 35, .35);
  --serif: "Georgia", "Songti SC", "Noto Serif SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 50% -200px, #fff 0%, rgba(255,255,255,0) 70%),
    var(--bg);
  line-height: 1.6;
}

/* ---- header ---- */
.site-header {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { font-size: 22px; }
.brand-name { font-weight: 800; font-size: 20px; letter-spacing: .2px; }
.header-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: inline-flex; background: #f0e9df; border-radius: 999px; padding: 4px;
}
.lang-toggle button {
  border: 0; background: transparent; cursor: pointer;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-soft);
  font-family: inherit; transition: .15s;
}
.lang-toggle button.active { background: var(--accent); color: #fff; font-weight: 600; }
.gh-link { color: var(--ink-soft); display: inline-flex; }
.gh-link:hover { color: var(--ink); }

/* ---- hero ---- */
.hero { text-align: center; max-width: 820px; margin: 18px auto 8px; padding: 0 24px; }
.hero h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: .5px;
  font-size: clamp(30px, 5vw, 52px); margin: 12px 0 14px;
}
.hero-sub { color: var(--ink-soft); font-size: clamp(15px, 2vw, 18px); margin: 0 auto; max-width: 640px; }
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 22px 0 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--low); }

/* ---- result card ---- */
.card {
  max-width: 1000px; margin: 26px auto; background: var(--card);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 40px 44px; border: 1px solid var(--line);
}
.card-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
}
.mascot-wrap { display: flex; justify-content: center; }
.mascot { max-width: 330px; width: 100%; height: auto; }

.gauge-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.ring { position: relative; width: 240px; height: 240px; }
.ring-svg { width: 100%; height: 100%; }
.ring-bg { fill: none; stroke: #efe8dd; stroke-width: 16; }
.ring-fg {
  fill: none; stroke: var(--mid); stroke-width: 16; stroke-linecap: round;
  transition: stroke .3s;
}
.ring-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score { font-family: var(--serif); font-weight: 700; font-size: 74px; line-height: 1; }
.score-of { color: var(--ink-soft); font-size: 15px; letter-spacing: 1px; margin-top: 4px; }

.risk-pill {
  padding: 8px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  background: #fbf1de; color: var(--mid);
}
.verdict { margin: 2px 0 4px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.verdict .paw { font-size: 18px; }

.rescan-btn {
  margin-top: 4px; border: 0; cursor: pointer; font-family: inherit;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 16px;
  padding: 14px 36px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  box-shadow: 0 12px 26px -12px rgba(217,102,63,.8); transition: .15s;
}
.rescan-btn:hover { transform: translateY(-1px); filter: brightness(1.03); }
.rescan-btn .spin { display: inline-block; font-size: 18px; }
.rescan-btn.loading .spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* scanning state */
#result-card[data-level="scan"] .ring-fg { stroke: #cbb9a2; }
.mascot.mascot-loading { animation: mascotPulse 1.1s ease-in-out infinite; }
@keyframes mascotPulse {
  0%, 100% { transform: scale(1);    opacity: .92; }
  50%      { transform: scale(1.045); opacity: 1; }
}
.scan-status {
  display: inline-flex; align-items: center; gap: 9px; min-height: 22px;
  font-size: 14px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.scan-status[hidden] { display: none; }
.scan-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 rgba(217,102,63,.5); animation: scanBlink 1s ease-in-out infinite;
}
@keyframes scanBlink {
  0%   { box-shadow: 0 0 0 0 rgba(217,102,63,.45); opacity: 1; }
  70%  { box-shadow: 0 0 0 8px rgba(217,102,63,0);  opacity: .6; }
  100% { box-shadow: 0 0 0 0 rgba(217,102,63,0);    opacity: 1; }
}
.is-hidden { visibility: hidden; opacity: 0; }
.pop { animation: pop .34s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes pop {
  0%   { transform: scale(.6); opacity: 0; }
  60%  { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .mascot.mascot-loading, .scan-dot, .pop { animation: none; }
  .is-hidden { visibility: visible; opacity: 1; }
}

/* level theming */
#result-card[data-level="low"]  .ring-fg { stroke: var(--low); }
#result-card[data-level="low"]  .risk-pill { background: #eef3e8; color: var(--low); }
#result-card[data-level="mid"]  .ring-fg { stroke: var(--mid); }
#result-card[data-level="mid"]  .risk-pill { background: #fbf1de; color: var(--mid); }
#result-card[data-level="high"] .ring-fg { stroke: var(--high); }
#result-card[data-level="high"] .risk-pill { background: #fce9e6; color: var(--high); }

/* ---- signal chips ---- */
.signals { margin-top: 34px; text-align: center; }
.signals-title { color: var(--ink-soft); font-size: 15px; font-weight: 600; margin: 0 0 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid;
}
.chip-cn   { background: var(--chip-cn-bg);   color: var(--chip-cn-ink);   border-color: var(--chip-cn-line); }
.chip-soft { background: var(--chip-soft-bg); color: var(--chip-soft-ink); border-color: var(--chip-soft-line); }
.chip-pts { font-weight: 800; }
.chips-empty { color: var(--low); font-size: 15px; }

/* prominent share button (revealed after the scan) */
.share-wrap { margin-top: 28px; text-align: center; transition: opacity .35s ease; }
.share-cta {
  border: 0; cursor: pointer; font-family: inherit;
  background: #232020; color: #fff; font-weight: 800; font-size: clamp(15px, 2.2vw, 18px);
  padding: 17px 38px; border-radius: 999px; letter-spacing: .2px;
  box-shadow: 0 16px 34px -16px rgba(0,0,0,.6); transition: transform .15s, background .2s;
}
.share-cta:hover { transform: translateY(-2px); }
.share-cta.copied { background: var(--low); }

/* ---- funnel CTA ---- */
.cta {
  max-width: 1000px; margin: 22px auto; border-radius: var(--radius);
  padding: 28px 40px; color: #fff; box-shadow: var(--shadow);
  --cta-ink: var(--accent);
  background: linear-gradient(135deg, #d9663f 0%, #e0895a 100%);
}
.cta[data-level="high"] { --cta-ink: #c0392b; background: linear-gradient(135deg, #c0392b 0%, #d9663f 100%); }
.cta[data-level="mid"]  { --cta-ink: #b45a2e; background: linear-gradient(135deg, #d9663f 0%, #e0895a 100%); }
.cta[data-level="low"]  { --cta-ink: #4d6a3e; background: linear-gradient(135deg, #5f7d4f 0%, #7ea864 100%); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-text h2 { margin: 0 0 6px; font-family: var(--serif); font-size: clamp(20px, 3vw, 25px); }
.cta-text p { margin: 0; color: #fff; opacity: .94; max-width: 580px; font-size: 15px; }
.cta-btn {
  background: #fff; color: var(--cta-ink); font-weight: 800; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 26px -14px rgba(0,0,0,.5); transition: .15s;
}
.cta-btn:hover { transform: translateY(-1px); filter: brightness(1.02); }
@media (max-width: 620px) {
  .cta { padding: 24px 22px; }
  .cta-btn { width: 100%; text-align: center; }
}

/* ---- panels ---- */
.panel {
  max-width: 1000px; margin: 22px auto; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 40px;
}
.panel h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 14px; }
.panel p { color: var(--ink-soft); margin: 0 0 8px; }

/* details table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.detail-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.c-val code { word-break: normal; overflow-wrap: anywhere; }
.detail-table th {
  text-align: left; color: var(--ink-soft); font-weight: 600; font-size: 13px;
  padding: 10px 12px; border-bottom: 2px solid var(--line);
}
.detail-table th.col-pts, .detail-table .c-pts { text-align: right; white-space: nowrap; }
.detail-table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail-table th:nth-child(1), .detail-table td:nth-child(1) { width: 48%; }
.detail-table th:nth-child(2), .detail-table td:nth-child(2) { width: 37%; }
.detail-table th:nth-child(3), .detail-table td:nth-child(3) { width: 15%; }
.c-dim-row { display: flex; gap: 10px; align-items: flex-start; }
.c-ic { font-size: 17px; line-height: 1.4; }
.c-dim strong { display: block; }
.c-dim em { font-style: normal; color: var(--ink-soft); font-size: 12.5px; }
.c-val code {
  background: #f6f1e9; padding: 3px 8px; border-radius: 7px; font-size: 12.5px;
  color: #6a5b48; word-break: break-word; display: inline-block; max-width: 340px;
}
.c-pts { font-weight: 800; color: var(--chip-cn-ink); }
.row-miss { opacity: .6; }
.row-miss .c-pts { color: var(--ink-soft); font-weight: 500; }
.c-pts .miss { font-weight: 500; }

/* easter egg */
.egg .egg-lines { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.egg-line { display: flex; flex-direction: column; gap: 6px; }
.egg-label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.egg code {
  font-size: 15px; padding: 12px 16px; border-radius: 12px; display: block;
  font-family: "SFMono-Regular", Consolas, monospace;
}
.egg-line.clean code   { background: #eef3e8; color: #3f5a33; }
.egg-line.flagged code { background: #fce9e6; color: #a5382c; }

/* tips */
.tips { color: var(--ink-soft); padding-left: 22px; margin: 6px 0 16px; }
.tips li { margin: 6px 0; }
.note {
  background: #fbf4df; border: 1px solid var(--chip-soft-line); color: #8a6f22;
  padding: 12px 16px; border-radius: 12px; font-size: 14px; margin-top: 4px;
}

/* footer */
.site-footer { max-width: 1000px; margin: 30px auto 60px; padding: 20px 40px; text-align: center; color: var(--ink-soft); }
.foot-tag { font-size: 15px; }
.share { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 14px 0; flex-wrap: wrap; font-size: 14px; }
.share-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; font-family: inherit;
  font-size: 14px; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); }
.foot-brand { margin: 12px 0 4px; }
.foot-brand a { color: var(--accent); font-weight: 700; text-decoration: none; font-size: 14px; }
.foot-brand a:hover { text-decoration: underline; }
.disclaimer { font-size: 12.5px; opacity: .8; max-width: 640px; margin: 12px auto 0; }

/* responsive */
@media (max-width: 760px) {
  .card { padding: 28px 20px; }
  .card-grid { grid-template-columns: 1fr; }
  .mascot { max-width: 220px; }
  .panel { padding: 24px 20px; border-radius: 18px; }
  .hero h1 { font-size: 30px; }
  .ring { width: 200px; height: 200px; }
  .score { font-size: 60px; }
  /* keep columns readable on phones; the wrapper scrolls horizontally */
  .detail-table { min-width: 560px; }
}
