/* HYLAQ QUANTUM — monochrome theme with a single emerald accent (from the logo) */
:root {
  --bg: #07090b;
  --bg-2: #0a0d10;
  --panel: #0d1216;
  --panel-2: #11171c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0f1;
  --muted: #8b9498;
  --faint: #5b6468;
  --accent: #34e3a0;
  --accent-dim: #1b9d72;
  --accent-glow: rgba(52, 227, 160, 0.35);
  --radius: 14px;
  --maxw: 1140px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

/* ---------- nav ---------- */
header.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 11, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand .name { font-weight: 700; letter-spacing: 0.14em; font-size: 14px; }
.brand .name b { color: var(--accent); font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong);
  padding: 9px 16px; border-radius: 10px;
  font-size: 14px; font-weight: 500; transition: all .2s;
  background: transparent; color: var(--text); cursor: pointer;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary {
  background: var(--accent); color: #04130d; border-color: var(--accent);
  font-weight: 600;
}
.btn-primary:hover { background: #57efb4; color: #04130d; box-shadow: 0 0 30px var(--accent-glow); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 64px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(620px 380px at 78% 30%, rgba(52, 227, 160, 0.10), transparent 70%),
    radial-gradient(800px 500px at 10% -10%, rgba(255,255,255,0.04), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; font-size: 12px; letter-spacing: 0.1em;
  color: var(--muted); text-transform: uppercase; margin-bottom: 22px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.hero h1 { font-size: clamp(38px, 5.4vw, 62px); line-height: 1.04; letter-spacing: -0.02em; font-weight: 700; }
.hero h1 .grad {
  background: linear-gradient(120deg, #eaf0f1 10%, var(--accent) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { color: var(--muted); font-size: 18px; margin: 22px 0 30px; max-width: 540px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; gap: 28px; flex-wrap: wrap; }
.hero-meta div { font-size: 13px; color: var(--faint); }
.hero-meta b { display: block; color: var(--text); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } .coin-scene { margin: 0 auto; } }

/* ---------- 3D coin ---------- */
.coin-scene { perspective: 1100px; display: flex; justify-content: center; }
.coin {
  position: relative; width: 300px; height: 300px;
  transform-style: preserve-3d;
  animation: coinspin 16s linear infinite;
}
.coin:hover { animation-play-state: paused; }
.coin__face {
  position: absolute; inset: 0; border-radius: 50%;
  backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 38% 32%, #1a2128, #0c1014 70%);
  border: 6px solid #0e1318;
  box-shadow:
    inset 0 0 0 2px rgba(52,227,160,0.25),
    inset 0 14px 40px rgba(0,0,0,0.7),
    inset 0 -10px 30px rgba(52,227,160,0.10),
    0 30px 60px rgba(0,0,0,0.6),
    0 0 60px var(--accent-glow);
}
.coin__face img { width: 64%; height: 64%; object-fit: contain; }
.coin__face--back { transform: rotateY(180deg); flex-direction: column; gap: 10px; }
.coin__ring {
  position: absolute; inset: 14px; border-radius: 50%;
  border: 1px dashed rgba(52,227,160,0.35);
}
.coin__back-mark { font-weight: 700; letter-spacing: 0.2em; font-size: 22px; }
.coin__back-mark b { color: var(--accent); }
.coin__back-sub { font-size: 11px; letter-spacing: 0.32em; color: var(--muted); text-transform: uppercase; }
@keyframes coinspin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }

/* ---------- trust strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.strip-inner { display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 20px 0; justify-content: center; }
.strip-inner span { color: var(--muted); font-size: 13px; letter-spacing: 0.06em; display: inline-flex; align-items: center; gap: 9px; }
.strip-inner svg { width: 16px; height: 16px; stroke: var(--accent); }

/* ---------- sections ---------- */
section { padding: 84px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head .kicker { color: var(--accent); font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.02em; margin: 14px 0 14px; font-weight: 700; }
.section-head p { color: var(--muted); font-size: 17px; }

/* feature grid */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 880px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; transition: border-color .25s, transform .25s;
}
.feature:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.feature .ic {
  width: 44px; height: 44px; border-radius: 11px;
  border: 1px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  background: rgba(52,227,160,0.06);
}
.feature .ic svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.6; }
.feature h3 { font-size: 18px; margin-bottom: 8px; font-weight: 600; letter-spacing: -0.01em; }
.feature p { color: var(--muted); font-size: 14.5px; }

/* tokens highlight */
.tokens { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
@media (max-width: 880px) { .token-grid { grid-template-columns: 1fr; } }
.addr-list { display: flex; flex-direction: column; gap: 12px; }
.addr {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  background: var(--panel); font-family: ui-monospace, Menlo, monospace;
}
.addr .tag {
  font-weight: 700; letter-spacing: 0.05em; color: var(--accent);
  background: rgba(52,227,160,0.10); border: 1px solid rgba(52,227,160,0.3);
  padding: 4px 10px; border-radius: 7px; font-size: 13px; font-family: var(--font);
}
.addr .rest { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* code block */
.codeblock {
  background: #06080a; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.codeblock .bar { display: flex; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.codeblock .bar i { width: 11px; height: 11px; border-radius: 50%; background: #20272c; display: inline-block; }
.codeblock pre { padding: 20px; overflow-x: auto; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.7; color: #cfd6d8; }
.codeblock pre .c { color: var(--faint); }
.codeblock pre .g { color: var(--accent); }

/* live network */
.live-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
@media (max-width: 760px) { .live-grid { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--panel); min-width: 0; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; }
.stat .value { font-size: 30px; font-weight: 700; margin-top: 8px; letter-spacing: -0.02em; }
.live-note { margin-top: 16px; color: var(--faint); font-size: 13px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.pill.ok .dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* cta band */
.cta-band { text-align: center; }
.cta-band h2 { font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.02em; font-weight: 700; }
.cta-band p { color: var(--muted); margin: 16px auto 28px; max-width: 520px; font-size: 17px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* footer */
footer.foot { border-top: 1px solid var(--line); background: var(--bg-2); padding: 56px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 36px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { width: 40px; height: 40px; border-radius: 9px; }
.foot-brand .name { font-weight: 700; letter-spacing: 0.14em; }
.foot-brand .name b { color: var(--accent); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.foot-bottom p { color: var(--faint); font-size: 12.5px; max-width: 720px; }

/* ---------- mobile-app polish ---------- */
/* Respect device safe areas (notch / home indicator). */
header.nav { padding-top: env(safe-area-inset-top); }
footer.foot { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
.wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }

/* Comfortable touch targets; prevent iOS zoom-on-focus (needs >=16px). */
.btn { min-height: 44px; }
input, select, textarea { font-size: 16px; }

@media (max-width: 600px) {
  .nav-inner { height: 60px; }
  .brand .name { font-size: 13px; }
  section { padding: 56px 0; }
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 16px; }
  .hero-meta { gap: 18px; }
  .coin { width: 220px; height: 220px; }
  .section-head { margin-bottom: 32px; }
  .section-head h2 { font-size: 26px; }
  .feature { padding: 22px; }
  .cta-band h2 { font-size: 28px; }
  /* full-width CTAs read as app buttons on phones */
  .hero-cta .btn, .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* reveal on scroll — progressive enhancement: only hide when JS is active,
   so content is always visible if scripting fails. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }
