:root {
    color-scheme: light;
    --navy-950: #071a3d;
    --navy-900: #0a234f;
    --navy-800: #12366f;
    --orange: #ff7a1a;
    --orange-strong: #ff5d00;
    --orange-soft: #fff0e6;
    --bg: #f6f8fc;
    --bg-rgb: 246, 248, 252;
    --surface: #ffffff;
    --surface-2: #fdfefe;
    --text: #0a1730;
    --muted: #5d6a82;
    --soft: #eaf0f8;
    --border: rgba(7, 26, 61, .11);
    --glass: rgba(255, 255, 255, .78);
    --shadow-sm: 0 10px 30px rgba(7, 26, 61, .08);
    --shadow-md: 0 24px 70px rgba(7, 26, 61, .13);
    --shadow-lg: 0 40px 110px rgba(7, 26, 61, .18);
    --radius-sm: 16px;
    --radius-md: 24px;
    --radius-lg: 34px;
    --nav-height: 76px;
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: #07111f;
    --bg-rgb: 7, 17, 31;
    --surface: #0b1b34;
    --surface-2: #0f2444;
    --text: #f5f8ff;
    --muted: #a9b6cc;
    --soft: rgba(255, 255, 255, .07);
    --border: rgba(255, 255, 255, .12);
    --glass: rgba(10, 25, 48, .78);
    --orange-soft: rgba(255, 122, 26, .13);
    --shadow-sm: 0 14px 36px rgba(0, 0, 0, .28);
    --shadow-md: 0 30px 85px rgba(0, 0, 0, .36);
    --shadow-lg: 0 44px 120px rgba(0, 0, 0, .48);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 122, 26, .14), transparent 34rem),
        radial-gradient(circle at 90% 10%, rgba(18, 54, 111, .16), transparent 32rem),
        var(--bg);
    line-height: 1.65;
    overflow-x: hidden;
    transition: background-color .3s ease, color .3s ease;
}

body::selection {
    background: var(--orange);
    color: #fff;
}

a {
    color: inherit;
}

img, svg {
    max-width: 100%;
}

.site-nav {
    min-height: var(--nav-height);
    background: var(--glass);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(26px);
    -webkit-backdrop-filter: blur(26px);
    transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.site-nav.is-scrolled {
    box-shadow: var(--shadow-sm);
}

.navbar-toggler {
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 10px 12px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 4px rgba(255, 122, 26, .18);
}

.navbar-toggler-icon {
    filter: none;
}

[data-theme="dark"] .navbar-toggler-icon {
    filter: invert(1);
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 850;
    letter-spacing: -.03em;
    color: var(--text) !important;
}

.brand-icon {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(145deg, var(--navy-900), var(--navy-950));
    box-shadow: 0 14px 28px rgba(7, 26, 61, .22);
}

[data-theme="dark"] .brand-icon {
    background: linear-gradient(145deg, var(--orange), var(--orange-strong));
}

.nav-link {
    position: relative;
    color: var(--muted) !important;
    font-size: .95rem;
    font-weight: 700;
    padding: 10px 14px !important;
    transition: color .25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 99px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform .25s ease;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--text) !important;
}

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

.theme-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 122, 26, .45);
}

.btn {
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: -.01em;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease, border-color .25s ease;
}

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

.btn-primary {
    --bs-btn-bg: var(--orange);
    --bs-btn-border-color: var(--orange);
    --bs-btn-hover-bg: var(--orange-strong);
    --bs-btn-hover-border-color: var(--orange-strong);
    --bs-btn-active-bg: var(--orange-strong);
    --bs-btn-active-border-color: var(--orange-strong);
    color: #fff !important;
    box-shadow: 0 16px 44px rgba(255, 122, 26, .32);
}

.btn-outline-primary {
    --bs-btn-color: var(--text);
    --bs-btn-border-color: var(--border);
    --bs-btn-hover-bg: var(--navy-950);
    --bs-btn-hover-border-color: var(--navy-950);
    --bs-btn-hover-color: #fff;
    background: var(--surface);
}

