/* ===== CSS Variables / Design Tokens ===== */
        :root {
            --clr-primary: #2d6a4f;
            --clr-primary-light: #40916c;
            --clr-primary-lighter: #52b788;
            --clr-primary-pale: #b7e4c7;
            --clr-primary-bg: #d8f3dc;
            --clr-accent: #1b4332;
            --clr-accent-gold: #d4a259;
            --clr-bg: #f0faf4;
            --clr-white: #ffffff;
            --clr-text: #1b1b1b;
            --clr-text-muted: #555;
            --clr-text-light: #777;
            --clr-border: #c8e6d0;
            --clr-winner: #d4edda;
            --clr-winner-text: #155724;
            --radius: 16px;
            --radius-sm: 10px;
            --shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
            --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.10);
            --transition: 0.3s cubic-bezier(.4, 0, .2, 1);
        }

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

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background: var(--clr-bg);
            color: var(--clr-text);
            line-height: 1.65;
            -webkit-font-smoothing: antialiased;
            -webkit-tap-highlight-color: transparent;
            overflow-x: hidden;
        }

        img {
            max-width: 100%;
            display: block;
        }

        a {
            text-decoration: none;
            color: inherit;
        }

        button {
            cursor: pointer;
            font-family: inherit;
        }

        /* ===== Header / Navbar ===== */
        .navbar {
            position: sticky;
            top: 0;
            z-index: 100;
            background: rgba(255, 255, 255, 0.85);
            backdrop-filter: blur(16px);
            border-bottom: 1px solid var(--clr-border);
            padding: 0 2rem;
        }

        .navbar-inner {
            max-width: 1200px;
            margin: 0 auto;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 68px;
        }

        .logo {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--clr-primary);
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }

        .logo svg {
            width: 30px;
            height: 30px;
        }

        .nav-links {
            display: flex;
            gap: 2rem;
            list-style: none;
        }

        .nav-links a {
            font-weight: 500;
            font-size: 0.95rem;
            color: var(--clr-text-muted);
            transition: color var(--transition);
            position: relative;
        }

        .nav-links a::after {
            content: '';
            position: absolute;
            bottom: -4px;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--clr-primary-lighter);
            transition: width var(--transition);
        }

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

        .nav-links a:hover::after {
            width: 100%;
        }

        .mobile-toggle {
            display: none;
            background: none;
            border: none;
            font-size: 1.6rem;
            color: var(--clr-primary);
        }

        /* ===== Hero ===== */
        .hero {
            background: linear-gradient(160deg, var(--clr-accent) 0%, var(--clr-primary) 50%, var(--clr-primary-lighter) 100%);
            color: var(--clr-white);
            text-align: center;
            padding: 6rem 2rem 5rem;
            position: relative;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: -40%;
            right: -20%;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
            border-radius: 50%;
        }

        .hero::after {
            content: '';
            position: absolute;
            bottom: -30%;
            left: -15%;
            width: 500px;
            height: 500px;
            background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
            border-radius: 50%;
        }

        .hero h1 {
            font-size: clamp(2rem, 5vw, 3.2rem);
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 1rem;
            position: relative;
            z-index: 1;
        }

        .hero p {
            font-size: 1.15rem;
            opacity: 0.9;
            max-width: 600px;
            margin: 0 auto 2rem;
            position: relative;
            z-index: 1;
        }

        .hero-cta {
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
            background: var(--clr-white);
            color: var(--clr-primary);
            padding: 0.85rem 2rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 1rem;
            transition: transform var(--transition), box-shadow var(--transition);
            position: relative;
            z-index: 1;
        }

        .hero-cta:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
        }

        /* ===== Section Wrapper ===== */
        .section {
            max-width: 1200px;
            margin: 0 auto;
            padding: 4rem 2rem;
        }

        .section-title {
            text-align: center;
            font-size: 1.8rem;
            font-weight: 700;
            color: var(--clr-accent);
            margin-bottom: 0.5rem;
        }

        .section-subtitle {
            text-align: center;
            color: var(--clr-text-muted);
            margin-bottom: 3rem;
            font-size: 1.05rem;
        }

        /* ===== Comparison Tool ===== */
        .tool-card {
            background: var(--clr-white);
            border-radius: var(--radius);
            box-shadow: var(--shadow-lg);
            padding: 2.5rem;
            margin-bottom: 2rem;
        }

        .tool-controls {
            display: grid;
            grid-template-columns: 1fr 1fr auto 1fr;
            gap: 1.25rem;
            align-items: end;
        }

        .form-group label {
            display: block;
            font-size: 0.8rem;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--clr-text-muted);
            margin-bottom: 0.45rem;
        }

        .form-group select,
        .form-group input {
            width: 100%;
            padding: 0.75rem 1rem;
            border: 2px solid var(--clr-border);
            border-radius: var(--radius-sm);
            font-size: 0.95rem;
            font-family: inherit;
            background: var(--clr-bg);
            color: var(--clr-text);
            transition: border-color var(--transition);
            appearance: auto;
        }

        .form-group select:focus,
        .form-group input:focus {
            outline: none;
            border-color: var(--clr-primary-lighter);
        }

        .amount-row {
            display: flex;
            gap: 0.5rem;
        }

        .amount-row input {
            flex: 1.5;
        }

        .amount-row select {
            flex: 1;
        }

        .vs-badge {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 48px;
            height: 48px;
            background: var(--clr-primary-bg);
            color: var(--clr-primary);
            border-radius: 50%;
            font-weight: 800;
            font-size: 0.85rem;
            align-self: end;
            margin-bottom: 0.25rem;
        }

        .btn-compare {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 0.5rem;
            width: 100%;
            padding: 0.85rem 2rem;
            min-height: 48px;
            background: linear-gradient(135deg, var(--clr-primary), var(--clr-primary-lighter));
            color: var(--clr-white);
            border: none;
            border-radius: var(--radius-sm);
            font-size: 1rem;
            font-weight: 700;
            margin-top: 1.5rem;
            transition: transform var(--transition), box-shadow var(--transition);
            touch-action: manipulation;
        }

        .btn-compare:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(45, 106, 79, 0.3);
        }

        .btn-compare:active {
            transform: translateY(0);
        }

        /* ===== Results ===== */
        .results-area {
            display: none;
        }

        .results-area.active {
            display: block;
            animation: fadeIn 0.5s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
                transform: translateY(12px);
            }

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

        .results-header {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 1rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
        }

        .seed-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            padding: 0.5rem 1.2rem;
            border-radius: 50px;
            font-weight: 700;
            font-size: 0.95rem;
        }

        .seed-badge.seed-a {
            background: #dbeafe;
            color: #1e40af;
        }

        .seed-badge.seed-b {
            background: #fce7f3;
            color: #9d174d;
        }

        /* Results Table */
        .results-table-wrap {
            overflow-x: auto;
            border-radius: var(--radius-sm);
            border: 1px solid var(--clr-border);
            margin-bottom: 2.5rem;
            -webkit-overflow-scrolling: touch;
            position: relative;
        }

        .results-table {
            width: 100%;
            border-collapse: collapse;
            min-width: 420px;
        }

        .results-table th,
        .results-table td {
            padding: 0.85rem 1.25rem;
            text-align: center;
            font-size: 0.92rem;
        }

        .results-table thead th {
            background: var(--clr-primary);
            color: var(--clr-white);
            font-weight: 600;
            text-transform: uppercase;
            font-size: 0.78rem;
            letter-spacing: 0.06em;
        }

        .results-table thead th:first-child {
            text-align: left;
        }

        .results-table tbody td:first-child {
            text-align: left;
            font-weight: 600;
            color: var(--clr-accent);
        }

        .results-table tbody tr {
            border-bottom: 1px solid var(--clr-border);
        }

        .results-table tbody tr:hover {
            background: var(--clr-primary-bg);
        }

        .results-table tbody tr:last-child {
            border-bottom: none;
        }

        .winner-cell {
            background: var(--clr-winner) !important;
            color: var(--clr-winner-text);
            font-weight: 700;
            position: relative;
        }

        .winner-cell::after {
            content: '🏆';
            font-size: 0.75rem;
            margin-left: 4px;
        }

        /* Charts */
        .charts-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 2rem;
            min-width: 0;
        }

        .chart-card {
            background: var(--clr-white);
            border-radius: var(--radius-sm);
            padding: 1.5rem;
            border: 1px solid var(--clr-border);
            min-width: 0;
            overflow: hidden;
        }

        .chart-card h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--clr-accent);
            margin-bottom: 1rem;
            text-align: center;
        }

        .chart-wrap {
            position: relative;
            width: 100%;
        }

        /* ===== Feature Cards ===== */
        .features-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 2rem;
        }

        .feature-card {
            background: var(--clr-white);
            border-radius: var(--radius);
            padding: 2rem;
            text-align: center;
            box-shadow: var(--shadow);
            transition: transform var(--transition), box-shadow var(--transition);
            border: 1px solid transparent;
        }

        .feature-card:hover {
            transform: translateY(-6px);
            box-shadow: var(--shadow-lg);
            border-color: var(--clr-primary-pale);
        }

        .feature-icon {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 64px;
            height: 64px;
            background: var(--clr-primary-bg);
            color: var(--clr-primary);
            border-radius: 16px;
            font-size: 1.8rem;
            margin-bottom: 1.25rem;
        }

        .feature-card h3 {
            font-size: 1.15rem;
            font-weight: 700;
            color: var(--clr-accent);
            margin-bottom: 0.5rem;
        }

        .feature-card p {
            font-size: 0.92rem;
            color: var(--clr-text-muted);
            line-height: 1.6;
        }

        /* ===== Footer ===== */
        .footer {
            background: var(--clr-accent);
            color: rgba(255, 255, 255, 0.75);
            text-align: center;
            padding: 2.5rem 2rem;
            font-size: 0.88rem;
        }

        .footer strong {
            color: var(--clr-primary-pale);
        }

        .footer .disclaimer {
            margin-top: 0.75rem;
            font-size: 0.8rem;
            opacity: 0.6;
            max-width: 600px;
            margin-left: auto;
            margin-right: auto;
        }

        /* ===== Responsive ===== */
        @media (max-width: 768px) {

            /* --- Nav --- */
            .nav-links {
                display: none;
            }

            .nav-links.open {
                display: flex;
                flex-direction: column;
                position: absolute;
                top: 68px;
                left: 0;
                right: 0;
                background: var(--clr-white);
                padding: 1.5rem 2rem;
                gap: 1.25rem;
                border-bottom: 1px solid var(--clr-border);
                box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
            }

            .mobile-toggle {
                display: block;
                min-height: 44px;
                min-width: 44px;
            }

            /* --- Hero --- */
            .hero {
                padding: 3rem 1.25rem 2.5rem;
            }

            .hero h1 {
                font-size: 1.75rem;
            }

            .hero p {
                font-size: 0.95rem;
            }

            /* --- Sections --- */
            .section {
                padding: 2.5rem 1.25rem;
            }

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

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

            /* --- Tool Card --- */
            .tool-card {
                padding: 1.25rem;
            }

            .tool-controls {
                grid-template-columns: 1fr;
            }

            .vs-badge {
                align-self: center;
                margin-bottom: 0;
            }

            .form-group select,
            .form-group input {
                min-height: 44px;
                font-size: 1rem;
            }

            /* --- Results Table --- */
            .results-table-wrap {
                touch-action: pan-x pan-y;
                /* Scroll-hint gradient on the right edge */
                background:
                    linear-gradient(to right, var(--clr-white) 30%, transparent),
                    linear-gradient(to left, var(--clr-white) 30%, transparent),
                    linear-gradient(to right, rgba(0, 0, 0, 0.08), transparent 40%),
                    linear-gradient(to left, rgba(0, 0, 0, 0.08), transparent 40%);
                background-position: left center, right center, left center, right center;
                background-repeat: no-repeat;
                background-size: 20px 100%, 20px 100%, 12px 100%, 12px 100%;
                background-attachment: local, local, scroll, scroll;
            }

            .results-table {
                min-width: 380px;
            }

            .results-table th,
            .results-table td {
                padding: 0.6rem 0.75rem;
                font-size: 0.8rem;
            }

            .results-table thead th {
                font-size: 0.7rem;
                position: sticky;
                top: 0;
                z-index: 2;
            }

            /* --- Charts --- */
            .charts-grid {
                grid-template-columns: 1fr;
                gap: 1.25rem;
            }

            .chart-card {
                padding: 1rem;
            }

            .chart-wrap {
                height: 260px;
                max-height: 300px;
            }

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

            .feature-card {
                padding: 1.5rem;
            }

            /* --- Results Header --- */
            .results-header {
                gap: 0.5rem;
            }

            .seed-badge {
                font-size: 0.82rem;
                padding: 0.4rem 0.9rem;
            }
        }

        /* Extra-small devices */
        @media (max-width: 400px) {
            .hero h1 {
                font-size: 1.45rem;
            }

            .results-table {
                min-width: 340px;
            }

            .chart-wrap {
                height: 220px;
            }

            .tool-card {
                padding: 1rem;
            }

            .section {
                padding: 2rem 1rem;
            }
        }
