/* ===== CSS Variables & Theme ===== */
:root {
    /* INDIGO -> VIOLET DARK THEME (default) */
    --bg: #07070d;
    --bg-2: #0e0e1a;
    --panel: #101020;
    --panel-2: #16162a;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(148, 131, 255, 0.5);
    --i1: #6366f1;
    --i3: #a855f7;
    --grad: linear-gradient(135deg, #6366f1, #a855f7);

    --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    --display: 'Bricolage Grotesque', 'Inter', sans-serif;
    --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;

    /* legacy names mapped to the new palette */
    --bg-primary: #07070d;
    --bg-secondary: #0e0e1a;
    --text-primary: #f4f4fa;
    --text-secondary: #9494a6;
    --gradient-1: #6366f1;
    --gradient-2: #a855f7;
    --accent: #6366f1;
    --accent-hover: #a855f7;
    --card-bg: rgba(16, 16, 32, 0.72);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --navbar-bg: rgba(7, 7, 13, 0.72);
    --footer-bg: #07070d;
    --footer-text: #f4f4fa;
}

body.light-mode {
    --bg-primary: #ffffff;
    --bg-secondary: #f3f4f8;
    --text-primary: #14142a;
    --text-secondary: #5a5a72;
    --gradient-1: #6366f1;
    --gradient-2: #7c3aed;
    --accent: #6366f1;
    --accent-hover: #7c3aed;
    --card-bg: rgba(255, 255, 255, 0.85);
    --card-border: rgba(20, 20, 42, 0.1);
    --card-shadow: 0 8px 32px rgba(20, 20, 42, 0.08);
    --navbar-bg: rgba(255, 255, 255, 0.8);
    --footer-bg: #14142a;
    --bg: #f7f7fb;
    --border: rgba(20, 20, 42, 0.12);
    --border-hover: rgba(124, 58, 237, 0.5);
    --footer-text: #ffffff;
}

/* ===== Global Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.hero-title,
.section-title,
.feature-card h4 {
    font-family: var(--display);
    letter-spacing: -0.01em;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background: transparent;
}

.navbar.scrolled {
    background: var(--navbar-bg);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 12px 0;
}

/* Default (dark) navbar needs the frosted background over the hero too. */
body:not(.light-mode) .navbar {
    background: var(--navbar-bg);
}

.nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.nav-logo i {
    color: var(--gradient-1);
    font-size: 1.8rem;
}

.nav-logo-img {
    height: 40px;
    width: 40px;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: 2px solid var(--text-secondary);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
    border-radius: 3px;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 600px at 72% -10%, rgba(99, 102, 241, 0.20), transparent 60%),
        radial-gradient(900px 520px at 8% 112%, rgba(168, 85, 247, 0.16), transparent 60%),
        var(--bg);
    padding: 120px 24px 80px;
}

.hero-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    background: rgba(99, 102, 241, 0.18);
    top: -50px;
    right: -50px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    background: rgba(168, 85, 247, 0.16);
    bottom: 10%;
    left: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 150px;
    height: 150px;
    background: rgba(99, 102, 241, 0.14);
    top: 50%;
    left: 60%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    color: var(--text-primary);
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.15);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 24px;
    border: 1px solid var(--border);
    color: var(--text-primary);
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-title .gradient-text {
    background: linear-gradient(135deg, var(--i1), var(--i3));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typed-wrapper {
    min-height: 30px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    opacity: 0.9;
}

#typed {
    color: var(--text-primary);
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    display: block;
    margin-top: 8px;
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--grad);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-outline-sm {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
    font-size: 0.9rem;
}

.btn-outline-sm:hover {
    background: var(--accent);
    color: #ffffff;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 1.1rem;
}

.btn i { line-height: 1; }

/* ===== Section Styles ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    color: #ffffff;
    padding: 6px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ===== About Section ===== */
