/* KADAK TRADERS · OPTION DESK — public website (home, login, register, legal). No dashboard CSS is loaded on these pages. */
:root {
  --bg: #050912; --bg2: #08101d; --card: #0c1626; --card2: #0f1b2e; --line: #18263b; --line2: #233650;
  --text: #e8eef7; --muted: #9aabc2; --dim: #6c7f99; --blue: #3b82f6; --blue2: #60a5fa; --cyan: #22d3ee; --gold: #f2b631; --ok: #34d399; --err: #f87171;
  --r: 16px; --shadow: 0 24px 70px rgba(0,0,0,.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.65 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--blue2); text-decoration: none; } a:hover { color: #93c5fd; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid #93c5fd; outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--blue); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; } .skip:focus { left: 12px; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding: 0 22px; }
.eyebrow { color: var(--blue2); font-weight: 700; font-size: 13px; letter-spacing: 1.6px; text-transform: uppercase; margin: 0 0 8px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font: 600 15px/1 Inter, system-ui, sans-serif; border: 1px solid transparent; cursor: pointer; transition: transform .15s, background .15s, border-color .15s, box-shadow .15s; white-space: nowrap; }
.btn-primary { background: linear-gradient(180deg, #4f8ff8, #2563eb); color: #fff; box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-primary:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 12px 30px rgba(37,99,235,.45); }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border-color: var(--line2); } .btn-ghost:hover { color: #fff; border-color: var(--blue2); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* header */
.hdr { position: sticky; top: 0; z-index: 50; background: rgba(5,9,18,.78); backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); font-weight: 800; letter-spacing: .5px; } .brand:hover { color: var(--text); }
.brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(96,165,250,.6); }
.brand b { display: block; font-size: 15px; text-transform: uppercase; } .brand small { display: block; font-size: 10px; letter-spacing: 3.6px; color: var(--blue2); font-weight: 700; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 500; font-size: 14.5px; padding: 8px 11px; border-radius: 8px; } .nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.hdr-act { display: flex; gap: 10px; }
.burger { display: none; margin-left: auto; background: none; border: 1px solid var(--line2); color: var(--text); border-radius: 10px; width: 44px; height: 40px; font-size: 20px; cursor: pointer; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 84px 0 64px; background: radial-gradient(1000px 500px at 80% -10%, rgba(59,130,246,.22), transparent 60%), radial-gradient(800px 500px at -10% 110%, rgba(34,211,238,.10), transparent 60%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 54px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(96,165,250,.35); background: rgba(59,130,246,.08); color: #bfdbfe; font-size: 13px; font-weight: 600; }
.badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; margin: 18px 0 16px; }
.hero h1 span { background: linear-gradient(90deg, #93c5fd, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 14px; }
.fine { color: var(--dim); font-size: 13.5px; }
.preview { position: relative; border-radius: 18px; padding: 10px; background: linear-gradient(160deg, rgba(96,165,250,.35), rgba(255,255,255,.03) 40%, rgba(34,211,238,.25)); box-shadow: var(--shadow); }
.preview .bar { display: flex; gap: 6px; padding: 4px 6px 10px; } .preview .bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.preview img { border-radius: 10px; border: 1px solid var(--line2); width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; background: var(--card); }
.preview figcaption { color: var(--dim); font-size: 12.5px; padding: 8px 4px 0; }

/* sections */
.sec { padding: 92px 0; } .sec.alt { background: var(--bg2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 720px; margin-bottom: 40px; } .sec-head p { color: var(--muted); margin: 0; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, transform .2s; }
.card:hover { border-color: rgba(96,165,250,.45); transform: translateY(-3px); }
.card .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(59,130,246,.12); border: 1px solid rgba(96,165,250,.3); color: var(--blue2); }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { font-size: 19px; } .card p { color: var(--muted); margin: 0; font-size: 15px; flex: 1; }
.card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; } .card li { margin: 2px 0; }
.card .more { font-weight: 600; font-size: 14.5px; margin-top: 6px; }
.feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.feat > div { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.feat .num { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(34,211,238,.12); color: var(--cyan); font-weight: 800; }
.feat h3 { font-size: 17px; margin-bottom: 4px; } .feat p { margin: 0; color: var(--muted); font-size: 15px; }
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; } .about p { color: var(--muted); }
.vals { display: grid; gap: 12px; } .vals div { padding: 16px 18px; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: 12px; background: var(--card); }
.vals b { display: block; } .vals span { color: var(--muted); font-size: 14.5px; }
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.t-card { margin: 0; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); display: flex; flex-direction: column; gap: 14px; }
.t-card blockquote { margin: 0; color: #d6e0ee; } .t-card figcaption b { display: block; } .t-card figcaption span { color: var(--dim); font-size: 13.5px; }
.dev-note { color: #fbbf24; font-size: 13px; }
.faq { max-width: 860px; } .faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--card); margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; } .faq summary::after { content: '+'; color: var(--blue2); font-size: 20px; line-height: 1; } .faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; } .contact p { color: var(--muted); }
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; } .field label { font-size: 13.5px; font-weight: 600; color: #c8d4e4; }
.inp { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line2); background: #060c17; color: var(--text); font: 400 15px Inter, system-ui, sans-serif; }
.inp:focus { outline: none; border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(59,130,246,.25); }
.inp[aria-invalid="true"] { border-color: var(--err); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hint { color: var(--dim); font-size: 12.5px; } .ferr { color: var(--err); font-size: 13px; min-height: 0; } .fok { color: var(--ok); font-size: 14px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); } .chk input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; }
.pw { position: relative; } .pw .inp { padding-right: 74px; }
.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--blue2); font: 600 13px Inter, sans-serif; padding: 8px 10px; cursor: pointer; border-radius: 8px; }
.cta-band { padding: 64px 0; } .cta-box { border-radius: 22px; padding: 44px; text-align: center; background: radial-gradient(600px 240px at 50% 0, rgba(59,130,246,.3), transparent 70%), var(--card); border: 1px solid var(--line2); }
.cta-box p { color: var(--muted); max-width: 620px; margin: 10px auto 22px; }
.risk { padding: 26px 0; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; }
.ftr { border-top: 1px solid var(--line); padding: 46px 0 30px; background: #040810; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.ftr h4 { margin: 0 0 10px; font-size: 14px; color: #c8d4e4; } .ftr a { display: block; color: var(--dim); font-size: 14px; padding: 3px 0; } .ftr a:hover { color: var(--text); }
.ftr p { color: var(--dim); font-size: 14px; } .ftr .copy { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { padding: 48px; background: radial-gradient(700px 400px at 20% 0, rgba(59,130,246,.25), transparent 60%), var(--bg2); border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.auth-side h2 { font-size: 34px; } .auth-side p { color: var(--muted); } .auth-side ul { color: var(--muted); padding-left: 18px; } .auth-side li { margin: 6px 0; }
.auth-main { display: grid; place-items: center; padding: 40px 22px; }
.auth-box { width: min(440px, 100%); }
.auth-box h1 { font-size: 30px; margin: 0 0 6px; } .auth-box > p { color: var(--muted); margin: 0 0 24px; }
.auth-box .row-between { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.auth-box .alt { text-align: center; color: var(--muted); font-size: 14.5px; margin-top: 18px; }
.back { display: inline-flex; gap: 6px; color: var(--muted); font-size: 14px; margin-bottom: 28px; } .back:hover { color: var(--text); }
.note { padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line2); background: var(--card); color: var(--muted); font-size: 14px; }
.note.ok { border-color: rgba(52,211,153,.45); color: #a7f3d0; } .note.err { border-color: rgba(248,113,113,.45); color: #fecaca; }

/* legal pages */
.legal { padding: 60px 0 90px; } .legal .wrap { max-width: 860px; } .legal h1 { font-size: 38px; margin-bottom: 6px; } .legal h2 { font-size: 22px; margin: 30px 0 8px; }
.legal p, .legal li { color: var(--muted); }

/* popup */
.pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(2,6,14,.66); backdrop-filter: blur(4px); }
.pop[hidden] { display: none; }
.pop-box { position: relative; width: min(460px, 100%); padding: 30px; border-radius: 20px; background: linear-gradient(180deg, #0f1b2e, #0a1322); border: 1px solid var(--line2); box-shadow: var(--shadow); text-align: center; }
.pop-box h2 { font-size: 26px; } .pop-box p { color: var(--muted); }
.pop-box .cta { justify-content: center; margin-bottom: 4px; }
.pop-x { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 10px; background: none; border: 0; color: var(--muted); font-size: 24px; cursor: pointer; }

/* entrance animation (only when motion is welcome) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

@media (max-width: 1020px) { .nav { display: none; } .hdr-act { margin-left: auto; } .hero-grid, .about, .contact { grid-template-columns: 1fr; } .grid3, .t-grid { grid-template-columns: 1fr 1fr; } .ftr-grid { grid-template-columns: 1fr 1fr; } .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
@media (max-width: 760px) {
  .burger { display: inline-grid; place-items: center; margin-left: 0; } .hdr-act .btn-ghost { display: none; }
  .hdr .wrap { gap: 12px; } .hdr-act { margin-left: auto; }
  .nav.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; padding: 12px 18px 18px; background: #070d19; border-bottom: 1px solid var(--line); }
  .nav.open a { padding: 12px 10px; font-size: 16px; }
  .grid3, .t-grid, .feat, .row2, .ftr-grid { grid-template-columns: 1fr; } .sec { padding: 64px 0; } .hero { padding: 48px 0 40px; } .cta-box { padding: 30px 20px; }
  .brand b { font-size: 13px; } .brand small { letter-spacing: 2.4px; }
}
@media (max-width: 400px) { .brand span { display: none; } }
.cta.center { justify-content: center; } .pop-logo { margin: 0 auto 12px; border-radius: 50%; }
.btn-link { background: none; border: 0; color: var(--dim); margin-top: 6px; } .btn-link:hover { color: var(--text); }
[hidden] { display: none !important; }
.nav .m-only { display: none; }
@media (max-width: 760px) { .nav.open .m-only { display: block; color: var(--blue2); font-weight: 600; } }
