/* Chillavision site — white background, the logo's cyan->green->gold as TRIM only. */
:root {
  --ink: #0f172a;
  --muted: #64748b;
  --bg: #ffffff;
  --soft: #f7f9fb;
  --line: #e7eaef;
  --cyan: #22d3ee;
  --green: #34d399;
  --gold: #facc15;
  --grad: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
  --radius: 14px;
  --wrap: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 "DM Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 15px; cursor: pointer; border: 1px solid var(--line); background: #fff; color: var(--ink); transition: transform .08s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 13px 24px; font-size: 16px; }
.btn-ghost { background: #fff; }
.btn-grad { border: 0; color: #06231a; background: var(--grad); box-shadow: 0 6px 18px rgba(52, 211, 153, .28); }
.btn-grad[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 40px); background: rgba(255,255,255,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; }

/* layout */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 40px); }
section { padding: 64px 0; }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 6px; }

/* hero */
.hero { padding-top: 56px; text-align: center; max-width: 760px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,211,153,.18); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.04; letter-spacing: -.02em; margin: 20px 0 14px; }
.lede { font-size: 18px; color: var(--muted); margin: 0 auto 26px; max-width: 620px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* live + chat */
.live { display: grid; grid-template-columns: 1fr 340px; gap: 22px; align-items: start; }
.stream-frame { aspect-ratio: 16/9; border-radius: var(--radius); background: #0b0f1a; border: 1px solid var(--line); overflow: hidden; position: relative; }
.stream-frame::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.stream-holder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: #cbd5e1; }
.stream-holder .play { width: 0; height: 0; border-left: 22px solid var(--green); border-top: 14px solid transparent; border-bottom: 14px solid transparent; margin-bottom: 8px; }
.stream-holder strong { color: #f1f5f9; }
.stream-note { margin-top: 12px; color: var(--muted); font-size: 14px; }
.stream-note a { color: var(--green); font-weight: 600; }
.chat { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; height: 520px; background: var(--soft); }
.chat-head { padding: 12px 16px; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: #06231a; background: var(--grad); display: flex; align-items: center; gap: 8px; }
.chat-live { font-size: 11px; font-weight: 700; background: rgba(0,0,0,.18); color: #fff; padding: 2px 7px; border-radius: 999px; }
.chat-log { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.chat-empty { color: var(--muted); font-style: italic; margin: auto; }
.chat-msg .who { font-weight: 700; margin-right: 6px; }
.chat-msg.ai .who { color: var(--green); }
.chat-foot { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-foot input { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); color: var(--muted); }

/* stories */
.story-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.story-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: #fff; position: relative; overflow: hidden; }
.story-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.story-card h4 { margin: 8px 0 6px; font-size: 17px; }
.story-card p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.story-card .story-meta { font-size: 12px; color: var(--muted); }

/* contribute */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.way { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--soft); }
.way-ic { font-size: 26px; }
.way h4 { margin: 10px 0 6px; }
.way p { margin: 0; color: var(--muted); font-size: 14px; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; }
.tier-mid { border-color: transparent; box-shadow: 0 0 0 2px var(--green); }
.tier-name { font-weight: 700; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; color: var(--muted); }
.tier-price { font-size: 34px; font-weight: 800; margin: 6px 0 14px; }
.tier-price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.tier ul { list-style: none; padding: 0; margin: 0 0 18px; text-align: left; display: grid; gap: 8px; font-size: 14px; }
.tier li { padding-left: 22px; position: relative; }
.tier li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.tier .btn { width: 100%; justify-content: center; }
.fineprint { text-align: center; color: var(--muted); font-size: 13px; margin-top: 18px; }

/* footer */
footer { max-width: var(--wrap); margin: 24px auto 0; padding: 24px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }

@media (max-width: 860px) {
  .live { grid-template-columns: 1fr; }
  .chat { height: 420px; }
  .ways, .tiers { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}
