/* CalculatorSky — Shared styles for all pages (category, static, home) */

:root {
    --primary-green: #2d8a5b;
    --secondary-green: #34a667;
    --light-green: #4ade80;
    --dark-green: #166534;
    --footer-green: #1e5f3f;
    --gradient-start: #2d8a5b;
    --gradient-end: #4ade80;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-card: #ffffff;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --border-color: #e2e8f0;
    --border-hover: #cbd5e1;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.15);
    --shadow-hover: rgba(45, 138, 91, 0.15);
}

/* Dark mode variable overrides */
[data-theme="dark"] {
    --primary-green: #34d399;
    --secondary-green: #4ade80;
    --gradient-start: #065f46;
    --gradient-end: #34d399;
    --shadow-hover: rgba(52, 211, 153, 0.2);
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #263346;
    --bg-card: #1e293b;
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --border-color: #334155;
    --border-hover: #475569;
    --shadow-light: rgba(0, 0, 0, 0.2);
    --shadow-medium: rgba(0, 0, 0, 0.35);
    --shadow-heavy: rgba(0, 0, 0, 0.5);
    --shadow-hover: rgba(45, 138, 91, 0.25);
}

/* Dark mode — bare inputs get correct text color */
[data-theme="dark"] input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
[data-theme="dark"] textarea {
    color: var(--text-primary);
}

/* Dark mode — inner calculator sections get elevated bg to contrast with card */
[data-theme="dark"] .breakdown-item,
[data-theme="dark"] .detailed-info,
[data-theme="dark"] .common-conversions,
[data-theme="dark"] .result-details,
[data-theme="dark"] .result-display,
[data-theme="dark"] .result-card,
[data-theme="dark"] .result-section,
[data-theme="dark"] .result-output,
[data-theme="dark"] .result-main,
[data-theme="dark"] .steps-section,
[data-theme="dark"] .step-item,
[data-theme="dark"] .step-calculation,
[data-theme="dark"] .formulas-section,
[data-theme="dark"] .formula-section,
[data-theme="dark"] .property-card,
[data-theme="dark"] .operation-card,
[data-theme="dark"] .example-card,
[data-theme="dark"] .conversion-card,
[data-theme="dark"] .conversion-result,
[data-theme="dark"] .info-item,
[data-theme="dark"] .date-input,
[data-theme="dark"] .time-input,
[data-theme="dark"] .batch-row,
[data-theme="dark"] .asset-item,
[data-theme="dark"] .cashflow-item,
[data-theme="dark"] .semester-row,
[data-theme="dark"] .subject-row,
[data-theme="dark"] .grade-scale,
[data-theme="dark"] .system-selector,
[data-theme="dark"] .number-systems,
[data-theme="dark"] .algorithm-steps,
[data-theme="dark"] .bmi-chart,
[data-theme="dark"] .activity-levels,
[data-theme="dark"] .bodyfat-categories,
[data-theme="dark"] .weight-goals,
[data-theme="dark"] .macros-section,
[data-theme="dark"] .progress-chart,
[data-theme="dark"] .circle-visual,
[data-theme="dark"] .cylinder-visual,
[data-theme="dark"] .sphere-visual,
[data-theme="dark"] .triangle-visual,
[data-theme="dark"] .rectangle-visual,
[data-theme="dark"] .shape-visual,
[data-theme="dark"] .materials-section,
[data-theme="dark"] .courses-table,
[data-theme="dark"] .timesheet-table,
[data-theme="dark"] .values-table,
[data-theme="dark"] .legend-section,
[data-theme="dark"] .examples-section,
[data-theme="dark"] .prime-list,
[data-theme="dark"] .factors-display,
[data-theme="dark"] .solution-display,
[data-theme="dark"] .parabola-visual,
[data-theme="dark"] .pace-display,
[data-theme="dark"] .trimester-section,
[data-theme="dark"] .milestones-section,
[data-theme="dark"] .savings-section,
[data-theme="dark"] .interpretation,
[data-theme="dark"] .live-counter,
[data-theme="dark"] .clock-card,
[data-theme="dark"] .color-display-current,
[data-theme="dark"] .color-preview,
[data-theme="dark"] .format-item,
[data-theme="dark"] .common-colors,
[data-theme="dark"] .popular-currencies,
[data-theme="dark"] .product-input-card,
[data-theme="dark"] .product-result-card,
[data-theme="dark"] .bulk-result-display,
[data-theme="dark"] .purchase-entries,
[data-theme="dark"] .factorization-display,
[data-theme="dark"] .factorization-formula,
[data-theme="dark"] .log-properties,
[data-theme="dark"] .matrix-container,
[data-theme="dark"] .calculation-methods,
[data-theme="dark"] .data-input {
    background: var(--bg-tertiary);
    box-shadow: none;
    padding-bottom: 10px;
    border-radius: 5px;
}

