
:root {
    --brand: #f97316;
    --brand-dark: #ea580c;
    --text: #1f2937;
    --text-light: #4b5563;
    --bg: #ffffff;
    --bg-alt: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
    --radius: 12px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--bg);
}

.container {
    width: min(1120px, 92vw);
    margin: 0 auto;
}

/* Header */
.site-header {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text);
}

.logo-icon { font-size: 1.4rem; }

.main-nav {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s;
}

.main-nav a:hover,
.main-nav a.active { color: var(--brand-dark); }

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 60%);
    padding: 4.5rem 0 3.5rem;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--brand-dark);
    margin: 0 0 0.8rem;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.1;
    font-weight: 800;
    max-width: 800px;
    margin: 0 0 1.25rem;
}

.lead {
    font-size: 1.2rem;
    color: var(--text-light);
    max-width: 680px;
    margin: 0 0 1.75rem;
}

.cta-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.1s, box-shadow 0.15s;
    cursor: pointer;
    border: none;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 4px 12px rgba(249,115,22,0.25);
}

.btn-primary:hover { background: var(--brand-dark); }

.btn-secondary {
    background: #fff;
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover { background: var(--bg-alt); }

/* Sections */
.section { padding: 4rem 0; }
.section.alt { background: var(--bg-alt); }

.section h2 {
    font-size: 1.9rem;
    margin: 0 0 1.5rem;
}

.section h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}

/* Cards */
.grid {
    display: grid;
    gap: 1.5rem;
}

.card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px -8px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2rem;
    margin-bottom: 0.75rem;
}

.card h3 {
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.95rem;
}

/* Numbers */
.numbers-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }

.number-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--brand-dark);
    margin-bottom: 0.5rem;
}

.number-card p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Two column */
.two-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.two-col ul {
    padding-left: 1.2rem;
    margin: 0;
}

.two-col li {
    margin-bottom: 0.6rem;
    color: var(--text-light);
}

/* Footer */
.site-footer {
    background: var(--text);
    color: #cbd5e1;
    padding: 2rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* Page header */
.page-header {
    background: var(--bg-alt);
    padding: 3rem 0 2.5rem;
    margin-bottom: 1rem;
}

.page-header h1 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin: 0 0 0.6rem;
}

.page-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 720px;
    margin: 0;
}

/* Tables */
.table-wrap {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    font-size: 0.95rem;
}

th, td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

th {
    background: var(--bg-alt);
    font-weight: 700;
    color: var(--text);
}

tr:last-child td { border-bottom: none; }

/* Calculator */
.calculator {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    box-shadow: var(--shadow);
    max-width: 640px;
    margin: 1.5rem 0;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
}

.calculator output {
    display: block;
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: #fff7ed;
    border-radius: 8px;
    font-size: 1.05rem;
}

.calculator output strong {
    color: var(--brand-dark);
    font-size: 1.5rem;
    display: block;
    margin-top: 0.3rem;
}

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

.result-grid span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

/* Article list */
.article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.article-list li:last-child { border-bottom: none; }

.article-list a {
    font-weight: 600;
    color: var(--brand-dark);
    text-decoration: none;
}

.article-list a:hover { text-decoration: underline; }

.article-list p {
    margin: 0.25rem 0 0;
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Responsive */
@media (max-width: 720px) {
    .menu-toggle { display: block; }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 1rem;
        gap: 1rem;
        box-shadow: var(--shadow);
    }

    .main-nav.open { display: flex; }

    .hero { padding: 2.5rem 0; }

    .cta-row { flex-direction: column; }

    .btn { width: 100%; }
}