[data-theme="dark"] .btn-outline-primary {
    --bs-btn-hover-bg: var(--orange);
    --bs-btn-hover-border-color: var(--orange);
}

.btn-ghost,
.btn-nav {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text) !important;
    box-shadow: var(--shadow-sm);
}

.btn-ghost:hover,
.btn-nav:hover {
    border-color: rgba(255, 122, 26, .4);
    box-shadow: var(--shadow-md);
}

.btn-nav {
    padding: 10px 18px;
    font-size: .92rem;
}

.hero-section {
    position: relative;
    min-height: 100vh;
    padding: 150px 0 95px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-orb {
    position: absolute;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    filter: blur(10px);
    opacity: .4;
    pointer-events: none;
}

.hero-orb-one {
    top: -190px;
    left: -180px;
    background: radial-gradient(circle, rgba(255, 122, 26, .5), transparent 65%);
}

.hero-orb-two {
    right: -220px;
    bottom: 60px;
    background: radial-gradient(circle, rgba(18, 54, 111, .55), transparent 68%);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 8px 13px;
    border: 1px solid rgba(255, 122, 26, .25);
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-strong);
    font-size: .82rem;
    font-weight: 850;
    letter-spacing: .01em;
}

.eyebrow.centered {
    margin-inline: auto;
}

.hero-content h1 {
    margin: 22px 0 20px;
    font-size: clamp(3rem, 7vw, 6.7rem);
    line-height: .91;
    letter-spacing: -.085em;
    font-weight: 920;
    color: var(--text);
}

.hero-lead {
    max-width: 630px;
    margin: 0 0 30px;
    color: var(--muted);
    font-size: clamp(1.08rem, 2vw, 1.35rem);
    line-height: 1.62;
}

.hero-actions,
.calculator-footer,
.modal-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.trust-row span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 700;
    box-shadow: var(--shadow-sm);
}

.trust-row i {
    color: var(--orange);
}

.hero-panel {
    position: relative;
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 38px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.62)),
        radial-gradient(circle at 30% 0%, rgba(255, 122, 26, .18), transparent 48%),
        var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

[data-theme="dark"] .hero-panel {
    background:
        radial-gradient(circle at 30% 0%, rgba(255, 122, 26, .16), transparent 48%),
        linear-gradient(180deg, rgba(15, 36, 68, .98), rgba(11, 27, 52, .94));
}

.hero-panel.is-example {
    padding-top: 58px;
}

.example-ribbon {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 122, 26, .34);
    border-radius: 999px;
    background: var(--orange-soft);
    color: var(--orange-strong);
    font-size: .82rem;
    font-weight: 900;
    letter-spacing: -.01em;
    z-index: 2;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .example-ribbon {
    background: rgba(255, 122, 26, .14);
    color: #ffb26f;
}

.example-notice {
    margin: -4px 0 16px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 122, 26, .28);
    border-radius: 20px;
    background: var(--orange-soft);
    color: var(--text);
    font-size: .92rem;
    line-height: 1.55;
    font-weight: 700;
}

[data-theme="dark"] .example-notice {
    background: rgba(255, 122, 26, .10);
}

.example-cta {
    justify-content: center;
    min-height: 56px;
}

.panel-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.panel-topbar span {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border);
}

.panel-topbar span:first-child {
    background: var(--orange);
}

.panel-topbar small {
    margin-left: auto;
    color: var(--muted);
    font-weight: 700;
}

.result-preview-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-radius: 28px;
    background: linear-gradient(145deg, var(--navy-950), var(--navy-800));
    color: #fff;
    box-shadow: 0 26px 70px rgba(7, 26, 61, .28);
}

.mini-label,
.metric-card span,
.contact-action span {
    display: block;
    color: inherit;
    opacity: .72;
    font-size: .84rem;
    font-weight: 700;
}

.result-preview-card strong {
    display: block;
    margin-top: 6px;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1;
    letter-spacing: -.06em;
}

