/* Machina — one theme for every page.
   Pure black, white text, liquid-glass panels. No accent colour: green/red only on profit numbers. */

:root {
  --bg: #000000;
  --ink: #F2F2F2;
  --ink-2: #A6A6A6;
  --ink-3: #6B6B6B;
  --ink-4: #5E5E5E;
  --line: rgba(255,255,255,0.09);
  --line-2: rgba(255,255,255,0.14);
  --glass-top: rgba(255,255,255,0.085);
  --glass-bottom: rgba(255,255,255,0.035);
  --field: rgba(0,0,0,0.35);
  --up: #4ADE80;
  --down: #F87171;
  --radius: 24px;
  --radius-sm: 14px;
  --font: 'Geist', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'tnum' 1;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: #FFFFFF; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(40px, 5vw, 68px); line-height: 1.02; font-weight: 500; letter-spacing: -0.035em; text-wrap: pretty; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -0.03em; text-wrap: pretty; }
h3 { font-size: 21px; font-weight: 500; letter-spacing: -0.015em; }
.lede { font-size: 19px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink-2); }
.dim { color: var(--ink-4); }
.up { color: var(--up); }
.down { color: var(--down); }
.hair { border-top: 1px solid var(--line); }
:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 4px; }

/* Layout */
.wrap { width: 100%; max-width: 1312px; margin: 0 auto; padding: 0 64px; }
.sect { padding: 0 0 112px; }
@media (max-width: 1024px) { .wrap { padding: 0 32px; } .sect { padding-bottom: 88px; } }
@media (max-width: 720px) { .wrap { padding: 0 20px; } .sect { padding-bottom: 56px; } }