.about-section {
    background: var(--bg-primary);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-wrapper {
    position: relative;
}

.about-img {
    max-width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-wrapper:hover .about-img {
    transform: scale(1.02);
}

.image-glow {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 20px;
    z-index: -1;
    filter: blur(30px);
    opacity: 0.3;
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 1.05rem;
}

.about-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 500;
}

.highlight-item i {
    color: var(--gradient-1);
    font-size: 1.2rem;
}

/* ===== Features Section ===== */
.features-section {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    margin-bottom: 40px;
}

.features-grid > .feature-card:nth-child(1) { grid-column: span 2; }
.features-grid > .feature-card.cta-tile {
    grid-column: span 2;
    background: var(--grad);
    border-color: transparent;
    color: #ffffff;
}
.features-grid > .feature-card.cta-tile h4,
.features-grid > .feature-card.cta-tile p { color: #ffffff; }
.features-grid > .feature-card.cta-tile .feature-icon { background: rgba(255, 255, 255, 0.2); }

.feature-card.hidden { display: none; }



.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: var(--card-shadow);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(99, 102, 241, 0.18);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.5rem;
}

.feature-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.features-cta {
    text-align: center;
}

/* ===== Downloads Section ===== */
.downloads-section {
    background:
        radial-gradient(900px 380px at 50% -10%, rgba(99, 102, 241, 0.10), transparent 70%),
        var(--bg);
    border-top: 1px solid var(--card-border);
    border-bottom: 1px solid var(--card-border);
}

.downloads-section .section-title {
    background: none;
    -webkit-text-fill-color: var(--text-primary);
    background-clip: border-box;
    color: var(--text-primary);
}

.downloads-section .section-badge {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.35);
    color: var(--i1);
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--bg-primary);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.contact-card {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-card > i {
    font-size: 2.5rem;
    color: var(--gradient-1);
    margin-bottom: 20px;
}

.contact-card h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.social-link {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link.discord {
    background: #5865F2;
}

.social-link.github {
    background: #333333;
}

.social-link.linkedin {
    background: #0077B5;
}

.social-link.youtube {
    background: #FF0000;
}

.social-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ===== Footer ===== */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 60px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 40px;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-brand p {
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    opacity: 0.7;
    font-size: 0.9rem;
}

/* ===== Responsive Design ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.3s ease;
        gap: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .download-card {
        flex-direction: column;
        text-align: center;
    }

    .download-meta {
        justify-content: center;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .section-title {
        font-size: 1.8rem;
    }
}

/* ===== Scrollbar Styling ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--gradient-1), var(--gradient-2));
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-hover);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
    [data-aos] { opacity: 1 !important; transform: none !important; }
}

/* ===== Offline indicator ===== */
.offline-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: var(--gradient-1);
    color: #ffffff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ===== Accessibility: skip link & focus ===== */
.skip-link {
    position: absolute;
    top: -60px;
    left: 16px;
    z-index: 3000;
    background: var(--gradient-1);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 0 0 10px 10px;
    text-decoration: none;
    font-weight: 600;
    transition: top 0.2s ease;
}
.skip-link:focus {
    top: 0;
}

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== Install Section ===== */
.install-block {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 22px;
    margin: 18px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    box-shadow: var(--card-shadow);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.install-label {
    width: 100%;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 600;
}
.install-label i { color: var(--accent); margin-right: 6px; }
.install-cmd {
    flex: 1 1 320px;
    font-family: ui-monospace, 'Courier New', monospace;
    background: rgba(102, 126, 234, 0.1);
    color: var(--accent);
    padding: 14px 16px;
    border-radius: 10px;
    overflow-x: auto;
}
.install-cmd.small { flex: 1 1 auto; margin-bottom: 12px; }
.install-cmd code { white-space: pre; font-family: inherit; }
.copy-btn {
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    cursor: pointer;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.copy-btn.small { padding: 10px 12px; }
.copy-btn:hover { background: var(--accent-hover); }
.install-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    flex-basis: 100%;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--card-border);
}
.install-note i { color: var(--accent); margin-right: 6px; }
.install-note a { color: var(--accent); }
.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 26px;
}
.install-option {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 22px;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.install-option:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: 0 14px 40px rgba(99, 102, 241, 0.18);
}
.install-option h3 {
    font-size: 1.05rem;
    margin-bottom: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--text-primary);
}
.install-option h3 i { color: var(--accent); }
.install-option p { color: var(--text-secondary); margin-bottom: 12px; font-size: 0.92rem; }
.mirror-list { list-style: none; display: grid; gap: 8px; margin-bottom: 12px; }
.mirror-list code {
    font-family: ui-monospace, 'Courier New', monospace;
    font-size: 0.82rem;
    color: var(--text-secondary);
    background: rgba(102, 126, 234, 0.1);
    padding: 8px 10px;
    border-radius: 8px;
    display: block;
    overflow-x: auto;
}
.option-tag {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: 999px;
    padding: 3px 12px;
}

