/* Minimal, modern single-page landing.
   No external fonts, no frameworks. */

:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,.06);
  --panel2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.55);
  --shadow: 0 12px 36px rgba(0,0,0,.45);
  --shadow2: 0 18px 60px rgba(0,0,0,.55);
  --radius: 18px;
  --radius2: 26px;
  --accent1: #7c3aed; /* purple */
  --accent2: #22c55e; /* green */
  --accent3: #06b6d4; /* cyan */
  --danger: #fb7185;
  --ok: #34d399;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:var(--sans);
  background: radial-gradient(1200px 700px at 15% 10%, rgba(124,58,237,.30), transparent 55%),
              radial-gradient(900px 600px at 85% 0%, rgba(6,182,212,.22), transparent 60%),
              radial-gradient(1000px 700px at 75% 85%, rgba(34,197,94,.18), transparent 65%),
              var(--bg);
  color:var(--text);
  overflow-x:hidden;
}

.bg{
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.55;
}
.bg-grid{
  position:absolute;
  inset:-120px;
  width:calc(100% + 240px);
  height:calc(100% + 240px);
  filter: blur(0px);
  opacity:.18;
}

a{color:inherit; text-decoration:none}
a:hover{opacity:.9}

.header{
  max-width:1300px;
  margin:0 auto;
  padding:18px 18px;
  display:flex;
  align-items:center;
  gap:18px;
  position:sticky;
  top:0;
  backdrop-filter: blur(12px);
  background: linear-gradient(to bottom, rgba(11,18,32,.72), rgba(11,18,32,.30));
  border-bottom:1px solid rgba(255,255,255,.06);
  z-index:10;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.07);
}
.brand-mark{width:22px;height:22px}
.brand-name{font-weight:650; letter-spacing:.2px}
.brand-pill{
  font-size:12px;
  padding:2px 8px;
  border-radius:999px;
  background: rgba(124,58,237,.20);
  border:1px solid rgba(124,58,237,.35);
  color: rgba(255,255,255,.88);
}

.nav{
  margin-left:8px;
  display:flex;
  gap:14px;
  flex:1;
}
.nav a{
  color:var(--muted);
  font-size:14px;
  padding:10px 10px;
  border-radius:10px;
}
.nav a:hover{
  background: rgba(255,255,255,.05);
  color: var(--text);
}

.btn{
  border:1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.06);
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  transition: transform .08s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.18)}
.btn:active{transform: translateY(1px)}
.btn-ghost{background: rgba(255,255,255,.03)}
.btn-primary{
  background: linear-gradient(135deg, rgba(124,58,237,.95), rgba(6,182,212,.85));
  border-color: rgba(255,255,255,.18);
}
.btn-primary:hover{filter: brightness(1.03)}
.btn-primary:active{transform: translateY(1px)}

.main{max-width:1300px; margin:0 auto; padding:28px 18px 60px}

.hero{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:26px;
  align-items:start;
  padding-top:26px;
}

.hero-copy h1{
  font-size: clamp(34px, 4.6vw, 56px);
  line-height:1.02;
  margin: 0 0 12px;
  letter-spacing: -0.8px;
}
.grad{
  background: linear-gradient(135deg, var(--accent2), var(--accent3), var(--accent1));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.sub{
  margin:0 0 18px;
  color: var(--muted);
  font-size: 16px;
  line-height:1.55;
  max-width:58ch;
}

.card{
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-input{
  padding:16px;
}
.lookup{
  display:flex;
  gap:10px;
}
.lookup input{
  flex:1;
  padding:12px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.20);
  color: var(--text);
  outline:none;
  font-size: 16px;
}
.lookup input:focus{
  border-color: rgba(6,182,212,.55);
  box-shadow: 0 0 0 4px rgba(6,182,212,.12);
}
.hint{margin-top:10px; color: var(--muted2); font-size:13px}

.result{margin-top:14px}
.preview{
  display:flex;
  gap:14px;
  align-items:flex-start;
}
.preview-icon{
  width:64px;
  height:64px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.12);
  display:grid;
  place-items:center;
  overflow:hidden;
}
.preview-icon img{width:48px;height:48px; image-rendering: auto}
.preview-meta{flex:1; min-width:0}
.row{
  display:grid;
  grid-template-columns: 92px 1fr;
  gap:10px;
  align-items:baseline;
  margin-bottom:8px;
}
.label{color: var(--muted2); font-size:13px}
.value{color: var(--text); font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap}
.actions{
  margin-top:10px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.details{
  margin-top:12px;
  border-top:1px solid rgba(255,255,255,.08);
  padding-top:10px;
}
.details summary{
  cursor:pointer;
  color: var(--muted);
  font-weight:600;
  list-style:none;
}
.details summary::-webkit-details-marker{display:none}
.details summary:before{
  content:"▸";
  display:inline-block;
  margin-right:8px;
  transform: translateY(-1px);
  opacity:.85;
}
.details[open] summary:before{content:"▾"}

.adv{
  margin-top:10px;
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
}
.field{
  background: rgba(0,0,0,.18);
  border:1px solid rgba(255,255,255,.10);
  border-radius: 14px;
  padding:10px;
}
.field label{display:block; font-size:12px; color: var(--muted2); margin-bottom:6px}
.field select, .field input{
  width:100%;
  padding:10px 10px;
  border-radius: 12px;
  border:1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: var(--text);
  outline:none;
}
.field.wide{grid-column: 1 / -1}
.mini{margin-top:6px; font-size:12px; color: var(--muted2)}

.error{
  margin-top:14px;
  padding:12px 12px;
  border-radius:14px;
  background: rgba(251,113,133,.14);
  border:1px solid rgba(251,113,133,.28);
}
.error-title{font-weight:700}
.error-body{color: rgba(255,255,255,.85); margin-top:4px}

.toast{
  position:fixed;
  left:50%;
  bottom:22px;
  transform: translateX(-50%);
  padding:10px 12px;
  border-radius:999px;
  background: rgba(0,0,0,.55);
  border:1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow2);
  color: var(--text);
  font-weight:650;
  font-size:13px;
  opacity:0;
  pointer-events:none;
  transition: opacity .18s ease, transform .18s ease;
}
.toast.show{
  opacity:1;
  transform: translateX(-50%) translateY(-2px);
}

