/*
  ts-coin landing styles
  - Mobile-first, no frameworks
  - Uses CSS variables, fluid type via clamp(), simple grid
*/

:root {
  --bg: #000;
  --fg: #EDEDED;
  --muted: #8A8A8A;
  --accent: #47FFA8;
  --ring: 2px solid var(--accent);

  --container: 1120px;
  --radius: 12px;
}

/* Base */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, "Helvetica Neue", Arial, system-ui, sans-serif;
  line-height: 1.5;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--fg); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding: 0 16px;
}

.skip-link {
  position: absolute; left: -999px; top: auto; width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus { position: fixed; left: 12px; top: 12px; width: auto; height: auto; background: #111; color: var(--fg); padding: 8px 12px; border-radius: 8px; z-index: 1000; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, #000 75%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid #111;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 10px 0;
}
.logo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-weight: 800; font-size: clamp(18px, 4vw, 22px);
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px; background: #0f0f0f; border: 1px solid #1a1a1a;
}
.nav ul { display: flex; gap: 12px; list-style: none; padding: 0; margin: 0; }
.nav a { color: var(--muted); font-size: 14px; padding: 8px 10px; border-radius: 8px; }
.nav a:hover { color: var(--fg); background: #0c0c0c; }

/* Buttons */
.btn { 
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 10px; border: 1px solid #1a1a1a; background: #0e0e0e; color: var(--fg);
  font-weight: 600; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px) scale(1.02); box-shadow: 0 0 0 1px #1a1a1a, 0 8px 24px rgba(0,0,0,.5); }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--accent); }
.btn-primary { background: var(--fg); color: #000; }
.btn-primary:hover { background: #fff; }
.btn-outline { background: transparent; border-color: #2a2a2a; }
.btn-accent { background: var(--accent); color: #001b0f; border-color: #0c402a; }

/* Hero */
.hero { position: relative; padding: 64px 0 28px; text-align: center; }
.hero h1 { font-size: clamp(40px, 8vw, 88px); line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 10px; }
.hero .subhead { color: var(--muted); font-size: clamp(16px, 3.2vw, 22px); margin: 0 0 18px; }
.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-logo { width: min(320px, 65vw); margin: 20px auto 0; border-radius: 16px; overflow: hidden; border: 1px solid #1a1a1a; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.hero-logo img { display: block; }

/* ASCII rain canvas overlays entire page */
#ascii-rain { position: fixed; inset: 0; z-index: -1; pointer-events: none; }

/* Sections */
.section { padding: 36px 0; }
.section h2 { font-size: clamp(24px, 5vw, 40px); margin: 0 0 16px; letter-spacing: -0.01em; }

/* Contract */
.contract .ca { display: inline-block; padding: 10px 12px; background: #0b0b0b; border: 1px solid #1a1a1a; border-radius: 10px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; word-break: break-all; }
.contract .ca-actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
.toast { color: var(--accent); font-weight: 700; }

/* Cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card { background: #0c0c0c; border: 1px solid #1a1a1a; border-radius: var(--radius); padding: 16px; transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.card:hover { border-color: color-mix(in oklab, var(--accent) 40%, #1a1a1a); box-shadow: 0 0 0 1px #1a1a1a, 0 10px 30px rgba(0,0,0,.6); transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: clamp(18px, 4.2vw, 24px); }
.card p, .card li { color: var(--muted); }
.card ul { margin: 8px 0 0 18px; }

/* Videos */
.videos-copy { color: var(--muted); margin-bottom: 20px; }
.video-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 20px; }
.video-item { 
  background: #0c0c0c; 
  border: 1px solid #1a1a1a; 
  border-radius: 12px; 
  overflow: hidden; 
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  max-width: 300px;
  margin: 0 auto;
}
.video-item:hover { border-color: color-mix(in oklab, var(--accent) 40%, #1a1a1a); box-shadow: 0 0 0 1px #1a1a1a, 0 10px 30px rgba(0,0,0,.6); transform: translateY(-2px); }
.video-item video { 
  display: block; 
  width: 100%; 
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}
.more-coming { text-align: center; color: var(--muted); font-style: italic; margin-top: 20px; }

/* Accordion */
.accordion { display: grid; gap: 8px; }
.accordion-item { border: 1px solid #1a1a1a; border-radius: 10px; overflow: hidden; background: #0c0c0c; }
.accordion-trigger { width: 100%; text-align: left; background: transparent; color: var(--fg); border: 0; padding: 14px; font-size: 16px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
.accordion-trigger:focus-visible { outline: none; box-shadow: 0 0 0 3px #000, 0 0 0 6px var(--accent); }
.accordion-panel { padding: 0 14px 14px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid #111; margin-top: 24px; padding: 20px 0; background: #050505; }
.footer-inner { display: grid; gap: 12px; }
.footer-left { display: grid; gap: 8px; align-content: start; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.disclaimer { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* Reveal animations */
.reveal { opacity: 0; transform: translateY(8px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Responsive */
@media (min-width: 640px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .video-item { max-width: 280px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .video-item { max-width: 260px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
}
@media (min-width: 1200px) {
  .video-grid { grid-template-columns: repeat(4, 1fr); }
  .video-item { max-width: 240px; }
}


