/* =====================================================
   CoAuthorLive — style.css
   Deep navy / purple lofi cyberpunk + amber
   Edit colours in :root to retheme the whole site.
   ===================================================== */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Variables ── */
:root {
  --navy:       #080C24;
  --navy-mid:   #0D103A;
  --navy-lt:    #1E2450;
  --purple:     #534AB7;
  --purple-lt:  #7F77DD;
  --amber:      #F59E0B;
  --amber-dk:   #D97706;
  --twitch:     #9146FF;
  --twitch-dk:  #7c35e0;
  --youtube:    #FF0000;
  --hi:         #F0EDFF;
  --mid:        #B8B4D8;
  --lo:         #6B6890;
  --mono:       'Space Mono', 'Courier New', monospace;
  --display:    'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --radius:     3px;
  --ease:       200ms ease;
  --section-pad: 96px;
}

/* ── Base ── */
html   { scroll-behavior: smooth; font-size: 16px; }
body   { background: var(--navy); color: var(--hi); font-family: var(--display); -webkit-font-smoothing: antialiased; overflow-x: hidden; line-height: 1.6; }
a      { color: inherit; text-decoration: none; }
ul     { list-style: none; }
img    { display: block; max-width: 100%; }

/* ── Layout ── */
.wrap  { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ── */
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px;
}
.eline { display: block; width: 24px; height: 1px; background: var(--amber); flex-shrink: 0; }
.badge {
  font-family: var(--mono); font-size: 9px;
  color: var(--navy); background: var(--amber);
  padding: 2px 7px; border-radius: 1px; letter-spacing: .08em;
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800; line-height: 1.05;
  text-transform: uppercase; color: var(--hi);
  margin-bottom: 16px;
}
.sec-title em { font-style: normal; color: var(--amber); display: block; }

.sec-desc {
  font-family: var(--mono); font-size: 12px;
  color: var(--mid); line-height: 1.9;
  max-width: 580px;
}

.sec-hdr { text-align: center; margin-bottom: 52px; }
.sec-hdr .eyebrow  { justify-content: center; }
.sec-hdr .sec-desc { margin: 0 auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  padding: 13px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.btn:hover          { transform: translateY(-1px); }
.btn:active         { transform: translateY(0); }

.btn-twitch         { background: var(--twitch); color: #fff; border-color: var(--twitch); }
.btn-twitch:hover   { background: var(--twitch-dk); border-color: var(--twitch-dk); }

.btn-yt             { background: transparent; color: #fff; border-color: var(--youtube); }
.btn-yt:hover       { background: rgba(255,0,0,.1); }

.btn-lg             { font-size: 13px; padding: 17px 28px; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(8, 12, 36, .93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--navy-lt);
  transition: border-color var(--ease);
}
.nav-inner {
  display: flex; align-items: center; gap: 20px; height: 64px;
}

.nav-logo          { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-logo img      { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.nav-logo-text     { font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.accent            { color: var(--amber); }

.nav-links         { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--lo); transition: color var(--ease);
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber); }

.nav-icons         { display: flex; gap: 10px; }
.nav-icon {
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--navy-lt); border-radius: var(--radius);
  transition: border-color var(--ease), background var(--ease);
}
.nav-icon.tw       { color: var(--twitch); }
.nav-icon.tw:hover { border-color: var(--twitch); background: rgba(145,70,255,.1); }
.nav-icon.yt       { color: var(--youtube); }
.nav-icon.yt:hover { border-color: var(--youtube); background: rgba(255,0,0,.1); }

.nav-toggle {
  display: none; flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer;
  padding: 4px; margin-left: auto;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.5px;
  background: var(--mid); border-radius: 1px;
  transition: transform var(--ease), opacity var(--ease);
}

/* ── Hero ── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  padding-top: 64px; overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(83,74,183,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83,74,183,.07) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-scan {
  position: absolute; inset: 0; pointer-events: none; opacity: .3;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(8,12,36,.12) 2px, rgba(8,12,36,.12) 4px
  );
}
.hero-inner {
  flex: 1; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 360px;
  gap: 48px; align-items: center;
  padding-top: 80px; padding-bottom: 80px;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800; line-height: 1.0;
  text-transform: uppercase; letter-spacing: -.01em;
  color: var(--hi); margin-bottom: 22px;
}
.hero-title em { font-style: normal; color: var(--amber); display: block; }
.hero-sub {
  font-family: var(--mono); font-size: 12px;
  color: var(--mid); line-height: 1.9;
  margin-bottom: 34px; max-width: 520px;
}
.hero-btns { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Hero visual */
.hero-vis { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.logo-frame {
  position: relative; width: 250px; height: 250px;
  display: flex; align-items: center; justify-content: center;
}
.logo-frame img {
  width: 185px; height: 185px;
  border-radius: 50%; object-fit: cover;
  position: relative; z-index: 2;
}
.ring {
  position: absolute; border-radius: 50%;
  border: 1px solid; animation: ring-pulse 3s ease-in-out infinite;
}
.ring-1 { width: 205px; height: 205px; border-color: rgba(83,74,183,.4); }
.ring-2 { width: 232px; height: 232px; border-color: rgba(83,74,183,.2); animation-delay: .7s; }
.ring-3 { width: 250px; height: 250px; border-color: rgba(83,74,183,.1); animation-delay: 1.4s; }

@keyframes ring-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .3; transform: scale(1.03); }
}

.bin-stream        { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.bin-stream span   { font-family: var(--mono); font-size: 9px; color: var(--navy-lt); letter-spacing: .18em; animation: bin-fade 4s ease-in-out infinite; }
.bin-stream span:nth-child(1)  { animation-delay: 0s; }
.bin-stream span:nth-child(2)  { animation-delay: .35s; }
.bin-stream span:nth-child(3)  { animation-delay: .7s; }
.bin-stream span:nth-child(4)  { animation-delay: 1.05s; }
.bin-stream span:nth-child(5)  { animation-delay: 1.4s; }
.bin-stream span:nth-child(6)  { animation-delay: 1.75s; }
.bin-stream span:nth-child(7)  { animation-delay: 2.1s; }
.bin-stream span:nth-child(8)  { animation-delay: 2.45s; }
.bin-stream span:nth-child(9)  { animation-delay: 2.8s; }

@keyframes bin-fade {
  0%, 100% { color: var(--navy-lt); }
  50%       { color: rgba(83,74,183,.55); }
}

/* ── How It Works ── */
.sec-how {
  padding: var(--section-pad) 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-lt);
  border-bottom: 1px solid var(--navy-lt);
}

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: start;
  margin-bottom: 36px;
}
.step {
  padding: 26px 22px;
  border: 1px solid var(--navy-lt); border-radius: var(--radius);
  background: var(--navy);
  transition: border-color var(--ease);
}
.step:hover { border-color: var(--purple); }
.step-n {
  font-family: var(--mono); font-size: 26px; font-weight: 700;
  color: var(--navy-lt); line-height: 1; margin-bottom: 12px;
  transition: color var(--ease);
}
.step:hover .step-n { color: var(--amber); }
.step h3 {
  font-family: var(--display); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--hi); margin-bottom: 9px;
}
.step p { font-family: var(--mono); font-size: 11px; color: var(--mid); line-height: 1.8; }