/* Dark mode — hero / CTA / footer */
[data-theme="dark"] .hero {
    background: linear-gradient(135deg, #0d1f17 0%, #0f2d1e 50%, #0a1a11 100%);
}

[data-theme="dark"] .hero-stats .stat-item {
    background: rgba(45, 138, 91, 0.08);
    border-color: rgba(45, 138, 91, 0.2);
}

[data-theme="dark"] .cta {
    background: linear-gradient(135deg, #0d1f17 0%, #0f2d1e 50%, #0a1a11 100%);
}

[data-theme="dark"] .footer {
    background: #0a1810;
}

/* Dark mode non-variable component overrides */
[data-theme="dark"] .warning-box {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.35);
}

[data-theme="dark"] .warning-box h3 {
    color: #f87171;
}

[data-theme="dark"] .warning-box p {
    color: #fca5a5;
}

[data-theme="dark"] .search-input {
    background: rgba(30, 41, 59, 0.98);
    color: var(--text-primary);
}

@media (max-width: 768px) {
    [data-theme="dark"] .nav-menu {
        background: var(--bg-secondary);
        border-color: var(--border-color);
    }
}

/* Theme toggle button */
.theme-toggle {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 10px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.theme-toggle:hover {
    background: var(--primary-green);
    color: white;
    border-color: var(--primary-green);
    transform: rotate(12deg);
}

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

.no-transition * {
    transition: none !important;
}

body {
    font-family: 'Onest', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Header */
.header {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px var(--shadow-light);
    height: 70px;
    display: flex;
    align-items: center;
}

.header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .header.scrolled {
    background: rgba(15, 23, 42, 0.97);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--light-green), var(--primary-green));
    background-size: 200% 100%;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo:hover {
    color: var(--primary-green);
    transform: scale(1.02);
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(45, 138, 91, 0.3);
    position: relative;
    overflow: hidden;
}

.logo-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.8s ease;
}

.logo:hover .logo-icon::before {
    left: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    align-items: center;
}

.nav-menu li {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.4375rem 0.875rem;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 0.875rem;
    right: 0.875rem;
    height: 2px;
    background: var(--primary-green);
    border-radius: 2px;
    transform: scaleX(0);
    transition: transform 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-green);
    background: rgba(45, 138, 91, 0.06);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.nav-link.active {
    color: var(--primary-green);
    background: rgba(45, 138, 91, 0.1);
}

.nav-link.active::after {
    transform: scaleX(0);
}

.nav-link i {
    font-size: 0.9rem;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    color: white;
    border-radius: 10px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(45, 138, 91, 0.3);
    white-space: nowrap;
    margin-left: 0.75rem;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 16px rgba(45, 138, 91, 0.4);
    color: white;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

/* Hero Section */
.hero {
    margin-top: 70px;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    padding: 3rem 0 3.5rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    padding: 0.75rem 1.25rem;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 1rem;
    color: white;
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: 1.0625rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
    line-height: 1.5;
}

.search-container {
    max-width: 580px;
    margin: 0 auto 2.25rem;
    position: relative;
}

.search-wrapper {
    position: relative;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 3.25rem;
    border: none;
    border-radius: 20px;
    font-size: 1.0625rem;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: inherit;
}

.search-input:focus {
    outline: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.search-icon {
    position: absolute;
    left: 1.125rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-green);
    font-size: 1.125rem;
    pointer-events: none;
    z-index: 2;
}

.search-clear {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(100, 116, 139, 0.15);
    border: none;
    border-radius: 50%;
    width: 1.75rem;
    height: 1.75rem;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--text-secondary);
    transition: background 0.2s;
    padding: 0;
}

.search-clear.visible {
    display: flex;
}

.search-clear:hover {
    background: rgba(100, 116, 139, 0.28);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-color);
    z-index: 500;
    max-height: 380px;
    overflow-y: auto;
    display: none;
}

.search-dropdown.visible {
    display: block;
}

.search-suggestion {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    cursor: pointer;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.15s;
}

.search-suggestion:last-child {
    border-bottom: none;
}

.search-suggestion:first-child {
    border-radius: 16px 16px 0 0;
}

.search-suggestion:last-child {
    border-radius: 0 0 16px 16px;
}

.search-suggestion:first-child:last-child {
    border-radius: 16px;
}

.search-suggestion i {
    color: var(--primary-green);
    width: 1.25rem;
    text-align: center;
    flex-shrink: 0;
}

.search-suggestion:hover,
.search-suggestion.active {
    background: var(--bg-secondary);
}

.search-suggestion mark {
    background: rgba(45, 138, 91, 0.15);
    color: var(--primary-green);
    font-weight: 700;
    border-radius: 3px;
    padding: 0 2px;
}