/* ===== Revamp: terminal hero / bento boot / TOOL tags ===== */
.hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-primary);
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.14);
    border: 1px solid rgba(148, 131, 255, 0.4);
    color: var(--text-primary);
    padding: 7px 18px;
    border-radius: 50px;
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 4.4rem);
    font-weight: 800;
    margin-bottom: 18px;
    line-height: 1.05;
}

.hero-title .gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 34px;
}

/* Terminal */
.terminal {
    text-align: left;
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    margin-bottom: 44px;
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid var(--border);
}

.terminal-bar .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.terminal-title {
    margin-left: 10px;
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--text-dim);
}

.terminal-body {
    padding: 18px 18px 20px;
    font-family: var(--mono);
    font-size: 0.92rem;
    line-height: 1.7;
}

.term-line { color: #e7e7f5; white-space: pre-wrap; }
.term-line.dim { color: #7a7a92; }
.term-line .ok { color: #7ee787; }

.term-search {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed var(--border);
}

.term-search .prompt { color: #7ee787; white-space: nowrap; }

.term-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    outline: none;
    color: #f4f4fa;
    font-family: var(--mono);
    font-size: 0.92rem;
    caret-color: var(--i1);
}

.term-input::placeholder { color: #5a5a72; }

.term-count {
    margin-top: 12px;
    color: var(--text-dim);
    font-size: 0.82rem;
}

.term-count span { color: #ffffff; font-weight: 600; }
.term-count a { color: var(--i1); }

.term-results {
    margin-top: 12px;
    display: grid;
    gap: 5px;
    text-align: left;
    max-height: 184px;
    overflow-y: auto;
}
.term-result {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(99, 102, 241, 0.10);
    border: 1px solid rgba(99, 102, 241, 0.22);
    color: var(--text-primary);
    text-decoration: none;
    font-family: var(--mono);
    font-size: 0.85rem;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.term-result:hover {
    background: rgba(168, 85, 247, 0.18);
    border-color: rgba(168, 85, 247, 0.5);
    transform: translateX(2px);
}
.term-result .r-go { color: var(--i3); opacity: 0.85; }
.term-result.more { justify-content: flex-start; color: var(--text-secondary); font-style: italic; }

/* Boot reveal */
.boot {
    opacity: 0;
    transform: translateY(6px);
    animation: termIn 0.45s ease forwards;
}

@keyframes termIn {
    to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .features-grid > .feature-card:nth-child(1),
    .features-grid > .feature-card.cta-tile { grid-column: span 2; }
    .features-grid > .feature-card:nth-child(4) { grid-row: auto; }
}

@media (max-width: 560px) {
    .features-grid { grid-template-columns: 1fr; }
    .features-grid > .feature-card:nth-child(1),
    .features-grid > .feature-card.cta-tile { grid-column: span 1; }
}

/* ===== UX polish: long-text truncation ===== */
.tool-card h4 {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.tool-card p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.filter-tab {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ===== Print stylesheet ===== */
@media print {
    .navbar, .footer, .offline-banner, .skip-link, .theme-toggle,
    .social-links, .terminal, .hero-cta, .hero-search, .contact-cta,
    .copy-btn, .filter-tabs, .term-results, .no-results, .btn { display: none !important; }
    html, body { background: #ffffff !important; color: #000000 !important; }
    *, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
    .hero, .features-section, .downloads-section, .legal-hero, .legal-content, .contact-section {
        background: #ffffff !important; color: #000000 !important;
    }
    a { color: #000000 !important; text-decoration: underline; }
    .tool-card, .feature-card, .install-option, .contact-card, .install-block {
        border: 1px solid #cccccc !important; background: #ffffff !important; color: #000000 !important;
        break-inside: avoid;
    }
    .tool-card h4, .tool-card p, .feature-card h4, .feature-card p,
    .install-option h3, .install-option p { color: #000000 !important; }
    .option-tag { color: #000000 !important; border-color: #999999 !important; }
}