/* Glass */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-top) 0%, var(--glass-bottom) 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28), inset 0 -1px 0 rgba(255,255,255,0.04), 0 40px 90px rgba(0,0,0,0.65);
  backdrop-filter: blur(28px) saturate(140%); -webkit-backdrop-filter: blur(28px) saturate(140%);
}
.glass::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(120% 60% at 20% 0%, rgba(255,255,255,0.14), transparent 60%);
}
.glass > * { position: relative; }
.glass.tight { border-radius: 18px; }
.glow { position: absolute; pointer-events: none; filter: blur(90px); opacity: 0.55; border-radius: 50%; }
.glow.cool { background: radial-gradient(circle, rgba(170,196,255,0.55), rgba(120,150,255,0.15) 55%, transparent 75%); }
.glow.white { background: radial-gradient(circle, rgba(255,255,255,0.35), transparent 70%); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: #FFFFFF; color: #000000; font-weight: 500; font-size: 15px; letter-spacing: -0.005em;
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 12px 30px rgba(0,0,0,0.5);
  transition: background .15s ease, transform .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn:hover { background: #E9E9E9; color: #000000; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.ghost { background: rgba(255,255,255,0.06); color: var(--ink); border: 1px solid rgba(255,255,255,0.16); box-shadow: inset 0 1px 0 rgba(255,255,255,0.18); }
.btn.ghost:hover { background: rgba(255,255,255,0.1); color: #FFFFFF; }
.btn.danger { background: rgba(248,113,113,0.12); color: var(--down); border: 1px solid rgba(248,113,113,0.3); box-shadow: none; }
.btn.danger:hover { background: rgba(248,113,113,0.2); color: var(--down); }
.btn.lg { height: 52px; padding: 0 26px; font-size: 16px; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.link { color: var(--ink-2); font-size: 15px; }
.link:hover { color: var(--ink); }

/* Fields */
.field { display: flex; flex-direction: column; gap: 10px; }
.field label { font-size: 14px; color: var(--ink-2); }
.inp, .sel, .ta {
  width: 100%; font: inherit; color: var(--ink);
  background: var(--field); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius-sm);
  padding: 0 18px; height: 52px; outline: none; transition: border-color .15s ease;
}
.ta { padding: 16px 18px; height: auto; min-height: 132px; line-height: 1.5; resize: vertical; }
.inp:focus, .sel:focus, .ta:focus { border-color: rgba(255,255,255,0.32); }
.inp::placeholder, .ta::placeholder { color: var(--ink-4); }
.sel { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A6A6A6' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 44px; }
.chip { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); font-size: 13px; cursor: pointer; background: transparent; transition: border-color .15s, color .15s, background .15s; }
.chip:hover { color: var(--ink); border-color: rgba(255,255,255,0.3); }
.chip.on { background: #FFFFFF; color: #000000; border-color: #FFFFFF; }
.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.04); }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--ink-2); font-size: 13px; cursor: pointer; }
.seg button.on { background: #FFFFFF; color: #000000; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: rgba(255,255,255,0.14); border: 0; cursor: pointer; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: transform .15s; }
.switch.on { background: #FFFFFF; }
.switch.on::after { transform: translateX(18px); background: #000000; }
.msg { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.msg.err { color: var(--down); }
.msg.ok { color: var(--up); }

/* Tables and rows */
.rows { display: flex; flex-direction: column; }
.row { display: grid; gap: 24px; align-items: center; padding: 18px 28px; font-size: 15px; }
.row + .row { border-top: 1px solid var(--line); }
.row.head { font-size: 13px; color: var(--ink-3); padding-top: 14px; padding-bottom: 10px; }
.row.head + .row { border-top: 1px solid var(--line); }
.row.link { cursor: pointer; transition: background .12s; color: var(--ink); }
.row.link:hover { background: rgba(255,255,255,0.04); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--up); box-shadow: 0 0 10px rgba(74,222,128,0.8); flex-shrink: 0; }
.dot.off { background: var(--ink-4); box-shadow: none; }
.dot.warn { background: #FBBF24; box-shadow: 0 0 10px rgba(251,191,36,0.8); }
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat .v { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.stat .l { font-size: 14px; color: var(--ink-2); }
.empty { padding: 40px 28px; color: var(--ink-2); font-size: 15px; text-align: center; }

/* Nav */
.m-nav { position: sticky; top: 0; z-index: 50; background: rgba(0,0,0,0.72); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color .2s; }
.m-nav.scrolled { border-bottom-color: var(--line); }
.m-nav .in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.m-nav .left { display: flex; align-items: center; gap: 40px; }
.m-nav .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.m-nav .brand svg { width: 22px; height: 22px; display: block; }
.m-nav .links { display: flex; gap: 28px; font-size: 15px; }
.m-nav .links a { color: var(--ink-2); }
.m-nav .links a:hover, .m-nav .links a.on { color: var(--ink); }
.m-nav .right { display: flex; align-items: center; gap: 12px; }
.m-nav .btn { height: 40px; padding: 0 18px; font-size: 14px; }
.m-nav .pill { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); font-size: 14px; color: var(--ink); }
.m-nav .pill .addr { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.m-nav .burger { display: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); align-items: center; justify-content: center; cursor: pointer; }
.m-nav .burger svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; fill: none; }
@media (max-width: 860px) {
  .m-nav .links { display: none; }
  .m-nav .burger { display: inline-flex; }
  .m-nav .hide-sm { display: none; }
  .m-nav .in { height: 60px; }
  .m-nav .pill .addr { display: none; }
}
.m-menu { position: fixed; inset: 0; z-index: 60; background: #000000; display: flex; flex-direction: column; padding: 20px; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.m-menu.open { opacity: 1; pointer-events: auto; }
.m-menu .top { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.m-menu .close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(255,255,255,0.05); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.m-menu .close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; fill: none; }
.m-menu .list { display: flex; flex-direction: column; margin-top: 40px; }
.m-menu .list a { font-size: 32px; font-weight: 500; letter-spacing: -0.03em; padding: 18px 0; border-top: 1px solid var(--line); }
.m-menu .list a:last-child { border-bottom: 1px solid var(--line); }
.m-menu .bottom { margin-top: auto; display: flex; flex-direction: column; gap: 12px; }
.m-menu .bottom .btn { height: 52px; font-size: 16px; }

/* Footer */
.m-foot { border-top: 1px solid var(--line); margin-top: 40px; }
.m-foot .in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 32px; padding-bottom: 40px; font-size: 14px; color: var(--ink-3); flex-wrap: wrap; }
.m-foot .brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-3); }
.m-foot .brand svg { width: 16px; height: 16px; display: block; }
.m-foot .links { display: flex; gap: 24px; }
.m-foot .links a { color: var(--ink-3); }
.m-foot .links a:hover { color: var(--ink); }

/* Motion: one reveal for the hero, nothing else */
.reveal { opacity: 0; transform: translateY(10px); animation: reveal .6s ease forwards; }
.reveal.d1 { animation-delay: .08s; } .reveal.d2 { animation-delay: .16s; } .reveal.d3 { animation-delay: .24s; }
@keyframes reveal { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; opacity: 1; transform: none; } * { transition: none !important; } }

