*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
        :root {
            --bg: #0A0F0D; --bg-light: #0F1512; --bg-card: #121A16; --bg-card-hover: #1A2620;
            --gold: #34D399; --gold-dim: rgba(52, 211, 153, 0.12); --gold-glow: rgba(52, 211, 153, 0.3);
            --blue: #6EE7B7; --blue-dim: rgba(110, 231, 183, 0.12);
            --white: #F0FDF4; --text: #E2E8F0; --text-secondary: #94A3B8; --text-muted: #64748B;
            --border: rgba(255, 255, 255, 0.06); --border-light: rgba(255, 255, 255, 0.1);
            --success: #34D399; --warn: #FBBF24; --danger: #F87171;
            --radius: 16px; --radius-sm: 10px;
        }

        html { scroll-behavior: smooth; }
        body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
        ::selection { background: rgba(52, 211, 153, 0.25); color: var(--white); }

        body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 1px, transparent 1px), radial-gradient(ellipse 800px 600px at 30% 30%, rgba(52, 211, 153, 0.06), transparent), radial-gradient(ellipse 600px 800px at 70% 60%, rgba(110, 231, 183, 0.04), transparent); background-size: 32px 32px, 100% 100%, 100% 100%; }

        .container { max-width: 1000px; margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
        .heading { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; line-height: 1.15; }
        .heading-gradient { background: linear-gradient(135deg, #F0FDF4 30%, #34D399 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

        /* --- NAV --- */
        .nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 0 24px; transition: background 0.3s; background: rgba(10, 15, 13, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 1px 0 var(--border); }
        .nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 72px; }
        .nav-wordmark { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--white); text-decoration: none; letter-spacing: 3px; text-transform: uppercase; }
        .nav-wordmark span { color: var(--gold); }
        .nav-links { display: flex; align-items: center; gap: 32px; list-style: none; }
        .nav-link { color: var(--text-secondary); text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s; }
        .nav-link:hover, .nav-link.active { color: var(--white); }
        .nav-dropdown { position: relative; }
        .nav-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; font-family: inherit; cursor: pointer; padding: 0; }
        .nav-dropdown > .nav-link::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: 0.7; }
        .nav-dropdown-menu { position: absolute; top: calc(100% + 14px); left: 50%; min-width: 230px; transform: translateX(-50%) translateY(8px); opacity: 0; visibility: hidden; pointer-events: none; background: rgba(18, 26, 22, 0.98); border: 1px solid var(--border-light); border-radius: 12px; padding: 8px; box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35); transition: opacity 0.2s, transform 0.2s, visibility 0.2s; }
        .nav-dropdown-menu::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
        .nav-dropdown.open .nav-dropdown-menu, .nav-dropdown:hover .nav-dropdown-menu, .nav-dropdown:focus-within .nav-dropdown-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
        .nav-dropdown-menu a { display: block; color: var(--text-secondary); text-decoration: none; font-size: 0.84rem; font-weight: 600; padding: 10px 12px; border-radius: 8px; transition: color 0.2s, background 0.2s; }
        .nav-dropdown-menu a:hover { color: var(--white); background: var(--gold-dim); }
        .nav-buttons { display: flex; align-items: center; gap: 12px; }
        .btn-ghost { color: var(--text-secondary); background: none; border: 1px solid var(--border-light); padding: 8px 20px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: all 0.2s; }
        .btn-ghost:hover { color: var(--white); border-color: rgba(255, 255, 255, 0.2); }
        .btn-gold { background: linear-gradient(135deg, #34D399, #10B981); color: #fff; border: none; padding: 10px 24px; border-radius: 8px; font-size: 0.875rem; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; box-shadow: 0 2px 12px rgba(52, 211, 153, 0.25); }
        .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(52, 211, 153, 0.35); }
        .btn-gold-lg { padding: 14px 36px; font-size: 1rem; border-radius: 10px; }
        .nav-hamburger { display: none; background: none; border: none; cursor: pointer; }
        .nav-hamburger span { display: block; width: 26px; height: 3px; background: var(--gold); margin: 4px 0; border-radius: 2px; }
        .nav-mobile { display: none; position: fixed; top: 72px; left: 0; right: 0; background: rgba(10, 15, 13, 0.98); backdrop-filter: blur(20px); padding: 24px; border-bottom: 1px solid var(--border); z-index: 99; }
        .nav-mobile.open { display: block; }
        .nav-mobile a { display: block; color: var(--text); text-decoration: none; padding: 12px 0; font-size: 1rem; font-weight: 500; border-bottom: 1px solid var(--border); }
        .nav-mobile a:last-child { border: none; }

        /* --- HEADER --- */
        .tool-header { padding: 140px 24px 32px; text-align: center; position: relative; z-index: 1; }
        .tool-badge { display: inline-block; background: var(--gold-dim); color: var(--gold); font-size: 0.7rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 16px; }
        .tool-header h1 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 5vw, 3rem); color: var(--white); line-height: 1.1; letter-spacing: -0.5px; margin-bottom: 16px; max-width: 720px; margin-left: auto; margin-right: auto; }
        .tool-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 580px; margin: 0 auto; line-height: 1.6; }

        /* --- CALCULATOR --- */
        .calc-section { padding: 0 24px 32px; }
        .calc-card { background: var(--bg-card); border: 1px solid var(--border-light); border-radius: 20px; padding: 40px; max-width: 860px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); }

        .calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

        .calc-inputs h2, .calc-outputs h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--white); margin-bottom: 20px; letter-spacing: 0.3px; text-transform: uppercase; }

        .input-group { margin-bottom: 18px; }
        .input-group label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
        .input-group .help { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 8px; }
        .input-wrap { position: relative; }
        .input-prefix, .input-suffix { position: absolute; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-weight: 500; font-size: 0.95rem; pointer-events: none; }
        .input-prefix { left: 14px; }
        .input-suffix { right: 14px; }
        .input-wrap input { width: 100%; background: var(--bg); border: 1px solid var(--border-light); border-radius: 10px; padding: 12px 14px 12px 30px; color: var(--white); font-size: 0.95rem; font-weight: 600; font-family: 'JetBrains Mono', monospace; transition: border-color 0.2s, background 0.2s; }
        .input-wrap input:focus { outline: none; border-color: var(--gold); background: var(--bg-light); }
        .input-wrap.suffix input { padding: 12px 30px 12px 14px; }
        .input-wrap.plain input { padding: 12px 14px; }

        .result-card { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
        .result-card.hero { background: linear-gradient(135deg, rgba(52, 211, 153, 0.15), rgba(110, 231, 183, 0.08)); border: 1px solid var(--gold); padding: 24px; }
        .result-label { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
        .result-card.hero .result-label { color: var(--gold); }
        .result-value { font-family: 'JetBrains Mono', monospace; font-weight: 700; font-size: 1.8rem; color: var(--white); letter-spacing: -0.5px; }
        .result-card.hero .result-value { font-size: 2.6rem; color: var(--white); }
        .result-sub { font-size: 0.82rem; color: var(--text-secondary); margin-top: 4px; }
        .result-card.hero .result-sub { color: var(--blue); }

        .verdict { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 14px; background: var(--bg-card); border-radius: 8px; font-size: 0.85rem; font-weight: 500; }
        .verdict.good { color: var(--success); border-left: 3px solid var(--success); }
        .verdict.warn { color: var(--warn); border-left: 3px solid var(--warn); }
        .verdict.bad { color: var(--danger); border-left: 3px solid var(--danger); }

        .share-row { margin-top: 20px; display: flex; gap: 8px; align-items: center; }
        .share-btn { background: var(--bg); border: 1px solid var(--border-light); color: var(--text-secondary); padding: 8px 14px; border-radius: 8px; font-size: 0.78rem; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: all 0.2s; font-family: inherit; }
        .share-btn:hover { color: var(--gold); border-color: var(--gold-dim); }
        .share-btn.copied { color: var(--gold); border-color: var(--gold); }

        /* --- EXPLAINER --- */
        .explainer { padding: 48px 24px; max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
        .explainer h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--white); margin: 32px 0 16px; }
        .explainer h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin: 24px 0 10px; }
        .explainer p { color: var(--text-secondary); font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
        .explainer strong { color: var(--white); }
        .explainer a { color: var(--gold); text-decoration: underline; }
        .explainer a:hover { color: var(--blue); }
        .explainer code { font-family: 'JetBrains Mono', monospace; background: var(--bg-card); color: var(--gold); padding: 2px 8px; border-radius: 4px; font-size: 0.9em; }
        .explainer ul { color: var(--text-secondary); margin: 0 0 16px 24px; font-size: 1rem; line-height: 1.75; }
        .explainer li { margin-bottom: 4px; }

        .formula-box { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; padding: 20px 24px; margin: 20px 0; font-family: 'JetBrains Mono', monospace; color: var(--text); font-size: 0.95rem; line-height: 1.8; }
        .formula-box span.var { color: var(--gold); font-weight: 600; }

        .bench-table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 0.9rem; }
        .bench-table thead th { background: var(--bg-card); color: var(--white); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border-light); font-family: 'Plus Jakarta Sans', sans-serif; }
        .bench-table tbody td { padding: 12px 16px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
        .bench-table tbody tr:hover td { background: var(--bg-card); }

        /* --- FAQ --- */
        .faq-section { padding: 0 24px 48px; max-width: 720px; margin: 0 auto; position: relative; z-index: 1; }
        .faq-section h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: 1.5rem; color: var(--white); margin-bottom: 24px; }
        .faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 10px; overflow: hidden; background: var(--bg-card); }
        .faq-q { width: 100%; background: none; border: none; padding: 18px 22px; text-align: left; color: var(--white); font-size: 0.95rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-family: inherit; }
        .faq-q::after { content: '+'; font-size: 1.3rem; color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
        .faq-item.open .faq-q::after { transform: rotate(45deg); }
        .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
        .faq-item.open .faq-a { max-height: 300px; }
        .faq-a-inner { padding: 0 22px 20px; color: var(--text-secondary); font-size: 0.92rem; line-height: 1.7; }

        /* --- BOTTOM CTA --- */
        .bottom-cta { padding: 80px 24px; text-align: center; position: relative; z-index: 1; }
        .bottom-cta h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.5px; max-width: 600px; margin: 0 auto 12px; }
        .bottom-cta .sub { color: var(--text-secondary); font-size: 1.05rem; margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; }

        /* --- FOOTER --- */
        .footer { border-top: 1px solid var(--border); padding: 40px 24px 32px; position: relative; z-index: 1; }
        .footer-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
        .footer-left { font-size: 0.82rem; color: var(--text-muted); }
        .footer-left a { color: var(--text-secondary); text-decoration: none; margin-left: 12px; }
        .footer-left a:hover { color: var(--gold); }
        .footer-right { display: flex; gap: 16px; }
        .footer-right a { color: var(--text-muted); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
        .footer-right a:hover { color: var(--gold); }

        @media (max-width: 768px) {
            .nav-links { display: none; }
            .nav-buttons .btn-ghost { display: none; }
            .nav-dropdown-menu { display: none; }
            .nav-hamburger { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 10px; }
            .tool-header { padding: 152px 24px 24px; }
            .calc-card { padding: 24px; }
            .calc-grid { grid-template-columns: 1fr; gap: 32px; }
            .result-card.hero .result-value { font-size: 2rem; }
            .footer-inner { flex-direction: column; text-align: center; }
        }
