:root {
    --primary: #005f73;
    --secondary: #0a9396;
    --accent: #ee9b00;
    --accent-hover: #bb7e00;
    --bg-dark: #001219;
    --card-bg: rgba(255, 255, 255, 0.05);
    --text: #e9ecef;
    --text-muted: #94d2bd;
    --white: #ffffff;
    --font-header: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

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

body {
    background: var(--bg-dark);
    color: var(--text);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    clear: both;
}

@media (min-width: 1200px) {
    .container {
        max-width: 1200px;
    }
}

/* Header */
header {
    background: rgba(0, 18, 25, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: var(--font-header);
    color: var(--secondary);
    text-decoration: none;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

/* Search Trigger */
.search-trigger {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.6rem 1.25rem;
    border-radius: 0.75rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s;
}

.search-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary);
}

.search-kb-hint {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0.6;
    margin-left: 0.5rem;
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 18, 25, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.search-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

.search-container {
    width: 100%;
    max-width: 900px;
    max-height: 85vh;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.search-overlay:not(.hidden) .search-container {
    transform: translateY(0);
}

.search-header {
    padding: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-icon {
    color: var(--secondary);
}

#calc-search {
    width: 100%;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    font-family: var(--font-header);
    color: var(--white);
    padding: 0.5rem 0;
}

#calc-search:focus {
    outline: none;
    box-shadow: none;
}

.close-btn {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    color: var(--text-muted);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 0, 0, 0.2);
    color: var(--white);
}

.search-results-grid {
    padding: 2rem;
    overflow-y: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
}

.search-category-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.search-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.search-result-item:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--secondary);
    color: var(--white);
    transform: translateX(4px);
}

.item-arrow {
    opacity: 0;
    color: var(--secondary);
    transition: opacity 0.2s;
}

.search-result-item:hover .item-arrow {
    opacity: 1;
}

.search-default-view {
    padding: 2rem;
    animation: fadeIn 0.3s ease;
}

.search-popular-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.popular-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    text-decoration: none;
    transition: all 0.2s;
}

.popular-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--secondary);
    transform: translateY(-2px);
}

.popular-icon {
    font-size: 1.5rem;
    background: rgba(var(--secondary-rgb), 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.75rem;
}

.popular-info {
    display: flex;
    flex-direction: column;
}

.popular-title {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9rem;
}

.popular-desc {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.search-results-grid.hidden {
    display: none;
}

/* Related Tools */
.related-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.related-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    transition: transform 0.2s, border-color 0.2s;
}

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

.category-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.related-info h3 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.related-info p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.related-arrow {
    color: var(--secondary);
    opacity: 0.5;
    transition: opacity 0.2s;
}

.related-card:hover .related-arrow {
    opacity: 1;
}

/* Hero Section */
.hero {
    padding: 6rem 0 4rem;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at top right, rgba(10, 147, 150, 0.15), transparent 50%),
                radial-gradient(circle at bottom left, rgba(0, 95, 115, 0.15), transparent 50%);
}

h1 {
    font-family: var(--font-header);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.text-gradient {
    background: linear-gradient(to right, #94d2bd, #0a9396, #005f73);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    line-height: 1.6;
}

@media (min-width: 1024px) {
    .subtitle {
        font-size: 1.4rem;
    }
}

/* Breadcrumbs */
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 2rem;
    justify-content: center;
}

.breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: var(--secondary);
}

.breadcrumbs .sep {
    opacity: 0.3;
}

.breadcrumbs .current {
    color: var(--white);
    opacity: 0.8;
}

/* Calculator Card */
.calculator-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 2.5rem;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.glass {
    backdrop-filter: blur(20px);
}

.input-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (min-width: 640px) {
    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .input-group:first-child {
        grid-column: span 2;
    }
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
}

input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(10, 147, 150, 0.2);
}

