/* Hash Hedge — hashhedge.su — design system (Onest) */

:root {
  --bg: #101012;
  --bg-2: #17171b;
  --bg-3: #1f1f24;
  --surface: #17171b;
  --border: #2a2a31;
  --text: #e8e8e9;
  --muted: #9f9ea2;
  --accent: #ffdd2d;
  --accent-hover: #ffd600;
  --on-accent: #13111c;
  --radius: 32px;
  --radius-card: 18px;
  --maxw: 1180px;
  --font: "Onest", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ok: #37c978;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 16px; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 6vw, 4.2rem); text-transform: uppercase; overflow-wrap: break-word; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.1rem, 2.2vw, 1.45rem); font-weight: 700; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section--tight { padding: 40px 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.accent { color: var(--accent); }
.section__head { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.section__head p { color: var(--muted); font-size: 1.05rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font-family: var(--font); font-weight: 700; font-size: 1rem; padding: 15px 32px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: transform .12s, background .15s, color .15s; text-align: center; line-height: 1.1; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn--ghost:hover { background: var(--accent); color: var(--on-accent); }
.btn--lg { padding: 18px 46px; font-size: 1.1rem; }
.btn--block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(16,16,18,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 12px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 46px; width: auto; display: block; }
.header-menu { display: contents; }
.nav { display: flex; align-items: center; gap: 24px; margin-left: 10px; }
.nav a { color: #fff; font-weight: 600; font-size: .92rem; }
.nav a:hover { color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header-cta .btn { padding: 10px 22px; font-size: .9rem; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.burger span { display: block; width: 26px; height: 2.5px; background: #fff; border-radius: 2px; margin: 5px 0; transition: .2s; }

@media (max-width: 980px) {
  .burger { display: block; }
  .header-menu { display: none; }
  .site-header.nav--open .header-menu { display: flex; flex-direction: column; gap: 18px; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-2); padding: 22px 20px; border-bottom: 1px solid var(--border); max-height: calc(100vh - 72px); overflow-y: auto; }
  .site-header.nav--open .nav { flex-direction: column; align-items: flex-start; gap: 16px; margin: 0; }
  .site-header.nav--open .header-cta { flex-direction: column; align-items: stretch; gap: 12px; margin: 0; }
  .site-header.nav--open .header-cta .btn { width: 100%; padding: 13px; font-size: 1rem; }
  .burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .burger.is-open span:nth-child(2) { opacity: 0; }
  .burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: 86vh; display: flex; align-items: center; border-radius: var(--radius-card); overflow: hidden; margin: 24px 0; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,16,18,.5) 0%, rgba(16,16,18,.82) 70%, rgba(16,16,18,.96) 100%); }
.hero__inner { position: relative; z-index: 2; padding: 60px 40px; max-width: 980px; }
.hero__inner p { font-size: 1.15rem; max-width: 640px; }
.hero__accent { color: var(--accent); }
.hero__meta { color: var(--muted); font-size: 1rem; margin: 10px 0 28px; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 22px; text-align: center; }
.stat__num { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; color: var(--accent); }
.stat__label { color: var(--muted); font-size: .92rem; margin-top: 4px; }

/* Generic grids/cards */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }
.card__icon { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,221,45,.12); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1.35rem; }
.lead { font-size: 1.15rem; color: var(--text); }

/* Feature (change-your-trading) */
.feature { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature .card .big { font-size: 1.5rem; font-weight: 800; color: #fff; margin-bottom: 6px; }

/* Steps with targets */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; position: relative; }
.step-card__n { width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.step-card p { color: var(--muted); }
.targets { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 14px; }
.targets .t-label { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; margin-bottom: 8px; }
.targets .t-row { display: flex; justify-content: space-between; font-size: .92rem; padding: 4px 0; }
.targets .t-row strong { color: #fff; }
.targets ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: .92rem; }

/* Tier selector */
.challenge { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }
.tier-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tier-tabs button { flex: 1 1 auto; min-width: 92px; padding: 13px 10px; border-radius: 12px; cursor: pointer; background: var(--bg-3); color: var(--muted); border: 1px solid var(--border); font-weight: 700; font-family: var(--font); position: relative; }
.tier-tabs button:hover { color: #fff; }
.tier-tabs button.is-active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tier-tabs button .badge { position: absolute; top: -9px; right: -6px; background: var(--ok); color: #04210f; font-size: .62rem; padding: 2px 7px; border-radius: 20px; font-weight: 800; }
.tier-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; align-items: start; }
.stage-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.stage-table th, .stage-table td { padding: 11px 10px; text-align: center; border-bottom: 1px solid var(--border); }
.stage-table thead th { color: var(--accent); font-size: .82rem; text-transform: uppercase; }
.stage-table tbody th { text-align: left; color: var(--muted); font-weight: 600; }
.tier-summary { background: var(--bg-3); border-radius: 14px; padding: 22px; }
.tier-summary .row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: .95rem; }
.tier-summary .row:last-of-type { border-bottom: 0; }
.tier-summary .row strong { color: #fff; }
.tier-summary .big { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.table-scroll { overflow-x: auto; }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.calc__controls label { display: block; font-weight: 600; margin: 18px 0 8px; }
.calc__controls label:first-child { margin-top: 0; }
.calc__val { color: var(--accent); font-weight: 800; }
.calc input[type=range] { width: 100%; accent-color: var(--accent); height: 6px; }
.calc__result { background: var(--bg-3); border-radius: 14px; padding: 30px; text-align: center; }
.calc__result .label { color: var(--muted); }
.calc__result .amount { font-size: clamp(2rem,5vw,3rem); font-weight: 800; color: var(--accent); margin: 8px 0 4px; }
.calc__note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* Certificates */
.cert { background: linear-gradient(145deg, #1b1b20, #141418); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.cert__badge { font-size: .72rem; color: var(--on-accent); background: var(--accent); display: inline-block; padding: 3px 10px; border-radius: 20px; font-weight: 800; margin-bottom: 14px; }
.cert__amount { font-size: 1.9rem; font-weight: 800; color: var(--ok); }
.cert__meta { color: var(--muted); font-size: .88rem; margin-top: 6px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; margin: 0 auto; }
.faq__item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: #fff; font-family: var(--font); font-weight: 600; font-size: 1rem; padding: 18px 52px 18px 20px; cursor: pointer; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--accent); }
.faq__item--open .faq__q::after { content: "\2212"; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; color: var(--muted); }
.faq__item--open .faq__a { max-height: 640px; padding: 0 20px 18px; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, rgba(255,221,45,.16), rgba(255,221,45,.04)); border: 1px solid rgba(255,221,45,.3); border-radius: var(--radius-card); padding: 48px 28px; text-align: center; }
.cta-band ul { list-style: none; padding: 0; margin: 18px auto 26px; max-width: 560px; display: grid; gap: 10px; }
.cta-band ul li { color: var(--text); padding-left: 28px; position: relative; }
.cta-band ul li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Support block */
.support { display: grid; grid-template-columns: 1.3fr 1fr; gap: 24px; align-items: center; }
.support__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }
.support__contacts { display: grid; gap: 12px; margin-top: 16px; }
.support__contacts a { display: inline-flex; align-items: center; gap: 8px; }

/* Footer */
.footer { background: #0b0b0d; border-top: 1px solid var(--border); padding: 52px 0 28px; color: var(--muted); font-size: .9rem; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 28px; }
.footer a { color: var(--muted); } .footer a:hover { color: var(--accent); }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; } .footer ul li { margin: 7px 0; }
.footer__brand img { height: 40px; width: auto; margin-bottom: 14px; }
.footer__disclaimer { border-top: 1px solid var(--border); padding-top: 20px; font-size: .78rem; line-height: 1.6; }

/* Responsive */
@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2,1fr); }
  .grid--3, .grid--4 { grid-template-columns: repeat(2,1fr); }
  .feature, .steps3 { grid-template-columns: 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  .support { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .stats, .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__inner { padding: 44px 20px; }
  .hero { min-height: 78vh; }
  .challenge, .calc, .support__card { padding: 18px; }
}
