:root {
    --bg-color: #0a0a0a;
    --card-bg: #161b22;
    --text-primary: #ffffff;
    --text-secondary: #8b949e;
    /* Increased saturation for better CTA visibility */
    --accent-color: #238636;
    --accent-hover: #2ea043;
    --border-color: #30363d;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1200px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.logo {
    font-weight: 700;
    font-size: 1.2rem;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero-section {
    padding: 80px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background-color: rgba(46, 164, 79, 0.15);
    color: #3fb950;
    /* Lighter green for better readability on dark bg */
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
    display: inline-block;
}

.tagline {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 16px;
    background: linear-gradient(to right, #ffffff, #b0b0b0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 48px;
}

/* Promo Box */
.promo-box {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    margin-bottom: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    /* Added depth */
}

.promo-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.code-display {
    background-color: #0d1117;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.code-text {
    font-family: monospace;
    font-size: 1.5rem;
    font-weight: 700;
    color: #3fb950;
    /* Lighter green matches badge */
    letter-spacing: 1px;
}

.copy-btn {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background-color: var(--border-color);
    transform: translateY(-1px);
}

.promo-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* CTA Button */
.cta-btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-weight: 700;
    /* Bolder text */
    padding: 18px 36px;
    /* Slightly larger */
    border-radius: 8px;
    text-decoration: none;
    font-size: 1.125rem;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(35, 134, 54, 0.4);
    /* Green glow */
}

.cta-btn:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    /* Lift effect */
    box-shadow: 0 6px 20px rgba(35, 134, 54, 0.6);
}

/* Hero Image */
.hero-image-container {
    margin-top: 60px;
    position: relative;
    width: 100%;
    max-width: 1000px;
    border-radius: 12px;
    z-index: 1;
}

.hero-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    position: relative;
    z-index: 2;
}

/* Glow effect behind the image */
.hero-img-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    height: 90%;
    background: radial-gradient(circle, rgba(35, 134, 54, 0.15) 0%, rgba(0, 0, 0, 0) 70%);
    z-index: 1;
    filter: blur(40px);
    pointer-events: none;
}

/* Steps Section */
.steps-section {
    padding: 80px 0;
    background-color: #0d1117;
}

.steps-section h2,
.features-section h2,
.about-section h2,
.faq-section h2,
.commands-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 1.125rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.step-card {
    position: relative;
    padding: 24px;
    background: var(--card-bg);
    /* Distinct background for cards */
    border-radius: 8px;
    border: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.step-card:hover {
    border-color: var(--border-color);
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #0d1117;
    /* Darker circle */
    border: 1px solid var(--border-color);
    color: #3fb950;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

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

.step-card a {
    color: #3fb950;
    text-decoration: none;
}

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

/* Commands Section */
.commands-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.commands-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.command-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.command-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-color);
}

.cmd-header {
    margin-bottom: 16px;
}

.cmd-text {
    font-family: monospace;
    background: rgba(56, 139, 253, 0.15);
    /* Blue-ish tint like terminal selection */
    color: #58a6ff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.command-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.command-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Features Section */
.features-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background-color: #0d1117;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    text-align: center;
}

.feature-item h3 {
    margin-bottom: 16px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
}

/* About Section */
.about-section {
    padding: 80px 0;
    background-color: var(--bg-color);
    border-top: 1px solid var(--border-color);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

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

.about-content p:last-child {
    margin-bottom: 0;
}

.about-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    background-color: #0d1117;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card-bg);
    padding: 24px;
    border-radius: 8px;
    border: 1px solid transparent;
}

.faq-item h3 {
    margin-bottom: 12px;
    font-size: 1.125rem;
    color: var(--text-primary);
}

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

.faq-item strong {
    color: #3fb950;
}

