/* ============================================================
   SAPPHIRE+ CLEAN SHOWCASE STYLES
   Aesthetic: Tactical Cyber Sapphire / Frosted Heist Glass
   ============================================================ */

:root {
    --bg-main: #070a10;
    --bg-card: rgba(13, 19, 31, 0.7);
    --bg-card-hover: rgba(18, 27, 45, 0.85);

    --border-subtle: rgba(56, 189, 248, 0.12);
    --border-active: rgba(56, 189, 248, 0.35);

    --primary-cyan: #38bdf8;
    --primary-sapphire: #0ea5e9;
    --accent-indigo: #6366f1;
    --accent-emerald: #10b981;

    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    --font-display: 'Chakra Petch', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
}

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

/* ============================================================
   CUSTOM THEMED SCROLLBARS
   ============================================================ */
/* Firefox */
html,
* {
    scrollbar-width: thin;
    scrollbar-color: var(--border-active) var(--bg-main);
}

/* Chrome, Edge, Safari, Opera */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #05080e;
    border-left: 1px solid rgba(56, 189, 248, 0.05);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(14, 165, 233, 0.45), rgba(99, 102, 241, 0.45));
    border-radius: var(--radius-full);
    border: 2px solid #05080e;
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-cyan), var(--primary-sapphire));
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

::-webkit-scrollbar-corner {
    background: #05080e;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* BACKGROUND GLOWS */
.ambient-glow {
    position: fixed;
    border-radius: 50%;
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.2;
}

.glow-1 {
    width: 500px;
    height: 500px;
    top: -50px;
    left: 25%;
    background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
}

.glow-2 {
    width: 450px;
    height: 450px;
    bottom: 5%;
    right: 15%;
    background: radial-gradient(circle, #6366f1 0%, transparent 70%);
}

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    background: rgba(7, 10, 16, 0.85);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.brand-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
    color: #fff;
}

.brand-plus {
    color: var(--primary-cyan);
}

.version-pill {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: var(--radius-full);
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--border-active);
    color: var(--primary-cyan);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-cyan);
}

.nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: #fff;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--border-active);
    color: var(--primary-cyan);
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.4rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-icon {
    width: 17px;
    height: 17px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-sapphire), var(--accent-indigo));
    color: #fff;
    box-shadow: 0 4px 16px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(14, 165, 233, 0.45);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-active);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: rgba(56, 189, 248, 0.08);
    color: var(--primary-cyan);
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero-section {
    position: relative;
    z-index: 2;
    padding: 10rem 1.5rem 10rem;
    text-align: center;
}

.hero-container {
    max-width: 780px;
    margin: 0 auto;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0.02em;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

.highlight-cyan {
    background: linear-gradient(135deg, #38bdf8 30%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 2rem;
    line-height: 1.65;
}

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

/* SECTION STRUCTURE */
.section-container {
    max-width: 1050px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    position: relative;
    z-index: 2;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 2.25rem;
}

.section-tag {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--primary-cyan);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.35rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 0.92rem;
}

/* FILTER BAR */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--border-active);
}

.filter-btn.active {
    background: rgba(14, 165, 233, 0.12);
    border-color: var(--border-active);
    color: var(--primary-cyan);
}

/* FEATURES GRID */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.25rem;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    transition: all 0.25s ease;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    transform: translateY(-3px);
}

.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-icon-box {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-sm);
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
}

.card-tag {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dim);
}

.card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: #fff;
}

.card-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    flex-grow: 1;
}

/* CHANGELOG SECTION */
.changelog-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 820px;
    margin: 0 auto;
}

.log-entry {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.6rem;
    backdrop-filter: blur(12px);
    transition: all 0.2s ease;
}

.log-entry.latest {
    border-color: var(--border-active);
    box-shadow: 0 4px 20px rgba(14, 165, 233, 0.08);
}

.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-subtle);
}

.log-version-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.log-version {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
}

.badge-current {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.55rem;
    border-radius: var(--radius-full);
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.log-date {
    font-size: 0.8rem;
    color: var(--text-dim);
}

.log-items {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.log-items li {
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    padding-left: 1.25rem;
    line-height: 1.55;
}

.log-items li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
}

.log-items li strong {
    color: #fff;
}

/* INSTALLATION SECTION */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.5rem;
}

.step-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-cyan);
    margin-bottom: 0.25rem;
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #fff;
}

.step-desc {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.step-desc a {
    color: var(--primary-cyan);
    text-decoration: none;
}

.step-desc a:hover {
    text-decoration: underline;
}

.code-box {
    margin-top: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--primary-cyan);
}

.copy-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.copy-btn:hover {
    color: #fff;
}

/* FOOTER */
.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 2rem 1.5rem;
    margin-top: 2rem;
    background: rgba(5, 8, 14, 0.8);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: 1050px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copy {
    color: var(--text-dim);
    font-size: 0.82rem;
}