:root{
  --blue:#1A4CFF;
  --ink:#0f172a;      /* near-black */
  --muted:#667085;    /* gray text */
  --line:#eaeaea;     /* borders */
  --card:#ffffff;     /* card bg */
  --ring: 0 0 0 3px rgba(26,76,255,.25);
  --radius:16px;
  --shadow:0 6px 25px rgba(2,6,23,.06), 0 2px 8px rgba(2,6,23,.04);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color:var(--ink);
  background:#fff;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

/* Background canvas behind everything */
.bg-wrap{
  position:fixed;
  inset:0;
  z-index:-1;
  overflow:hidden;
  pointer-events:none;
}
canvas#bg{
  position:absolute;
  inset:auto 0 0 0; /* stick to bottom */
  width:100%;
  height:60vh;      /* visible height */
  display:block;
}
/* bottom fade so the line blends into white */
.fade{
  position:absolute;
  inset:auto 0 0 0;
  height:25vh;
  background:linear-gradient(to bottom, rgba(255,255,255,0), #fff 60%);
  pointer-events:none;
}

.container{
  max-width:780px;
  margin:48px auto 120px;
  padding:0 20px;
}
header{
  text-align:center;
  margin-bottom:28px;
}
.logo{
  width:104px;height:104px;
  margin:0 auto 12px;
  display:grid;place-items:center;
}
.logo img{
  width:100%;
  height:100%;
  object-fit:contain;
}
h1{
  margin:0 0 6px;
  font-size:40px;
  letter-spacing:.3px;
}
.sub{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-size:16px;
}
.badge{
  background:#eef2ff;
  color:var(--blue);
  font-weight:600;
  font-size:12px;
  padding:3px 8px;
  border-radius:999px;
  border:1px solid #dbe3ff;
}
.tagline{
  margin-top:14px;
  color:#3a3f4b;
  font-size:18px;
}

/* Nav pills */
.nav{
  margin:26px auto 18px;
  display:flex;flex-wrap:wrap;gap:10px;
  justify-content:center;
}
.pill{
  appearance:none; border:1px solid var(--line);
  background:#fff; color:var(--ink);
  padding:10px 14px; border-radius:999px;
  font-weight:600; text-decoration:none;
  transition:.15s transform ease, .15s box-shadow ease, .15s background ease;
}
.pill:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.pill:focus-visible{outline:none; box-shadow:var(--ring)}

/* Card */
.card{
  background:var(--card); border:1px solid var(--line);
  border-radius:var(--radius); box-shadow:var(--shadow);
}
.card.pad{padding:18px}
.contracts .row{
  display:flex; flex-wrap:wrap; align-items:center; gap:10px;
  padding:14px 16px;
  border-top:1px solid var(--line);
}
.contracts .row:first-child{border-top:none}
.label{font-weight:700; letter-spacing:.2px}
.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px; padding:8px 10px; border:1px dashed #ccd1db; border-radius:10px; background:#fafbff;
  color:#334155;
}
.btn{
  appearance:none; border:1px solid var(--line);
  background:#fff; color:var(--ink);
  padding:8px 12px; border-radius:12px; font-weight:600; cursor:pointer;
  transition:.15s transform ease,.15s box-shadow ease,.15s background ease;
}
.btn:hover{transform:translateY(-1px); box-shadow:var(--shadow)}
.btn:focus-visible{outline:none; box-shadow:var(--ring)}
.btn.primary{background:var(--blue); border-color:var(--blue); color:#fff}
.btn[disabled]{opacity:.5; cursor:not-allowed; transform:none; box-shadow:none}

/* Tooltip bubble */
.tip{
  position:absolute; transform:translate(-50%,-120%);
  background:#111827; color:#fff; font-size:12px; padding:6px 8px; border-radius:8px; white-space:nowrap;
  opacity:0; pointer-events:none; transition:opacity .15s ease, transform .15s ease;
}
.tip.show{opacity:1; transform:translate(-50%,-130%)}
.tip::after{
  content:""; position:absolute; left:50%; transform:translateX(-50%);
  bottom:-6px; border:6px solid transparent; border-top-color:#111827;
}

/* Slogan stack */
.stack{margin-top:18px}
.slogan{
  margin:12px 0; padding:14px 16px;
  background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow);
  color:#374151;
}

.tweets{margin-top:10px; text-align:center}
.tweets a{color:var(--blue); text-decoration:none; font-weight:700}
.tweets a:hover{text-decoration:underline}

footer{margin:56px 0 0; text-align:center; color:#94a3b8; font-size:13px}

@media (max-width:480px){
  h1{font-size:34px}
  .tagline{font-size:16px}
}

/* Reduced motion: we'll stop animating in JS, but also keep canvas height smaller */
@media (prefers-reduced-motion: reduce){
  canvas#bg{height:40vh}
}
