/* 55TOTO - Clean Responsive Landing + Generator
   Required:
   - assets/img/logo.png
   - assets/img/banner6.jpg
*/

:root{
  --bg:#0b0f19;
  --panel:#0f172a;
  --panel2:#0b1220;
  --card:rgba(255,255,255,.06);
  --line:rgba(255,255,255,.12);
  --text:#e5e7eb;
  --muted:rgba(229,231,235,.72);
  --white:#fff;

  --red:#e11d48;
  --red2:#be123c;
  --green:#22c55e;

  --shadow: 0 18px 60px rgba(0,0,0,.35);
  --radius: 16px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;
  color:var(--text);
  background:
    radial-gradient(1200px 600px at 10% 0%, rgba(225,29,72,.22), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(34,197,94,.14), transparent 55%),
    var(--bg);
  line-height:1.6;
}

a{ color:inherit; text-decoration:none; }
img{ display:block; max-width:100%; }

.container{ width:min(1100px, 92vw); margin:0 auto; }

/* ===== Topbar ===== */
.topbar{
  background: rgba(0,0,0,.55);
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(10px);
}
.topbar__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:10px 0;
}
.topbar__left{
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap;
  font-size:12px;
  color:var(--muted);
}
.topbar__link:hover{ color:var(--white); }
.sep{ opacity:.35; }

.topbar__right{ display:flex; gap:8px; align-items:center; }

/* ===== Header ===== */
.header{
  position:sticky;
  top:0;
  z-index:50;
  background: rgba(11,15,25,.72);
  backdrop-filter: blur(12px);
  border-bottom:1px solid rgba(255,255,255,.08);
}
.header__row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:14px 0;
}

.brand__logo{ height:44px; width:auto; }

.nav{
  display:flex;
  align-items:center;
  gap:18px;
  font-weight:900;
  font-size:12px;
  letter-spacing:.08em;
}
.nav__link{ opacity:.82; padding:8px 2px; }
.nav__link:hover{ opacity:1; color:var(--white); }
.nav__link.is-active{ opacity:1; color:var(--white); }

.header__cta{
  display:flex;
  gap:10px;
  align-items:center;
}

/* Burger */
.burger{
  display:none;
  width:44px;
  height:44px;
  border-radius:12px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  cursor:pointer;
}
.burger span{
  display:block;
  width:20px;
  height:2px;
  background:#fff;
  margin:5px auto;
  border-radius:99px;
  opacity:.9;
}

/* Drawer */
.drawer{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  opacity:0;
  pointer-events:none;
  transition:.15s ease;
}
.drawer.is-open{
  opacity:1;
  pointer-events:auto;
}
.drawer__inner{
  position:absolute;
  top:70px;
  right:12px;
  left:12px;
  background:#0b1220;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:14px;
  box-shadow:var(--shadow);
}
.drawer__link{
  display:block;
  padding:12px 10px;
  border-radius:12px;
  font-weight:900;
  letter-spacing:.04em;
  background:rgba(255,255,255,.03);
  border:1px solid rgba(255,255,255,.08);
  margin-bottom:10px;
}
.drawer__link:hover{ background:rgba(255,255,255,.06); }

.drawer__cta{
  display:flex;
  gap:10px;
  margin-top:6px;
}
.drawer__cta a{ flex:1; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:11px 14px;
  border-radius:12px;
  font-weight:1000;
  font-size:12px;
  letter-spacing:.08em;
  border:1px solid transparent;
  cursor:pointer;
  transition:.15s ease;
  text-transform:uppercase;
}
.btn:hover{ transform: translateY(-1px); }
.btn:active{ transform: translateY(0); }