.step-arrow {
  display: flex; align-items: center; justify-content: center;
  padding: 0 10px; margin-top: 46px; opacity: .35;
}

.bot-note {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 17px 20px;
  border: 1px solid var(--navy-lt); border-left: 3px solid var(--purple);
  border-radius: var(--radius); background: rgba(83,74,183,.05);
}
.bot-tag {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--purple-lt); background: rgba(83,74,183,.15);
  padding: 3px 8px; border-radius: 1px;
  white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.bot-note p { font-family: var(--mono); font-size: 11px; color: var(--mid); line-height: 1.8; }

/* ── The Author ── */
.sec-author { padding: var(--section-pad) 0; background: var(--navy); }

.author-grid { display: grid; grid-template-columns: 260px 1fr; gap: 64px; align-items: center; }
.author-img-wrap {
  width: 210px; height: 210px; border-radius: 50%; overflow: hidden;
  border: 2px solid var(--navy-lt); margin: 0 auto;
}
.author-img-wrap img { width: 100%; height: 100%; object-fit: cover; }

.author-note {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 24px; padding: 16px 18px;
  border: 1px solid var(--amber); border-radius: var(--radius);
  background: rgba(245,158,11,.05);
  font-family: var(--mono); font-size: 11px; color: var(--mid); line-height: 1.8;
}
.note-dot { color: var(--amber); font-size: 10px; margin-top: 3px; flex-shrink: 0; }

/* ── The Setup ── */
.sec-setup {
  padding: var(--section-pad) 0;
  background: var(--navy-mid);
  border-top: 1px solid var(--navy-lt);
  border-bottom: 1px solid var(--navy-lt);
}

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 26px 22px;
  border: 1px solid var(--navy-lt); border-radius: var(--radius);
  background: var(--navy);
  transition: border-color var(--ease), transform var(--ease);
}
.card:hover { border-color: var(--purple); transform: translateY(-4px); }
.card-icon  { color: var(--purple-lt); margin-bottom: 14px; }
.card h3 {
  font-family: var(--display); font-size: 17px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--hi); margin-bottom: 9px;
}
.card p { font-family: var(--mono); font-size: 11px; color: var(--mid); line-height: 1.8; }

/* ── Join ── */
.sec-join   { padding: var(--section-pad) 0; background: var(--navy); }
.join-btns  { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; }

/* ── Footer ── */
.site-footer { background: var(--navy-mid); border-top: 1px solid var(--navy-lt); padding: 36px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer-logo  { display: flex; align-items: center; gap: 8px; }
.footer-logo img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.footer-copy  { font-family: var(--mono); font-size: 10px; color: var(--lo); }
.footer-links { display: flex; gap: 18px; }
.footer-links a {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--lo); transition: color var(--ease);
}
.footer-links a:hover { color: var(--amber); }

/* ── Scroll reveal ── */
.reveal     { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in  { opacity: 1; transform: translateY(0); }

/* ══════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .hero-inner              { grid-template-columns: 1fr; }
  .hero-vis                { display: none; }
  .steps                   { grid-template-columns: 1fr; gap: 14px; }
  .step-arrow              { display: none; }
  .author-grid             { grid-template-columns: 1fr; text-align: center; }
  .author-img-wrap         { margin: 0 auto 28px; }
  .author-grid .eyebrow    { justify-content: center; }
  .cards                   { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile */
@media (max-width: 768px) {
  :root { --section-pad: 64px; }

  .nav-links,
  .nav-icons               { display: none; }
  .nav-toggle              { display: flex; }

  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(8,12,36,.98);
    border-bottom: 1px solid var(--navy-lt);
    padding: 24px; gap: 18px;
  }
  .nav-links.open a        { font-size: 14px; }

  .hero-sub                { font-size: 11px; }
  .hero-btns               { flex-direction: column; align-items: flex-start; gap: 12px; }

  .cards                   { grid-template-columns: 1fr; }
  .join-btns               { flex-direction: column; }
  .bot-note                { flex-direction: column; gap: 8px; }

  .footer-inner            { flex-direction: column; text-align: center; }
  .footer-links            { flex-wrap: wrap; justify-content: center; }
}

/* Small mobile */
@media (max-width: 400px) {
  .hero-title              { font-size: 36px; }
}