.preview-icon {
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 19px;
    color: #fff;
    background: var(--orange);
    box-shadow: 0 18px 45px rgba(255, 122, 26, .35);
}

.visual-road {
    position: relative;
    height: 148px;
    margin: 22px 0;
    border-radius: 30px;
    background:
        linear-gradient(90deg, transparent 0 45%, rgba(255,255,255,.55) 45% 47%, transparent 47% 100%),
        linear-gradient(145deg, rgba(7, 26, 61, .07), rgba(255, 122, 26, .12));
    overflow: hidden;
}

[data-theme="dark"] .visual-road {
    background:
        linear-gradient(90deg, transparent 0 45%, rgba(255,255,255,.12) 45% 47%, transparent 47% 100%),
        linear-gradient(145deg, rgba(255,255,255,.05), rgba(255, 122, 26, .12));
}

.visual-road::before,
.visual-road::after {
    content: '';
    position: absolute;
    inset: auto -5% 32px;
    height: 2px;
    background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 122, 26, .5) 20px 42px);
}

.visual-road::after {
    bottom: 90px;
    opacity: .35;
}

.car-body {
    position: absolute;
    left: 50%;
    top: 54%;
    width: 218px;
    height: 74px;
    transform: translate(-50%, -50%);
    border-radius: 28px 44px 20px 20px;
    background: linear-gradient(135deg, var(--orange), var(--orange-strong));
    box-shadow: 0 24px 60px rgba(255, 122, 26, .32);
}

.car-body::before {
    content: '';
    position: absolute;
    left: 44px;
    top: -34px;
    width: 96px;
    height: 50px;
    border-radius: 28px 34px 4px 4px;
    background: linear-gradient(145deg, var(--navy-900), var(--navy-950));
}

.car-window {
    position: absolute;
    left: 68px;
    top: -24px;
    width: 50px;
    height: 30px;
    border-radius: 18px 22px 4px 4px;
    background: rgba(255, 255, 255, .55);
}

.car-light {
    position: absolute;
    right: 18px;
    top: 32px;
    width: 18px;
    height: 8px;
    border-radius: 99px;
    background: #fff;
}

.wheel {
    position: absolute;
    top: calc(54% + 22px);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--navy-950);
    border: 8px solid #fff;
    box-shadow: 0 8px 24px rgba(7, 26, 61, .26);
}

.wheel-left { left: calc(50% - 82px); }
.wheel-right { left: calc(50% + 56px); }

.metric-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.metric-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.metric-card strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 1.04rem;
    letter-spacing: -.03em;
}

.metric-card.accent {
    border-color: rgba(255, 122, 26, .34);
    background: var(--orange-soft);
}

.section {
    position: relative;
    padding: 110px 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading h2,
.section-content h2,
.primary-card h2,
.contact-content h2 {
    margin: 18px 0 14px;
    font-size: clamp(2.25rem, 4vw, 4rem);
    line-height: .98;
    letter-spacing: -.065em;
    font-weight: 920;
    color: var(--text);
}

.section-heading p,
.section-content p,
.primary-card p,
.contact-content p,
.result-copy {
    color: var(--muted);
    font-size: 1.04rem;
}

.calculator-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 22px;
    align-items: stretch;
}

.calculator-card,
.calculator-side,
.feature-card,
.timeline-card,
.formula-card,
.table-card,
.example-card,
.contact-card,
.faq-list details {
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.calculator-card {
    padding: clamp(24px, 4vw, 42px);
}

.calculator-side {
    padding: 30px;
    background:
        radial-gradient(circle at top right, rgba(255, 122, 26, .16), transparent 50%),
        var(--surface);
}

.calculator-side h3,
.feature-card h3,
.timeline-card h3,
.table-card h3,
.example-card h3 {
    margin: 0 0 12px;
    color: var(--text);
    font-weight: 850;
    letter-spacing: -.035em;
}

.calculator-side ul {
    list-style: none;
    margin: 18px 0 0;
    padding: 0;
}

.calculator-side li {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted);
    font-weight: 700;
}

