:root {
    /* Premium Light SaaS Theme (NovusTools Standard) */
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --border-color: #E2E8F0;
    --border-hover: #CBD5E1;
    
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #94A3B8;
    
    --accent-primary: #3B82F6;
    --accent-hover: #2563EB;
    --accent-gradient: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%);
    --accent-bg: #EFF6FF;
    --accent-success: #10B981;
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Space Grotesk', var(--font-sans);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, monospace;
    
    --radius-md: 12px;
    --radius-lg: 24px;
    --transition-smooth: 0.2s ease-in-out;
}

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
* { margin: 0; padding: 0; box-sizing: border-box; }

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

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.text-accent { color: var(--accent-primary) !important; }

/* Dynamic H1 Gradient Accent Text */
.hero { text-align: center; padding: 60px 0 40px; position: relative; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 16px;
    font-family: var(--font-heading);
}
.hero .subtitle { color: var(--text-secondary); font-size: 1.15rem; max-width: 600px; margin: 0 auto 28px; font-weight: 400; }

/* Trust Badge */
.trust-badge {
    display: inline-flex; align-items: center; gap: 8px;
    border: 1px solid var(--border-color); padding: 8px 20px;
    border-radius: 100px; background: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.trust-badge span { color: var(--text-secondary); font-size: 0.85rem; font-weight: 500; }
.trust-badge svg { width: 16px; height: 16px; color: var(--accent-success); }

/* Header UI */
.glass-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}
.header-container {
    max-width: 1140px; margin: 0 auto; padding: 16px 24px;
    display: flex; justify-content: space-between; align-items: center;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text-primary); font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.desktop-nav { display: flex; gap: 32px; }
.desktop-nav a { color: var(--text-secondary); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: var(--transition-smooth); }
.desktop-nav a:hover { color: var(--accent-primary); }

#hamburger-btn { display: none; background: none; border: none; cursor: pointer; width: 24px; height: 18px; position: relative; z-index: 102; }
#hamburger-btn span { display: block; width: 100%; height: 2px; background-color: var(--text-primary); position: absolute; transition: var(--transition-smooth); border-radius: 2px; }
#hamburger-btn span:nth-child(1) { top: 0; }
#hamburger-btn span:nth-child(2) { top: 8px; }
#hamburger-btn span:nth-child(3) { top: 16px; }
#hamburger-btn.active span:nth-child(1) { top: 8px; transform: rotate(45deg); }
#hamburger-btn.active span:nth-child(2) { opacity: 0; }
#hamburger-btn.active span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.mobile-menu {
    position: fixed; top: 62px; left: 0; width: 100%;
    background: #ffffff; border-bottom: 1px solid var(--border-color);
    display: flex; flex-direction: column; padding: 24px; gap: 20px;
    transform: translateY(-150%); opacity: 0; pointer-events: none; transition: var(--transition-smooth); z-index: 99;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}
.mobile-menu.active { transform: translateY(0); opacity: 1; pointer-events: all; }
.mobile-menu a { color: var(--text-primary); text-decoration: none; font-size: 1.1rem; font-family: var(--font-heading); font-weight: 600; padding: 10px 0; border-bottom: 1px solid var(--border-color); }

/* Clean Light Bento Box */
.bento-box {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: var(--radius-lg); padding: 32px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    transition: var(--transition-smooth);
}
.bento-box:hover { border-color: var(--border-hover); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.calculator-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; align-items: start; }
.panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; }
.panel-header h2 { font-size: 1.25rem; font-weight: 700; font-family: var(--font-heading); color: var(--text-primary); }

/* Presets */
.presets-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.preset-btn { 
    background-color: var(--bg-page); color: var(--text-secondary); 
    border: 1px solid var(--border-color); padding: 6px 12px;
    font-size: 0.85rem; border-radius: 8px; cursor: pointer;
    font-family: var(--font-sans); font-weight: 500; transition: var(--transition-smooth);
}
.preset-btn:hover, .preset-btn.active { background-color: var(--accent-primary); border-color: var(--accent-primary); color: #FFFFFF; }

/* Core Fields & Inputs */
.input-group { margin-bottom: 24px; }
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.9rem; color: var(--text-primary); }
.metric-text { font-family: var(--font-mono); color: var(--accent-primary); font-weight: 600; font-size: 1.05rem; }

