/* style.css - Full Version */
:root {
    --bg: #0a0a0b;
    --bg2: #111113;
    --bg3: #18181c;
    --border: #2a2a30;
    --red: #ff2e2e;
    --red-dim: #7a1010;
    --red-glow: rgba(255,46,46,0.15);
    --text: #e8e8ec;
    --text-dim: #6b6b75;
    --text-mid: #a0a0a8;
    --mono: 'Share Tech Mono', monospace;
    --sans: 'Syne', sans-serif;
    --accent: #ff2e2e;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.7;
    overflow-x: hidden;
}

/* SCROLLBAR */
::-webkit-scrollbar {
    width: 4px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--red-dim);
    border-radius: 2px;
}

/* NOISE OVERLAY */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 999;
    opacity: 0.4;
}

/* ============= NAVIGATION ============= */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    height: 60px;
    background: rgba(10, 10, 11, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-logo {
    font-family: var(--mono);
    font-size: 1rem;
    color: var(--red);
    letter-spacing: 0.1em;
    text-decoration: none;
}

.nav-logo span {
    color: var(--text-dim);
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    text-decoration: none;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--red);
}

/* HAMBURGER */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 101;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
}

.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(5px, -5px);
}

/* ============= HERO SECTION ============= */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 80px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 46, 46, 0.04) 1px, transparent 1px),
                      linear-gradient(90deg, rgba(255, 46, 46, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 46, 46, 0.08) 0%, transparent 70%);
    pointer-events: none;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
}

.hero-eyebrow {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--red);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.2s;
}

.hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--red);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.4s;
}

.hero-title .accent {
    color: var(--red);
}

.hero-title .dim {
    color: var(--text-dim);
}

.hero-desc {
    font-family: var(--mono);
    font-size: 0.95rem;
    color: var(--text-mid);
    max-width: 560px;
    line-height: 1.8;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.6s;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 0.8s;
}

.btn {
    font-family: var(--mono);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 12px 28px;
    border-radius: 2px;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    display: inline-block;
}

.btn-primary {
    background: var(--red);
    color: #fff;
}

.btn-primary:hover {
    background: #ff4444;
    box-shadow: 0 0 24px rgba(255, 46, 46, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--text-mid);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    border-color: var(--red-dim);
    color: var(--text);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 1s;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: var(--red);
    line-height: 1;
}

.stat-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 4px;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============= SECTIONS ============= */
section {
    padding: 100px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--red);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-label::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
    max-width: 80px;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-sub {
    font-family: var(--mono);
    font-size: 0.9rem;
    color: var(--text-mid);
    max-width: 500px;
    margin-bottom: 56px;
}

/* ============= FEATURES GRID ============= */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.feature-card {
    background: var(--bg2);
    padding: 32px;
    transition: background 0.2s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--red);
    transition: height 0.3s ease;
}

.feature-card:hover {
    background: var(--bg3);
}

.feature-card:hover::before {
    height: 100%;
}

.feature-icon {
    font-size: 1.4rem;
    margin-bottom: 16px;
    display: block;
}

.feature-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}

.feature-desc {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.feature-tag {
    display: inline-block;
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 2px;
}

.tag-critical {
    background: rgba(255, 46, 46, 0.15);
    color: var(--red);
}

.tag-high {
    background: rgba(255, 140, 0, 0.12);
    color: #ff8c00;
}

.tag-medium {
    background: rgba(255, 220, 0, 0.1);
    color: #ffd700;
}

.tag-new {
    background: rgba(0, 255, 120, 0.1);
    color: #00ff78;
}

/* ============= INSTALL BLOCKS ============= */
.install-block {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 24px;
}

.install-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: var(--bg3);
    border-bottom: 1px solid var(--border);
}

