/* Hyperliquid_Top - Profile & Indicators pages (the Trading page keeps /static/style.css) */
:root {
  --bg: #060c0f;
  --bg-2: #0a1418;
  --card: rgba(16, 28, 33, 0.72);
  --card-solid: #0f1b20;
  --line: rgba(120, 160, 160, 0.14);
  --line-2: rgba(120, 160, 160, 0.24);
  --text: #f2f7f6;
  --muted: #9aa9a6;
  --dim: #66777a;
  --teal: #50d2c1;
  --teal-2: #2fb5a4;
  --gold: #d9b26f;
  --gold-2: #f1d7a2;
  --up: #2ecf9a;
  --down: #ff6b85;
  --radius: 18px;
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", Consolas, ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* ambient light + faint chart grid behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(80, 210, 193, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(217, 178, 111, 0.10), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(80, 210, 193, 0.08), transparent 60%),
    var(--bg);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(rgba(120, 160, 160, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 160, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: min(1200px, 100% - 48px); margin: 0 auto; }
.gold { color: var(--gold); }
.teal { color: var(--teal); }
.up { color: var(--up); }
.down { color: var(--down); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ------------------------------------------------------------------ header */
.site-head {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 12, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 17px; letter-spacing: 0.2px; color: var(--teal); white-space: nowrap; }
.logo span { color: var(--text); }
.logo b { color: var(--teal); font-weight: 600; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color 0.2s, background 0.2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.nav a.active { color: var(--bg); background: var(--teal); }
.head-cta { margin-left: auto; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 rgba(46, 207, 154, 0.6); animation: ping 2s infinite; vertical-align: middle; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(46, 207, 154, 0.55); } 70% { box-shadow: 0 0 0 9px rgba(46, 207, 154, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 207, 154, 0); } }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px;
  font: 600 14.5px/1 var(--sans); letter-spacing: 0.2px; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-gold { color: #1b1306; background: linear-gradient(135deg, var(--gold-2), var(--gold)); box-shadow: 0 10px 30px rgba(217, 178, 111, 0.25); }
.btn-gold:hover { box-shadow: 0 14px 40px rgba(217, 178, 111, 0.4); }
.btn-teal { color: #04231f; background: linear-gradient(135deg, #7ff0e0, var(--teal)); box-shadow: 0 10px 30px rgba(80, 210, 193, 0.22); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--teal); }
.btn-sm { padding: 9px 16px; font-size: 13.5px; }

/* ------------------------------------------------------------------ typography */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 600; letter-spacing: 2.4px; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.7; }
h1, h2, h3 { margin: 0; font-weight: 600; }
.display { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -0.5px; }
h2.display { font-size: clamp(34px, 4.4vw, 54px); }
.lead { font-size: clamp(17px, 1.6vw, 19.5px); color: #c9d5d2; max-width: 640px; }
.grad { background: linear-gradient(100deg, var(--gold-2), var(--gold) 40%, var(--teal) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
section { padding: 110px 0; position: relative; }
.sec-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 52px; max-width: 760px; }

/* ------------------------------------------------------------------ cards */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.card::before {   /* hairline highlight on the top edge */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 215, 162, 0.45), transparent);
}

/* ------------------------------------------------------------------ hero (profile) */
.hero { padding: 70px 0 90px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(58px, 7.4vw, 104px); margin: 18px 0 10px; }
.hero .role { font-size: clamp(18px, 1.8vw, 22px); color: var(--text); font-weight: 500; margin-bottom: 22px; }
.hero .role i { font-style: normal; color: var(--dim); margin: 0 8px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-note { margin-top: 22px; font-size: 13.5px; color: var(--muted); display: flex; align-items: center; gap: 9px; }

.portrait { position: relative; }
.portrait .frame {
  position: relative; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4;
  border: 1px solid rgba(241, 215, 162, 0.35);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 10px rgba(217, 178, 111, 0.05);
}
.portrait .frame img { width: 100%; height: 100%; object-fit: cover; object-position: 58% 35%; transform: scale(1.02); transition: transform 1.2s ease; }
.portrait:hover .frame img { transform: scale(1.06); }
.portrait .frame::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(6, 12, 15, 0.75)); }
.portrait .halo { position: absolute; inset: -40px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(80, 210, 193, 0.22), transparent 65%); filter: blur(20px); }
.portrait .sig { position: absolute; left: 26px; bottom: 22px; z-index: 2; font-family: var(--serif); font-size: 30px; font-style: italic; color: var(--gold-2); }
.float {
  position: absolute; z-index: 3; padding: 12px 16px; border-radius: 14px; min-width: 190px;
  background: rgba(10, 20, 24, 0.82); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); animation: bob 6s ease-in-out infinite;
}
.float small { display: block; color: var(--muted); font-size: 11.5px; letter-spacing: 0.4px; }
.float b { font-size: 19px; font-weight: 600; font-variant-numeric: tabular-nums; }
.float .bar { height: 4px; border-radius: 2px; margin-top: 7px; background: var(--down); overflow: hidden; }
.float .bar i { display: block; height: 100%; background: var(--up); transition: width 0.8s ease; }
.float.f1 { top: 28px; left: -46px; }
.float.f2 { top: 44%; right: -38px; animation-delay: -2s; }
.float.f3 { bottom: 70px; left: -30px; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* live market tape */
.tape { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(10, 20, 24, 0.6); overflow: hidden; white-space: nowrap; }
.tape-track { display: inline-flex; gap: 38px; padding: 14px 0; animation: tape 60s linear infinite; }
.tape:hover .tape-track { animation-play-state: paused; }
.tape span { font-size: 13.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tape span b { color: var(--text); font-weight: 600; margin-right: 8px; }
@keyframes tape { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -40px; position: relative; z-index: 2; }
.stat { padding: 26px 24px; }
.stat b { display: block; font-family: var(--serif); font-size: 46px; font-weight: 600; line-height: 1; color: var(--gold-2); font-variant-numeric: lining-nums; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: 14px; }
.stat em { font-style: normal; font-size: 11.5px; color: var(--dim); }

/* two-column story */
.story { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; }
.story p { color: #c9d5d2; margin: 0 0 18px; font-size: 17px; }
.story p.quote, .quote { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); line-height: 1.3; color: var(--text); padding-left: 26px; border-left: 2px solid var(--gold); font-style: italic; }

/* expertise grid */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.skill { padding: 26px; transition: transform 0.25s, border-color 0.25s; }
.skill:hover { transform: translateY(-4px); border-color: rgba(80, 210, 193, 0.4); }
.skill .ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(80, 210, 193, 0.1); color: var(--teal); font-size: 20px; margin-bottom: 16px; }
.skill h3 { font-size: 17.5px; margin-bottom: 6px; }
.skill p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* principles */
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: p; }
.principle { padding: 28px 24px; }
.principle::after { counter-increment: p; content: "0" counter(p); position: absolute; top: 18px; right: 22px; font-family: var(--serif); font-size: 40px; color: rgba(217, 178, 111, 0.16); }
.principle h3 { font-size: 18px; margin-bottom: 8px; }
.principle p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* showcase cards (profile -> indicators) */
.show { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.show-card { display: flex; flex-direction: column; transition: transform 0.3s, border-color 0.3s; }
.show-card:hover { transform: translateY(-6px); border-color: rgba(217, 178, 111, 0.45); }
.show-card .shot { aspect-ratio: 16 / 9; overflow: hidden; border-bottom: 1px solid var(--line); }
.show-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; transition: transform 0.8s; }
.show-card:hover .shot img { transform: scale(1.06); }
.show-card .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.show-card .tag { font-size: 11.5px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--teal); }
.show-card h3 { font-size: 21px; }
.show-card p { margin: 0; color: var(--muted); font-size: 14.5px; flex: 1; }
.show-card .more { color: var(--gold); font-weight: 600; font-size: 14px; margin-top: 8px; }

