/* ============================================================
   TESTOL HUB — dark gothic anime script hub
   Palette pulled from the channel: black / gray / white,
   one optional accent. Fredoka One display + Space Grotesk body.
   ============================================================ */

@import url('./img/css2.png');

:root {
  /* monochrome core — straight from the pfp/banner */
  --bg:        #08080a;
  --bg-2:      #0d0d10;
  --surface:   #131316;
  --surface-2: #18181c;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.14);
  --text:      #f3f3f5;
  --text-2:    #b6b6bd;
  --text-3:    #76767e;

  /* accent — overridden by the Tweaks panel. Default = electric blue */
  --accent:        #3b82f6;
  --accent-soft:   rgba(59,130,246,0.15);
  --accent-glow:   rgba(59,130,246,0.34);

  /* tunables driven by tweaks */
  --grain: 0.07;

  /* type */
  --display: 'Fredoka One', system-ui, sans-serif;
  --body: 'Space Grotesk', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- film grain + vignette overlay ---- */
.fx {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9000;
}
.fx-grain {
  position: absolute;
  inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(./img/#n.png)'/%3E%3C/svg%3E");
  opacity: var(--grain);
  animation: grain 0.6s steps(3) infinite;
  mix-blend-mode: screen;
}
@keyframes grain {
  0%   { transform: translate(0,0); }
  33%  { transform: translate(-4%, 2%); }
  66%  { transform: translate(3%, -3%); }
  100% { transform: translate(0,0); }
}
.fx-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 55%, rgba(0,0,0,0.55) 100%);
}

/* ============================================================
   Typography helpers
   ============================================================ */
.display {
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: 0.01em;
  line-height: 0.98;
}
/* chrome / silver gradient fill — makes Fredoka feel premium on black */
.chrome {
  background: linear-gradient(180deg, #ffffff 0%, #cfcfd6 38%, #8a8a93 62%, #f1f1f5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,0.5)) drop-shadow(0 0 28px rgba(255,255,255,0.10));
}
.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================================
   Layout
   ============================================================ */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8,8,10,0.92), rgba(8,8,10,0.55));
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  height: 66px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; cursor: pointer; }
.brand-skull {
  width: 30px; height: 30px; display: grid; place-items: center;
  color: var(--text);
}
.brand-name {
  font-family: var(--display); font-size: 22px; letter-spacing: 0.02em;
}
.brand-name .dot { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em; transition: color .18s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---- live viewers pill ---- */
.live-viewers {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 13px; border-radius: 999px;
  border: 1px solid var(--accent-soft); background: var(--accent-soft);
  color: var(--text-2); font-family: var(--body); font-size: 13px; font-weight: 500;
  white-space: nowrap; line-height: 1;
}
.live-viewers b { color: var(--accent); font-weight: 700; }
@media (max-width: 380px) { .live-viewers { display: none; } }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 11px; border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text); text-decoration: none;
  transition: transform .14s ease, border-color .18s, background .18s, box-shadow .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); border-color: var(--line-2); }
.btn svg { width: 17px; height: 17px; }
.btn-accent {
  background: var(--accent); color: #0a0a0c; border-color: transparent; font-weight: 700;
  box-shadow: 0 6px 30px -8px var(--accent-glow);
}
.btn-accent:hover { box-shadow: 0 10px 40px -8px var(--accent-glow); }
.btn-ghost { background: transparent; }
.btn-sm { padding: 8px 13px; font-size: 13px; border-radius: 9px; }
.btn-yt:hover  { border-color: #ff4646; color: #ff6b6b; }
.btn-tt:hover  { border-color: #25f4ee; color: #25f4ee; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 86px 0 70px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60% 70% at 78% 35%, rgba(30,64,175,0.22), transparent 60%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-bg-skull {
  position: absolute; right: -8%; top: -6%; width: 620px; max-width: 60vw;
  opacity: 0.05; pointer-events: none; color: #fff;
  transform: rotate(8deg);
}
.hero-grid {
  display: grid; grid-template-columns: 1.35fr 0.85fr; gap: 50px; align-items: center;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  padding: 7px 14px 7px 11px; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--accent-glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
.hero h1 {
  margin: 0; font-family: var(--display);
  font-size: clamp(56px, 9vw, 120px); line-height: 0.9; letter-spacing: 0.005em;
}
.hero h1 .sub { display: block; font-size: clamp(20px, 2.4vw, 30px); color: var(--text-3);
  -webkit-text-fill-color: var(--text-3); filter: none; margin-top: 8px; }
.hero-lede {
  margin: 26px 0 0; max-width: 460px; font-size: 17.5px; line-height: 1.6; color: var(--text-2);
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex; align-items: center; gap: 12px; margin-top: 22px;
  font-size: 13.5px; color: var(--text-3); font-family: var(--body);
}
.hero-trust b { color: var(--text); font-weight: 700; }
.trust-dots { display: flex; }
.trust-dots i {
  width: 22px; height: 22px; border-radius: 50%; display: block; margin-left: -7px;
  border: 2px solid var(--bg); background: linear-gradient(135deg, var(--surface-2), #2a2a30);
}
.trust-dots i:first-child { margin-left: 0; }

/* hero card — the creator identity panel */
.creator-card {
  position: relative; border: 1px solid var(--line); border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  padding: 26px; box-shadow: 0 30px 80px -40px #000;
}
.creator-top { display: flex; align-items: center; gap: 15px; }
.avatar {
  width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  border: 1px solid var(--line-2); flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.03), 0 0 30px -6px var(--accent-glow);
}
.avatar image-slot { width: 100%; height: 100%; display: block; }
.creator-name { font-family: var(--display); font-size: 21px; line-height: 1; }
.creator-handle { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-top: 6px; }
.creator-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1px;
  margin-top: 22px; background: var(--line); border: 1px solid var(--line);
  border-radius: 13px; overflow: hidden; }
.cstat { background: var(--bg-2); padding: 15px 8px; text-align: center; }
.cstat .num { font-family: var(--display); font-size: 24px; }
.cstat .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--text-3); margin-top: 5px; }
.creator-foot { margin-top: 18px; display: flex; gap: 9px; }
.creator-foot .btn { flex: 1; justify-content: center; }

