/* ChartMaster — Coming Soon v4
   Premium dark theme, clean typography, unique "training ground" vibe.
   Works for index + verify + unsubscribe pages.
*/

:root{
  --bg0:#040c15;
  --bg1:#07192b;
  --bg2:#0b2a43;

  --card: rgba(255,255,255,.06);
  --card2: rgba(255,255,255,.08);
  --stroke: rgba(255,255,255,.12);

  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.68);

  --gold:#f5b942;
  --gold2:#ffd37b;
  --blue:#4aa3ff;
  --green:#2ee58f;
  --red:#ff4d4d;

  --shadow: 0 24px 70px rgba(0,0,0,.55);
  --radius: 22px;

  --max: 1120px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Helvetica Neue", Helvetica, sans-serif;
  background:
    radial-gradient(900px 600px at 12% 10%, rgba(74,163,255,.25), transparent 60%),
    radial-gradient(900px 600px at 88% 14%, rgba(245,185,66,.18), transparent 55%),
    radial-gradient(900px 600px at 50% 92%, rgba(46,229,143,.10), transparent 60%),
    linear-gradient(135deg, var(--bg0), var(--bg2));
  min-height:100vh;
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.wrap{width:min(var(--max), calc(100% - 44px)); margin:0 auto; position:relative; z-index:1}

.noise{
  pointer-events:none;
  position:fixed;
  inset:0;
  opacity:.06;
  mix-blend-mode:overlay;
  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='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  background-size:180px 180px;
  z-index:0;
}

.top{
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(4,12,21,.82), rgba(4,12,21,.35));
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topInner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap:16px;
}
.brand{
  display:flex;
  align-items:center;
  gap:12px;
  font-weight:950;
  letter-spacing:.2px;
}
.brandIcon{
  width:34px;
  height:34px;
  border-radius:12px;
  background: linear-gradient(135deg, rgba(74,163,255,.22), rgba(245,185,66,.22));
  border:1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  display:grid;
  place-items:center;
  position:relative;
  overflow:hidden;
}
.brandIcon::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(220px 120px at 30% 10%, rgba(74,163,255,.35), transparent 60%),
    radial-gradient(220px 120px at 70% 10%, rgba(245,185,66,.28), transparent 60%);
  opacity:.9;
}
.brandIcon svg{position:relative}
.brandName{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brandName small{
  font-weight:850;
  color: rgba(255,255,255,.70);
  font-size:12px;
  letter-spacing:.8px;
  text-transform:uppercase;
}

.nav{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
  color: rgba(255,255,255,.72);
  font-weight:900;
  font-size:13px;
}
.nav a{
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  transition:.18s ease;
}
.nav a:hover{
  color:var(--text);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.12);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  font-weight:950;
  font-size:13px;
  box-shadow: 0 12px 34px rgba(0,0,0,.35);
  white-space:nowrap;
}
.pulse{
  width:9px; height:9px;
  border-radius:99px;
  background: var(--green);
  box-shadow: 0 0 0 6px rgba(46,229,143,.12);
}

.hero{
  padding:54px 0 18px;
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:22px;
  align-items:center;
}

.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:999px;
  background: rgba(74,163,255,.12);
  border:1px solid rgba(74,163,255,.30);
  width:fit-content;
  box-shadow: 0 16px 44px rgba(0,0,0,.35);
  font-weight:950;
}
.eyebrow b{color:var(--blue)}

h1{
  margin:14px 0 10px;
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing:-0.8px;
  line-height:1.04;
}
.sub{
  margin:0 0 16px;
  max-width: 70ch;
  color: var(--muted);
  line-height:1.65;
  font-size:16px;
}
.heroActions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:center;
  margin-top:14px;
}

.btn{
  appearance:none;
  border:0;
  cursor:pointer;
  border-radius:16px;
  padding:12px 14px;
  font-weight:1000;
  transition:.18s ease;
  display:inline-flex;
  align-items:center;
  gap:10px;
  user-select:none;
}
.btnPrimary{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#1b1200;
  box-shadow: 0 18px 55px rgba(245,185,66,.25);
}
.btnPrimary:hover{transform: translateY(-1px); filter:brightness(1.02)}
.btnGhost{
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.14);
  color:var(--text);
}
.btnGhost:hover{transform: translateY(-1px); background: rgba(255,255,255,.09)}

.fineprint{
  margin-top:10px;
  color: rgba(255,255,255,.55);
  font-size:12px;
  line-height:1.5;
}