/* vision */
.vision { padding: 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center;
  background: linear-gradient(135deg, rgba(217, 178, 111, 0.10), rgba(80, 210, 193, 0.06) 60%, rgba(16, 28, 33, 0.7)); }
.vision ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.vision li { display: flex; gap: 12px; align-items: flex-start; color: #c9d5d2; }
.vision li::before { content: "◆"; color: var(--gold); font-size: 11px; margin-top: 6px; }

/* engagement */
.engage { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { padding: 30px 28px; display: flex; flex-direction: column; gap: 10px; }
.plan.featured { border-color: rgba(217, 178, 111, 0.5); box-shadow: 0 30px 70px rgba(217, 178, 111, 0.08); }
.plan .k { font-size: 12px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.plan h3 { font-family: var(--serif); font-size: 30px; font-weight: 600; }
.plan p { margin: 0; color: var(--muted); font-size: 14.5px; }
.plan ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: #c9d5d2; }
.plan li::before { content: "✓"; color: var(--teal); margin-right: 9px; font-weight: 700; }

/* contact */
.contact { text-align: center; padding: 70px 40px; }
.contact h2 { margin: 14px auto 14px; max-width: 760px; }
.contact .lead { margin: 0 auto; }
.discord { display: inline-flex; align-items: center; gap: 14px; margin-top: 34px; padding: 10px 10px 10px 20px; border-radius: 999px; background: rgba(88, 101, 242, 0.12); border: 1px solid rgba(88, 101, 242, 0.45); }
.discord .h { font-family: var(--mono); font-size: 17px; color: var(--text); }
.discord svg { color: #8c98ff; }
.copied { color: var(--up); font-size: 13px; margin-top: 12px; min-height: 20px; }

/* ------------------------------------------------------------------ indicators page */
.ihero { padding: 80px 0 40px; text-align: center; }
.ihero .lead { margin: 18px auto 0; }
.ihero h1 { font-size: clamp(46px, 6vw, 86px); margin-top: 18px; }
.livebar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; text-align: left; }
.livebar .card { padding: 18px 20px; }
.livebar small { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; letter-spacing: 0.4px; }
.livebar b { display: block; margin-top: 6px; font-size: 22px; font-variant-numeric: tabular-nums; }
.livebar .bar { height: 5px; border-radius: 3px; margin-top: 9px; background: rgba(255, 107, 133, 0.85); overflow: hidden; }
.livebar .bar i { display: block; height: 100%; background: var(--up); transition: width 0.8s ease; }

.toc { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 34px; }
.toc a { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; transition: color 0.2s, border-color 0.2s; }
.toc a:hover { color: var(--text); border-color: var(--gold); }

.ind { padding: 90px 0; border-top: 1px solid var(--line); }
.ind-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.ind-num { font-family: var(--serif); font-size: 96px; line-height: 0.8; color: rgba(217, 178, 111, 0.22); margin-bottom: 18px; }
.ind h2 { margin: 10px 0 16px; }
.ind p { color: #c9d5d2; margin: 0 0 16px; }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; }
.badge.b-gold { color: var(--gold-2); background: rgba(217, 178, 111, 0.12); border: 1px solid rgba(217, 178, 111, 0.35); }
.badge.b-teal { color: var(--teal); background: rgba(80, 210, 193, 0.1); border: 1px solid rgba(80, 210, 193, 0.35); }
.rules { margin: 22px 0; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; }
.rules div { display: flex; gap: 12px; color: #c9d5d2; font-size: 15px; }
.rules div b { color: var(--text); }
.rules .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(217, 178, 111, 0.14); color: var(--gold); font-weight: 700; font-size: 13px; }

.gallery { display: grid; gap: 12px; }
.gallery .main { border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); cursor: zoom-in; box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5); position: relative; }
.gallery .main img { width: 100%; transition: transform 0.6s; }
.gallery .main:hover img { transform: scale(1.02); }
.gallery .main figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(6, 12, 15, 0.82); font-size: 13px; color: var(--text); backdrop-filter: blur(6px); }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: none; opacity: 0.6; transition: opacity 0.2s, border-color 0.2s; aspect-ratio: 16 / 10; }
.thumbs button.on, .thumbs button:hover { opacity: 1; border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.perf { margin-top: 22px; overflow: hidden; }
.perf table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.perf th, .perf td { padding: 12px 16px; text-align: right; border-bottom: 1px solid var(--line); }
.perf th:first-child, .perf td:first-child { text-align: left; }
.perf th { color: var(--muted); font-weight: 500; font-size: 12.5px; letter-spacing: 0.4px; }
.perf tr.hl td { background: rgba(217, 178, 111, 0.07); }
.perf tr.hl td:first-child { color: var(--gold-2); }
.perf .note { padding: 12px 16px; font-size: 12.5px; color: var(--dim); }

.playbook { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 26px 22px; }
.step .n { font-family: var(--serif); font-size: 44px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 18px; margin: 12px 0 6px; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 30px; background: rgba(3, 6, 8, 0.92); backdrop-filter: blur(6px); cursor: zoom-out; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 96vw; max-height: 90vh; border-radius: 12px; box-shadow: 0 30px 90px rgba(0, 0, 0, 0.7); }

/* ------------------------------------------------------------------ footer */
.site-foot { border-top: 1px solid var(--line); padding: 44px 0 60px; color: var(--dim); font-size: 13px; }
.site-foot .wrap { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: start; }
.site-foot p { margin: 0 0 8px; max-width: 760px; line-height: 1.6; }
.site-foot nav { display: flex; gap: 18px; }
.site-foot nav a:hover { color: var(--text); }

/* ------------------------------------------------------------------ reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .tape-track, .live-dot { animation: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1080px) {
  .hero .wrap, .story, .ind-grid, .vision { grid-template-columns: 1fr; }
  .portrait { max-width: 560px; margin: 0 auto; }
  .stats, .livebar, .principles, .playbook { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .show, .engage { grid-template-columns: 1fr 1fr; }
  .float.f1 { left: -10px; } .float.f2 { right: -10px; } .float.f3 { left: -6px; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .site-head .wrap { gap: 10px; height: auto; padding: 10px 0; flex-wrap: wrap; }
  .nav { margin-left: 0; order: 3; width: 100%; justify-content: space-between; }
  .nav a { padding: 7px 12px; font-size: 13.5px; }
  section { padding: 72px 0; }
  .stats, .livebar, .principles, .playbook, .grid-3, .show, .engage { grid-template-columns: 1fr; }
  .stats { margin-top: 0; }
  .vision { padding: 30px 22px; }
  .float { display: none; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .discord { flex-wrap: wrap; justify-content: center; padding: 14px; border-radius: 18px; }
}