.btn--red{ background:var(--red); border-color:rgba(225,29,72,.6); color:#fff; }
.btn--red:hover{ background:var(--red2); }

.btn--dark{ background:#0b1220; border-color:rgba(255,255,255,.14); color:#fff; }
.btn--dark:hover{ background:#0a1427; }

.btn--outline{
  background:transparent;
  border-color:rgba(255,255,255,.22);
  color:#fff;
}
.btn--outline:hover{ background:rgba(255,255,255,.06); }

.pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 12px;
  border-radius:999px;
  font-weight:900;
  font-size:11px;
  letter-spacing:.08em;
  border:1px solid transparent;
  text-transform:uppercase;
}
.pill--primary{ background:var(--red); border-color:rgba(225,29,72,.6); color:#fff; }
.pill--ghost{ background:rgba(255,255,255,.06); border-color:rgba(255,255,255,.10); color:#fff; }

/* ===== Hero ===== */
.hero{ padding:18px 0 8px; }
.hero__card{
  display:grid;
  grid-template-columns: 1.25fr .95fr;
  gap:16px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  overflow:hidden;
  box-shadow: var(--shadow);
}

.hero__media{
  background:#000;
  min-height:240px;
}
.hero__media img{
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero__content{
  padding:18px;
}
.badge{
  display:inline-flex;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.30);
  color:#b7f7cf;
  font-weight:900;
  font-size:11px;
  letter-spacing:.08em;
  margin-bottom:10px;
}

.hero__content h1{
  margin:0 0 8px;
  font-size:20px;
  line-height:1.2;
  font-weight:1000;
}
.hero__content p{
  margin:0 0 14px;
  color:var(--muted);
  font-size:13px;
}
.hero__buttons{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.hero__note{
  margin-top:10px;
  font-size:12px;
  color:rgba(229,231,235,.65);
}
.hero__note code{
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.10);
  padding:2px 6px;
  border-radius:8px;
}

/* ===== Main panels ===== */
.main{ padding:10px 0 30px; }

.panel{
  margin-top:14px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.10);
  border-radius:18px;
  padding:18px;
  box-shadow: 0 10px 40px rgba(0,0,0,.20);
}
.panel--light{
  background: rgba(255,255,255,.03);
}
.panel__head{
  margin-bottom:14px;
}
.panel__head h2{
  margin:0 0 6px;
  font-size:16px;
  font-weight:1000;
  letter-spacing:.02em;
}
.panel__sub{
  color:var(--muted);
  font-size:12px;
}

/* ===== Generator controls ===== */
.controls{
  display:grid;
  grid-template-columns: 1.2fr .8fr .8fr auto;
  gap:12px;
  align-items:end;
  margin-bottom:14px;
}

.controls label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color:rgba(229,231,235,.85);
}

.controls select,
.controls input{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
  color:#fff;
  outline:none;
}

.controls select:focus,
.controls input:focus{
  border-color:rgba(225,29,72,.7);
  box-shadow:0 0 0 3px rgba(225,29,72,.18);
}

#btnRandom{
  padding:11px 16px;
  border-radius:12px;
  border:1px solid rgba(225,29,72,.45);
  background:var(--red);
  color:#fff;
  font-weight:1000;
  cursor:pointer;
  transition:.15s ease;
  letter-spacing:.06em;
  text-transform:uppercase;
}
#btnRandom:hover{ background:var(--red2); transform:translateY(-1px); }
#btnRandom:active{ transform:translateY(0); }

/* ===== Result ===== */
.result-card{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  padding:14px;
}

.result-title{
  font-weight:1000;
  letter-spacing:.02em;
  margin-bottom:12px;
  color:#fff;
}

.result-grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:12px;
}
.result-grid .k{
  font-size:11px;
  color:rgba(229,231,235,.70);
  margin-bottom:4px;
}
.result-grid .v{
  font-size:13px;
  font-weight:900;
  color:#fff;
}
.result-grid .v.big{
  font-size:22px;
  font-weight:1000;
  color:var(--green);
}

.result-actions{
  display:flex;
  gap:10px;
  margin-top:12px;
  flex-wrap:wrap;
}
.result-actions a{ flex:1; min-width:160px; }

/* ===== Alternatives ===== */
.alts{
  margin-top:14px;
  padding-top:14px;
  border-top:1px dashed rgba(255,255,255,.12);
}
.alts-title{
  font-weight:1000;
  margin-bottom:10px;
}
.alt-list{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:10px;
}
.alt-item{
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  border-radius:14px;
  padding:12px;
  display:flex;
  justify-content:space-between;
  gap:10px;
}
.alt-item .left{
  display:flex;
  flex-direction:column;
  gap:4px;
}
.alt-item .g{
  font-weight:1000;
  color:#fff;
  font-size:13px;
}
.alt-item .p{
  font-size:12px;
  color:rgba(229,231,235,.75);
}
.alt-item .rtp{
  font-weight:1000;
  font-size:14px;
  color:var(--green);
  white-space:nowrap;
}

.mini-note{
  margin-top:12px;
  font-size:12px;
  color:rgba(229,231,235,.75);
}

/* Promo panel */
.promo h2{
  margin:0 0 8px;
  font-size:16px;
  font-weight:1000;
}
.promo p{
  margin:0;
  font-size:13px;
  color:rgba(229,231,235,.85);
}

/* ===== Footer ===== */
.footer{
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.35);
  padding:18px 0;
}
.footer__row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}
.footer__brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.footer__logo{ height:34px; width:auto; }
.footer__title{ font-weight:1000; }
.footer__sub{ color:rgba(229,231,235,.70); font-size:12px; }

.footer__cta{ display:flex; gap:10px; }

.footer__bottom{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  color:rgba(229,231,235,.65);
  font-size:12px;
}
.footer__bottom a{ opacity:.9; }
.footer__bottom a:hover{ opacity:1; }

/* ===== Responsive ===== */
@media (max-width: 980px){
  .nav{ display:none; }
  .burger{ display:inline-flex; align-items:center; justify-content:center; }
  .drawer{ display:block; }

  .hero__card{ grid-template-columns: 1fr; }
  .header__cta{ display:none; }

  .controls{
    grid-template-columns: 1fr 1fr;
  }
  #btnRandom{ grid-column: 1 / -1; }
  .result-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .alt-list{ grid-template-columns: 1fr; }
}

@media (max-width: 460px){
  .topbar__right{ display:none; }
  .result-grid{ grid-template-columns: 1fr; }
  .result-actions a{ min-width: 0; }
}