.search-meta {
    text-align: center;
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.82);
    margin-top: 0.625rem;
    font-weight: 500;
    display: none;
}

.search-meta.visible {
    display: block;
}

.calculator-item.search-hidden {
    opacity: 0.08;
    pointer-events: none;
    transform: scale(0.96);
}

.calculator-item.search-match {
    border-color: var(--primary-green);
    background: rgba(45, 138, 91, 0.04);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.25rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-8px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 900;
    color: white;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Ad Container — empty placeholder state */
.ad-container {
    display: flex;
    justify-content: center;
    margin: 3rem 0;
    padding: 2rem;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    min-height: 100px;
    transition: border-color 0.3s ease, background 0.3s ease;
}

.ad-container:not([data-ad-filled]):hover {
    border-color: var(--primary-green);
    background: rgba(45, 138, 91, 0.02);
}

/* Filled by ads.js — remove placeholder styling */
.ad-container[data-ad-filled] {
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    min-height: unset;
}

/* Tools Section */
.tools-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
}

.calculator-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.calculator-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(45, 138, 91, 0.05), transparent);
    transition: left 0.6s ease;
}

.calculator-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-hover);
    border-color: var(--primary-green);
    color: var(--text-primary);
}

.calculator-item:hover::before {
    left: 100%;
}

.calculator-item.highlight {
    border-color: var(--primary-green);
    background: rgba(45, 138, 91, 0.05);
    transform: translateY(-5px);
}

.calculator-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-tertiary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    color: var(--primary-green);
    transition: all 0.3s ease;
}

.calculator-item:hover .calculator-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 12px 30px rgba(45, 138, 91, 0.4);
}

.calculator-name {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.025em;
}

/* Why Use Section */
.why-use-section {
    padding: 6rem 0;
    background: var(--bg-primary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 2px;
}

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

.feature-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px var(--shadow-light);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px var(--shadow-medium);
    border-color: var(--primary-green);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(45, 138, 91, 0.3);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

/* FAQ Section */
.faq-section {
    padding: 3.5rem 0;
    background: var(--bg-secondary);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 0.875rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--primary-green);
    box-shadow: 0 6px 20px var(--shadow-light);
}

.faq-question {
    padding: 1.125rem 1.5rem;
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s ease;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.faq-question:hover {
    color: var(--primary-green);
}

.faq-answer {
    padding: 0 1.5rem 1.125rem;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.9375rem;
    font-weight: 500;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--primary-green);
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

/* CTA Section */
.cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="cta-grid" width="15" height="15" patternUnits="userSpaceOnUse"><path d="M 15 0 L 0 0 0 15" fill="none" stroke="white" stroke-width="0.5" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23cta-grid)"/></svg>');
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.cta-description {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

.btn-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1.125rem 2.25rem;
    border: none;
    border-radius: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    letter-spacing: 0.025em;
    position: relative;
    z-index: 2;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--primary-green);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background: var(--footer-green);
    color: var(--bg-secondary);
    padding: 4rem 0 2rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="footer-grid" width="12" height="12" patternUnits="userSpaceOnUse"><path d="M 12 0 L 0 0 0 12" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23footer-grid)"/></svg>');
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 2;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--light-green), white);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--footer-green);
    font-size: 1.5rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.footer-logo h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

.footer-section h3 {
    color: white;
    margin-bottom: 0rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-section a:hover {
    color: var(--light-green);
}

.social-links {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.social-link {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.25rem;
    backdrop-filter: blur(10px);
}

.social-link:hover {
    background: var(--shadow-heavy);
    color: var(--footer-green);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease-in-out;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9375rem;
    font-weight: 500;
    position: relative;
    z-index: 2;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .hero-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }

    .nav-menu {
        gap: 2rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-cta { display: none; }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1.5rem;
        border: 2px solid var(--border-color);
        border-radius: 0 0 20px 20px;
        box-shadow: 0 15px 50px var(--shadow-medium);
        gap: 0.75rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        border-radius: 12px;
        background: var(--bg-tertiary);
        padding: 1rem;
    }

    .theme-toggle {
        margin-left: auto;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.25rem;
        height: 2.25rem;
        border-radius: 10px;
        border: 1.5px solid var(--border-color);
        background: var(--bg-tertiary);
        color: var(--text-secondary);
        font-size: 1rem;
        padding: 0;
        margin-left: 0.5rem;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .mobile-menu-btn:hover {
        background: var(--primary-green);
        color: white;
        border-color: var(--primary-green);
    }

    .hero {
        padding: 3rem 0;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .calculator-item {
        padding: 1.5rem 1rem;
    }

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

    .hero-title {
        font-size: 2.5rem;
    }

    .btn-container {
        flex-direction: column;
        align-items: center;
    }

    .btn-container .btn {
        width: 100%;
        max-width: 280px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 480px) {
    .hero-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }
}
