/* RiskIt landing — brand-aligned dark palette + Inter type ramp.
   Colors mirror the iOS app:
     bg          #06060e
     card        #0d0d1a
     border      #1c1c2e
     gold        #FBBF24
     orange-mid  #F59E0B
     orange-deep #EA580C
     magenta     #EC4899
     purple      #A855F7
     text        #E5E7EB
     dim         #8A8A95
*/

:root {
    --bg: #06060e;
    --bg-alt: #0a0a15;
    --card: #0d0d1a;
    --card-elev: #14142a;
    --border: #1c1c2e;
    --border-hi: #25253b;
    --gold-light: #FFE08A;
    --gold: #FBBF24;
    --orange: #F59E0B;
    --orange-deep: #EA580C;
    --magenta: #EC4899;
    --purple: #A855F7;
    --green: #10B981;
    --red: #EF4444;
    --text: #E5E7EB;
    --dim: #8A8A95;
    --mute: #5C5C6A;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    overflow-x: hidden;
    /* Subtle radial brand atmosphere */
    background-image:
        radial-gradient(at 80% 0%, rgba(236, 72, 153, 0.07), transparent 40%),
        radial-gradient(at 0% 30%, rgba(168, 85, 247, 0.06), transparent 40%),
        radial-gradient(at 50% 100%, rgba(251, 191, 36, 0.05), transparent 50%);
}

a { color: inherit; text-decoration: none; }

/* ─── Top bar ──────────────────────────────────────────────────── */

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(6, 6, 14, 0.7);
    border-bottom: 1px solid var(--border);
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-flex; align-items: center; }
.brand-name {
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--orange-deep), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.brand-name.small { font-size: 16px; }

.nav { display: flex; gap: 24px; align-items: center; }
.nav a {
    font-size: 13px;
    font-weight: 600;
    color: var(--dim);
    transition: color 0.2s;
}
.nav a:hover { color: var(--gold); }

@media (max-width: 700px) {
    .topbar { padding: 12px 16px; }
    .nav { display: none; }
}

/* ─── Hero ─────────────────────────────────────────────────────── */

.hero {
    padding: 80px 32px 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}

.eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2.5px;
    color: var(--gold);
    margin-bottom: 16px;
}
.eyebrow.center { display: block; text-align: center; }

h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.grad {
    background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--orange-deep), var(--magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lede {
    font-size: 18px;
    color: var(--dim);
    margin-bottom: 32px;
    max-width: 540px;
}
.lede.small { font-size: 16px; }
.lede.center { text-align: center; margin-left: auto; margin-right: auto; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-row.center { justify-content: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 22px;
    font-weight: 800;
    font-size: 15px;
    border-radius: 999px;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
    cursor: pointer;
    border: 1px solid transparent;
}
.btn.primary {
    color: #06060e;
    background: linear-gradient(90deg, var(--gold), var(--orange-deep));
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.35);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 12px 40px rgba(251, 191, 36, 0.5); }
.btn.ghost {
    color: var(--text);
    background: var(--card);
    border-color: var(--border-hi);
}
.btn.ghost:hover { background: var(--card-elev); }
.btn.big { padding: 18px 28px; font-size: 17px; }

.tiny {
    font-size: 12px;
    color: var(--mute);
    margin-top: 20px;
}
.tiny.center { text-align: center; }

.hero-device {
    position: relative;
    display: flex;
    justify-content: center;
}
.device-frame {
    position: relative;
    border-radius: 44px;
    overflow: hidden;
    background: #000;
    padding: 8px;
    border: 1px solid var(--border-hi);
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(251, 191, 36, 0.18);
    z-index: 2;
}
.device-frame img {
    display: block;
    border-radius: 36px;
    width: 290px;
    height: auto;
}
.halo {
    position: absolute;
    inset: -60px;
    background: radial-gradient(closest-side, rgba(251, 191, 36, 0.25), transparent 70%);
    filter: blur(40px);
    z-index: 1;
    pointer-events: none;
}

@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .lede { margin-left: auto; margin-right: auto; }
    .cta-row { justify-content: center; }
}

/* ─── Stat strip ───────────────────────────────────────────────── */

.strip {
    margin: 40px auto;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 32px 16px;
}
.strip-item {
    text-align: center;
    border-right: 1px solid var(--border);
}
.strip-item:last-child { border-right: 0; }
.strip-num {
    display: block;
    font-size: 44px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--gold), var(--orange-deep));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
}
.strip-label {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    color: var(--dim);
}

