/* Avenor Capital — Dark Mode (OLED) design system
   Palette: gold #F59E0B / amber #FBBF24 trust · violet #8B5CF6 tech · deep #0A0E1A bg
   Type: IBM Plex Sans (UI) · IBM Plex Mono (numbers) */

@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:wght@300;400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #070A12;
  --bg-2: #0A0E1A;
  --surface: #0E1424;
  --surface-2: #131A2C;
  --surface-3: #182138;
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.22);

  --text: #F8FAFC;
  --text-soft: #C3CAD9;
  --muted: #8B96AC;
  --faint: #5E6981;

  --gold: #F59E0B;
  --gold-2: #FBBF24;
  --violet: #8B5CF6;
  --violet-2: #A78BFA;
  --green: #34D399;
  --red: #FB7185;

  --max: 1180px;
  --max-narrow: 760px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 10px;

  --font: 'IBM Plex Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  --glow-gold: 0 0 22px rgba(245, 158, 11, 0.18);
  --glow-violet: 0 0 26px rgba(139, 92, 246, 0.22);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(139, 92, 246, 0.10), transparent 55%),
    radial-gradient(110% 80% at 5% 0%, rgba(245, 158, 11, 0.07), transparent 50%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }

::selection { background: rgba(245, 158, 11, 0.28); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.pos { color: var(--green); }
.neg { color: var(--red); }
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold-2);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.section { padding: clamp(56px, 8vw, 104px) 0; position: relative; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.6vw, 2.55rem); line-height: 1.12; letter-spacing: -0.02em; margin: 16px 0 14px; }
.section-head p { color: var(--text-soft); font-size: 1.06rem; }

/* ---------- skip link ---------- */
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--gold); color: #1a1205; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 16px; }

/* ---------- ticker ---------- */
.ticker { border-bottom: 1px solid var(--border); background: rgba(7, 10, 18, 0.7); backdrop-filter: blur(8px); overflow: hidden; }
.ticker-track { display: flex; gap: 34px; padding: 9px 0; white-space: nowrap; width: max-content; animation: marquee 48s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; }
.ticker-item .sym { font-weight: 600; letter-spacing: 0.02em; }
.ticker-item .px { font-family: var(--mono); color: var(--text-soft); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 10, 18, 0.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 600; font-size: 1.12rem; letter-spacing: -0.01em; }
.brand .logo { width: 34px; height: 34px; flex: none; }
.brand b { font-weight: 700; }
.brand span { color: var(--gold-2); }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 9px; color: var(--text-soft); font-size: 0.93rem; font-weight: 500; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  font-weight: 600; font-size: 0.93rem; border-radius: 11px; border: 1px solid transparent;
  padding: 11px 20px; transition: transform .18s, box-shadow .22s, background .2s, border-color .2s; line-height: 1;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: linear-gradient(135deg, var(--gold), var(--gold-2)); color: #1a1205; box-shadow: var(--glow-gold); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(245, 158, 11, 0.34); }