.calculator-side li:last-child {
    border-bottom: 0;
}

.calculator-side i,
.feature-card > span i,
.example-card i {
    color: var(--orange);
}

.form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 800;
    margin-bottom: 10px;
}

.form-label span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--orange);
    background: var(--orange-soft);
}

.form-control {
    min-height: 62px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-weight: 750;
    box-shadow: none;
}

.form-control::placeholder {
    color: color-mix(in srgb, var(--muted) 72%, transparent);
}

.form-control:focus {
    border-color: rgba(255, 122, 26, .62);
    box-shadow: 0 0 0 5px rgba(255, 122, 26, .16);
    background: var(--surface);
    color: var(--text);
}

.calculator-footer {
    justify-content: space-between;
    margin-top: 30px;
}

.safe-note {
    display: inline-flex;
    gap: 9px;
    align-items: center;
    color: var(--muted);
    font-weight: 700;
}

.safe-note i {
    color: var(--orange);
}

.section-content {
    background: linear-gradient(180deg, transparent, rgba(255, 122, 26, .04), transparent);
}

.lead-text {
    font-size: 1.16rem !important;
    color: var(--text) !important;
    font-weight: 560;
}

.seo-link-box {
    padding: 18px 20px;
    border: 1px solid rgba(255, 122, 26, .28);
    border-radius: 22px;
    background: var(--orange-soft);
    font-weight: 700;
}

.seo-link-box a {
    color: var(--orange-strong);
    font-weight: 900;
    text-decoration: none;
    border-bottom: 2px solid currentColor;
}

.feature-grid,
.example-grid,
.timeline-grid {
    display: grid;
    gap: 18px;
}

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

.feature-card {
    padding: 28px;
    min-height: 238px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.feature-card:hover,
.timeline-card:hover,
.example-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 122, 26, .32);
    box-shadow: var(--shadow-md);
}

.feature-card > span,
.example-card i {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 18px;
    background: var(--orange-soft);
    font-size: 1.2rem;
}

.feature-card p,
.timeline-card p,
.example-card p {
    margin: 0;
    color: var(--muted);
}

.timeline-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-card {
    position: relative;
    padding: 28px;
    overflow: hidden;
}

.timeline-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, var(--orange), var(--navy-800));
}

.step-number {
    display: inline-flex;
    margin-bottom: 38px;
    color: var(--orange);
    font-weight: 920;
    font-size: 1.1rem;
    letter-spacing: -.03em;
}

.section-formula {
    background: linear-gradient(180deg, rgba(7, 26, 61, .04), transparent);
}

.primary-card {
    padding: 34px;
    color: #fff;
    background:
        radial-gradient(circle at 88% 10%, rgba(255, 122, 26, .34), transparent 36%),
        linear-gradient(145deg, var(--navy-950), var(--navy-800));
}

.primary-card h2,
.primary-card p {
    color: #fff;
}

.primary-card p {
    opacity: .8;
}

.formula-strip {
    margin-top: 28px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 22px;
    background: rgba(255,255,255,.08);
    font-weight: 850;
}

.table-card {
    padding: 28px;
}

.table {
    margin: 0;
    color: var(--text);
    overflow: hidden;
    border-radius: 22px;
}

.table thead th {
    background: var(--navy-950);
    color: #fff;
    border: 0;
    padding: 17px 18px;
    font-size: .92rem;
}

.table tbody td {
    padding: 17px 18px;
    color: var(--muted);
    background: var(--surface);
    border-color: var(--border);
}

.table tbody tr:hover td {
    background: var(--soft);
}

.example-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.example-card {
    padding: 30px;
}