/* Footer */
.site-footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.disclaimer {
    margin-top: 16px;
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    visibility: visible;
    bottom: 32px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-section {
        padding: 40px 0;
    }

    .promo-box {
        padding: 24px;
    }

    .tagline {
        font-size: 1.25rem;
    }
}

/* Comparison Tables */
.comparison-section {
    padding: 80px 0;
    background-color: var(--bg-color);
}

.comparison-table-container {
    overflow-x: auto;
    margin-top: 40px;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--card-bg);
    min-width: 600px;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: #0d1117;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.comparison-table th.highlight {
    color: #3fb950;
    border-bottom: 2px solid #3fb950;
}

.comparison-table td {
    color: var(--text-secondary);
    font-size: 1rem;
}

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

.comparison-table tr:hover td {
    background-color: rgba(255, 255, 255, 0.02);
}

.check-icon {
    color: #3fb950;
    font-weight: bold;
}

.cross-icon {
    color: #f85149;
    font-weight: bold;
}

/* Documentation Pages */
.doc-page {
    background-color: var(--bg-color);
}

.doc-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.doc-content h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    text-align: center;
}

.doc-intro {
    font-size: 1.25rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.doc-section {
    margin-bottom: 60px;
}

.doc-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.doc-section h3 {
    font-size: 1.5rem;
    margin: 32px 0 16px;
    color: var(--text-primary);
}

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

.doc-section ul {
    list-style-type: disc;
    margin-left: 24px;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.doc-section li {
    margin-bottom: 8px;
}

/* Feature List in Docs */
.feature-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 24px;
}

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

.feature-card p {
    font-size: 0.95rem;
    margin-bottom: 0;
}

/* Navigation Updates */
.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        /* Full width for nav */
    }

    .nav-links {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 8px;
        /* Space for scrollbar */
        gap: 20px;
        -webkit-overflow-scrolling: touch;
        /* Smooth scroll on iOS */
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE/Edge */
        justify-content: flex-start;
        /* Align left to allow scrolling */
        padding-left: 4px;
        padding-right: 4px;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
        /* Chrome/Safari */
    }

    .nav-links a {
        font-size: 0.9rem;
        padding: 4px 8px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 4px;
    }

    .comparison-table-container {
        margin-left: -20px;
        margin-right: -20px;
        border-radius: 0;
        border-left: none;
        border-right: none;
        overflow-x: auto;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px 16px;
        /* Reduced padding */
        font-size: 0.9rem;
    }

    .hero-split {
        flex-direction: column;
        text-align: center;
        padding: 40px 0;
    }

    .hero-split .hero-content {
        text-align: center;
        padding-right: 0;
        margin-bottom: 32px;
    }

    .hero-split h1 {
        font-size: 2.25rem;
        /* Smaller font */
    }

    .hero-split .hero-promo {
        width: 100%;
        max-width: 100%;
        /* Full width */
    }

    .promo-box {
        padding: 24px;
    }
}

/* Design Refinements */

/* Background Gradient */
body {
    background: radial-gradient(circle at 50% 0%, #1a202c 0%, #0a0a0a 60%);
    background-attachment: fixed;
}

/* Glassmorphism */
.glass-panel {
    background: rgba(22, 27, 34, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(48, 54, 61, 0.6);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Split Hero Layout */
.hero-split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 60px 0;
    gap: 40px;
}

.hero-split .hero-content {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.hero-split h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    line-height: 1.1;
}

.hero-split .subheadline {
    margin: 0 0 32px 0;
    text-align: left;
    font-size: 1.25rem;
    max-width: 600px;
}

.hero-split .hero-promo {
    flex: 0 0 380px;
}

.hero-split .promo-box {
    margin-bottom: 0;
    background: rgba(22, 27, 34, 0.8);
    backdrop-filter: blur(10px);
}

/* Refined Typography */
h1,
h2,
h3 {
    letter-spacing: -0.02em;
}

.nav-links a {
    font-size: 0.95rem;
    letter-spacing: -0.01em;
}