.card{
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.card::before{
  content:"";
  position:absolute; inset:-2px;
  background:
    radial-gradient(600px 260px at 20% 0%, rgba(74,163,255,.24), transparent 60%),
    radial-gradient(520px 260px at 80% 0%, rgba(245,185,66,.20), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.cardInner{position:relative; padding:18px}

.logoPanel{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
  min-height:190px;
  display:grid;
  place-items:center;
  padding:14px;
}
.logoPanel img{
  max-width:100%;
  height:auto;
  display:block;
  filter: drop-shadow(0 18px 40px rgba(0,0,0,.45));
}

.metaRow{
  margin-top:14px;
  display:flex;
  justify-content:space-between;
  align-items:baseline;
  gap:10px;
  flex-wrap:wrap;
}
.launchLabel{
  color: rgba(255,255,255,.72);
  font-weight:900;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.7px;
}
.launchDate{
  font-weight:1000;
  font-size:13px;
}

.countdown{
  margin-top:12px;
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.cd{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.18);
  padding:12px 10px;
  text-align:center;
}
.cd .n{font-size:26px; font-weight:1100; letter-spacing:-0.4px}
.cd .l{margin-top:4px; font-size:12px; color: rgba(255,255,255,.70); font-weight:950; letter-spacing:.7px; text-transform:uppercase}

.tags{
  margin-top:12px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  color: rgba(255,255,255,.70);
  font-weight:950;
  font-size:12px;
}
.tag{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
}

section{padding:26px 0}
.sectionTitle{
  margin:0 0 10px;
  letter-spacing:-0.4px;
  font-size:22px;
}
.sectionLead{
  margin:0 0 14px;
  color: var(--muted);
  line-height:1.6;
  max-width: 78ch;
}

.grid4{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:14px;
}

.mini{
  border-radius:18px;
  padding:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: 0 12px 28px rgba(0,0,0,.25);
  min-height:150px;
  position:relative;
  overflow:hidden;
}
.mini::before{
  content:"";
  position:absolute; inset:-2px;
  background: radial-gradient(420px 200px at 20% 0%, rgba(74,163,255,.12), transparent 60%);
  opacity:.9;
  pointer-events:none;
}
.icon{
  width:40px; height:40px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.16);
  display:grid;
  place-items:center;
  margin-bottom:10px;
  position:relative;
}
.mini h3{position:relative; margin:0 0 8px; font-size:15px; letter-spacing:-0.2px}
.mini p{position:relative; margin:0; color: rgba(255,255,255,.72); line-height:1.55; font-size:14px}

.signup{
  display:grid;
  grid-template-columns: 1.1fr .9fr;
  gap:14px;
  align-items:stretch;
}
.panel{padding:18px}
.form{margin-top:10px; display:grid; gap:10px}
.row{display:flex; gap:10px; flex-wrap:wrap; align-items:center}

label{
  display:block;
  font-weight:950;
  font-size:12px;
  color: rgba(255,255,255,.72);
  text-transform:uppercase;
  letter-spacing:.8px;
  margin-bottom:6px;
}

.input{
  width:100%;
  border-radius:16px;
  padding:12px 12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  color: var(--text);
  outline:none;
  font-weight:900;
}
.input:focus{
  border-color: rgba(74,163,255,.55);
  box-shadow: 0 0 0 5px rgba(74,163,255,.12);
}

.checks{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:6px;
}
.check{
  display:flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.14);
  font-weight:900;
  color: rgba(255,255,255,.78);
  cursor:pointer;
  user-select:none;
}
.check input{accent-color: var(--gold)}

.note{
  color: rgba(255,255,255,.62);
  font-size:12px;
  line-height:1.5;
}

.alert{
  padding:10px 12px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.14);
  font-weight:950;
  color: rgba(255,255,255,.85);
}
.alert.ok{
  border-color: rgba(46,229,143,.35);
  background: rgba(46,229,143,.10);
  color: rgba(214,255,238,.95);
}
.alert.bad{
  border-color: rgba(255,77,77,.35);
  background: rgba(255,77,77,.10);
  color: rgba(255,226,226,.95);
}

.side{
  padding:18px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:12px;
  background: rgba(0,0,0,.10);
  border-left:1px solid rgba(255,255,255,.10);
}

.timeline{display:grid; gap:10px; margin-top:10px}
.step{
  padding:12px 12px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
}
.step b{color: var(--gold2)}
.step span{display:block; margin-top:6px; color: rgba(255,255,255,.72); font-size:13px; line-height:1.45}

details{
  border-radius:18px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  padding:12px 14px;
}
details + details{margin-top:10px}
summary{
  cursor:pointer;
  font-weight:1100;
  list-style:none;
}
summary::-webkit-details-marker{display:none}
details p{
  margin:10px 0 0;
  color: rgba(255,255,255,.72);
  line-height:1.55;
  font-size:14px;
}

.footer{padding:28px 0 40px; color: rgba(255,255,255,.60); font-size:13px}
.footRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  border-top:1px solid rgba(255,255,255,.10);
  padding-top:18px;
}
.links{display:flex; gap:10px; flex-wrap:wrap}
.links a{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.10);
  font-weight:950;
}
.links a:hover{background: rgba(0,0,0,.18)}

#toast{
  position:fixed;
  left:50%;
  bottom:20px;
  transform: translateX(-50%);
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(10px);
  color: rgba(255,255,255,.92);
  font-weight:1000;
  box-shadow: 0 18px 50px rgba(0,0,0,.45);
  z-index:999;
  opacity:0;
  transition: opacity .2s ease;
  pointer-events:none;
}

/* Utility */
.center{
  min-height: 70vh;
  display:grid;
  place-items:center;
  padding: 34px 0;
}
.box{
  width:min(720px, 100%);
  padding: 18px;
}
.box h1{font-size: clamp(28px, 4vw, 40px)}
.box p{color: var(--muted); line-height:1.65}
hr{border:0; height:1px; background: rgba(255,255,255,.10); margin: 14px 0}

/* Responsive */
@media (max-width: 980px){
  .hero{grid-template-columns: 1fr;}
  .signup{grid-template-columns: 1fr;}
  .side{border-left:0; border-top:1px solid rgba(255,255,255,.10);}
  .grid4{grid-template-columns: 1fr;}
  .nav{display:none;}
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference){
  .card, .mini{animation: floatIn .55s ease both;}
  .mini:nth-child(2){animation-delay:.05s}
  .mini:nth-child(3){animation-delay:.10s}
  .mini:nth-child(4){animation-delay:.15s}
  @keyframes floatIn{
    from{transform: translateY(10px); opacity:0}
    to{transform: translateY(0); opacity:1}
  }
}