.btn-primary {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    border: none;
    border-radius: 0.75rem;
    padding: 1.125rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, filter 0.2s;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

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

/* Results Section */
.results {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.result-header {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.result-value {
    font-family: var(--font-header);
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.result-subtext {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

/* Content Sections */
.content {
    padding: 4rem 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

article h2 {
    font-family: var(--font-header);
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--secondary);
}

article p {
    margin-bottom: 1.5rem;
    color: rgba(233, 236, 239, 0.8);
}

.step-list {
    list-style: none;
    counter-reset: steps;
}

.step-list li {
    counter-increment: steps;
    padding-left: 3rem;
    position: relative;
    margin-bottom: 1.5rem;
}

.step-list li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    top: 0;
    width: 2rem;
    height: 2rem;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.tip-box {
    background: rgba(238, 155, 0, 0.1);
    border-left: 4px solid var(--accent);
    padding: 1.5rem;
    border-radius: 0 1rem 1rem 0;
    display: flex;
    gap: 1rem;
}

.tip-icon {
    font-size: 1.5rem;
}

/* Lead Generation */
.lead-gen {
    padding: 4rem 0;
}

.lead-card {
    background: linear-gradient(135deg, rgba(238, 155, 0, 0.05), rgba(10, 147, 150, 0.05));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    padding: 3rem;
    text-align: center;
}

.lead-card h3 {
    font-family: var(--font-header);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.lead-card p {
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.inline-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .inline-form {
        flex-direction: row;
    }
    .inline-form input {
        flex: 1;
    }
}

.btn-accent {
    background: var(--accent);
    color: var(--bg-dark);
    border: none;
    border-radius: 0.75rem;
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-accent:hover {
    background: var(--accent-hover);
}

.success-msg {
    margin-top: 1rem;
    color: var(--secondary);
    font-weight: 600;
}

/* Utils */
.hidden { display: none; }
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    padding: 3rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 4rem;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: var(--white);
}
/* AI Snippet */
.ai-snippet { margin: 1.5rem 0 2rem 0; padding: 1.25rem; border-left: 3px solid var(--secondary); background: rgba(10, 147, 150, 0.05); border-radius: 0 1rem 1rem 0; }
.ai-label { display: flex; align-items: center; gap: 0.5rem; color: var(--secondary); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.ai-snippet p { margin: 0; color: var(--white); font-size: 0.95rem; line-height: 1.5; opacity: 0.9; }
.subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }
/* Stage 7: Hub & Wizard Styles */
.hero-hub { padding: 4rem 0; text-align: center; }
.wizard-container { max-width: 800px; margin: 3rem auto; padding: 2.5rem; text-align: left; }
.wizard-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.wizard-opt { background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); padding: 1.25rem; border-radius: 1rem; color: var(--white); font-weight: 600; cursor: pointer; transition: all 0.2s; text-align: left; }
.wizard-opt:hover { background: rgba(10, 147, 150, 0.2); border-color: var(--secondary); transform: translateY(-3px); }
.category-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (min-width: 640px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .category-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.category-card { 
    display: flex; 
    align-items: center; 
    gap: 1.5rem; 
    padding: 1.75rem; 
    text-decoration: none; 
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}
.category-card:hover { 
    background: rgba(10, 147, 150, 0.15);
    border-color: var(--secondary); 
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.5), 0 0 20px rgba(10, 147, 150, 0.2);
}
.category-card h3 {
    color: var(--white);
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}
.category-card span, .category-card p {
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    transition: color 0.2s;
}
.category-card:hover h3 {
    color: var(--secondary);
}
.category-card:hover span, .category-card:hover p {
    color: var(--white);
    opacity: 1;
}
.cat-icon { 
    font-size: 1.75rem; 
    background: linear-gradient(135deg, rgba(238, 155, 0, 0.1), rgba(10, 147, 150, 0.1)); 
    width: 64px; 
    height: 64px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.category-hero { 
    padding: 6rem 1.5rem 3rem; 
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tool-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); 
    gap: 2.5rem; 
    margin: 4rem auto;
    max-width: 1200px;
    padding: 0 1.5rem;
    width: 100%;
}

@media (min-width: 1400px) {
    .tool-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.tool-footer { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-top: 2rem; 
    padding-top: 1.5rem; 
    border-top: 1px solid rgba(255, 255, 255, 0.08); 
    color: var(--text-muted);
}
.btn-text { color: var(--secondary); font-weight: 700; font-size: 0.85rem; }
.trust-stats { display: flex; justify-content: space-around; padding: 3rem; margin-top: 4rem; text-align: center; }
.stat-num { display: block; font-size: 2.5rem; font-weight: 800; color: var(--accent); font-family: var(--font-header); }
/* Global Layout Upgrades */
header {
    background: rgba(10, 25, 30, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.btn-primary, .btn-accent {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-primary:hover, .btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(10, 147, 150, 0.3);
}

.btn-primary::after, .btn-accent::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    transition: 0.5s;
    pointer-events: none;
}

.btn-primary:hover::after, .btn-accent:hover::after {
    left: 100%;
}

.results {
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(10, 147, 150, 0.05));
    border: 1px solid rgba(10, 147, 150, 0.3);
    border-radius: 1.5rem;
    padding: 2.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.results::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(10, 147, 150, 0.1), transparent 70%);
}

.result-value {
    font-size: 4rem;
    font-weight: 800;
    font-family: var(--font-header);
    color: var(--white);
    text-shadow: 0 0 30px rgba(10, 147, 150, 0.4);
    margin: 1rem 0;
    position: relative;
}

.input-group label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
}

input[type="number"], input[type="text"], input[type="email"] {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: 1.1rem;
    width: 100%;
    transition: all 0.3s;
}

input:focus {
    outline: none;
    border-color: var(--secondary);
    background: rgba(255, 255, 255, 0.08);
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.1em; }
/* FAQ: God-Level Upgrade */
.faq-card {
    padding: 3rem;
    margin-top: 4rem;
    background: linear-gradient(135deg, rgba(255,255,255,0.02), rgba(10, 147, 150, 0.05));
    border-radius: 2rem;
    border: 1px solid rgba(255,255,255,0.05);
}

.faq-card h2 {
    font-size: 2.5rem;
    margin-bottom: 2.5rem;
    text-align: center;
    background: linear-gradient(to bottom, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.faq-item {
    background: rgba(255,255,255,0.03);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255,255,255,0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    background: rgba(10, 147, 150, 0.08);
    transform: translateY(-5px);
    border-color: rgba(10, 147, 150, 0.2);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.faq-item h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.faq-item h3::before {
    content: '?';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    background: var(--secondary);
    color: var(--bg-dark);
    font-size: 0.8rem;
    font-weight: 800;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 0.2rem;
}

.faq-item p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
}
/* Nav Dropdown */
.nav-dropdown { position: relative; display: inline-block; }
.dropdown-content { 
    display: none; 
    position: absolute; 
    top: 100%; 
    left: 50%;
    transform: translateX(-50%);
    min-width: 220px; 
    padding: 1rem 0; 
    z-index: 1000; 
    margin-top: 0.75rem; 
    background: rgba(0, 18, 25, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1); 
    border-radius: 1.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}
.nav-dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease-out; }
.dropdown-content a { 
    color: var(--text-muted); 
    padding: 0.75rem 1.5rem; 
    text-decoration: none; 
    display: block; 
    font-size: 0.95rem; 
    font-weight: 600;
    transition: all 0.2s; 
}
.dropdown-content a:hover {
    background: rgba(10, 147, 150, 0.1);
    color: var(--white);
    padding-left: 1.75rem;
}
/* Stage 9: AI-Structural Perfection */
.calculator-header {
    text-align: center;
    margin-bottom: 4rem;
}

.header-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.badge {
    padding: 0.4rem 1rem;
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-badge {
    background: rgba(10, 147, 150, 0.15);
    color: var(--secondary);
    border: 1px solid rgba(10, 147, 150, 0.3);
}

.date-badge {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.direct-answer-hero {
    max-width: 800px;
    margin: 2.5rem auto 3.5rem;
    padding: 2.5rem;
    text-align: left;
    border-left: 4px solid var(--secondary);
    background: linear-gradient(135deg, rgba(255,255,255,0.03), rgba(10, 147, 150, 0.05));
    border-radius: 1.5rem;
    box-shadow: 0 15px 50px rgba(0,0,0,0.3);
}

.direct-answer-hero + .calculator-card {
    margin-top: 3.5rem;
}

.answer-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.answer-label::before {
    content: '';
    width: 2rem;
    height: 1px;
    background: var(--secondary);
}

.answer-content {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--white);
    font-weight: 400;
}

.answer-content b, .answer-content strong {
    color: var(--secondary);
    font-weight: 700;
}

/* Technical Table Enhancement */
.technical-table {
    margin: 2rem 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.technical-table th {
    background: rgba(255,255,255,0.05);
    padding: 1.2rem;
    color: var(--secondary);
    font-weight: 800;
    text-align: left;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.technical-table td {
    padding: 1.2rem;
    background: rgba(255,255,255,0.02);
    border-top: 1px solid rgba(255,255,255,0.03);
    color: var(--text-muted);
    font-size: 1rem;
}

.technical-table tr:hover td {
    background: rgba(10, 147, 150, 0.05);
    color: var(--white);
}
/* Stage 8: God-Level Design Polish */
:root { --aura: radial-gradient(circle at 50% -20%, rgba(10, 147, 150, 0.15), transparent 70%); }
body { background: var(--bg-dark) var(--aura) no-repeat; }
/* Stage 9: Layout & Action Guide */
.content-grid-main {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 1024px) {
    .content-grid-main { grid-template-columns: 1fr; }
}

.step-guide {
    padding: 2.5rem;
    border-radius: 1.5rem;
}

.step-guide h3 {
    margin-top: 0;
    font-size: 1.5rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.steps-wrapper ol {
    padding-left: 1.5rem;
    color: var(--text-muted);
}

.steps-wrapper li {
    margin-bottom: 1.5rem;
    padding-left: 0.5rem;
    line-height: 1.6;
}

.steps-wrapper li::marker {
    color: var(--secondary);
    font-weight: 800;
}

.expert-tip {
    padding: 2rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 1rem 1rem 0;
}

.expert-tip h4 {
    margin-top: 0;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.expert-tip p {
    margin-bottom: 0;
    font-size: 0.95rem;
    color: var(--text-muted);
}

/* Background Clip Compatibility Fix */
.text-gradient {
    background: linear-gradient(135deg, var(--white), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}
.hero-hub h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.02em; }
.wizard-container { border: 1px solid rgba(255,255,255,0.1); box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); overflow: hidden; }
.wizard-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1.5rem; background: rgba(255,255,255,0.03); border-radius: 1.25rem; font-size: 1rem; border: 1px solid rgba(255,255,255,0.05); }
.wizard-opt span { color: var(--text-muted); font-size: 0.8rem; font-weight: 400; }
.wizard-opt:hover { background: rgba(10, 147, 150, 0.15); box-shadow: 0 0 20px rgba(10, 147, 150, 0.2); transform: translateY(-5px) scale(1.02); }
.tool-card { 
    display: flex;
    flex-direction: column;
    text-decoration: none !important;
    color: var(--white) !important;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255,255,255,0.06); 
    padding: 2.5rem;
    border-radius: 2rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    text-align: left;
}

.tool-card:hover { 
    background: rgba(10, 147, 150, 0.08);
    border-color: var(--secondary); 
    box-shadow: 0 30px 60px -15px rgba(0,0,0,0.6), 0 0 30px rgba(10, 147, 150, 0.15); 
    transform: translateY(-12px) scale(1.02); 
}

.tool-card *, .tool-card *:hover {
    text-decoration: none !important;
    color: inherit !important;
}

.tool-card h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 1rem 0;
    color: var(--white) !important;
    font-family: var(--font-header);
}

.tool-card p {
    color: var(--text-muted) !important;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: inline-block;
}
.featured-badge { position: absolute; top: -10px; right: 20px; background: var(--accent); color: var(--bg-dark); padding: 0.25rem 0.75rem; border-radius: 2rem; font-size: 0.7rem; font-weight: 800; text-transform: uppercase; z-index: 10; }
.expert-tip-box { background: linear-gradient(135deg, rgba(238, 155, 0, 0.1), transparent); border: 1px solid rgba(238, 155, 0, 0.2); padding: 1.5rem; border-radius: 1.25rem; margin-top: 2rem; display: flex; gap: 1rem; align-items: flex-start; }
.expert-tip-box i { font-size: 1.5rem; color: var(--accent); }
.stat-item { flex: 1; border-right: 1px solid rgba(255,255,255,0.05); }
.stat-item:last-child { border-right: none; }
.float-anim { animation: float 6s ease-in-out infinite; }
@keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } }

/* Mobile Polishes (God-Mode) */
@media (max-width: 640px) {
    .nav-links { gap: 0.75rem; }
    .nav-links .nav-link { font-size: 0.8rem; }
    .nav-links .nav-dropdown { display: none; }
    .search-trigger span { display: none; }
    .search-trigger { padding: 0.6rem; border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; }
    .logo span { font-size: 1.1rem; }
    .wizard-container { padding: 1.5rem; margin: 1.5rem auto; }
    .wizard-options { grid-template-columns: 1fr; gap: 0.75rem; }
    .wizard-opt { padding: 1rem; font-size: 0.9rem; width: 100%; transition: none; }
    .category-card { padding: 1.25rem; gap: 1rem; border-radius: 1rem; }
    .cat-icon { width: 48px; height: 48px; min-width: 48px; border-radius: 0.8rem; font-size: 1.25rem; }
    .hero-hub h1 { font-size: 2.25rem; margin-bottom: 1rem; }
    .hero-hub .subtitle { font-size: 1rem; }
}