@media (max-width: 700px) {
    .strip { grid-template-columns: repeat(2, 1fr); }
    .strip-item { padding: 16px 0; border-bottom: 1px solid var(--border); }
    .strip-item:nth-child(2) { border-right: 0; }
    .strip-item:nth-child(3), .strip-item:nth-child(4) { border-bottom: 0; }
    .strip-num { font-size: 32px; }
}

/* ─── Blocks ──────────────────────────────────────────────────── */

.block {
    padding: 100px 32px;
    max-width: 1200px;
    margin: 0 auto;
}
.block.dark {
    max-width: none;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.block.dark > * {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.block-title {
    font-size: clamp(32px, 4.5vw, 52px);
    font-weight: 900;
    letter-spacing: -1px;
    text-align: center;
    margin-bottom: 56px;
}

/* features grid */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px;
    transition: transform 0.2s, border-color 0.2s;
}
.feature:hover { transform: translateY(-3px); border-color: var(--gold); }
.feature h3 {
    font-size: 22px;
    font-weight: 800;
    margin: 24px 0 12px;
    letter-spacing: -0.3px;
}
.feature p { color: var(--dim); font-size: 15px; }

.feature-vis {
    height: 180px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--card-elev), var(--card));
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* casino table chips */
.vis-table {
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.15), transparent), linear-gradient(180deg, var(--card-elev), var(--card));
}
.chip {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px dashed #fff;
    position: absolute;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}
.chip-red    { background: var(--red);    top: 28%; left: 28%; transform: rotate(-15deg); }
.chip-gold   { background: var(--gold);   top: 18%; left: 50%; transform: rotate(8deg); }
.chip-purple { background: var(--purple); top: 42%; left: 18%; transform: rotate(22deg); }
.chip-orange { background: var(--orange); top: 45%; right: 22%; transform: rotate(-10deg); }

/* vault meter */
.vis-vault { flex-direction: column; gap: 16px; padding: 20px; align-items: stretch; }
.meter {
    width: 100%;
    height: 18px;
    background: var(--bg);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.meter-fill {
    height: 100%;
    width: 78%;
    background: linear-gradient(90deg, var(--orange-deep), var(--gold));
    border-radius: 999px;
    box-shadow: 0 0 18px var(--gold);
}
.vault-stats {
    display: grid;
    grid-template-columns: auto 1fr auto 1fr;
    gap: 8px 12px;
    font-size: 13px;
    font-weight: 700;
    color: var(--dim);
    align-items: center;
}
.vault-stats .gold   { color: var(--gold); justify-self: start; font-family: 'SF Mono', monospace; }
.vault-stats .orange { color: var(--orange); justify-self: start; font-family: 'SF Mono', monospace; }

/* rank rows */
.vis-rank { flex-direction: column; gap: 8px; padding: 16px; align-items: stretch; }
.rank-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    padding: 10px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
}
.rank-row.gold {
    border-color: var(--gold);
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), var(--card));
    box-shadow: 0 0 16px rgba(251, 191, 36, 0.25);
}
.rank-row.you { border-color: var(--magenta); }
.rank-num { color: var(--gold); font-weight: 900; }
.rank-name { color: var(--text); }
.rank-val { color: var(--gold); font-family: 'SF Mono', monospace; }

@media (max-width: 800px) {
    .features { grid-template-columns: 1fr; }
}

/* ─── Split section ───────────────────────────────────────────── */

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.split.reverse > div:first-child { order: 2; }

.split h2 {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -1px;
    margin: 8px 0 20px;
    line-height: 1.1;
}

.bullet { list-style: none; margin-top: 24px; }
.bullet li {
    padding-left: 28px;
    margin-bottom: 14px;
    font-size: 15px;
    color: var(--dim);
    position: relative;
}
.bullet li::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--gold);
}
.bullet li strong { color: var(--text); }

/* empire vis */
.empire-vis {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.biz {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: transform 0.2s;
}
.biz:hover { transform: translateY(-2px); }
.biz span {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--card-elev);
    display: flex; align-items: center; justify-content: center;
    color: var(--gold);
    margin-bottom: 8px;
    font-weight: 900; font-size: 16px;
    border: 1px solid var(--border-hi);
}
.biz b { font-size: 14px; font-weight: 800; color: var(--text); }
.biz i { font-style: normal; font-size: 12px; color: var(--dim); font-family: 'SF Mono', monospace; }
.biz.gold {
    border-color: var(--gold);
    box-shadow: 0 0 24px rgba(251, 191, 36, 0.2);
}
.biz.gold span { background: rgba(251, 191, 36, 0.15); }
.biz.mystery {
    border-style: dashed;
    border-color: var(--mute);
    opacity: 0.7;
}
.biz.mystery span { color: var(--mute); }