.example-card strong {
    display: inline-flex;
    margin-top: 18px;
    color: var(--orange-strong);
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-list details {
    padding: 0;
    margin-bottom: 14px;
    overflow: hidden;
}

.faq-list summary {
    cursor: pointer;
    padding: 22px 26px;
    color: var(--text);
    font-weight: 850;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::after {
    content: '+';
    float: right;
    color: var(--orange);
    font-size: 1.25rem;
}

.faq-list details[open] summary::after {
    content: '–';
}

.faq-list p {
    margin: 0;
    padding: 0 26px 24px;
    color: var(--muted);
}

.section-contact {
    padding-bottom: 80px;
}

.contact-card {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 26px;
    align-items: center;
    padding: clamp(28px, 5vw, 52px);
    background:
        radial-gradient(circle at left top, rgba(255, 122, 26, .15), transparent 42%),
        var(--surface);
}

.contact-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.contact-action {
    display: block;
    padding: 19px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--bg);
    text-decoration: none;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.contact-action:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 122, 26, .36);
    background: var(--orange-soft);
}

.contact-action i {
    margin-bottom: 14px;
    color: var(--orange);
    font-size: 1.35rem;
}

.contact-action strong {
    display: block;
    color: var(--text);
    font-size: .98rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.result-modal {
    border: 1px solid var(--border);
    border-radius: 34px;
    background: var(--surface);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.modal-header,
.modal-footer {
    border-color: var(--border);
    padding: 26px;
}

.modal-title {
    margin-top: 10px;
    color: var(--text);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -.04em;
}

.btn-close {
    filter: none;
}

[data-theme="dark"] .btn-close {
    filter: invert(1) grayscale(100%);
}

.modal-body {
    padding: 34px 26px;
}

.result-badge {
    width: 74px;
    height: 74px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 25px;
    color: #fff;
    background: linear-gradient(145deg, var(--orange), var(--orange-strong));
    font-size: 1.8rem;
    box-shadow: 0 20px 60px rgba(255, 122, 26, .32);
}

.result-value {
    color: var(--text);
    font-size: clamp(2.7rem, 7vw, 5rem);
    line-height: .95;
    letter-spacing: -.07em;
    font-weight: 940;
}

.result-copy {
    max-width: 620px;
    margin: 18px auto 20px;
}

.result-note {
    display: inline-flex;
    gap: 10px;
    max-width: 680px;
    padding: 15px 18px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--soft);
    color: var(--muted);
    text-align: left;
    font-weight: 700;
}

.result-note i {
    color: var(--orange);
    margin-top: 4px;
}

.footer {
    padding: 58px 0 28px;
    border-top: 1px solid var(--border);
    background: rgba(var(--bg-rgb), .65);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-start;
}

.footer-brand {
    margin-bottom: 16px;
}

.footer p,
.footer-bottom {
    color: var(--muted);
}

.footer p {
    max-width: 560px;
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.footer-links a {
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    background: var(--surface);
    text-decoration: none;
    font-weight: 750;
}

.footer-links a:hover {
    color: var(--orange-strong);
    border-color: rgba(255, 122, 26, .34);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
    font-size: .9rem;
}

@media (max-width: 1199px) {
    .timeline-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .site-nav .navbar-collapse {
        margin-top: 16px;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 24px;
        background: var(--surface);
        box-shadow: var(--shadow-sm);
    }

    .hero-section {
        padding-top: 125px;
    }

    .calculator-shell,
    .contact-card {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .example-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    :root {
        --nav-height: 68px;
    }

    .hero-section {
        min-height: auto;
        padding: 112px 0 70px;
    }

    .hero-content h1 {
        letter-spacing: -.065em;
    }

    .section {
        padding: 78px 0;
    }

    .hero-actions,
    .calculator-footer,
    .modal-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn,
    .calculator-footer .btn,
    .modal-footer .btn {
        width: 100%;
    }

    .metric-grid,
    .timeline-grid,
    .contact-actions {
        grid-template-columns: 1fr;
    }

    .hero-panel {
        border-radius: 28px;
        padding: 16px;
    }

    .result-preview-card,
    .calculator-card,
    .calculator-side,
    .contact-card,
    .primary-card,
    .table-card {
        border-radius: 26px;
    }

    .footer-inner,
    .footer-bottom {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--navy-900), var(--orange));
    border-radius: 999px;
    border: 2px solid var(--bg);
}
