/* ============================================================
   ConquerLoader – Public Site CSS
   Migrated from ConquerLoaderSite (Astro + Tailwind)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --pub-accent:    #dc2626;
    --pub-accent-h:  #b91c1c;
    --pub-accent-bg: rgba(220,38,38,.08);
    --pub-text:      #f8fafc;
    --pub-muted:     #9ca3af;
    --pub-border:    rgba(255,255,255,.07);
    --pub-card-bg:   rgba(24,24,27,.5);
    --pub-max-w:     1280px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body.pub-body {
    font-family: 'Inter', 'Segoe UI', sans-serif;
    background: #000;
    color: var(--pub-text);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
}

body.pub-body main {
    flex: 1;
    padding-top: 64px; /* Space for fixed header */
}

/* custom scrollbar */
body.pub-body ::-webkit-scrollbar              { width: 10px; }
body.pub-body ::-webkit-scrollbar-track       { background: #000; }
body.pub-body ::-webkit-scrollbar-thumb       { background: #333; border-radius: 5px; }
body.pub-body ::-webkit-scrollbar-thumb:hover { background: var(--pub-accent); }

.pub-container {
    width: min(100% - 2rem, var(--pub-max-w));
    margin-inline: auto;
}

/* ---------- Header ---------- */
.pub-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: rgba(0,0,0,.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pub-border);
}

.pub-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 64px;
}

.pub-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.pub-brand img  { height: 40px; width: auto; }
.pub-brand span { font-size: 1.35rem; font-weight: 700; color: #fff; }

.pub-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.pub-nav a {
    color: var(--pub-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: .95rem;
    transition: color .2s;
}
.pub-nav a:hover { color: var(--pub-accent); }

.pub-nav-cta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem 1.1rem;
    border-radius: 8px;
    background: var(--pub-accent);
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
    transition: background .2s, transform .15s;
}
.pub-nav-cta:hover { background: var(--pub-accent-h) !important; transform: translateY(-1px); }
.pub-nav-cta.secondary {
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.12);
    color: #e2e8f0 !important;
}
.pub-nav-cta.secondary:hover { background: rgba(255,255,255,.1) !important; }

.pub-nav-user {
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-left: 1rem; 
    padding-left: 1rem; 
    border-left: 1px solid var(--pub-border);
}

.pub-nav-user-info {
    display: flex; 
    flex-direction: column; 
    line-height: 1.2;
}

.pub-nav-user-info strong {
    color: #fff; 
    font-size: 0.9rem;
}

.pub-nav-user-info span {
    color: var(--pub-muted); 
    font-size: 0.75rem;
}

/* mobile toggle */
.pub-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--pub-muted);
    cursor: pointer;
    padding: 4px;
}

/* ---------- Hero ---------- */
.pub-hero {
    position: relative;
    padding: 9rem 0 6rem;
    overflow: hidden;
    text-align: center;
}

.pub-hero-blobs {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}
.pub-hero-blobs div {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(72px);
    mix-blend-mode: screen;
    animation: blob 7s infinite;
    opacity: .18;
}
.pub-hero-blobs .b1 { background: #dc2626; top: 20%; left: 20%; animation-delay: 0s; }
.pub-hero-blobs .b2 { background: #555;    top: 20%; right:20%; animation-delay: 2s; }
.pub-hero-blobs .b3 { background: #7f1d1d; bottom: 0; left: 30%; animation-delay: 4s; }

@keyframes blob {
    0%   { transform: translate(0, 0) scale(1); }
    33%  { transform: translate(30px,-50px) scale(1.1); }
    66%  { transform: translate(-20px,20px) scale(.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.pub-hero h1 {
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, #ef4444, #fff, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pub-hero p {
    font-size: 1.2rem;
    color: var(--pub-muted);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.pub-hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pub-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .9rem 2rem;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all .2s;
    border: none;
    cursor: pointer;
}
.pub-btn-primary {
    background: var(--pub-accent);
    color: #fff;
    box-shadow: 0 0 24px rgba(220,38,38,.35);
}
.pub-btn-primary:hover { background: var(--pub-accent-h); transform: scale(1.04); box-shadow: 0 0 32px rgba(220,38,38,.55); color: #fff; }
.pub-btn-secondary {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.15);
    color: #fff;
}
.pub-btn-secondary:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ---------- Sections ---------- */
.pub-section { padding: 6rem 0; }
.pub-section-dark { background: #030303; }

.pub-section-header {
    text-align: center;
    margin-bottom: 4rem;
}
.pub-section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    letter-spacing: -.02em;
    color: #fff;
    margin-bottom: .75rem;
}
.pub-section-header h2 span { color: var(--pub-accent); }
.pub-section-header p { color: var(--pub-muted); font-size: 1.1rem; max-width: 520px; margin: 0 auto; }

/* ---------- Feature cards ---------- */
.pub-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pub-feature-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: var(--pub-card-bg);
    border: 1px solid var(--pub-border);
    transition: all .3s;
    overflow: hidden;
}
.pub-feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(220,38,38,.06), transparent);
    opacity: 0;
    transition: opacity .3s;
    border-radius: 20px;
}
.pub-feature-card:hover {
    border-color: rgba(220,38,38,.35);
    transform: translateY(-4px);
    box-shadow: 0 24px 48px rgba(220,38,38,.08);
}
.pub-feature-card:hover::before { opacity: 1; }

.pub-feature-icon {
    display: inline-flex;
    padding: .75rem;
    border-radius: 14px;
    background: linear-gradient(135deg, #27272a, #18181b);
    border: 1px solid rgba(255,255,255,.1);
    color: var(--pub-muted);
    margin-bottom: 1.5rem;
    transition: color .3s, border-color .3s;
}
.pub-feature-card:hover .pub-feature-icon {
    color: var(--pub-accent);
    border-color: rgba(220,38,38,.35);
}

.pub-feature-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .6rem;
    transition: color .3s;
}
.pub-feature-card:hover h3 { color: var(--pub-accent); }
.pub-feature-card p { color: var(--pub-muted); line-height: 1.65; font-size: .95rem; }

/* ---------- Testimonials ---------- */
.pub-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.pub-testimonial-card {
    position: relative;
    padding: 2rem;
    border-radius: 20px;
    background: rgba(24,24,27,.3);
    border: 1px solid var(--pub-border);
    transition: background .3s;
}
.pub-testimonial-card:hover { background: rgba(24,24,27,.55); }

.pub-quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    color: rgba(120,20,20,.2);
    transition: color .3s;
}
.pub-testimonial-card:hover .pub-quote-icon { color: rgba(220,38,38,.2); }

.pub-testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.pub-testimonial-author img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #27272a;
    transition: border-color .3s;
}
.pub-testimonial-card:hover .pub-testimonial-author img { border-color: rgba(220,38,38,.5); }
.pub-testimonial-author h4 { font-weight: 700; color: #fff; font-size: .95rem; }
.pub-testimonial-author span { color: var(--pub-accent); font-size: .8rem; }
.pub-testimonial-card blockquote { color: var(--pub-muted); font-style: italic; line-height: 1.65; }

/* separator lines */
.pub-separator {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(185,28,28,.45), transparent);
}
.pub-separator-white {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.08), transparent);
}

