/* Torque. Built on the Hyperliquid pattern: graphite ground, flat panels with hairlines, light large type, small dense
   numbers, one pastel accent with dark text on it. Colours and type follow Laurel (DM Sans). */
:root {
  /* Laurel's palette: a near-black frame, one lighter card, neutral greys, white primary pills */
  --bg: #0e0e0e; --p: #171717; --p2: #1c1c1c; --p3: #222222; --p4: #2e2e2e;
  --line: #2a2a2a; --line2: #363636;
  --ink: #eeeeee; --dim: #ababab; --faint: #767676;
  --acc: #f2f2f2; --acc-ink: #141414; --acc-dk: #2a2a2a;
  --up: #65df9e; --up-dk: #173628; --dn: #f28b8b; --dn-dk: #3b1e20;
  --r: 999px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 "DM Sans", system-ui, sans-serif; font-feature-settings: "tnum" 1, "cv11" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; }
.up { color: var(--up); } .dn { color: var(--dn); } .dim { color: var(--dim); } .faint { color: var(--faint); }
.mono { font-variant-numeric: tabular-nums; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, opacity .15s; }
.btn.a { background: var(--acc); color: var(--acc-ink); }
.btn.a:hover { background: #dedede; }
.btn.g { background: var(--p3); color: var(--ink); }
.btn.g:hover { background: var(--p4); }
.btn.o { border-color: var(--line2); color: var(--ink); background: transparent; }
.btn.o:hover { border-color: var(--p4); background: var(--p2); }
.btn.sm { height: 34px; padding: 0 14px; font-size: 13px; }

/* top bar (landing) */
.top { position: sticky; top: 0; z-index: 20; background: rgba(8, 9, 12, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top .in { max-width: 1200px; margin: 0 auto; height: 60px; padding: 0 57px; display: flex; align-items: center; gap: 6px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: -.02em; margin-right: 18px; }
.brand img { width: 24px; height: 24px; }
.top nav { display: flex; gap: 2px; }
.top nav a { padding: 7px 12px; border-radius: 6px; font-size: 14px; color: var(--dim); }
.top nav a:hover { color: var(--ink); background: var(--p2); }
.sp { flex: 1; }

/* hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14, 14, 14, .9) 0%, rgba(14, 14, 14, .4) 42%, rgba(14, 14, 14, 0) 62%); pointer-events: none; }
.hero .in { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 132px 57px 120px; }
.hero h1 { font-weight: 400; font-size: clamp(44px, 6.4vw, 84px); line-height: 1.02; letter-spacing: -.03em; max-width: 9em; }
.hero p { margin-top: 26px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--dim); letter-spacing: -.01em; }
.hero .cta { display: flex; gap: 10px; margin-top: 36px; flex-wrap: wrap; }
.ca { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; height: 40px; padding: 0 14px; border: 1px solid var(--line2); border-radius: 8px; background: rgba(16, 17, 22, .7); font-size: 13px; cursor: pointer; max-width: 100%; }
.ca b { font-weight: 600; }
.ca span { color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca:hover { border-color: var(--p4); }

/* framed column, like hyperliquid.xyz: one centred column with hairlines left and right */
.frame { max-width: 1200px; margin: 0 auto; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.stats > div { padding: 26px 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -.02em; line-height: 1.15; }
.stats b small { color: var(--faint); font-size: 22px; font-weight: 400; margin-left: 4px; }
.stats span { display: block; margin-top: 4px; font-size: 13px; color: var(--faint); }
.ticks { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.ticks a { display: flex; align-items: center; gap: 12px; padding: 18px 28px; border-right: 1px solid var(--line); transition: background .15s; }
.ticks a:last-child { border-right: 0; }
.ticks a:hover { background: var(--p); }
.ticks img { width: 30px; height: 30px; border-radius: 50%; }
.ticks b { display: block; font-size: 15px; font-weight: 500; }
.ticks span { font-size: 13px; color: var(--dim); }
.ticks em { font-style: normal; margin-left: 6px; }

.sec { padding: 96px 56px; border-bottom: 1px solid var(--line); }
.hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.h2 { font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.08; letter-spacing: -.025em; max-width: 15em; }
.lead { margin-top: 18px; max-width: 38em; color: var(--dim); font-size: 17px; line-height: 1.6; letter-spacing: -.01em; }

/* product shot on a calm field */
.shotwrap { margin-top: 52px; border-radius: 10px; padding: 40px 40px 0; background: radial-gradient(120% 120% at 100% 0%, #2c2c2c 0%, #1a1a1a 45%, #111111 100%); overflow: hidden; border: 1px solid var(--line); }
.shotwrap img { width: 100%; border-radius: 8px 8px 0 0; border: 1px solid #2c2c3a; border-bottom: 0; box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px; }
.card { background: var(--p); border: 1px solid var(--line); border-radius: 10px; padding: 28px 26px 30px; min-height: 250px; display: flex; flex-direction: column; }
.card .n { font-size: 34px; font-weight: 400; letter-spacing: -.025em; color: var(--acc); }
.card h3 { margin-top: 56px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.card p { margin-top: 8px; color: var(--dim); font-size: 14.5px; line-height: 1.55; }

/* markets table */
.mt { margin-top: 40px; border-top: 1px solid var(--line); }
.mt .r { display: grid; grid-template-columns: 1.6fr 1fr .8fr 1fr .9fr 170px; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
.mt .r.h { font-size: 13px; color: var(--faint); padding: 12px 4px; }
.mt .nm { display: flex; align-items: center; gap: 12px; }
.mt .nm img { width: 32px; height: 32px; border-radius: 50%; }
.mt .nm small { display: block; color: var(--faint); font-size: 13px; }
.mt .go { display: flex; gap: 6px; justify-content: flex-end; }
.mt .go a { height: 32px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 6px; font-size: 13px; font-weight: 500; }
.mt .go .l { background: var(--up-dk); color: var(--up); } .mt .go .l:hover { background: #134a3a; }
.mt .go .s { background: var(--dn-dk); color: var(--dn); } .mt .go .s:hover { background: #561f34; }

/* vault split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.cells { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cells > div { padding: 26px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--p); }
.cells > div:nth-child(2n) { border-right: 0; }
.cells > div:nth-last-child(-n+2) { border-bottom: 0; }
.cells b { display: block; font-size: 34px; font-weight: 400; letter-spacing: -.025em; }
.cells span { display: block; margin-top: 6px; color: var(--dim); font-size: 14px; line-height: 1.45; }

/* faq as cards */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 44px; }
.faq div { background: var(--p); border: 1px solid var(--line); border-radius: 10px; padding: 24px 24px 26px; }
.faq h3 { font-size: 16px; font-weight: 500; letter-spacing: -.015em; }
.faq p { margin-top: 8px; color: var(--dim); font-size: 14.5px; line-height: 1.6; }

.end { text-align: center; padding: 110px 20px; }
.end .h2 { margin: 0 auto; }
.end .btn { margin-top: 30px; }

/* footer: a pure black strip */
footer { background: #000; }
footer .in { max-width: 1200px; margin: 0 auto; padding: 46px 57px 52px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; font-size: 14px; }
footer p { color: var(--faint); margin-top: 10px; }
footer h4 { font-size: 13px; color: var(--faint); font-weight: 500; margin-bottom: 10px; }
footer .in > div > a:not(.brand) { display: block; color: var(--dim); padding: 3px 0; }
footer a:hover { color: var(--ink); }

.toast { position: fixed; left: 50%; bottom: 40px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: var(--p3); border: 1px solid var(--line2); color: var(--ink); padding: 11px 16px; border-radius: 8px; font-size: 13px; transition: .2s; z-index: 99; max-width: calc(100vw - 32px); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.toast.bad { border-color: #5a2232; color: #ffb3c2; }

.rv { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.rv.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .in, footer .in { padding-left: 16px; padding-right: 16px; }
  .card h3 { margin-top: 28px; }
  .hero .in { padding: 84px 16px 80px; }
  .hero::after { background: linear-gradient(180deg, rgba(14, 14, 14, .6), rgba(14, 14, 14, .9)); }
  .stats, .ticks { grid-template-columns: 1fr 1fr; }
  .stats > div:nth-child(2n), .ticks a:nth-child(2n) { border-right: 0; }
  .stats > div:nth-child(-n+2), .ticks a:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stats > div, .ticks a { padding: 18px 16px; }
  .stats b { font-size: 22px; }
  .sec { padding: 64px 16px; }
  .hd { flex-direction: column; }
  .shotwrap { padding: 16px 16px 0; margin-top: 32px; }
  .cards, .faq, .split { grid-template-columns: 1fr; gap: 12px; }
  .split { gap: 32px; }
  .card { min-height: 0; }
  .mt .r { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 8px; font-size: 14px; }
  .mt .r > :nth-child(2) .faint { display: none; }
  .mt .go a { padding: 0 10px; height: 30px; }
  .hero canvas { opacity: .4; }
  .mt .r > :nth-child(3), .mt .r > :nth-child(4), .mt .r > :nth-child(5) { display: none; }
  footer .in { grid-template-columns: 1fr 1fr; }
}