.btn-ghost { background: var(--surface-2); border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-3); border-color: var(--violet); color: #fff; }
.header-cta { margin-left: 6px; }
.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(54px, 8vw, 92px) 0 clamp(40px, 6vw, 64px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; margin: 20px 0 20px; }
.hero h1 .grad { background: linear-gradient(110deg, var(--gold-2), var(--violet-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 1.16rem; color: var(--text-soft); max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--border); }
.hero-trust .stat .n { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; color: #fff; }
.hero-trust .stat .l { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.04em; }

/* hero panel — allocation donut */
.hero-panel {
  position: relative; border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--surface-2), var(--bg-2));
  padding: 26px; box-shadow: var(--shadow); overflow: hidden;
}
.hero-panel::before { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 70% at 80% 0%, rgba(139, 92, 246, 0.16), transparent 60%); pointer-events: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; position: relative; }
.panel-head h3 { font-size: 0.98rem; font-weight: 600; }
.panel-head .tag { font-family: var(--mono); font-size: 0.68rem; color: var(--violet-2); border: 1px solid var(--border-strong); border-radius: 999px; padding: 4px 10px; }
.donut-row { display: flex; align-items: center; gap: 22px; position: relative; }
.donut { width: 150px; height: 150px; flex: none; border-radius: 50%; position: relative; }
.donut::after { content: ""; position: absolute; inset: 26px; background: var(--surface); border-radius: 50%; box-shadow: inset 0 0 0 1px var(--border); }
.donut .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; z-index: 2; }
.donut .center b { font-family: var(--mono); font-size: 1.15rem; display: block; }
.donut .center small { font-size: 0.64rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.legend { display: grid; gap: 11px; flex: 1; }
.legend li { display: flex; align-items: center; gap: 10px; font-size: 0.86rem; list-style: none; }
.legend .dot { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.legend .pct { margin-left: auto; font-family: var(--mono); color: var(--text-soft); }

/* ---------- market band cards ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; position: relative; overflow: hidden; transition: border-color .2s, transform .2s; }
.stat-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.stat-card .k { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.stat-card .v { font-family: var(--mono); font-size: 1.5rem; font-weight: 600; margin-top: 8px; }
.stat-card .d { font-size: 0.82rem; margin-top: 4px; }
.gauge { height: 6px; border-radius: 999px; background: var(--surface-3); margin-top: 12px; overflow: hidden; }
.gauge i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--gold), var(--green)); }

/* ---------- markets table ---------- */
.table-card { margin-top: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.table-scroll { overflow-x: auto; }
table.markets { width: 100%; border-collapse: collapse; min-width: 640px; }
table.markets th, table.markets td { padding: 14px 18px; text-align: right; font-size: 0.9rem; white-space: nowrap; }
table.markets th { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--border); position: sticky; top: 0; background: var(--surface); }
table.markets th:first-child, table.markets td:first-child { text-align: left; }
table.markets td { border-bottom: 1px solid var(--border); font-family: var(--mono); }
table.markets tbody tr:last-child td { border-bottom: 0; }
table.markets tbody tr { transition: background .15s; }
table.markets tbody tr:hover { background: var(--surface-2); }
.coin { display: flex; align-items: center; gap: 11px; font-family: var(--font); }
.coin img { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); }
.coin .nm { font-weight: 600; }
.coin .sy { color: var(--faint); font-size: 0.78rem; text-transform: uppercase; }
.spark { width: 96px; height: 30px; }
.table-note { padding: 13px 18px; font-size: 0.78rem; color: var(--faint); border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; }
.table-note .dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.5);} 70%{box-shadow:0 0 0 8px rgba(52,211,153,0);} 100%{box-shadow:0 0 0 0 rgba(52,211,153,0);} }

/* ---------- ad slot ---------- */
.ad-wrap { display: flex; justify-content: center; }
.ad-card { width: max-content; max-width: 100%; margin: 8px auto; padding: 2px; border-radius: 18px; background: linear-gradient(120deg, var(--gold-2), var(--violet) 52%, var(--gold)); background-size: 220% 220%; box-shadow: 0 12px 36px rgba(139, 92, 246, 0.20), 0 4px 18px rgba(245, 158, 11, 0.14); animation: adGlow 9s ease infinite; }
@keyframes adGlow { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ad-inner { background: var(--surface); border-radius: 16px; padding: 12px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 9px; }
.ad-label { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); }
.ad-card iframe { display: block; border-radius: 8px; }
.ad-placeholder { width: 300px; height: 250px; border-radius: 8px; display: grid; place-content: center; text-align: center; gap: 6px; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 12px, var(--surface-3) 12px, var(--surface-3) 24px); color: var(--muted); font-size: 0.8rem; }

