:root {
    --primary: #22c55e;
    --primary-hover: #16a34a;
    --secondary: #10b981;
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.5);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #f43f5e;
    --glass: rgba(15, 23, 42, 0.4);
    --border: rgba(255, 255, 255, 0.05);
    --selection: rgba(34, 197, 94, 0.2);
}

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

::selection {
    background: var(--selection);
    color: var(--primary);
}

/* Tech Box Section */
.tech-box {
    background: var(--bg-card);
    border-radius: 32px;
    padding: 4rem;
    border: 1px solid var(--border);
    margin-bottom: 6rem;
    backdrop-filter: blur(10px);
}

.tech-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    align-items: center;
}

.tech-content {
    flex: 1.2;
    min-width: 300px;
}

.tech-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-align: left;
}

.tech-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.tech-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.tech-list li {
    display: flex;
    gap: 1rem;
    align-items: center;
    font-size: 1.05rem;
}

.tech-list i {
    color: var(--primary);
    font-size: 1.2rem;
}

.tech-code {
    flex: 1;
    min-width: 300px;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.tech-code::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary);
}

.tech-code pre {
    margin: 0;
}

.tech-code code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.code-comment {
    color: #64748b;
    font-style: italic;
}

.code-keyword {
    color: var(--primary);
    font-weight: 600;
}

::-webkit-scrollbar {
    width: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
    scroll-behavior: smooth;
}

/* Background Animation */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #064e3b 0%, #020617 100%);
}

.bg-blob {
    position: fixed;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    filter: blur(80px);
    animation: move 25s infinite alternate ease-in-out;
}

@keyframes move {
    0% {
        transform: translate(-20%, -20%) scale(1);
    }

    100% {
        transform: translate(30%, 30%) scale(1.1);
    }
}

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

/* Header */
header {
    padding: 6rem 0 0 0;
    /* Changed from 100vh to padding */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.logo-main {
    width: 80px;
    filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.5));
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    background: linear-gradient(to right, #fff, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -3px;
}

.subtitle {
    font-size: 1.2rem;
    /* Reduced from 1.5rem */
    color: var(--text-muted);
    max-width: 600px;
    margin-bottom: 2.5rem;
    /* Reduced from 3rem */
}

.cta-group {
    display: flex;
    gap: 1.5rem;
}

.btn {
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1.1rem;
}

.btn-primary {
    background: var(--primary);
    color: #020617;
    /* Darker text for better contrast on green */
    box-shadow: 0 10px 25px -5px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 35px -10px rgba(34, 197, 94, 0.6);
    background: var(--primary-hover);
}

.btn-outline {
    border: 2px solid var(--border);
    color: white;
}

.btn-outline:hover {
    background: var(--border);
    transform: translateY(-3px);
}

/* Features */
section {
    padding: 6rem 0;
    /* Reduced from 8rem */
}

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

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

.card {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(34, 197, 94, 0.5);
    background: rgba(30, 41, 59, 0.9);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

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

.card p {
    color: var(--text-muted);
}

/* Stats Section */
#stats {
    background: rgba(15, 23, 42, 0.4);
}

.stats-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.release-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: var(--glass);
    border-radius: 20px;
    border: 1px solid var(--border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.release-row:hover {
    background: rgba(30, 41, 59, 0.4);
    transform: scale(1.02);
    border-color: rgba(34, 197, 94, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.release-info h4 {
    font-size: 1.3rem;
    color: #fff;
    font-weight: 700;
}

.release-info span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.download-pill {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.1), rgba(16, 185, 129, 0.1));
    color: #fff;
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 700;
    border: 1px solid rgba(34, 197, 94, 0.2);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.download-pill i {
    color: var(--primary);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 4px;
}

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

/* Preview */
.app-preview {
    margin-top: 3.5rem;
    /* Reduced from 5rem */
    width: 100%;
    max-width: 900px;
    /* Slightly reduced from 1000px */
    border-radius: 20px;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

/* Comparison Table */
.comparison-container {
    overflow-x: auto;
    margin-top: 2rem;
    padding-bottom: 2rem;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border);
}

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

.comparison-table th {
    background: rgba(15, 23, 42, 0.8);
    font-weight: 700;
    color: var(--text-main);
}

.comparison-table th.highlight {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.comparison-table td.high-check {
    color: var(--primary);
    font-weight: 800;
}

.comparison-table td.bad-cross {
    color: var(--accent);
}

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

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

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

    .subtitle {
        font-size: 1.1rem;
    }

    .cta-group {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        text-align: center;
    }

    .tech-box {
        padding: 2rem;
    }

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

    .comparison-table th, 
    .comparison-table td {
        padding: 1rem;
        font-size: 0.9rem;
    }
}