/* Smarters Explorer website: the dark liquid glass of the application, lit in blue from the left and in red from
   the right. Animations use only transform and opacity, and stop for those who ask for less motion. */

:root {
    --bg: #05070e;
    --bg-soft: #0a0d17;
    --text: #f2f4f8;
    --muted: #a3a9bd;
    --accent: #3b7bff;
    --accent-start: #2f6bff;
    --accent-end: #e8338f;
    --live: #ff3358;
    --ok: #34d399;
    --glass: rgba(255, 255, 255, 0.055);
    --glass-strong: rgba(255, 255, 255, 0.09);
    --border: rgba(255, 255, 255, 0.11);
    --radius: 22px;
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* The lit room behind every page, fixed and drawn once. */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(60vw 60vw at -10% 10%, rgba(47, 107, 255, 0.28), transparent 60%),
        radial-gradient(55vw 55vw at 110% 5%, rgba(229, 9, 20, 0.2), transparent 60%),
        radial-gradient(45vw 45vw at 50% 110%, rgba(232, 51, 143, 0.14), transparent 60%),
        linear-gradient(180deg, #0c1120 0%, var(--bg-soft) 55%, var(--bg) 100%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.3rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

.wrap {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}

.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.gradient-text {
    background: linear-gradient(90deg, #6b9bff, var(--accent-end));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Navigation */

.nav {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 14px 0;
}

.nav-bar {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 12px 10px 18px;
    border-radius: 999px;
    background: rgba(14, 18, 32, 0.72);
    border: 1px solid var(--border);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.08rem;
    white-space: nowrap;
}

.brand img { width: 34px; height: 31px; }
.brand span { color: var(--accent); }

.nav-links {
    display: flex;
    gap: 4px;
    margin-left: auto;
    list-style: none;
    padding: 0;
    margin-block: 0;
}

.nav-links a {
    display: block;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover { color: var(--text); background: var(--glass); }

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--glass-strong);
    color: var(--text);
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, opacity 0.2s;
}

.button:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.14); }
.button:active { transform: translateY(0) scale(0.98); }

.button.primary {
    border: 0;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    box-shadow: 0 12px 34px rgba(232, 51, 143, 0.28), 0 6px 18px rgba(47, 107, 255, 0.3);
}

.button.primary:hover { box-shadow: 0 16px 44px rgba(232, 51, 143, 0.38), 0 8px 24px rgba(47, 107, 255, 0.4); }
.button.small { padding: 9px 18px; font-size: 0.92rem; }
.button.danger { color: #ff8fa3; border-color: rgba(255, 51, 88, 0.4); }
.button.link { background: none; border: 0; padding: 6px 0; color: var(--muted); font-weight: 600; }
.button.link:hover { color: var(--text); transform: none; }

.button[disabled], .button.is-busy {
    opacity: 0.55;
    cursor: default;
    transform: none;
    pointer-events: none;
}

.button.is-busy::after {
    content: "";
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Glass */

.glass {
    background: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* Hero */

.hero {
    padding: clamp(40px, 8vw, 90px) 0 40px;
    text-align: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: var(--glass);
    border: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.badge .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 12px var(--live);
}

.hero p.lead {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: clamp(1.05rem, 1.6vw, 1.22rem);
    color: var(--muted);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: center;
}

.hero .note { margin-top: 16px; }

.showcase {
    margin-top: clamp(40px, 6vw, 70px);
    padding: 10px;
    border-radius: 28px;
    background: linear-gradient(140deg, rgba(47, 107, 255, 0.35), rgba(255, 255, 255, 0.06) 40%, rgba(232, 51, 143, 0.35));
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.6), 0 0 80px rgba(47, 107, 255, 0.15);
}

.showcase img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

/* Sections */

section { padding: clamp(60px, 9vw, 110px) 0; }

.section-head {
    max-width: 720px;
    margin: 0 auto 46px;
    text-align: center;
}

.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.feature {
    padding: 26px;
    transition: transform 0.3s var(--ease), border-color 0.3s;
}

.feature:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.2); }
.feature p { color: var(--muted); margin: 0; }

.icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(47, 107, 255, 0.35), rgba(232, 51, 143, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.split {
    display: grid;
    gap: clamp(28px, 5vw, 70px);
    align-items: center;
    grid-template-columns: 1.1fr 1fr;
    margin-bottom: clamp(50px, 8vw, 100px);
}

.split.reverse > :first-child { order: 2; }
.split img { border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.split p { color: var(--muted); font-size: 1.05rem; }

/* Premium */

.plans {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    max-width: 760px;
    margin: 0 auto 40px;
}

.plan {
    position: relative;
    padding: 30px;
    text-align: center;
}

.plan.best {
    border-color: transparent;
    background:
        linear-gradient(var(--bg-soft), var(--bg-soft)) padding-box,
        linear-gradient(135deg, var(--accent-start), var(--accent-end)) border-box;
    border: 1.5px solid transparent;
}

.plan .tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-start), var(--accent-end));
    font-size: 0.8rem;
    font-weight: 800;
    white-space: nowrap;
}