/* climb tiers */
.climb-vis { display: flex; flex-direction: column; gap: 10px; }
.tier {
    padding: 16px 22px;
    border-radius: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
    border: 1px solid var(--border);
}
.tier span { letter-spacing: 1.2px; font-size: 13px; }
.tier b { font-family: 'SF Mono', monospace; font-size: 14px; color: var(--dim); font-weight: 700; }
.tier-bronze  { background: linear-gradient(90deg, rgba(180, 90, 40, 0.20), var(--card)); color: #C49A6C; border-color: rgba(196, 154, 108, 0.4); }
.tier-silver  { background: linear-gradient(90deg, rgba(180, 180, 200, 0.18), var(--card)); color: #C0C5D0; border-color: rgba(192, 197, 208, 0.4); }
.tier-gold    { background: linear-gradient(90deg, rgba(251, 191, 36, 0.22), var(--card)); color: var(--gold); border-color: var(--gold); }
.tier-diamond { background: linear-gradient(90deg, rgba(168, 85, 247, 0.22), var(--card)); color: var(--purple); border-color: var(--purple); }
.tier-empire  { background: linear-gradient(90deg, rgba(236, 72, 153, 0.25), var(--card)); color: var(--magenta); border-color: var(--magenta); box-shadow: 0 0 28px rgba(236, 72, 153, 0.3); }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split.reverse > div:first-child { order: 0; }
}

/* ─── TestFlight CTA ──────────────────────────────────────────── */

.testflight {
    text-align: center;
    padding-bottom: 120px;
}

/* ─── Footer ──────────────────────────────────────────────────── */

.footer {
    border-top: 1px solid var(--border);
    padding: 60px 32px 32px;
    background: var(--bg-alt);
}
.foot-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}
.footer h4 {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gold);
    margin-bottom: 12px;
}
.footer a {
    display: block;
    padding: 4px 0;
    color: var(--dim);
    font-size: 14px;
}
.footer a:hover { color: var(--text); }
.footer .muted { color: var(--mute); margin-top: 8px; font-size: 13px; }
.foot-bottom {
    max-width: 1200px;
    margin: 40px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 12px;
    color: var(--mute);
}

@media (max-width: 800px) {
    .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ─── Screenshot rail ─────────────────────────────────────────── */

.screen-rail {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 4px 32px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--gold) var(--bg);
}
.screen-rail::-webkit-scrollbar { height: 10px; }
.screen-rail::-webkit-scrollbar-track {
    background: var(--bg);
    border-radius: 4px;
}
.screen-rail::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, var(--gold), var(--orange-deep));
    border-radius: 4px;
}

.screen {
    flex: 0 0 auto;
    width: 260px;
    scroll-snap-align: center;
    text-align: center;
    margin: 0;
}
.screen img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 32px;
    border: 1px solid var(--border-hi);
    background: var(--card);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.55),
        0 0 36px rgba(251, 191, 36, 0.16);
    transition: transform 0.25s, box-shadow 0.25s;
}
.screen:hover img {
    transform: translateY(-4px);
    box-shadow:
        0 36px 72px rgba(0, 0, 0, 0.65),
        0 0 56px rgba(251, 191, 36, 0.28);
}
.screen figcaption {
    margin-top: 14px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--gold);
}

@media (max-width: 700px) {
    .screen { width: 220px; }
}

/* ─── Honesty section ─────────────────────────────────────────── */

.honesty-vis {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.honesty-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
}
.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot.good {
    background: var(--green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
}
.dot.bad {
    background: var(--red);
    opacity: 0.7;
}

/* ─── Coming Soon App Store badge ─────────────────────────────── */

.btn.appstore {
    position: relative;
    cursor: default;
    opacity: 0.7;
    pointer-events: none;
}
.badge-coming {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(90deg, var(--gold), var(--orange));
    color: #06060e;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    padding: 4px 8px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.5);
}

/* ─── Legal pages (privacy/terms) ─────────────────────────────── */

.legal {
    max-width: 760px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}
.legal h1 {
    font-size: 48px;
    margin-bottom: 8px;
}
.legal .updated {
    color: var(--mute);
    font-size: 14px;
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.legal h2 {
    font-size: 22px;
    font-weight: 800;
    margin: 40px 0 16px;
    color: var(--gold);
    letter-spacing: -0.2px;
}
.legal h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text);
}
.legal p {
    color: var(--dim);
    margin-bottom: 14px;
    font-size: 15px;
    line-height: 1.7;
}
.legal ul {
    margin: 8px 0 16px 24px;
    color: var(--dim);
    font-size: 15px;
    line-height: 1.7;
}
.legal li { margin-bottom: 6px; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal strong { color: var(--text); }