/* ---------- feature pillars ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: transform .22s, border-color .22s, box-shadow .22s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-content: center; background: linear-gradient(140deg, rgba(245,158,11,.16), rgba(139,92,246,.16)); border: 1px solid var(--border-strong); margin-bottom: 18px; }
.card .ic svg { width: 23px; height: 23px; stroke: var(--gold-2); }
.card h3 { font-size: 1.12rem; margin-bottom: 9px; letter-spacing: -0.01em; }
.card p { color: var(--text-soft); font-size: 0.96rem; }

/* ---------- strategies ---------- */
.strat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.strat { display: flex; gap: 18px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: linear-gradient(160deg, var(--surface), var(--bg-2)); transition: border-color .22s, transform .22s; }
.strat:hover { border-color: var(--violet); transform: translateY(-3px); }
.strat .ic { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-content: center; background: var(--surface-3); border: 1px solid var(--border-strong); }
.strat .ic svg { width: 22px; height: 22px; stroke: var(--violet-2); }
.strat h3 { font-size: 1.08rem; margin-bottom: 7px; }
.strat .meta { display: flex; gap: 14px; margin-top: 14px; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }
.strat .meta b { color: var(--text); }
.strat p { color: var(--text-soft); font-size: 0.93rem; }

/* ---------- insights ---------- */
.insights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.insight { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); transition: transform .22s, border-color .22s; display: flex; flex-direction: column; }
.insight:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.insight .media { aspect-ratio: 16/8.6; position: relative; }
.insight .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.insight .cat { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.insight h3 { font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; }
.insight p { color: var(--text-soft); font-size: 0.92rem; flex: 1; }
.insight .more { font-size: 0.86rem; color: var(--violet-2); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.insight .more svg { width: 15px; height: 15px; transition: transform .2s; }
.insight:hover .more svg { transform: translateX(3px); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: var(--max-narrow); }
.faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: var(--border-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 18px; height: 18px; flex: none; transition: transform .25s; stroke: var(--gold-2); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq .ans { padding: 0 20px 20px; color: var(--text-soft); font-size: 0.96rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border: 1px solid var(--border-strong); border-radius: var(--radius-lg); padding: clamp(34px, 6vw, 60px); text-align: center; overflow: hidden; background: linear-gradient(150deg, var(--surface-2), var(--bg-2)); }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 120% at 50% 0%, rgba(139,92,246,.18), transparent 55%), radial-gradient(60% 100% at 50% 120%, rgba(245,158,11,.14), transparent 60%); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); letter-spacing: -0.02em; margin-bottom: 14px; position: relative; }
.cta-band p { color: var(--text-soft); max-width: 520px; margin: 0 auto 26px; position: relative; }
.cta-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; position: relative; flex-wrap: wrap; justify-content: center; }
.cta-form input { flex: 1; min-width: 220px; background: var(--bg); border: 1px solid var(--border-strong); color: var(--text); border-radius: 11px; padding: 13px 16px; font-family: inherit; font-size: 0.95rem; }
.cta-form input:focus { outline: 2px solid var(--gold-2); outline-offset: 1px; }
.cta-fine { font-size: 0.76rem; color: var(--faint); margin-top: 14px; position: relative; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--border); margin-top: 40px; background: var(--bg-2); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding: 56px 0 40px; }
.footer .brand { margin-bottom: 14px; }
.footer-about { color: var(--muted); font-size: 0.9rem; max-width: 320px; }
.footer h4 { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer ul a { color: var(--text-soft); font-size: 0.92rem; transition: color .2s; }
.footer ul a:hover { color: var(--gold-2); }
.disclaimer { border-top: 1px solid var(--border); padding: 26px 0; font-size: 0.78rem; color: var(--faint); line-height: 1.7; }
.disclaimer strong { color: var(--muted); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.84rem; color: var(--faint); }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--border); display: grid; place-content: center; transition: border-color .2s, background .2s; }
.footer-bottom .socials a:hover { border-color: var(--violet); background: var(--surface-2); }
.footer-bottom .socials svg { width: 16px; height: 16px; fill: var(--text-soft); }

/* ---------- responsive ---------- */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel { order: -1; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cards, .insights { grid-template-columns: 1fr 1fr; }
  .strat-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .header-cta { margin-left: auto; }
  .cards, .insights { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-trust { gap: 18px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