.price { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.03em; margin: 8px 0 0; }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.plan .button { width: 100%; margin-top: 20px; }

.perks {
    display: grid;
    gap: 12px 26px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.perks li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.perks li::before { content: "✓"; color: var(--ok); font-weight: 800; }
.center-note { text-align: center; margin-top: 28px; }

/* Downloads */

.downloads {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.download { padding: 28px; display: flex; flex-direction: column; gap: 6px; }
.download.recommended { border-color: rgba(59, 123, 255, 0.55); box-shadow: var(--shadow), 0 0 0 1px rgba(59, 123, 255, 0.25); }
.download h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.download .button { margin-top: auto; }
.download [data-size] { margin-bottom: 16px; }
.download details { margin-top: 10px; font-size: 0.85rem; color: var(--muted); }
.download code { font-size: 0.78rem; word-break: break-all; color: var(--text); }

/* FAQ */

.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 1.3rem; line-height: 1; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--muted); }

/* Footer */

footer {
    padding: 40px 0 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 0.9rem;
}

.footer-row { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: 0.82rem; opacity: 0.8; }

/* Forms and account */

.panel {
    width: min(480px, 100%);
    margin: clamp(30px, 6vw, 70px) auto;
    padding: clamp(26px, 4vw, 38px);
}

.panel.wide { width: min(760px, 100%); }
.panel h1 { font-size: clamp(1.8rem, 3vw, 2.3rem); }

.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.92rem; }

.field input {
    width: 100%;
    padding: 13px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: rgba(5, 7, 14, 0.55);
    color: var(--text);
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 123, 255, 0.25); }
.field .hint { font-size: 0.82rem; color: var(--muted); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 8px; }
.form-actions .button.primary { flex: 1 1 auto; }

.message {
    display: none;
    margin-bottom: 18px;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 0.94rem;
}

.message.shown { display: block; }
.message.error { background: rgba(255, 51, 88, 0.12); border: 1px solid rgba(255, 51, 88, 0.35); color: #ffb3c1; }
.message.info { background: rgba(59, 123, 255, 0.12); border: 1px solid rgba(59, 123, 255, 0.35); color: #c5d6ff; }
.message.success { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.35); color: #b7f5dc; }

.switch-view { margin-top: 22px; text-align: center; color: var(--muted); font-size: 0.94rem; }

.consent { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 18px; }
.consent input { margin-top: 4px; accent-color: var(--accent); }
.consent a { color: var(--text); }
.small-title { font-size: 1.2rem; margin-top: 8px; }
.plans.compact { margin: 18px 0 16px; max-width: none; }
.plans.compact .plan { padding: 24px; }
.plans.compact .price { font-size: 2rem; }

.status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    margin: 22px 0;
    border-radius: 18px;
    background: rgba(5, 7, 14, 0.45);
    border: 1px solid var(--border);
}

.status strong { display: block; font-size: 1.15rem; }
.status.premium { border-color: rgba(232, 51, 143, 0.45); background: linear-gradient(135deg, rgba(47, 107, 255, 0.16), rgba(232, 51, 143, 0.14)); }
.status .crown { font-size: 1.8rem; }

.row-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.danger-zone { margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); }

.legal { max-width: 820px; }
.legal h2 { font-size: 1.3rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.todo { color: #ffd479; font-weight: 600; }

[hidden] { display: none !important; }

/* Appearing on scroll */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 860px) {
    .nav-links { display: none; }
    .nav-bar .button { margin-left: auto; }
    .split, .split.reverse { grid-template-columns: 1fr; }
    .split.reverse > :first-child { order: 0; }
}

@media (max-width: 480px) {
    .nav-bar { gap: 10px; padding-left: 14px; }
    .brand { font-size: 0.98rem; gap: 8px; }
    .brand img { width: 28px; height: 26px; }
    .button { white-space: normal; }
    .nav-bar .button { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
}