/* ============================================================
   Section headers
   ============================================================ */
.sec { padding: 74px 0; }
.sec-head { margin-bottom: 40px; }
.sec-head h2 {
  margin: 12px 0 0; font-family: var(--display);
  font-size: clamp(34px, 5vw, 56px); line-height: 0.98;
}
.sec-head p { margin: 14px 0 0; color: var(--text-2); max-width: 540px; font-size: 16px; line-height: 1.6; }

/* ============================================================
   SCRIPTS
   ============================================================ */
.scripts { display: grid; gap: 26px; }
.script-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--surface); transition: border-color .25s, transform .25s;
}
.script-card:hover { border-color: var(--line-2); }
.script-card.flip { grid-template-columns: 1fr 1.05fr; }
.script-card.flip .sc-preview { order: 2; }
.script-body { padding: 34px; display: flex; flex-direction: column; min-width: 0; }
.sc-badges { display: flex; gap: 9px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 7px; border: 1px solid var(--line-2); color: var(--text-2);
  display: inline-flex; align-items: center; gap: 7px;
}
.badge-status { color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft); }
.badge-status .live-dot { width: 7px; height: 7px; }
.badge-keyless { color: var(--text); }
.badge-premium {
  color: var(--accent); border-color: var(--accent-soft); background: var(--accent-soft);
}
.badge-premium svg { width: 11px; height: 11px; }
.script-title { font-family: var(--display); font-size: 38px; line-height: 0.95; margin: 0; display: flex; align-items: center; gap: 12px; }
.script-title .st-bolt {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--accent);
  background: var(--accent-soft); border: 1px solid var(--accent-soft);
}
.script-title .st-bolt svg { width: 18px; height: 18px; }
.script-desc { margin: 14px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.feature-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.feature-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text); }
.feature-list .tick {
  width: 18px; height: 18px; border-radius: 5px; background: var(--accent-soft);
  display: grid; place-items: center; flex-shrink: 0; color: var(--accent);
}
.feature-list .tick svg { width: 12px; height: 12px; }

