/* Qest — promotional site. Tokens mirror the Qest app (qest.itafeta.space) dark theme. */
:root {
  --ink: #12151a;          /* app background */
  --panel: #1b1f26;        /* app cards */
  --panel-2: #161a20;      /* inset chart well */
  --line: #313844;
  --line-soft: #252b35;
  --fg: #eef1f5;
  --muted: #a3abb8;
  --soft: #737d8c;
  --brand: #0f5560;        /* app primary (teal) */
  --brand-hi: #146b78;
  --brand-glow: #2fb3c4;
  --buy: #23855e;
  --buy-deep: #186145;
  --up: #89d6b0;
  --sell: #aa493b;
  --sell-deep: #7d3328;
  --down: #f3a492;
  --accent: #ff8a3d;       /* logo candle */
  --info: #9cc3ea;
  --r-control: 10px;
  --r-panel: 14px;
  --max: 1140px;
  --font: "Geist", "Noto Sans Ethiopic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Geist", "Noto Sans Ethiopic", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, monospace;
  --shadow-control: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 1px 2px rgba(0, 0, 0, 0.3);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--fg);
  background-color: var(--ink);
  background-image: radial-gradient(900px 420px at 50% -120px, rgba(47, 179, 196, 0.10), transparent 70%);
  background-repeat: no-repeat;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand-glow); outline-offset: 3px; border-radius: 6px; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--fg); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 21, 26, 0.82);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.02em; }
.brand img { width: 30px; height: 30px; }
.brand small { font-family: var(--font); font-weight: 500; font-size: 0.85rem; color: var(--soft); letter-spacing: 0; }
.nav-links { display: none; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.93rem; }
.nav-links a:hover { color: var(--fg); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.lang { text-decoration: none; font-weight: 500; font-size: 0.88rem; color: var(--muted); padding: 7px 12px; border-radius: var(--r-control); border: 1px solid var(--line); }
.lang:hover { color: var(--fg); background: rgba(255,255,255,0.04); }
@media (min-width: 900px) { .nav-links { display: flex; } }

/* Buttons — same feel as the app's controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 0; border-radius: var(--r-control); padding: 13px 22px; font-size: 1rem;
  transition: transform .14s var(--ease), background-color .14s var(--ease), filter .14s;
}
.btn:active { transform: scale(.985); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-control), 0 0 0 1px rgba(47,179,196,0.25); }
.btn-primary:hover { background: var(--brand-hi); }
.btn-ghost { background: rgba(255,255,255,0.03); color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgba(255,255,255,0.06); }
.btn-sm { padding: 8px 14px; font-size: 0.9rem; }

/* Chips (match app's "Buy if higher" pills) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 5px; font-size: 0.78rem; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,0.05); color: var(--muted); border: 1px solid var(--line-soft); white-space: nowrap; }
.chip svg { width: 13px; height: 13px; }
.chip-buy { background: rgba(35,133,94,0.16); color: var(--up); border-color: rgba(35,133,94,0.3); }
.chip-sell { background: rgba(170,73,59,0.18); color: var(--down); border-color: rgba(170,73,59,0.32); }

.label { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--soft); margin: 0 0 10px; }
[lang="am"] .label { letter-spacing: 0.02em; text-transform: none; font-size: 0.82rem; }

/* Hero */
.hero { padding: 52px 0 72px; }
.hero-grid { display: grid; gap: 44px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 84px 0 104px; } .hero-grid { grid-template-columns: 1.1fr 400px; gap: 72px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; font-size: 0.9rem; margin: 0 0 20px; padding: 5px 12px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.02); }
.eyebrow .flag { display: inline-flex; width: 20px; height: 13px; border-radius: 3px; overflow: hidden; flex-direction: column; }
.eyebrow .flag i { flex: 1; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: clamp(2.3rem, 6vw, 3.8rem); line-height: 1.06; letter-spacing: -0.035em; margin: 0 0 20px; font-weight: 700; }
h1 .buy { color: var(--up); }
h1 .sell { color: var(--down); }
.lead { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--muted); margin: 0 0 28px; max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; color: var(--soft); font-size: 0.88rem; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.trust li:first-child::before { display: none; }
.trust strong { color: var(--muted); font-weight: 600; }

