:root {
    --bg-dark: #241913;
    --bg-mid: #6b4a36;
    --bg-light: #c6a27f;
    --text-main: #f5ede3;
    --text-soft: rgba(245, 237, 227, 0.74);
    --surface: rgba(36, 25, 19, 0.78);
    --surface-strong: rgba(36, 25, 19, 0.92);
    --surface-line: rgba(198, 162, 127, 0.22);
    --shadow: 0 28px 80px rgba(20, 12, 9, 0.32);
    --radius-xl: 28px;
    --radius-lg: 18px;
    --radius-md: 12px;
    --content-width: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Trebuchet MS", "Gill Sans", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(198, 162, 127, 0.32), transparent 32%),
        radial-gradient(circle at bottom right, rgba(107, 74, 54, 0.28), transparent 28%),
        linear-gradient(135deg, #1f1510 0%, #241913 38%, #4a3326 100%);
    color: var(--text-main);
}

a {
    color: inherit;
}

.app-shell {
    width: min(var(--content-width), calc(100% - 32px));
    margin: 0 auto;
    padding: 32px 0 40px;
}

.brand-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: var(--text-soft);
}

.brand-mark::before {
    content: "";
    width: 38px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--bg-light));
}

.brand-meta {
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(245, 237, 227, 0.48);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.05fr) minmax(320px, 0.95fr);
    gap: 24px;
    align-items: stretch;
}

.panel,
.form-card,
.dashboard-card,
.pricing-card {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--surface-line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(198, 162, 127, 0.08), transparent 38%),
        var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.panel::after,
.form-card::after,
.dashboard-card::after,
.pricing-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(125deg, rgba(198, 162, 127, 0.08), transparent 24%, transparent 74%, rgba(198, 162, 127, 0.08));
}

.panel {
    padding: 42px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
}

.eyebrow,
.section-tag,
.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.73rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(245, 237, 227, 0.72);
}

.eyebrow::before,
.section-tag::before,
.status-chip::before {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--bg-light);
    box-shadow: 0 0 0 6px rgba(198, 162, 127, 0.08);
}

.panel h1,
.dashboard-hero h1 {
    margin: 0;
    font-family: Constantia, "Palatino Linotype", Georgia, serif;
    font-size: clamp(2.5rem, 4vw, 4.7rem);
    line-height: 0.94;
    letter-spacing: -0.04em;
}

.panel p,
.dashboard-hero p,
.list-note,
.metric-copy {
    margin: 0;
    max-width: 48ch;
    color: var(--text-soft);
    font-size: 1rem;
    line-height: 1.7;
}

.panel-stats,
.metric-grid,
.dashboard-grid {
    display: grid;
    gap: 14px;
}

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

.stat-box,
.metric-box {
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(198, 162, 127, 0.16);
    background: rgba(255, 255, 255, 0.03);
}

.stat-value,
.metric-value {
    display: block;
    margin-bottom: 8px;
    font-size: 1.3rem;
    color: var(--text-main);
}

.stat-label,
.metric-label {
    font-size: 0.84rem;
    color: rgba(245, 237, 227, 0.66);
    line-height: 1.5;
}

.form-card,
.pricing-card,
.dashboard-card {
    padding: 32px;
}

.card-header {
    margin-bottom: 22px;
}

.card-header h2,
.dashboard-card h2,
.pricing-card h2 {
    margin: 0 0 10px;
    font-family: Constantia, "Palatino Linotype", Georgia, serif;
    font-size: 2rem;
    letter-spacing: -0.03em;
}

.card-header p,
.dashboard-card p,
.pricing-card p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

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

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

.field {
    display: grid;
    gap: 8px;
}

.field label {
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(245, 237, 227, 0.74);
}

.field input {
    width: 100%;
    padding: 15px 16px;
    border: 1px solid rgba(198, 162, 127, 0.24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    outline: none;
    transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.field input::placeholder {
    color: rgba(245, 237, 227, 0.4);
}

.field input:focus {
    border-color: rgba(198, 162, 127, 0.72);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.alert {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(198, 162, 127, 0.28);
    background: rgba(198, 162, 127, 0.08);
    color: var(--text-main);
    line-height: 1.6;
}

.alert.error {
    border-color: rgba(198, 162, 127, 0.34);
    background: rgba(107, 74, 54, 0.35);
}

.btn,
.link-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 52px;
    padding: 0 22px;
    border-radius: 999px;
    border: 1px solid rgba(198, 162, 127, 0.32);
    background: linear-gradient(135deg, #c6a27f 0%, #8d6448 100%);
    color: #201610;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover,
.link-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(141, 100, 72, 0.28);
    filter: brightness(1.03);
}

.btn.secondary,
.link-btn.secondary {
    background: transparent;
    color: var(--text-main);
}

.button-row,
.inline-actions,
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.footer-links {
    margin-top: 20px;
}

.text-link {
    color: rgba(245, 237, 227, 0.82);
    text-decoration: none;
    border-bottom: 1px solid rgba(198, 162, 127, 0.34);
    padding-bottom: 2px;
}

.text-link:hover {
    color: var(--text-main);
    border-bottom-color: rgba(198, 162, 127, 0.74);
}

.feature-list,
.bullet-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.feature-list li,
.bullet-list li {
    position: relative;
    padding-left: 22px;
    color: rgba(245, 237, 227, 0.84);
    line-height: 1.6;
}

.feature-list li::before,
.bullet-list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--bg-light);
}

.pricing-price {
    margin: 18px 0 16px;
    font-family: Constantia, "Palatino Linotype", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    letter-spacing: -0.05em;
}

.pricing-price span {
    font-size: 1rem;
    color: var(--text-soft);
    letter-spacing: 0;
}

.dashboard-layout {
    display: grid;
    gap: 24px;
}

.dashboard-hero {
    display: grid;
    gap: 18px;
    padding: 38px 42px;
}

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

.dashboard-card strong {
    display: block;
    margin-bottom: 10px;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 237, 227, 0.62);
}

.dashboard-card .value {
    display: block;
    margin-bottom: 10px;
    font-family: Constantia, "Palatino Linotype", Georgia, serif;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.dashboard-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
}

.hero-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, rgba(198, 162, 127, 0), rgba(198, 162, 127, 0.42), rgba(198, 162, 127, 0));
}

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

    .panel-stats,
    .field-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .app-shell {
        width: min(100% - 20px, var(--content-width));
        padding-top: 20px;
    }

    .panel,
    .form-card,
    .pricing-card,
    .dashboard-card,
    .dashboard-hero {
        padding: 24px;
        border-radius: 22px;
    }

    .brand-bar,
    .dashboard-actions {
        flex-direction: column;
        align-items: flex-start;
    }
}