/* code / copy box */
.code-box {
  margin-top: auto; padding-top: 26px;
}
.code-hint {
  font-family: var(--mono); font-size: 11.5px; color: var(--text-3);
  margin-bottom: 9px; letter-spacing: 0.02em;
}
.code-row {
  display: flex; align-items: stretch; gap: 0; border: 1px solid var(--line-2);
  border-radius: 12px; overflow: hidden; background: var(--bg);
}
.code-text {
  flex: 1; padding: 14px 16px; font-family: var(--mono); font-size: 12.5px;
  color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  display: flex; align-items: center;
}
.copy-btn {
  border: none; border-left: 1px solid var(--line-2); cursor: pointer;
  background: var(--surface-2); color: var(--text); font-family: var(--body);
  font-weight: 700; font-size: 13px; padding: 0 18px; display: flex; align-items: center; gap: 8px;
  transition: background .18s, color .18s;
}
.copy-btn:hover { background: var(--accent); color: #0a0a0c; }
.copy-btn.copied { background: var(--accent); color: #0a0a0c; }
.copy-btn svg { width: 15px; height: 15px; }
.sc-actions { display: flex; gap: 10px; margin-top: 13px; }

/* preview side */
.sc-preview { position: relative; min-height: 320px; background: var(--bg-2); min-width: 0; overflow: hidden; }
.sc-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.script-card:hover .sc-img { transform: scale(1.04); }
.sc-preview::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.42));
}
.yt-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; margin: 0;
  border: none; cursor: pointer; background: #000; display: block; overflow: hidden;
  text-decoration: none;
}
.yt-facade img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  opacity: 0.9; transition: transform .5s ease, opacity .3s;
}
.yt-facade:hover img { transform: scale(1.05); opacity: 1; }
.yt-facade::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.12), rgba(0,0,0,.5));
}
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); z-index: 2;
  width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #0a0a0c;
  display: grid; place-items: center; box-shadow: 0 12px 44px -8px var(--accent-glow);
  transition: transform .2s ease;
}
.yt-facade:hover .yt-play { transform: translate(-50%,-50%) scale(1.09); }
.yt-play svg { width: 27px; height: 27px; margin-left: 3px; }
.yt-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sc-preview image-slot { width: 100%; height: 100%; display: block; }
.sc-preview-tag {
  position: absolute; left: 16px; bottom: 14px; z-index: 3; font-family: var(--mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  background: rgba(0,0,0,0.6); border: 1px solid var(--line); padding: 5px 9px; border-radius: 6px;
  backdrop-filter: blur(4px);
}

/* ============================================================
   EXECUTE GUIDE
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--surface);
  position: relative; overflow: hidden; transition: border-color .2s, transform .2s;
}
.step:hover { border-color: var(--line-2); transform: translateY(-3px); }
.step-num {
  font-family: var(--display); font-size: 54px; line-height: 1; color: var(--surface-2);
  -webkit-text-stroke: 1px var(--line-2); position: absolute; right: 14px; top: 8px;
}
.step h4 { font-family: var(--display); font-size: 19px; margin: 0 0 9px; }
.step p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.55; }
.exec-row {
  margin-top: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2);
  padding: 22px 26px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.exec-row .lbl { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--text-3); }
.exec-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.exec-chip {
  font-family: var(--body); font-weight: 600; font-size: 14px; color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 13px 9px 15px; background: var(--surface);
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  transition: transform .15s ease, border-color .18s, background .18s;
}
.exec-chip:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--surface-2); }
.exec-chip .pin { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.exec-plat {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 2px 6px;
}

/* ============================================================
   STATS band
   ============================================================ */
.stats-band {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 52px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat-cell:last-child { border-right: none; }
.stat-cell .big { font-family: var(--display); font-size: clamp(40px, 5vw, 62px); line-height: 1; }
.stat-cell .cap { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3); margin-top: 12px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  overflow: hidden; transition: border-color .2s;
}
.faq-item.open { border-color: var(--line-2); }
.faq-q {
  width: 100%; text-align: left; cursor: pointer; background: none; border: none;
  color: var(--text); font-family: var(--body); font-weight: 600; font-size: 16.5px;
  padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .ico { font-family: var(--display); font-size: 22px; color: var(--text-3); transition: transform .25s, color .2s; flex-shrink: 0; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 22px 22px; color: var(--text-2); font-size: 15px; line-height: 1.65; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 70px 0 40px; position: relative; overflow: hidden; }
.footer-wordmark {
  font-family: var(--display); font-size: clamp(70px, 16vw, 220px); line-height: 0.8;
  color: var(--surface); -webkit-text-stroke: 1px var(--line-2);
  text-align: center; user-select: none; margin-bottom: -10px;
}
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-soc { display: flex; gap: 11px; }
.footer-note { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); max-width: 440px; line-height: 1.6; }

/* ============================================================
   COPY TOAST
   ============================================================ */
.toast {
  position: fixed; left: 50%; bottom: 30px; z-index: 9500;
  transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 12px;
  background: var(--surface-2); border: 1px solid var(--accent-soft);
  color: var(--text); font-family: var(--body); font-size: 14px; font-weight: 500;
  padding: 13px 20px 13px 14px; border-radius: 13px;
  box-shadow: 0 20px 50px -16px #000, 0 0 40px -10px var(--accent-glow);
  transition: transform .32s cubic-bezier(.2,.9,.3,1), opacity .32s;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast b { font-weight: 700; }
.toast-ico {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; background: var(--accent); color: #0a0a0c;
}
.toast-ico svg { width: 15px; height: 15px; }

/* ============================================================
   reveal-on-scroll
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .script-card, .script-card.flip { grid-template-columns: 1fr; }
  .script-card.flip .sc-preview { order: 0; }
  .sc-preview { min-height: 240px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(2) { border-right: none; }
  .stat-cell { border-bottom: 1px solid var(--line); }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .wrap { padding: 0 18px; }
  .steps { grid-template-columns: 1fr; }
  .creator-stats { grid-template-columns: 1fr 1fr 1fr; }
  .sc-actions { flex-direction: column; }
}
