:root {
    --ink: #0f1216;
    --cloud: #f6f2eb;
    --sand: #efe6d8;
    --ember: #d8732e;
    --teal: #2f7a6b;
    --blue: #2f5aa5;
    --card: rgba(255, 255, 255, 0.8);
    --stroke: rgba(15, 18, 22, 0.12);
    --shadow: 0 20px 60px rgba(15, 18, 22, 0.18);
}

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

body {
    font-family: "Space Grotesk", system-ui, sans-serif;
    color: var(--ink);
    background: radial-gradient(circle at top, #fff7ec 0%, #efe6d8 40%, #e8ddcf 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

.bg-orbit {
    position: fixed;
    inset: -40vh -30vw auto auto;
    width: 70vw;
    height: 70vw;
    background: radial-gradient(circle, rgba(216, 115, 46, 0.35), transparent 60%);
    z-index: -2;
}

.bg-grid {
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(15, 18, 22, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 18, 22, 0.04) 1px, transparent 1px);
    background-size: 120px 120px;
    z-index: -1;
    opacity: 0.6;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 8vw;
    position: sticky;
    top: 0;
    background: rgba(247, 241, 232, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--stroke);
    z-index: 10;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand-mark {
    background: var(--ink);
    color: #fff;
    padding: 6px 10px;
    border-radius: 10px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 14px;
}

.brand-name {
    font-size: 20px;
}

.site-nav {
    display: flex;
    gap: 24px;
    font-weight: 500;
}

.site-nav a {
    text-decoration: none;
    color: var(--ink);
    position: relative;
}

.site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 100%;
    height: 2px;
    background: var(--ember);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.nav-cta {
    border: 1px solid var(--ink);
    background: transparent;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--ink);
    display: inline-block;
}

.hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding: 80px 8vw 60px;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.6rem, 4vw, 4rem);
    margin-bottom: 18px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: rgba(15, 18, 22, 0.7);
    margin-bottom: 12px;
    font-family: "IBM Plex Mono", monospace;
}

.lead {
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 28px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.panel-btn {
    border-radius: 999px;
    padding: 12px 22px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
    display: inline-block;
}

.primary-btn {
    background: var(--ink);
    color: #fff;
}

.ghost-btn {
    background: transparent;
    border: 1px solid var(--ink);
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.9rem;
    color: rgba(15, 18, 22, 0.7);
}

.hero-panel {
    background: var(--card);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.panel-top,
.panel-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.panel-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(15, 18, 22, 0.6);
}

.panel-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.panel-chip {
    background: rgba(47, 122, 107, 0.15);
    color: var(--teal);
    padding: 6px 12px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.8rem;
}

.panel-list {
    margin: 20px 0;
    display: grid;
    gap: 16px;
}

.panel-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
}

.row-title {
    font-weight: 600;
}

.row-sub {
    font-size: 0.85rem;
    color: rgba(15, 18, 22, 0.6);
}

.row-cost {
    font-weight: 600;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.dot-green { background: var(--teal); }
.dot-amber { background: var(--ember); }
.dot-blue { background: var(--blue); }

.panel-btn {
    background: rgba(47, 90, 165, 0.1);
    color: var(--blue);
}

.section {
    padding: 70px 8vw;
}

.section-head h2 {
    font-size: clamp(2rem, 3vw, 2.8rem);
    margin-bottom: 12px;
}

.section-lead {
    max-width: 600px;
    color: rgba(15, 18, 22, 0.7);
}

.feature-grid {
    margin-top: 32px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.feature-card {
    background: var(--card);
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 22px;
    box-shadow: 0 12px 30px rgba(15, 18, 22, 0.08);
}

.workflow {
    background: rgba(255, 255, 255, 0.6);
}

.workflow-steps {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}

.step {
    background: #fff;
    padding: 22px;
    border-radius: 18px;
    border: 1px solid var(--stroke);
}

.step-index {
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.85rem;
    color: var(--ember);
    font-weight: 600;
}

.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    align-items: center;
}

.dashboard-points {
    margin: 20px 0 24px;
    padding-left: 18px;
    color: rgba(15, 18, 22, 0.7);
}

.dashboard-card {
    background: var(--ink);
    color: #fff;
    border-radius: 24px;
    padding: 26px;
    display: grid;
    gap: 18px;
}

.dash-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dash-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.dash-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.dash-badge {
    background: rgba(216, 115, 46, 0.25);
    color: #ffba85;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.85rem;
}

.dash-muted {
    color: rgba(255, 255, 255, 0.65);
}

.dash-chart {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    height: 80px;
    align-items: end;
}

.chart-bar {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 6px 6px 0 0;
}

.chart-bar:nth-child(1) { height: 30%; }
.chart-bar:nth-child(2) { height: 55%; }
.chart-bar:nth-child(3) { height: 40%; }
.chart-bar:nth-child(4) { height: 75%; }
.chart-bar:nth-child(5) { height: 50%; }

.cta {
    margin: 60px 8vw 90px;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(120deg, #1b1e23, #2f3a48);
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta p {
    color: rgba(255, 255, 255, 0.7);
}

.site-footer {
    padding: 40px 8vw 60px;
    text-align: center;
    color: rgba(15, 18, 22, 0.6);
    font-size: 0.9rem;
}

.auth-main,
.dashboard-main {
    padding: 80px 8vw 100px;
}

.dashboard-main {
    background: #f7f1e8;
    border-radius: 28px;
    margin: 20px 6vw 80px;
}

.auth-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px;
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
}

.auth-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.auth-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
    font-size: 0.95rem;
}

.remember-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

.remember-row input {
    width: 16px;
    height: 16px;
    accent-color: var(--ink);
}

.auth-form input,
.auth-form textarea,
.auth-form select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 18, 22, 0.2);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.auth-form textarea {
    resize: vertical;
}

