/* crootx.com: one stylesheet for every page. Colours come from the logo. */
:root {
  --bg: #07090b;
  --bg-2: #0d1114;
  --card: #12171b;
  --line: #222a30;
  --text: #eef2f4;
  --muted: #98a3ab;
  --green: #03bc63;
  --green-soft: rgba(3, 188, 99, .12);
  --red: #fc3132;
  --gold: #e6b84c;
  --blue: #5aa7ff;
  --radius: 14px;
  --max: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.eyebrow { color: var(--green); font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 99; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(7, 9, 11, .88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 1.1rem; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); text-decoration: none; }
.menu { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 8px; padding: 6px 10px; font: inherit; }
@media (max-width: 820px) {
  .menu { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; }
  .nav .btn { margin-top: 8px; text-align: center; }
}

/* buttons */
.btn { display: inline-block; padding: 12px 20px; border-radius: 10px; font-weight: 600; border: 1px solid transparent; cursor: pointer; font: inherit; font-weight: 600; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--green); color: #02140b; }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }
.nav .btn { padding: 8px 14px; color: #02140b; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

/* hero */
.hero { padding: 96px 0 80px; background: radial-gradient(900px 400px at 80% -10%, rgba(3, 188, 99, .14), transparent 70%); }
.hero h1 span { color: var(--green); }
.hero .lead { margin-top: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-top: 48px; }
.stat { border-left: 2px solid var(--green); padding-left: 14px; }
.stat b { display: block; font-size: 1.25rem; }
.stat span { color: var(--muted); font-size: .9rem; }

/* cards */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.card p:last-child { margin-bottom: 0; }
.card .more { margin-top: auto; padding-top: 12px; font-weight: 600; }
.tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; margin-bottom: 14px; align-self: flex-start; }
.tag-gold { background: rgba(230, 184, 76, .14); color: var(--gold); }
.tag-options { background: rgba(90, 167, 255, .14); color: var(--blue); }
.tag-crypto { background: var(--green-soft); color: var(--green); }
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 26px; position: relative; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; margin-bottom: 14px; }
.icon svg { width: 22px; height: 22px; }

/* product sections */
.product { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; scroll-margin-top: 80px; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product > * { min-width: 0; }
.facts { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 20px; }
.facts dl { margin: 0; }
.facts dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dl > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; font-weight: 500; }

/* steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #02140b; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; margin-bottom: 4px; }

/* notice */
.notice { border: 1px solid rgba(252, 49, 50, .35); background: rgba(252, 49, 50, .07); border-radius: var(--radius); padding: 20px 22px; }
.notice h3 { color: #ff8a8a; }

/* faq */
details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 12px 0 0; color: var(--muted); }

/* contact form */
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-weight: 500; font-size: .95rem; }
input, select, textarea { width: 100%; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; margin: 0; font-size: .95rem; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: #ff8a8a; }
.ways { display: grid; gap: 14px; }
.way { display: flex; gap: 14px; align-items: flex-start; }
.way .icon { margin: 0; flex: none; }

/* legal pages */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; }
.legal li { margin: 6px 0; }
.updated { color: var(--muted); font-size: .9rem; }

/* footer */
footer { border-top: 1px solid var(--line); background: var(--bg-2); padding: 48px 0 32px; font-size: .92rem; }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .foot { grid-template-columns: 1fr 1fr; } .foot > :first-child { grid-column: 1 / -1; } }
footer h4 { margin: 0 0 10px; font-size: .9rem; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
.fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