/* Practice widget — mirrors the app's /welcome call card */
.practice { width: 100%; max-width: 400px; justify-self: center; }
.steps-dots { display: flex; gap: 5px; align-items: center; margin: 0 0 12px 2px; }
.steps-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--line); transition: width .3s var(--ease), background-color .3s; }
.steps-dots i.on { width: 22px; background: var(--brand-glow); opacity: .75; }
.steps-dots i.done { background: #4d5868; }
.call-card {
  position: relative; overflow: hidden;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-panel);
  padding: 22px; box-shadow: 0 18px 48px -12px rgba(0,0,0,0.55);
}
.call-card::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; border: 1px solid rgba(47,179,196,0.12); pointer-events: none; }
.call-title { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 12px; }
.well { margin-top: 16px; background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: 10px; overflow: hidden; }
.chart { width: 100%; height: auto; }
.chart .ref { stroke: #6b7584; stroke-dasharray: 3 4; stroke-width: 1; }
.chart .past { fill: none; stroke: #f2f4f7; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.chart .future { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .future.up { stroke: var(--up); }
.chart .future.down { stroke: var(--down); }
.chart .area { fill: url(#area); }
.chart .dot { fill: #fff; }
.chart .now-zone { fill: rgba(255,255,255,0.015); }
.hint { min-height: 3.2em; margin: 14px 0 0; color: var(--muted); font-size: 0.93rem; }
.result { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.result.win { color: var(--up); }
.result.lose { color: var(--down); }
.tray { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 14px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--ink); }
.trade {
  font: inherit; font-weight: 700; font-size: 1.05rem; color: #fff; cursor: pointer;
  border: 0; border-radius: 9px; padding: 14px 10px; display: flex; align-items: center; justify-content: center; gap: 9px;
  transition: transform .14s var(--ease), filter .14s;
}
.trade svg { width: 19px; height: 19px; }
.trade .am { font-weight: 500; font-size: 0.82rem; opacity: .85; }
.trade-buy { background: var(--buy); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -3px 0 var(--buy-deep); }
.trade-sell { background: var(--sell); box-shadow: inset 0 1px 0 rgba(255,255,255,0.16), inset 0 -3px 0 var(--sell-deep); }
.trade:hover:not(:disabled) { filter: brightness(1.08); }
.trade:active:not(:disabled) { transform: scale(.985); }
.trade:disabled { opacity: .45; cursor: default; }
.practice-end { text-align: left; }
.practice-end .score { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; letter-spacing: -0.03em; margin: 4px 0 6px; }
.practice-end p { color: var(--muted); margin: 0 0 18px; }
.practice-end .cta-row .btn { flex: 1; }
.practice-note { color: var(--soft); font-size: 0.8rem; margin: 10px 2px 0; }

/* Sections */
section { scroll-margin-top: 76px; }
.section { padding: 76px 0; border-top: 1px solid var(--line-soft); }
@media (min-width: 960px) { .section { padding: 100px 0; } }
.section-head { max-width: 40rem; margin-bottom: 40px; }
h2 { font-size: clamp(1.75rem, 3.8vw, 2.5rem); line-height: 1.14; letter-spacing: -0.03em; margin: 0 0 14px; font-weight: 700; }
h3 { font-size: 1.12rem; margin: 0 0 6px; letter-spacing: -0.015em; font-weight: 600; }
.section-head p { color: var(--muted); margin: 0; font-size: 1.06rem; }

.steps { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.step { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-panel); padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: rgba(15,85,96,0.45); border: 1px solid rgba(47,179,196,0.25); color: #bfe9ef; font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; margin-bottom: 18px; }
.step p { color: var(--muted); margin: 0; }
.step .chips { margin-top: 14px; }

.features { display: grid; gap: 14px; }
@media (min-width: 760px) { .features { grid-template-columns: repeat(2, 1fr); gap: 18px; } }
.feature { display: flex; gap: 16px; padding: 22px; border-radius: var(--r-panel); background: var(--panel); border: 1px solid var(--line-soft); }
.feature .ico { flex: none; width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--line); color: var(--fg); }
.feature .ico svg { width: 21px; height: 21px; }
.feature p { color: var(--muted); margin: 0; }

/* Payments band */
.pay { display: grid; gap: 22px; align-items: center; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-panel); padding: 26px; margin-top: 18px; }
@media (min-width: 760px) { .pay { grid-template-columns: 1fr auto; padding: 30px 32px; } }
.pay h3 { font-size: 1.25rem; }
.pay p { color: var(--muted); margin: 0; }
.pay-methods { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-method { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--r-control); background: var(--ink); border: 1px solid var(--line); font-weight: 600; }
.pay-method i { width: 10px; height: 10px; border-radius: 50%; }

/* Start / QR */
.start { display: grid; gap: 32px; align-items: center; }
@media (min-width: 860px) { .start { grid-template-columns: 1.3fr 1fr; gap: 56px; } }
.qr-card { background: #fff; color: #12151a; border-radius: var(--r-panel); padding: 20px 20px 14px; max-width: 270px; justify-self: start; text-align: center; box-shadow: 0 18px 48px -12px rgba(0,0,0,0.6); }
@media (min-width: 860px) { .qr-card { justify-self: end; } }
.qr-card img { width: 100%; height: auto; }
.qr-card span { display: block; font-family: var(--font-mono); font-weight: 600; margin-top: 10px; font-size: 0.9rem; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; counter-reset: c; }
.checklist li { display: flex; gap: 12px; color: var(--muted); counter-increment: c; }
.checklist li::before { content: counter(c); flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; color: var(--fg); background: rgba(255,255,255,0.05); border: 1px solid var(--line); }

/* FAQ */
.faq { max-width: 50rem; display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line-soft); border-radius: 12px; background: var(--panel); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 20px; font-weight: 600; font-size: 1.02rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--soft); border-bottom: 2px solid var(--soft); transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { margin: 0; padding: 0 20px 20px; color: var(--muted); }

/* Responsible play */
.responsible { border: 1px solid var(--line); background: var(--panel); border-radius: var(--r-panel); padding: 26px; display: grid; gap: 18px; }
@media (min-width: 760px) { .responsible { grid-template-columns: auto 1fr; padding: 34px; gap: 28px; } }
.age { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-mono); font-weight: 700; font-size: 1.05rem; }
.responsible h2 { font-size: 1.45rem; }
.responsible p { color: var(--muted); margin: 0 0 10px; }
.responsible ul { margin: 0; padding-left: 20px; color: var(--muted); }
.responsible li + li { margin-top: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line-soft); padding: 40px 0 48px; color: var(--soft); font-size: 0.9rem; }
.footer-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; align-items: center; } }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; color: var(--muted); }
.footer-links a:hover { color: var(--fg); }
.risk { margin: 22px 0 0; font-size: 0.84rem; line-height: 1.55; max-width: 62rem; }

/* Amharic: Ethiopic script needs looser line-height and no negative tracking */
[lang="am"] h1 { line-height: 1.2; letter-spacing: -0.005em; }
[lang="am"] h2, [lang="am"] h3, [lang="am"] .call-title { letter-spacing: 0; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
