/* ============================================================
   $COPYCAT — clean, warm, cat-in-a-copier landing page
   ============================================================ */

:root {
  --bg: #F4EEE2;
  --bg-2: #EDE4D3;
  --card: #FFFDF8;
  --ink: #23201A;
  --ink-soft: #6E6557;
  --line: #E5DAC7;
  --teal: #17786B;
  --teal-dark: #0F5A50;
  --amber: #E7A23B;
  --amber-soft: #FBEFD6;
  --teal-soft: #E1EFEB;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 14px 40px rgba(48, 36, 16, .10);
  --shadow-sm: 0 4px 16px rgba(48, 36, 16, .07);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* faint warm paper grain */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(23,120,107,.10), transparent 60%),
    radial-gradient(90% 70% at -10% 110%, rgba(231,162,59,.12), transparent 55%);
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; line-height: 1.08; letter-spacing: -.01em; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 14px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 1rem; padding: 13px 24px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: .92rem; }
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 20px rgba(23,120,107,.28); }
.btn-primary:hover { background: var(--teal-dark); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(23,120,107,.34); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--teal); color: var(--teal-dark); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(244,238,226,.8); backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(48,36,16,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.28rem; }
.brand-mark { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--teal-dark); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding: clamp(48px, 8vw, 96px) 24px clamp(40px, 6vw, 72px);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); margin-bottom: 20px; }
.hl { color: var(--teal); font-style: italic; }
.lead { font-size: clamp(1.05rem, 1.7vw, 1.22rem); color: var(--ink-soft); max-width: 34ch; margin-bottom: 30px; }
.lead b { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.ca {
  display: inline-flex; align-items: center; gap: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 18px;
  cursor: pointer; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s;
  font-family: inherit; max-width: 100%;
}
.ca:hover { border-color: var(--teal); transform: translateY(-1px); }
.ca-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-soft); }
.ca code { font-family: 'Inter', monospace; font-size: .9rem; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-size: 1rem; flex: none; }

/* hero art — a printout in the output tray */
.hero-art { display: flex; justify-content: center; }
.printout {
  position: relative; background: #fff; padding: 14px 14px 0; border-radius: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line); transform: rotate(2deg);
  transition: transform .4s ease; max-width: 440px; width: 100%;
}
.printout:hover { transform: rotate(0deg) translateY(-4px); }
.printout img { border-radius: 12px; width: 100%; height: auto; }
.printout figcaption {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--ink-soft);
  padding: 14px 0; font-family: 'Inter', monospace;
}
.printout .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }

/* ---------- ticker (subtle) ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 12px 0; }
.ticker-track { display: inline-flex; gap: 26px; white-space: nowrap; animation: slide 26s linear infinite; }
.ticker-track span { font-family: 'Fraunces', serif; font-style: italic; font-size: 1.05rem; color: var(--ink-soft); }
.ticker-track span:nth-child(even) { color: var(--amber); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(56px, 9vw, 104px) 24px; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 4.2vw, 3rem); }
.section-sub { color: var(--ink-soft); font-size: 1.1rem; margin-top: 14px; }

.prose { max-width: 680px; }
.prose p { font-size: clamp(1.05rem, 1.7vw, 1.2rem); color: var(--ink-soft); margin-bottom: 20px; }
.prose b { color: var(--ink); font-weight: 600; }

/* ---------- flywheel ---------- */
.flywheel { list-style: none; display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: stretch; }
.fw-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; box-shadow: var(--shadow-sm); }
.fw-num { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; background: var(--teal-soft); color: var(--teal-dark); font-family: 'Fraunces', serif; font-weight: 700; margin-bottom: 16px; }
.fw-step h3 { font-size: 1.3rem; margin-bottom: 10px; }
.fw-step p { color: var(--ink-soft); font-size: .98rem; }
.fw-arrow { display: grid; place-items: center; font-size: 1.6rem; color: var(--amber); font-weight: 700; }

/* ---------- tokenomics split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.split-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 32px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s; }
.split-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.split-card.accent { background: linear-gradient(180deg, var(--amber-soft), var(--card)); }
.split-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.split-pct { font-family: 'Fraunces', serif; font-weight: 700; font-size: 2.8rem; color: var(--teal); }
.split-card.accent .split-pct { color: var(--amber); }
.split-emoji { font-size: 2rem; }
.split-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.split-card p { color: var(--ink-soft); }
.fineprint { text-align: center; color: var(--ink-soft); margin-top: 28px; font-size: .96rem; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.steps li { display: flex; gap: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; box-shadow: var(--shadow-sm); }
.step-n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; background: var(--teal); color: #fff; font-family: 'Fraunces', serif; font-weight: 700; font-size: 1.2rem; }
.steps h3 { font-size: 1.2rem; margin-bottom: 4px; }
.steps p { color: var(--ink-soft); font-size: .96rem; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; margin-top: 40px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 10px; }
.footer-brand strong { font-family: 'Fraunces', serif; font-size: 1.2rem; display: block; }
.footer-brand span { color: var(--ink-soft); font-size: .9rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); font-weight: 500; font-size: .95rem; transition: color .15s; }
.footer-links a:hover { color: var(--teal-dark); }
.disclaimer { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; }
.disclaimer p { color: var(--ink-soft); font-size: .82rem; max-width: 70ch; }
.disclaimer .copy { white-space: nowrap; }

/* ---------- toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translate(-50%, 90px); z-index: 100;
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-size: .95rem; box-shadow: var(--shadow); opacity: 0;
  transition: transform .3s cubic-bezier(.2,1,.4,1), opacity .3s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .printout { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 40px; text-align: center; padding-top: 40px; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { max-width: 46ch; }
  .hero-art { order: -1; }
  .flywheel { grid-template-columns: 1fr; }
  .fw-arrow { transform: rotate(90deg); }
  .split, .steps { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 24px; gap: 16px;
    box-shadow: var(--shadow);
  }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { display: none; }
}
@media (max-width: 480px) {
  .ca code { font-size: .82rem; }
  .disclaimer { flex-direction: column; align-items: flex-start; }
}