.trust{
  margin-top:14px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.chip{
  display:flex;
  align-items:center;
  gap:8px;
  padding:8px 10px;
  border-radius:999px;
  background: rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  color: var(--muted);
  font-size:13px;
}
.dot{
  width:8px; height:8px; border-radius:999px;
  background: linear-gradient(135deg, var(--accent2), var(--accent3));
  box-shadow: 0 0 0 3px rgba(6,182,212,.12);
}

.hero-side{position:relative}
.stack{display:grid; gap:12px}
.tile{
  padding:14px;
  border-radius: var(--radius2);
  background: rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.10);
  box-shadow: var(--shadow);
}
.tile-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}
.tile-top .k{color: var(--muted2); font-size:12px}
.tile-top .v{color: var(--muted); font-size:12px}
.tile-mid{
  display:flex;
  gap:12px;
  align-items:center;
}
.tile-mid img{width:44px;height:44px;border-radius:12px;border:1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.2)}
.small{font-size:12px; color: var(--muted)}
.code{
  padding:10px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.18);
}

.section{margin-top:48px}
.section h2{
  margin:0 0 14px;
  font-size:22px;
  letter-spacing:-0.2px;
}
.grid3{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.grid2{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap:12px;
}

.card h3{margin:0 0 8px; font-size:16px}
.card p{margin:0; color: var(--muted); line-height:1.55}
.card.api{padding:16px}
.api-row{display:flex; gap:12px; align-items:center; justify-content:space-between}
.pill{
  display:inline-flex;
  align-items:center;
  padding:4px 10px;
  border-radius:999px;
  font-weight:800;
  font-size:12px;
  background: rgba(34,197,94,.18);
  border:1px solid rgba(34,197,94,.35);
  color: rgba(255,255,255,.9);
  margin-bottom:8px;
}
.api-path{font-weight:750; font-size:14px}
.muted{color: var(--muted)}
.mono{font-family: var(--mono)}
.pre{
  margin:0;
  padding:14px;
  border-radius:16px;
  background: rgba(0,0,0,.20);
  border:1px solid rgba(255,255,255,.10);
  overflow:auto;
}
.params{
  display:grid;
  gap:10px;
  margin-top:10px;
}
.param{
  display:flex;
  justify-content:space-between;
  gap:10px;
  padding:10px 12px;
  border-radius:14px;
  background: rgba(0,0,0,.16);
  border:1px solid rgba(255,255,255,.09);
}
.note{margin-top:12px}

.footer{
  border-top:1px solid rgba(255,255,255,.08);
  background: rgba(11,18,32,.55);
  backdrop-filter: blur(10px);
}
.footer-inner{
  max-width:1300px;
  margin:0 auto;
  padding:18px 18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.footer-left{display:flex; align-items:center; gap:10px}
.footer-mark{width:18px;height:18px; opacity:.9}
.footer-right{display:flex; gap:10px; align-items:center}
.sep{color: rgba(255,255,255,.25)}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

@media (max-width: 980px){
  .hero{grid-template-columns: 1fr; }
  .hero-side{display:none}
}
@media (max-width: 680px){
  .nav{display:none}
  .row{grid-template-columns: 80px 1fr}
  .adv{grid-template-columns: 1fr}
  .lookup{flex-direction:column}
  .btn{width:100%}
  .api-row{flex-direction:column; align-items:flex-start}
}