/* ---------- Changelog ---------- */
.pub-changelog-wrap { max-width: 720px; margin: 0 auto; }

.pub-changelog-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: #18181b;
    border-radius: 14px;
    border: 1px solid var(--pub-border);
    text-decoration: none;
    transition: all .25s;
    margin-bottom: 1rem;
}
.pub-changelog-item:hover {
    border-color: rgba(220,38,38,.5);
    background: #1f1f23;
}
.pub-changelog-item-date {
    font-family: 'Consolas', monospace;
    font-size: .8rem;
    color: var(--pub-accent);
    margin-bottom: .25rem;
}
.pub-changelog-item h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #e4e4e7;
    transition: color .2s;
}
.pub-changelog-item:hover h3 { color: #fff; }
.pub-changelog-arrow { color: #71717a; transition: color .2s; }
.pub-changelog-item:hover .pub-changelog-arrow { color: var(--pub-accent); }

.pub-changelog-more {
    text-align: center;
    margin-top: 2rem;
}
.pub-changelog-more a {
    color: var(--pub-accent);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
}
.pub-changelog-more a:hover { color: #f87171; }

/* ---------- Step Guide ---------- */
.pub-steps-wrap { max-width: 800px; margin: 0 auto; }

.pub-step {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.pub-step-num {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(127,29,29,.2);
    border: 1px solid rgba(220,38,38,.3);
    color: var(--pub-accent);
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s, color .2s;
}
.pub-step:hover .pub-step-num {
    background: var(--pub-accent);
    color: #fff;
}

.pub-step-body h3 { font-size: 1.15rem; font-weight: 700; color: #f1f5f9; margin-bottom: .4rem; }
.pub-step-body p  { color: var(--pub-muted); line-height: 1.7; }
.pub-step-body code {
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    padding: .1rem .45rem;
    border-radius: 5px;
    font-size: .88em;
    font-family: 'Consolas', monospace;
    color: #fca5a5;
}

.pub-step-note {
    padding: 1.5rem;
    background: rgba(127,29,29,.12);
    border: 1px solid rgba(185,28,28,.35);
    border-radius: 14px;
    margin-top: 1rem;
}
.pub-step-note h4 {
    color: var(--pub-accent);
    font-weight: 700;
    margin-bottom: .5rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.pub-step-note p { color: rgba(254,202,202,.8); line-height: 1.65; font-size: .95rem; }
.pub-step-note code {
    background: rgba(0,0,0,.25);
    border: 1px solid rgba(220,38,38,.2);
    padding: .1rem .4rem;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: .87em;
}

/* ---------- Footer ---------- */
.pub-footer {
    border-top: 1px solid var(--pub-border);
    padding: 3rem 0;
    background: #000;
    margin-top: auto;
}
.pub-footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}
@media (min-width: 768px) {
    .pub-footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}
.pub-footer-brand { display: flex; align-items: center; gap: .75rem; }
.pub-footer-brand img { height: 32px; filter: grayscale(1) opacity(.8); transition: filter .2s; }
.pub-footer-brand img:hover { filter: none; }
.pub-footer-brand span { font-size: 1.2rem; font-weight: 700; color: #fff; }
.pub-footer-copy { color: #6b7280; font-size: .85rem; }
.pub-footer-links { display: flex; gap: 1.5rem; }
.pub-footer-links a { color: #6b7280; transition: color .2s; }
.pub-footer-links a:hover { color: var(--pub-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .pub-nav { display: none; }
    .pub-nav.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: rgba(0,0,0,.95);
        padding: 1rem;
        border-bottom: 1px solid var(--pub-border);
    }
    .pub-nav-toggle { display: block; }
    .pub-hero { padding: 7rem 0 4rem; }
}
