/* ABCEX — abcex.fun — design system (Onest) */

:root {
  --bg: #0d0e17;
  --bg-2: #14151f;
  --bg-3: #1b1d2a;
  --surface: #14151f;
  --border: #262838;
  --text: #e9eaf0;
  --muted: #a7a9ba;
  --accent: #2f8bff;          /* brand blue for text/links/icons on dark */
  --accent-soft: #007aff;     /* brand reference blue for fills/graphics */
  --btn: #0a66e0;             /* button bg — white text passes WCAG AA */
  --btn-hover: #0857cc;
  --on-accent: #ffffff;
  --radius: 32px;
  --radius-card: 18px;
  --maxw: 1180px;
  --font: "Onest", Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ok: #26c281;
  --down: #f6465d;
}

* { 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;
  background-image: radial-gradient(900px 480px at 78% -8%, rgba(0,122,255,.12), transparent 60%); background-repeat: no-repeat; }
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #6ab0ff; }

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 h2 { color: #fff; }
.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 .14s ease, background .15s, color .15s, box-shadow .2s, border-color .15s; text-align: center; line-height: 1.1; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--btn); color: var(--on-accent); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.btn--primary:hover { background: var(--btn-hover); color: var(--on-accent); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.btn--ghost { background: transparent; color: var(--accent); border-color: rgba(47,139,255,.55); }
.btn--ghost:hover { background: rgba(47,139,255,.1); color: #6ab0ff; border-color: var(--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(13,14,23,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.site-header__inner { display: flex; align-items: center; gap: 24px; padding: 14px 20px; max-width: var(--maxw); margin: 0 auto; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 26px; width: auto; display: block; }
.header-menu { display: contents; }
.nav { display: flex; align-items: center; gap: 26px; margin-left: 14px; }
.nav a { color: #d7d9e4; font-weight: 600; font-size: .92rem; }
.nav a:hover { color: #fff; }
.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: 84vh; display: flex; align-items: center; border-radius: 24px; overflow: hidden; margin: 24px 0;
  background: radial-gradient(120% 120% at 15% 10%, #171a2b 0%, #0d0e17 55%); border: 1px solid var(--border); }
.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(13,14,23,.35) 0%, rgba(13,14,23,.78) 68%, rgba(13,14,23,.97) 100%); }
.hero::before { content: ""; position: absolute; width: 520px; height: 520px; right: -120px; top: -160px; z-index: 1; background: radial-gradient(circle, rgba(0,122,255,.3), transparent 62%); filter: blur(10px); pointer-events: none; }
.hero__inner { position: relative; z-index: 2; padding: 64px 44px; 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; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

/* Stats row */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: linear-gradient(180deg, #161824, #111219); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px 22px; text-align: center; transition: transform .18s ease, border-color .18s ease; }
.stat:hover { transform: translateY(-3px); border-color: rgba(47,139,255,.4); }
.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; transition: transform .18s ease, border-color .18s ease, box-shadow .2s ease; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }
.grid--4 .card:hover, .feature .card:hover { transform: translateY(-4px); border-color: rgba(47,139,255,.45); box-shadow: 0 14px 34px rgba(0,0,0,.4); }
.card__icon { width: 50px; height: 50px; border-radius: 14px; background: linear-gradient(150deg, rgba(0,122,255,.22), rgba(0,122,255,.05)); border: 1px solid rgba(47,139,255,.3); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: #67a8ff; }
.card__icon svg { width: 24px; height: 24px; display: block; }
.lead { font-size: 1.15rem; color: var(--text); }

/* Earn / big-number feature cards */
.feature { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.feature .card { position: relative; overflow: hidden; }
.feature .card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, #007aff, #7db6ff); opacity: .9; }
.feature .card .big { font-size: 2.4rem; font-weight: 800; margin-bottom: 8px; color: var(--accent); }
.feature .card h3 { color: #fff; }

/* Numbered feature steps */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 26px; position: relative; transition: transform .18s ease, border-color .18s ease; }
.step-card:hover { transform: translateY(-4px); border-color: rgba(47,139,255,.4); }
.step-card__n { width: 42px; height: 42px; border-radius: 12px; background: linear-gradient(150deg, rgba(0,122,255,.22), rgba(0,122,255,.05)); border: 1px solid rgba(47,139,255,.3); color: #67a8ff; font-weight: 800; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; font-size: 1rem; }
.step-card p { color: var(--muted); margin: 0; }

/* Offices */
.offices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.office { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; transition: transform .18s ease, border-color .18s ease; }
.office:hover { transform: translateY(-4px); border-color: rgba(47,139,255,.4); }
.office h3 { margin-bottom: 4px; }
.office .office__count { color: var(--accent); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 10px; }
.office p { color: var(--muted); font-size: .92rem; margin: 0; }

/* Press */
.press { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.press span { background: var(--bg-3); border: 1px solid var(--border); border-radius: 30px; padding: 9px 20px; color: #c3c6d4; font-weight: 600; font-size: .9rem; transition: border-color .15s, color .15s; }
.press span:hover { border-color: rgba(47,139,255,.45); color: #fff; }

/* 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; transition: border-color .15s; }
.faq__item--open { border-color: rgba(47,139,255,.4); }
.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 { position: relative; overflow: hidden; background: linear-gradient(135deg, rgba(0,122,255,.2), rgba(0,122,255,.03)); border: 1px solid rgba(47,139,255,.35); border-radius: 24px; padding: 54px 28px; text-align: center; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; bottom: -200px; background: radial-gradient(circle, rgba(0,122,255,.28), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.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; text-align: left; }
.cta-band ul li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 800; }

/* Support / anywhere 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: #0a0b12; 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: #6ab0ff; }
.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: 24px; 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, .offices { 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: 76vh; }
  .support__card { padding: 18px; }
}
