:root {
    --bg: #0f1115;
    --panel: #171a21;
    --panel-2: #1c202a;
    --border: #2a2e38;
    --text: #e7e9ee;
    --muted: #9aa1ad;
    --accent: #4f8cff;
    --accent-2: #7c5cff;
    --ok: #33c481;
    --warn: #e0a83e;
    --err: #e05a5a;
    --shadow: 0 8px 24px rgba(0,0,0,.28);
    --shadow-sm: 0 2px 8px rgba(0,0,0,.2);
}
* { box-sizing: border-box; }
::selection { background: rgba(79,140,255,.35); color: #fff; }
body {
    margin: 0;
    font-family: -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
    background:
        radial-gradient(1200px 500px at 50% -10%, rgba(79,140,255,.08), transparent 60%),
        var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); transition: color .15s ease; }
a:hover { color: #fff; }
.container { max-width: 880px; margin: 0 auto; padding: 24px 16px 80px; }

.nav {
    display: flex; justify-content: space-between; align-items: center; padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    background: rgba(15,17,21,.75);
    backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 50;
}
.nav a { text-decoration: none; margin-left: 16px; color: var(--text); font-size: 14px; opacity: .85; transition: opacity .15s ease; }
.nav a:hover { opacity: 1; color: var(--text); }
.nav strong { font-size: 16px; letter-spacing: -.02em; }

.card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}
h1, h2 { margin-top: 0; letter-spacing: -.01em; }
label { display: block; margin: 14px 0 6px; font-size: 14px; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=datetime-local], input[type=date], textarea, select {
    width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border);
    background: #0d0f14; color: var(--text); font-size: 14px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
    outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,140,255,.18);
}
textarea { min-height: 100px; resize: vertical; }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 8px; border: none;
    background: linear-gradient(135deg, var(--accent), #3f6fe0);
    color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: none;
    box-shadow: 0 4px 14px rgba(79,140,255,.28);
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(79,140,255,.38); color: #fff; }
.btn:active { transform: translateY(0); }
.btn.secondary { background: #232732; box-shadow: none; }
.btn.secondary:hover { background: #2a2f3c; box-shadow: var(--shadow-sm); }
.btn.danger { background: linear-gradient(135deg, var(--err), #c23f3f); box-shadow: 0 4px 14px rgba(224,90,90,.25); }
.btn .icon { width: 16px; height: 16px; }

.checks label { display: inline-flex; align-items: center; gap: 6px; margin-right: 18px; font-size: 14px; color: var(--text); }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.alert.error { background: rgba(224,90,90,.15); border: 1px solid var(--err); }
.alert.success { background: rgba(51,196,129,.15); border: 1px solid var(--ok); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
th { color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }

.icon { width: 1em; height: 1em; display: inline-block; vertical-align: -0.15em; }

.badge {
    padding: 4px 10px 4px 8px; border-radius: 20px; font-size: 12px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.badge .icon { width: 13px; height: 13px; }
.badge.pending { background: rgba(224,168,62,.15); color: var(--warn); }
.badge.uploading { background: rgba(79,140,255,.15); color: var(--accent); }
.badge.published { background: rgba(51,196,129,.15); color: var(--ok); }
.badge.failed { background: rgba(224,90,90,.15); color: var(--err); }

.platform-list { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; }
.platform-card {
    border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; flex: 1 1 200px;
    background: var(--panel); box-shadow: var(--shadow-sm);
}
.muted { color: var(--muted); font-size: 13px; }

.pricing-grid { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 24px; }
.price-card { position: relative; overflow: hidden; flex: 1 1 260px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm); }
.price-card h2 { font-size: 18px; }
.price-value { font-size: 34px; font-weight: 700; margin: 14px 0 4px; filter: blur(7px); user-select: none; }
.price-period { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.price-features { list-style: none; padding: 0; margin: 0 0 20px; text-align: right; }
.price-features li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.price-features li:last-child { border-bottom: none; }
.price-ribbon {
    position: absolute; top: 18px; left: -42px; width: 180px; padding: 6px 0;
    background: linear-gradient(135deg, var(--ok), #1f9d68); color: #fff; font-size: 12px; font-weight: 700;
    text-align: center; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.3);
}

/* ---------------------------------------------------------------------------
 * Landing page
 * ------------------------------------------------------------------------ */
.landing-hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 40px 16px;
    isolation: isolate;
}
.hero-canvas-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.hero-canvas-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, var(--bg) 100%);
    opacity: .85;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 20px; margin-bottom: 22px;
    background: rgba(79,140,255,.1); border: 1px solid rgba(79,140,255,.3);
    color: var(--accent); font-size: 13px; font-weight: 600;
}
.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.5rem);
    line-height: 1.05;
    font-weight: 800;
    margin: 0 0 20px;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.55) 45%, #fff 55%, rgba(255,255,255,.6) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% center; }
    100% { background-position: 0% center; }
}
.hero-desc { font-size: 1.1rem; color: var(--text); opacity: .85; margin-bottom: 32px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-ctas .btn { padding: 12px 26px; font-size: 15px; }

.marquee-wrap {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    -webkit-mask-image: linear-gradient(to right, transparent, #fff 12%, #fff 88%, transparent);
    mask-image: linear-gradient(to right, transparent, #fff 12%, #fff 88%, transparent);
}
.marquee-track { display: flex; width: max-content; gap: 48px; animation: marquee 22s linear infinite; }
.marquee-item { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.marquee-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.section { padding: 70px 16px; max-width: 1000px; margin: 0 auto; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 12px; }
.section-lead { text-align: center; color: var(--muted); max-width: 560px; margin: 0 auto 40px; line-height: 1.7; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.feature-card {
    background: linear-gradient(180deg, var(--panel-2), var(--panel));
    border: 1px solid var(--border); border-radius: 14px; padding: 28px 22px;
    opacity: 0; transform: translateY(24px);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(79,140,255,.35); }
.feature-icon {
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 16px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, rgba(79,140,255,.18), rgba(124,92,255,.12));
    color: var(--accent); border: 1px solid rgba(79,140,255,.25);
}
.feature-icon .icon { width: 26px; height: 26px; }
.feature-card h3 { font-size: 16px; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 0; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; counter-reset: step; }
.step { text-align: center; opacity: 0; transform: translateY(24px); }
.step-num {
    counter-increment: step;
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
    display: flex; align-items: center; justify-content: center; font-weight: 700; margin: 0 auto 14px;
    box-shadow: 0 4px 14px rgba(79,140,255,.3);
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 15px; margin: 0 0 6px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.6; }

.landing-cta {
    text-align: center; padding: 60px 16px; margin: 20px 16px 40px; max-width: 900px; margin-inline: auto;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(79,140,255,.14), rgba(124,92,255,.1));
    border: 1px solid rgba(79,140,255,.25);
}
.landing-cta h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 10px; }
.landing-cta p { color: var(--muted); margin-bottom: 24px; }
