:root {
    --bg: #f6f2ea;
    --surface: #ffffff;
    --surface-2: #efe9df;
    --ink: #141414;
    --muted: #5b5f66;
    --brand: #0c7c59;
    --accent: #f1b65f;
    --accent-2: #1b4d89;
    --border: rgba(20, 20, 20, 0.12);
    --shadow: 0 22px 45px rgba(10, 10, 10, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Instrument Sans", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
}

.bg-field {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(
            circle at 10% 20%,
            rgba(12, 124, 89, 0.15),
            transparent 45%
        ),
        radial-gradient(
            circle at 80% 10%,
            rgba(241, 182, 95, 0.18),
            transparent 48%
        ),
        radial-gradient(
            circle at 80% 80%,
            rgba(27, 77, 137, 0.16),
            transparent 55%
        ),
        linear-gradient(
            120deg,
            rgba(255, 255, 255, 0.7),
            rgba(255, 255, 255, 0.2)
        );
    z-index: -1;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    margin: 0 0 12px;
}

h1 {
    font-size: clamp(2.6rem, 3vw, 3.4rem);
    line-height: 1.1;
}

h2 {
    font-size: clamp(1.6rem, 2vw, 2.2rem);
}

p {
    margin: 0 0 16px;
}

.lead {
    font-size: 1.05rem;
    color: var(--muted);
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    gap: 16px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
}

.brand-mark {
    background: var(--ink);
    color: #fff;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.nav-links,
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.status-pill {
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.6);
}

.primary,
.ghost {
    border-radius: 999px;
    border: 1px solid transparent;
    padding: 10px 18px;
    cursor: pointer;
    font-weight: 600;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 14px 30px rgba(12, 124, 89, 0.25);
}

.ghost {
    background: transparent;
    border-color: var(--border);
    color: var(--ink);
}

.primary:hover,
.ghost:hover {
    transform: translateY(-1px);
}

.view {
    padding: 40px 32px 80px;
}

.view-auth,
.view-dashboard {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.hero-copy .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: var(--accent-2);
    font-weight: 700;
    margin-bottom: 18px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0 28px;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.hero-panel {
    display: grid;
    gap: 16px;
}

.panel-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.panel-card.highlight {
    background: linear-gradient(120deg, #ffffff, #e9f6ef);
    border: 1px solid rgba(12, 124, 89, 0.15);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tag {
    background: var(--surface-2);
    color: var(--ink);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.panel-body {
    margin-top: 16px;
}

.panel-output {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-sm);
    background: rgba(12, 124, 89, 0.08);
    border: 1px dashed rgba(12, 124, 89, 0.4);
    min-height: 64px;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

.stat {
    background: var(--surface-2);
    padding: 12px 14px;
    border-radius: 14px;
}

.section {
    margin-top: 80px;
}

.section-title {
    max-width: 640px;
    margin-bottom: 32px;
}

.grid-3,
.grid-2 {
    display: grid;
    gap: 24px;
}

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

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

.card {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 18px 35px rgba(20, 20, 20, 0.08);
}

.card.pricing {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card.pricing .price {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0;
}

.card.pricing.highlight {
    background: linear-gradient(135deg, #0c7c59, #0f8b6f);
    color: #fff;
}

.card.pricing.highlight .muted {
    color: rgba(255, 255, 255, 0.75);
}

.bullet-list {
    padding-left: 18px;
    margin: 0;
}

.view-auth {
    padding: 80px 32px;
}

.auth-shell {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    align-items: center;
}

.auth-info {
    padding: 32px;
}

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

.auth-panel {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.auth-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.stack {
    display: grid;
    gap: 16px;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
}

.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
}

textarea {
    resize: vertical;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.view-dashboard {
    padding: 40px 24px 80px;
}

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

.sidebar {
    position: sticky;
    top: 24px;
    align-self: start;
    background: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border);
}

.sidebar-nav {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.side-link {
    border: 1px solid transparent;
    background: transparent;
    text-align: left;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
}

.side-link.active,
.side-link:hover {
    border-color: rgba(12, 124, 89, 0.25);
    background: rgba(12, 124, 89, 0.1);
}

.panel {
    display: none;
}

.panel.active {
    display: block;
}

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

.list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.template-item {
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.8);
}

.output {
    background: #111;
    color: #f7f3ea;
    padding: 16px;
    border-radius: 12px;
    min-height: 80px;
    white-space: pre-wrap;
}

.hidden {
    display: none;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 0.85rem;
}

.footer {
    padding: 40px 32px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 1080px) {
    .hero-grid,
    .auth-shell {
        grid-template-columns: 1fr;
    }

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

    .sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .topbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-links,
    .nav-actions {
        flex-wrap: wrap;
    }

    .hero-metrics,
    .grid-3,
    .grid-2 {
        grid-template-columns: 1fr;
    }
}