.custom-input { width: 100%; background: #ffffff; border: 1px solid var(--border-color); color: var(--text-primary); font-family: var(--font-mono); font-size: 1.15rem; font-weight: 600; padding: 12px 16px; border-radius: var(--radius-md); outline: none; transition: var(--transition-smooth); box-shadow: inset 0 1px 2px rgba(0,0,0,0.02); }
.custom-input:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }
.number-small { width: 120px; text-align: right; }

.select-wrapper { position: relative; width: 100%; }
.styled-select { width: 100%; background: #ffffff; border: 1px solid var(--border-color); color: var(--text-primary); padding: 12px 16px; padding-right: 40px; border-radius: var(--radius-md); font-family: var(--font-sans); font-size: 0.95rem; font-weight: 600; outline: none; cursor: pointer; appearance: none; -webkit-appearance: none; transition: var(--transition-smooth); box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.select-wrapper::after { content: ''; position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2224%22%20height%3D%2224%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%23475569%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E"); background-repeat: no-repeat; background-size: contain; pointer-events: none; }
.styled-select:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1); }

.label-with-value { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.styled-slider { -webkit-appearance: none; width: 100%; height: 6px; background: #E2E8F0; border-radius: 3px; outline: none; margin-top: 14px; }
.styled-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 2px solid var(--accent-primary); cursor: pointer; transition: transform 0.1s ease; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
.styled-slider::-webkit-slider-thumb:hover { transform: scale(1.15); }

/* Dashboard UI Layout */
.dashboard-panel { display: flex; flex-direction: column; background: #F8FAFC; border: 1px solid var(--border-color); position: sticky; top: 100px; }
.status-badge { font-size: 0.75rem; padding: 4px 10px; background: #D1FAE5; color: #065F46; border-radius: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }

.valuation-tiers { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.tier { padding: 16px; border: 1px solid var(--border-color); border-radius: var(--radius-md); display: grid; grid-template-columns: 1fr auto; align-items: center; background: #ffffff; transition: var(--transition-smooth); }
.tier.recommended { border-color: var(--accent-primary); background: var(--accent-bg); box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.1); }
.tier-label { font-size: 0.9rem; font-weight: 600; color: var(--text-primary); }
.tier.recommended .tier-label { color: var(--accent-primary); }
.tier-desc { grid-column: 1 / -1; font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }
.tier-value { font-family: var(--font-mono); font-size: 1.3rem; font-weight: 700; text-align: right; color: var(--text-primary); }
.tier-value.highlight { font-size: 1.8rem; color: var(--accent-primary); }

.market-score-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.score-item { padding: 16px; background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-md); }
.score-label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.02em; margin-bottom: 4px; }
.score-value { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 700; }

/* Buttons */
.action-btn { 
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; 
    width: 100%; padding: 14px 24px; border: none; outline: none;
    border-radius: var(--radius-md); font-family: var(--font-sans); 
    font-weight: 600; font-size: 1rem; cursor: pointer; 
    transition: var(--transition-smooth); text-decoration: none; text-align: center; 
}
.action-buttons-group { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.primary-btn { background: var(--accent-primary); color: #ffffff; box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2); }
.primary-btn:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3); }
.secondary-btn { background: #F1F5F9; color: #0F172A; border: 1px solid var(--border-color); }
.secondary-btn:hover { background: #E2E8F0; transform: translateY(-1px); }

/* Conversion Intercept Interface */
.resource-banner { background: #1E293B; border: none; border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; margin-bottom: 40px; position: relative; overflow: hidden; box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1); }
.pill-badge { display: inline-block; padding: 6px 14px; background: rgba(52, 211, 153, 0.15); color: #34D399; border-radius: 100px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 16px; border: 1px solid rgba(52, 211, 153, 0.3); }
.resource-content h2 { margin-bottom: 12px; font-size: 1.8rem; letter-spacing: -0.02em; color: #ffffff; font-family: var(--font-heading); }
.resource-content p { color: #94A3B8; margin-bottom: 24px; max-width: 580px; margin-inline: auto; font-size: 1rem; }
.resource-content .action-btn { width: auto; padding: 14px 32px; background: var(--accent-primary); }
.resource-content .action-btn:hover { background: var(--accent-hover); }

/* Structural Content Blocks */
.transparent-section { margin-top: 60px; }
.section-header-center { text-align: center; margin-bottom: 30px; }
.seo-data-section h2, .semantic-content h2, .faq-section h2, .section-header-center h2 { font-size: 1.6rem; font-family: var(--font-heading); letter-spacing: -0.02em; margin-bottom: 8px; color: var(--text-primary); }
.section-header-center p { color: var(--text-secondary); font-size: 1.05rem; }

.token-examples { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; margin-bottom: 40px; }
.token-example-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; padding: 24px; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border-color); }
.token-example-item svg { background: var(--accent-bg); padding: 12px; border-radius: 50%; width: 56px; height: 56px; }
.token-example-item strong { font-size: 1.1rem; color: var(--text-primary); }
.token-example-item span { font-size: 0.9rem; color: var(--text-secondary); }

/* FAQ Logic */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #ffffff; border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; transition: var(--transition-smooth); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item summary { padding: 20px; font-weight: 600; cursor: pointer; list-style: none; position: relative; font-size: 1.05rem; color: var(--text-primary); font-family: var(--font-heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--text-muted); transition: var(--transition-smooth); }
.faq-item[open] summary::after { content: '−'; color: var(--accent-primary); }
.faq-content { padding: 0 20px 20px; color: var(--text-secondary); font-size: 0.95rem; }

/* Ad Infrastructure */
.ad-slot { width: 100%; min-height: 90px; background: #F1F5F9; border: 1px dashed #CBD5E1; margin: 40px 0; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-md); color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-family: var(--font-mono); }

/* Footer */
.site-footer { border-top: 1px solid var(--border-color); padding: 48px 0; margin-top: 80px; background: #ffffff; }
.footer-content { display: flex; flex-direction: column; gap: 16px; align-items: center; }
.btn-back { color: var(--text-secondary); text-decoration: none; font-weight: 600; padding: 10px 24px; border: 1px solid var(--border-color); border-radius: 100px; transition: var(--transition-smooth); background: #F8FAFC; }
.btn-back:hover { background: var(--text-primary); color: #fff; border-color: var(--text-primary); }

/* Cookie Bar */
.cookie-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #0F172A; padding: 16px 24px; display: flex; justify-content: center; gap: 20px; align-items: center; z-index: 9999; transform: translateY(100%); transition: transform 0.3s ease-out; }
.cookie-bar.show { transform: translateY(0); }
.cookie-bar .action-btn { width: auto; padding: 8px 24px; }

/* --- CSS PRINT RULES (For perfect PDF reports) --- */
.print-header { display: none; }
@media print {
    .no-print, .ad-slot, .site-footer, .cookie-bar, .glass-header, .resource-banner { display: none !important; }
    body { background: white; color: black; padding: 0; }
    .bento-box { box-shadow: none; border: none; break-inside: avoid; margin: 0; padding: 0; }
    .calculator-grid { display: block; }
    .printable-report { padding: 40px; border: 1px solid #E2E8F0; border-radius: 12px; }
    .print-header { display: block; }
}

/* Responsive */
@media (max-width: 960px) {
    .calculator-grid { grid-template-columns: 1fr; gap: 24px; }
    .dashboard-panel { position: static; }
}
@media (max-width: 600px) {
    .desktop-nav { display: none; }
    #hamburger-btn { display: block; }
    .bento-box { padding: 20px; }
    .hero { padding: 40px 0 20px; }
    .cookie-bar { flex-direction: column; text-align: center; gap: 12px; }
    .cookie-bar button { width: 100%; }
}