/* Details (FAQ) */
details.faq { border-top: 1px solid var(--line); }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { width: 18px; height: 18px; flex-shrink: 0; stroke: var(--ink-3); stroke-width: 1.8; stroke-linecap: round; fill: none; transition: transform .2s; }
details.faq[open] summary svg { transform: rotate(180deg); }
details.faq p { padding: 0 0 24px; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 560px; }

/* Small utilities */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; gap: 24px; } }
.between { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; }
.hstack { display: flex; align-items: center; gap: 12px; }
.addr { font-family: var(--mono); font-size: 13px; color: var(--ink-2); }
.skeleton { background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.09), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; color: transparent !important; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton { animation: none; } }

/* Mark (logo): glowing ring, four ticks, centre dot */
.mark { width: 22px; height: 22px; display: block; filter: drop-shadow(0 0 3px rgba(255,255,255,0.75)) drop-shadow(0 0 8px rgba(255,255,255,0.25)); }
.mark.dim { filter: none; }
.m-nav .brand .mark { width: 24px; height: 24px; }

/* Hero background: the mark, large and faint, turning slowly behind the panel, plus breathing light */
html { overflow-x: clip; } body { overflow-x: clip; }
.hero { overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-bg .light { position: absolute; width: 820px; height: 820px; right: -180px; top: -140px; border-radius: 50%; filter: blur(110px); opacity: .5; background: radial-gradient(circle, rgba(200,214,255,0.32), rgba(120,150,255,0.10) 45%, transparent 70%); animation: breathe 9s ease-in-out infinite; }
.hero-bg .light.two { width: 520px; height: 520px; right: auto; left: -160px; top: 320px; opacity: .28; animation-delay: -4s; background: radial-gradient(circle, rgba(255,255,255,0.28), transparent 68%); }
.hero-bg .bigmark { position: absolute; width: 760px; height: 760px; right: -120px; top: 50%; margin-top: -380px; opacity: .13; filter: drop-shadow(0 0 18px rgba(255,255,255,0.55)); }
.hero-bg .bigmark .ring { transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.hero-bg .bigmark .outer { transform-origin: 50% 50%; animation: spin 140s linear infinite reverse; opacity: .55; }
.hero-bg .bigmark .dot { animation: pulse 4.5s ease-in-out infinite; transform-origin: 50% 50%; }
.hero > .copy, .hero > .panel-wrap { position: relative; z-index: 1; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.08); opacity: .7; } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.35); } }
@media (max-width: 1024px) {
  .hero-bg .bigmark { width: 560px; height: 560px; right: -160px; top: 0; margin-top: -120px; }
  .hero-bg .light { right: -260px; top: -260px; }
}
@media (max-width: 720px) {
  .hero-bg .bigmark { width: 420px; height: 420px; right: -150px; top: -60px; margin-top: 0; opacity: .11; }
  .hero-bg .light { width: 480px; height: 480px; right: -200px; top: -200px; }
  .hero-bg .light.two { display: none; }
  .m-nav .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .m-nav .right { gap: 8px; }
  .m-nav .burger { width: 36px; height: 36px; }
  .panel-wrap .glow { display: none; }
  .panel { padding: 20px 18px 12px; }
  .panel .top { flex-direction: column; gap: 12px; }
  .panel .pnl-col { align-items: flex-start !important; }
  .panel .pnl { text-align: left; }
  .panel .name { font-size: 22px; }
  .panel .pnl { font-size: 22px; }
  h1 { font-size: 36px; }
  .lede { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .hero-bg .ring, .hero-bg .outer, .hero-bg .dot, .hero-bg .light { animation: none; } }
