/* MajestyFx — site styles */
:root {
  --bg: #07080a;
  --bg-2: #0d0f12;
  --card: #12151a;
  --line: #232831;
  --text: #e9ecf1;
  --muted: #9aa3b2;
  --gold: #c9a24b;
  --gold-2: #e8cb7c;
  --up: #2ecc8f;
  --down: #ff5c6c;
  --radius: 14px;
  --wrap: 1180px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; color: var(--muted); }
ul { padding-left: 1.2em; color: var(--muted); }
li { margin-bottom: .4em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
.gold { color: var(--gold-2); }
.eyebrow { text-transform: uppercase; letter-spacing: .2em; font-size: .75rem; color: var(--gold); font-weight: 600; margin-bottom: 1em; display: block; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .75em 1.4em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  font-family: inherit; text-decoration: none !important; line-height: 1.2;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #15110a; box-shadow: 0 6px 22px rgba(201, 162, 75, .25); }
.btn-ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); }
.btn-sm { padding: .55em 1.1em; font-size: .88rem; }
.btn-lg { padding: .95em 1.8em; font-size: 1rem; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(7, 8, 10, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-bar { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; }
.brand img { height: 40px; width: auto; }
.brand-word { font-weight: 600; letter-spacing: .32em; font-size: 1.05rem; }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 20px; margin-left: 24px; }
.nav { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav > li, .nav > a { list-style: none; position: relative; }
.nav ul { margin: 0; padding: 0; }
.nav-link { display: block; padding: 10px 14px; color: var(--text); font-size: .94rem; font-weight: 500; background: none; border: 0; cursor: pointer; font-family: inherit; border-radius: 8px; }
.nav-link:hover, .nav-link.active { color: var(--gold-2); text-decoration: none; }
.has-menu > .nav-link::after { content: ""; display: inline-block; margin-left: 7px; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.menu {
  position: absolute; z-index: 10; top: 100%; left: 0; min-width: 230px; padding: 8px; background: var(--card);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 20px 50px rgba(0, 0, 0, .6);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s;
}
.has-menu:hover > .menu, .has-menu.open > .menu, .has-menu:focus-within > .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: .92rem; list-style: none; }
.menu a:hover { background: rgba(201, 162, 75, .1); color: var(--gold-2); text-decoration: none; }
.menu li { list-style: none; margin: 0; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.burger { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; padding: 0; }
.burger span, .burger span::before, .burger span::after { display: block; width: 20px; height: 2px; background: var(--text); margin: auto; position: relative; transition: .2s; content: ""; }
.burger span::before { position: absolute; top: -6px; left: 0; }
.burger span::after { position: absolute; top: 6px; left: 0; }

/* Ticker */
.ticker { position: relative; z-index: 1; background: #000; border-bottom: 1px solid var(--line); overflow: hidden; font-size: .82rem; }
.ticker-track { display: flex; gap: 36px; width: max-content; padding: 9px 0; animation: scroll 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tick { display: inline-flex; gap: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tick b { color: var(--text); font-weight: 600; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Quotes */
.up { color: var(--up); } .down { color: var(--down); }
.flash-up { animation: fu .6s; } .flash-down { animation: fd .6s; }
@keyframes fu { from { background: rgba(46, 204, 143, .28); } to { background: transparent; } }
@keyframes fd { from { background: rgba(255, 92, 108, .28); } to { background: transparent; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.quotes { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 480px; }
.quotes th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); font-weight: 600; }
.quotes td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.quotes tr:last-child td { border-bottom: 0; }
.quotes .sym { font-weight: 600; color: var(--text); }
.quotes .nm { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); }
.quotes th:not(:first-child), .quotes td:not(:first-child) { text-align: right; }
.note { font-size: .8rem; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 84px 0; }
.alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.head { max-width: 680px; margin-bottom: 44px; }
.center { text-align: center; margin-inline: auto; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: border-color .2s, transform .2s; }
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover { border-color: var(--gold); transform: translateY(-3px); text-decoration: none; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: rgba(201, 162, 75, .12); color: var(--gold-2); }
.icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.more { color: var(--gold-2); font-weight: 600; font-size: .9rem; }

/* Hero */
.hero { padding: 90px 0 80px; position: relative; overflow: hidden; background: radial-gradient(900px 500px at 85% 10%, rgba(201, 162, 75, .14), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(255, 255, 255, .04), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero p.lead { font-size: 1.15rem; max-width: 560px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-card { background: linear-gradient(180deg, #14171d, #0c0e11); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: relative; box-shadow: 0 30px 80px rgba(0, 0, 0, .55); }
.hero-card .table-wrap { border: 0; background: transparent; }
.hero-card h3 { display: flex; justify-content: space-between; align-items: center; font-size: .95rem; margin-bottom: 8px; }
.live { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--muted); font-weight: 500; }
.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(46, 204, 143, .18); }
.page-hero { padding: 72px 0 56px; background: radial-gradient(800px 360px at 90% 0%, rgba(201, 162, 75, .12), transparent 60%); border-bottom: 1px solid var(--line); }
.page-hero p { max-width: 680px; font-size: 1.1rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); margin-top: -40px; position: relative; z-index: 2; }
.stat { padding: 26px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 1.8rem; color: var(--gold-2); }
.stat span { color: var(--muted); font-size: .88rem; }

.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: 0; left: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #15110a; background: linear-gradient(135deg, var(--gold-2), var(--gold)); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 6px; height: 11px; border-right: 2px solid var(--gold-2); border-bottom: 2px solid var(--gold-2); transform: rotate(40deg); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.dl { display: flex; gap: 12px; flex-wrap: wrap; }
.dl .btn { min-width: 170px; }

.cta { text-align: center; padding: 72px 28px; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(600px 240px at 50% 0%, rgba(201, 162, 75, .18), transparent 70%), var(--card); }
.cta .hero-actions { justify-content: center; }

.risk-bar { background: #0b0c0e; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; font-size: .85rem; color: var(--muted); text-align: center; }
.risk-bar strong { color: var(--text); }

/* FAQ */
details.faq { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
details.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold-2); font-size: 1.4rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq .a { padding: 0 22px 18px; }

/* Forms */
form.form { display: grid; gap: 16px; }
.field label { display: block; font-size: .85rem; margin-bottom: 6px; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 15px; border-radius: 10px; border: 1px solid var(--line); background: #0a0c0f; color: var(--text); font: inherit; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--gold); }
.field textarea { min-height: 140px; resize: vertical; }
.form-ok { display: none; padding: 14px 18px; border: 1px solid var(--up); border-radius: 10px; color: var(--up); }

/* Legal */
.legal { max-width: 820px; }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: #b6bdc9; }

/* Footer */
.site-footer { background: #000; border-top: 1px solid var(--line); padding: 64px 0 28px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: 36px; }
.foot-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .16em; color: var(--text); margin-bottom: 1em; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: .55em; }
.foot-grid a { color: var(--muted); font-size: .92rem; }
.foot-grid a:hover { color: var(--gold-2); }
.foot-logo { width: 190px; margin-bottom: 16px; }
.legal-note { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 24px; font-size: .78rem; color: #7d8696; }
.legal-note p { color: #7d8696; }
.copy { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; color: #7d8696; margin-top: 18px; }

/* Responsive */
@media (max-width: 980px) {
  .burger { display: block; }
  .nav-wrap { position: fixed; inset: 72px 0 0 0; background: var(--bg); padding: 20px 16px 40px; overflow-y: auto; display: none; flex-direction: column; gap: 18px; }
  .nav-wrap.open { display: flex; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav-link { padding: 14px 6px; border-bottom: 1px solid var(--line); border-radius: 0; width: 100%; text-align: left; }
  .menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; display: none; padding: 0 0 6px 12px; }
  .has-menu:hover > .menu { display: none; }
  .has-menu.open > .menu { display: block; }
  .nav-cta { flex-direction: column; align-items: stretch; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 36px; }
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .foot-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  section { padding: 60px 0; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero { padding: 56px 0; }
  .brand-word { letter-spacing: .22em; font-size: .95rem; }
  .dl .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