.auth-help {
    font-size: 0.9rem;
    color: var(--ember);
}

.text-link {
    background: none;
    border: none;
    padding: 0;
    text-align: left;
    font-weight: 600;
    color: var(--blue);
    cursor: pointer;
}

.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    margin-bottom: 32px;
}

.vehicle-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.vehicle-tags {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.vehicle-tag {
    background: rgba(47, 90, 165, 0.12);
    color: var(--blue);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
}

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

.vehicles-full {
    margin-bottom: 24px;
}

.vehicles-full .dashboard-block {
    width: 100%;
}

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

.repair-category {
    min-height: 120px;
}

.tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.tab-button {
    border: 1px solid var(--ink);
    background: transparent;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 600;
    cursor: pointer;
}

.tab-button.is-active {
    background: var(--ink);
    color: #fff;
}

.tab-panel {
    display: none;
}

.tab-panel.is-active {
    display: block;
}

.account-panel {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 26px;
    padding: 30px;
    border: 1px solid var(--stroke);
    box-shadow: 0 16px 40px rgba(15, 18, 22, 0.1);
    margin-bottom: 32px;
    display: grid;
    gap: 24px;
}

.account-form {
    display: grid;
    gap: 16px;
}

.account-form label {
    display: grid;
    gap: 8px;
    font-weight: 600;
}

.account-form input,
.account-form textarea,
.account-form select {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 18, 22, 0.2);
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.account-form textarea {
    resize: vertical;
}

.account-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.dashboard-block {
    background: var(--card);
    border-radius: 22px;
    padding: 22px;
    border: 1px solid var(--stroke);
    box-shadow: 0 12px 30px rgba(15, 18, 22, 0.08);
    display: grid;
    gap: 16px;
}

.repair-category {
    cursor: pointer;
}

.repair-category:focus-within,
.repair-category:hover {
    border-color: rgba(15, 18, 22, 0.3);
}


.dashboard-list {
    display: grid;
    gap: 12px;
}

.block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.repair-category .block-head h2 {
    flex: 1;
    text-align: center;
}

.dash-row-card {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    background: #fff;
    padding: 12px 14px;
    border-radius: 16px;
}

.summary-block {
    background: #111318;
    color: #fff;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
}

.demo-modal {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.demo-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.demo-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 22, 0.55);
    backdrop-filter: blur(4px);
}

.demo-card {
    position: relative;
    width: min(960px, 92vw);
    background: #fff;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 40px 80px rgba(15, 18, 22, 0.3);
    display: grid;
    gap: 24px;
    animation: demoPop 0.35s ease;
}

.profile-card {
    max-width: 520px;
}

.demo-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.demo-close {
    border: none;
    background: rgba(15, 18, 22, 0.08);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

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

.demo-panel {
    border: 1px solid var(--stroke);
    border-radius: 20px;
    padding: 18px;
    background: #faf7f1;
    display: grid;
    gap: 14px;
}

.demo-panel h3 {
    font-size: 1.05rem;
}

.demo-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-radius: 16px;
    background: #fff;
    padding: 12px 14px;
}

.demo-title {
    font-weight: 600;
}

.demo-sub {
    font-size: 0.85rem;
    color: rgba(15, 18, 22, 0.6);
}

.demo-pill {
    background: rgba(47, 122, 107, 0.15);
    color: var(--teal);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.demo-pill.amber {
    background: rgba(216, 115, 46, 0.18);
    color: var(--ember);
}

.demo-pill.blue {
    background: rgba(47, 90, 165, 0.18);
    color: var(--blue);
}

.demo-cost {
    font-weight: 600;
}

.demo-summary {
    background: #111318;
    color: #fff;
}

.demo-summary .demo-sub {
    color: rgba(255, 255, 255, 0.65);
}

.demo-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.demo-chart {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    height: 90px;
    align-items: end;
}

.demo-bar {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 8px 8px 0 0;
}

.demo-bar:nth-child(1) { height: 35%; }
.demo-bar:nth-child(2) { height: 55%; }
.demo-bar:nth-child(3) { height: 45%; }
.demo-bar:nth-child(4) { height: 70%; }
.demo-bar:nth-child(5) { height: 40%; }
.demo-bar:nth-child(6) { height: 60%; }

.demo-footnote {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

@keyframes demoPop {
    from {
        transform: translateY(16px) scale(0.98);
        opacity: 0.6;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.popup-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(15, 18, 22, 0.5);
    backdrop-filter: blur(8px);
    z-index: 1000;
}

.popup-overlay.is-hidden {
    display: none;
}

.popup-card {
    width: min(100%, 520px);
    padding: 32px;
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 248, 238, 0.98), rgba(239, 230, 216, 0.98));
    border: 1px solid rgba(15, 18, 22, 0.08);
    box-shadow: var(--shadow);
    animation: demoPop 0.35s ease;
}

.popup-eyebrow {
    margin-bottom: 12px;
    font-family: "IBM Plex Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ember);
}

.popup-card h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.05;
    margin-bottom: 14px;
}

.popup-copy {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(15, 18, 22, 0.75);
    margin-bottom: 24px;
}

.popup-close {
    border: none;
    border-radius: 999px;
    padding: 12px 20px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 900px) {
    .site-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-nav {
        flex-wrap: wrap;
        gap: 16px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 50px;
    }

    .nav-cta {
        width: 100%;
        text-align: center;
    }

    .cta {
        padding: 30px 24px;
    }

    .popup-card {
        padding: 24px;
    }
}