.install-title {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.copy-btn {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    background: none;
    border: 1px solid var(--border);
    padding: 3px 10px;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    color: var(--red);
    border-color: var(--red-dim);
}

.copy-btn.copied {
    color: #00ff78;
    border-color: #00ff78;
}

.install-body {
    padding: 20px;
}

.install-body code {
    font-family: var(--mono);
    font-size: 0.88rem;
    color: var(--text);
    display: block;
    line-height: 2;
}

.prompt {
    color: var(--red);
    user-select: none;
}

.cmd {
    color: #fde68a;
}

.flag {
    color: #7dd3fc;
}

.val {
    color: #86efac;
}

/* ============= USAGE TABLE ============= */
.usage-table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--mono);
    font-size: 0.82rem;
}

.usage-table th {
    text-align: left;
    padding: 10px 16px;
    background: var(--bg3);
    color: var(--text-dim);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.usage-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    color: var(--text-mid);
    vertical-align: top;
}

.usage-table tr:last-child td {
    border-bottom: none;
}

.usage-table tr:hover td {
    background: var(--bg3);
}

.usage-table td:first-child {
    color: #7dd3fc;
    white-space: nowrap;
}

/* ============= VULN BADGES ============= */
.vuln-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 32px;
}

.vuln-badge {
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    padding: 6px 14px;
    border-radius: 2px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 8px;
}

.vuln-badge.critical {
    color: #ff2e2e;
    border-color: #7a1010;
    background: rgba(255, 46, 46, 0.07);
}

.vuln-badge.high {
    color: #ff8c00;
    border-color: #7a4500;
    background: rgba(255, 140, 0, 0.07);
}

.vuln-badge.medium {
    color: #ffd700;
    border-color: #7a6600;
    background: rgba(255, 215, 0, 0.07);
}

.vuln-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ============= DISCLAIMER ============= */
.disclaimer {
    background: var(--bg2);
    border: 1px solid var(--red-dim);
    border-left: 3px solid var(--red);
    padding: 20px 24px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 0.82rem;
    color: var(--text-mid);
    margin-bottom: 40px;
}

.disclaimer strong {
    color: var(--red);
}

/* ============= TERMINAL DEMO ============= */
.terminal-demo {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 40px;
}

.terminal-bar {
    background: var(--bg3);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.r {
    background: #ff5f57;
}

.dot.y {
    background: #febc2e;
}

.dot.g {
    background: #28c840;
}

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

.terminal-body {
    padding: 24px;
    font-family: var(--mono);
    font-size: 0.8rem;
    line-height: 2;
}

.t-line {
    display: block;
}

.t-info {
    color: #7dd3fc;
}

.t-success {
    color: #86efac;
}

.t-dim {
    color: var(--text-dim);
}

.t-vuln-critical {
    color: #ff2e2e;
    font-weight: bold;
}

.t-vuln-high {
    color: #ff8c00;
}

/* ============= FOOTER ============= */
footer {
    border-top: 1px solid var(--border);
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-logo {
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--text-dim);
}

.footer-logo span {
    color: var(--red);
}

.footer-right {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    text-align: right;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 768px) {
    nav {
        padding: 0 20px;
    }

    .nav-links {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: var(--bg2);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 40px;
        transition: left 0.3s ease;
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
    }

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

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 20px 60px;
    }

    section {
        padding: 60px 20px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    footer {
        padding: 24px 20px;
        flex-direction: column;
        text-align: center;
    }

    .footer-right {
        text-align: center;
    }

    .usage-table td:first-child {
        white-space: normal;
    }

    .usage-table td {
        font-size: 0.7rem;
        padding: 8px 12px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1.1;
    }

    .hero-desc {
        font-size: 0.85rem;
    }

    .btn {
        padding: 8px 20px;
        font-size: 0.7rem;
    }

    .feature-card {
        padding: 20px;
    }

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

    .install-body code {
        font-size: 0.7rem;
        overflow-x: auto;
        white-space: pre-wrap;
        word-break: break-all;
    }

    .terminal-body {
        padding: 16px;
        font-size: 0.7rem;
        overflow-x: auto;
    }
}
