/* Root Variables */
:root {
    --primary: #FF6B35;
    --primary-dark: #E85A2A;
    --secondary: #5F4DEE;
    --dark: #1A1A2E;
    --darker: #0F0F1E;
    --light: #F5F5F7;
    --gray: #8E8E93;
    --success: #30D158;
    --warning: #FF9F0A;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-orange: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 15, 30, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(15, 15, 30, 0.95);
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo-icon {
    font-size: 2rem;
}

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

.nav-links a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.github-link {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: all 0.3s;
}

.github-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    width: 500px;
    height: 500px;
    background: var(--gradient);
    opacity: 0.1;
    border-radius: 50%;
    top: -250px;
    right: -250px;
    filter: blur(100px);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid rgba(255, 107, 53, 0.3);
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray);
    max-width: 700px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-subtitle strong {
    color: var(--primary);
    font-weight: 700;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-orange);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Code Block */
.hero-code {
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.code-block {
    background: #1E1E2E;
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.code-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.code-dots {
    display: flex;
    gap: 0.5rem;
}

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

.dot.red {
    background: #FF5F57;
}

.dot.yellow {
    background: #FFBD2E;
}

.dot.green {
    background: #28CA42;
}

.code-title {
    font-size: 0.875rem;
    color: var(--gray);
}

.code-block pre {
    padding: 1.5rem;
    margin: 0;
    overflow-x: auto;
}

.code-block code {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.comment {
    color: #6272A4;
}

.command {
    color: #50FA7B;
    font-weight: 600;
}

.output {
    color: #F8F8F2;
}

.warning {
    color: #FFB86C;
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
}

/* Features Section */
.features {
    background: linear-gradient(180deg, var(--darker) 0%, rgba(26, 26, 46, 0.5) 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.7;
}

/* Installation Section */
.install {
    background: var(--dark);
}

.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.install-method h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.uninstall-section {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.uninstall-section h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Usage Section */
.usage {
    background: linear-gradient(180deg, var(--dark) 0%, var(--darker) 100%);
}

.usage-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.usage-card h3 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Table Styles */
.detection-table {
    margin-top: 4rem;
}

.detection-table h3 {
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
}

thead {
    background: rgba(255, 107, 53, 0.2);
}

th,
td {
    padding: 1rem 1.5rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

th {
    font-weight: 600;
    color: var(--primary);
}

tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.badge-confidence {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.875rem;
}

.badge-confidence.very-high {
    background: rgba(48, 209, 88, 0.2);
    color: var(--success);
}

.badge-confidence.high {
    background: rgba(52, 199, 89, 0.2);
    color: #52C759;
}

.badge-confidence.medium {
    background: rgba(255, 159, 10, 0.2);
    color: var(--warning);
}

.badge-confidence.low {
    background: rgba(255, 69, 58, 0.2);
    color: #FF453A;
}

/* Performance Section */
.performance {
    background: var(--dark);
}

.performance-chart {
    max-width: 800px;
    margin: 0 auto;
}

.chart-container {
    display: flex;
    justify-content: space-around;
    align-items: flex-end;
    height: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chart-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
}

.bar {
    width: 80px;
    height: calc(var(--height) * 3);
    border-radius: 8px 8px 0 0;
    transition: all 0.5s ease;
    position: relative;
}

.bar.pydeadcode {
    background: var(--gradient-orange);
    box-shadow: 0 0 30px rgba(255, 107, 53, 0.5);
}

.bar.vulture {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.bar.pylint {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.bar-label {
    margin-top: 1rem;
    text-align: center;
}

.time {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0;
}

.multiplier {
    display: block;
    font-size: 0.875rem;
    color: var(--gray);
}

.benchmark-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.875rem;
    margin-top: 2rem;
}

/* Documentation Section */
.docs {
    background: var(--darker);
}

.docs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.doc-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-decoration: none;
    color: var(--light);
    transition: all 0.3s;
    text-align: center;
}

.doc-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 107, 53, 0.3);
    box-shadow: var(--shadow);
}

.doc-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.doc-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.doc-card p {
    color: var(--gray);
    font-size: 0.875rem;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    text-align: center;
    padding: 100px 0;
}

.cta h2 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--gray);
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Footer */
.footer {
    background: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
}

.footer-section p {
    color: var(--gray);
    font-size: 0.875rem;
    line-height: 1.7;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: var(--primary);
}

.copyright {
    margin-top: 1rem;
    font-size: 0.75rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--light);
    border-radius: 2px;
    transition: all 0.3s ease;
}

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

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

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

/* Responsive Design - Large Desktop */
@media (max-width: 1200px) {
    .container {
        padding: 0 1.5rem;
    }

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

    .hero-code {
        max-width: 700px;
    }

    .performance-chart {
        max-width: 700px;
    }
}

/* Responsive Design - Tablet Landscape */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }

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

    .cta h2 {
        font-size: 2.5rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

/* Responsive Design - Tablet Portrait */
@media (max-width: 768px) {

    /* Mobile Navigation */
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(15, 15, 30, 0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: right 0.3s ease;
        z-index: 999;
    }

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

    .nav-links a {
        font-size: 1.25rem;
    }

    .github-link {
        padding: 0.75rem 1.5rem;
    }

    /* Hero Section */
    .hero {
        padding: 100px 0 60px;
    }

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

    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .hero-subtitle br {
        display: none;
    }

    .hero-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-code {
        margin: 0 0.5rem;
    }

    /* Sections */
    section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .feature-card h3 {
        font-size: 1.25rem;
    }

    /* Install */
    .install-grid {
        grid-template-columns: 1fr;
    }

    .install-method h3 {
        font-size: 1.25rem;
    }

    /* Usage */
    .usage-grid {
        grid-template-columns: 1fr;
    }

    .usage-card h3 {
        font-size: 1.25rem;
    }

    /* Table */
    .detection-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .detection-table h3 {
        font-size: 1.5rem;
    }

    table {
        min-width: 500px;
    }

    th,
    td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }

    /* Performance Chart */
    .chart-container {
        flex-direction: column;
        height: auto;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .chart-bar {
        width: 100%;
        flex-direction: row;
        height: auto;
    }

    .bar {
        width: calc(var(--height) * 2);
        min-width: 20px;
        height: 50px;
        border-radius: 8px;
    }

    .bar-label {
        margin-top: 0;
        margin-left: 1rem;
        text-align: left;
    }

    .time {
        font-size: 1rem;
    }

    /* Docs */
    .docs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .doc-card {
        padding: 1.5rem;
    }

    .doc-icon {
        font-size: 2.5rem;
    }

    .doc-card h3 {
        font-size: 1.1rem;
    }

    /* CTA */
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 2rem;
    }

    .cta p {
        font-size: 1rem;
        padding: 0 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        padding: 0 1rem;
    }

    .cta-buttons .btn {
        width: 100%;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-section ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .footer-section ul li {
        margin-bottom: 0;
    }

    /* Code Block */
    .code-block pre {
        padding: 1rem;
        font-size: 0.8rem;
    }

    .code-block code {
        font-size: 0.75rem;
    }
}

/* Responsive Design - Large Phone */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }

    .hero {
        padding: 90px 0 50px;
    }

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

    .hero-title br {
        display: none;
    }

    .badge {
        font-size: 0.75rem;
        padding: 0.4rem 0.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
    }

    /* Docs grid single column on small phones */
    .docs-grid {
        grid-template-columns: 1fr;
    }

    /* Performance chart adjustments */
    .bar {
        height: 40px;
    }

    .bar-label strong {
        font-size: 0.9rem;
    }

    .time {
        font-size: 0.9rem;
    }

    .multiplier {
        font-size: 0.75rem;
    }

    .benchmark-note {
        font-size: 0.75rem;
    }

    /* Section spacing */
    section {
        padding: 50px 0;
    }

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

    /* CTA */
    .cta h2 {
        font-size: 1.75rem;
    }

    .cta p {
        font-size: 0.9rem;
    }

    /* Code blocks */
    .code-block pre {
        padding: 0.75rem;
        overflow-x: auto;
    }

    .code-block code {
        font-size: 0.7rem;
        line-height: 1.6;
    }

    .code-header {
        padding: 0.75rem 1rem;
    }

    .code-title {
        font-size: 0.75rem;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

/* Responsive Design - Small Phone */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }

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

    .feature-card h3,
    .install-method h3,
    .usage-card h3 {
        font-size: 1.1rem;
    }

    .feature-card p,
    .doc-card p {
        font-size: 0.8rem;
    }

    .cta h2 {
        font-size: 1.5rem;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .logo-icon {
        font-size: 1.5rem;
    }

    table {
        min-width: 400px;
        font-size: 0.75rem;
    }

    th,
    td {
        padding: 0.5rem 0.75rem;
    }
}

/* Overlay for mobile menu */
.nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.active {
    display: block;
    opacity: 1;
}

/* Ensure proper scrolling behavior on mobile */
@media (max-width: 768px) {
    body.menu-open {
        overflow: hidden;
    }
}