:root {
    --bg: #07111f;
    --bg-soft: #0f1d30;
    --panel: rgba(10, 20, 37, 0.72);
    --panel-strong: rgba(7, 13, 25, 0.88);
    --line: rgba(214, 183, 112, 0.22);
    --text: #f4eee2;
    --muted: #a9b6c6;
    --gold: #d5b06d;
    --gold-strong: #f2c879;
    --success: #7fd3a1;
    --error: #f4a4a4;
    --shadow: 0 32px 80px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(213, 176, 109, 0.16), transparent 28%),
        radial-gradient(circle at 85% 20%, rgba(78, 111, 165, 0.2), transparent 22%),
        linear-gradient(180deg, #06101c 0%, #091424 55%, #06101b 100%);
    font-family: "Manrope", sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.page-frame {
    min-height: 100vh;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(4, 10, 18, 0.7);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-shell,
.footer-shell,
.admin-topbar,
.hero-actions,
.metric-stack,
.timeline-grid,
.market-grid,
.support-cards,
.detail-grid {
    display: flex;
    gap: 20px;
}

.nav-shell,
.footer-shell,
.admin-topbar {
    align-items: center;
    justify-content: space-between;
}

.nav-shell {
    padding: 20px 0;
}

.brand-mark,
h1,
h2,
h3 {
    font-family: "Cormorant Garamond", serif;
}

.brand-mark {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-nav {
    display: flex;
    gap: 18px;
    color: var(--muted);
}

.site-nav a:hover,
.site-nav .is-active {
    color: var(--text);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.button-gold {
    color: #09101c;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
    box-shadow: 0 12px 30px rgba(213, 176, 109, 0.25);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
}

.hero-section,
.section-block {
    padding: 76px 0;
}

.hero-compact {
    padding-top: 72px;
}

.hero-grid,
.two-column-grid,
.faq-grid,
.inquiry-grid,
.policy-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: start;
}

.hero-grid {
    align-items: center;
}

.section-accent {
    background: linear-gradient(180deg, rgba(14, 28, 44, 0.72), rgba(7, 15, 24, 0.24));
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.eyebrow,
.panel-kicker {
    margin: 0 0 12px;
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 4.8rem);
    line-height: 0.92;
    max-width: 12ch;
}

h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.lead-copy,
.feature-card p,
.glass-panel p,
.detail-card p,
.data-table,
.site-footer p,
label span,
input,
textarea,
select {
    color: var(--muted);
}

.lead-copy {
    max-width: 58ch;
    margin: 16px 0 0;
    font-size: 1.05rem;
    line-height: 1.8;
}

.hero-actions {
    margin-top: 24px;
    flex-wrap: wrap;
}

.glass-panel,
.feature-card,
.metric-card,
.market-card,
.timeline-card,
.faq-item,
.flash {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.glass-panel,
.feature-card,
.timeline-card,
.market-card,
.detail-card,
.table-panel,
.admin-login-form {
    padding: 28px;
}

.hero-panel {
    position: relative;
    overflow: hidden;
    padding: 24px;
}

.hero-panel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top, rgba(213, 176, 109, 0.22), transparent 48%);
    pointer-events: none;
}

.metric-stack {
    flex-wrap: wrap;
}

.metric-card {
    min-width: 140px;
    padding: 18px;
}

.metric-card strong {
    display: block;
    color: var(--text);
    font-size: 2rem;
    font-family: "Cormorant Garamond", serif;
}

.metric-card span,
.micro-copy {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.section-heading {
    margin-bottom: 32px;
}

.benefit-list,
.faq-list {
    display: grid;
    gap: 20px;
}

.feature-card,
.market-card,
.timeline-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before,
.timeline-card::before,
.market-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(213, 176, 109, 0.14), transparent 70%);
}

.market-grid,
.timeline-grid,
.support-cards,
.dashboard-metrics {
    flex-wrap: wrap;
}

.market-card,
.timeline-card,
.support-cards .feature-card {
    flex: 1 1 240px;
}

.timeline-card span {
    display: inline-flex;
    margin-bottom: 18px;
    color: var(--gold);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.faq-item {
    padding: 22px 24px;
}

.faq-item summary {
    cursor: pointer;
    color: var(--text);
    font-weight: 700;
    list-style: none;
}

.faq-item p {
    margin: 14px 0 0;
    line-height: 1.8;
}

.lead-form,
.admin-login-form {
    display: grid;
    gap: 18px;
}

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

label {
    display: grid;
    gap: 10px;
}

input,
select,
textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
    outline: 2px solid rgba(213, 176, 109, 0.35);
    border-color: rgba(213, 176, 109, 0.4);
}

.form-error {
    color: var(--error);
    font-size: 0.95rem;
}

.flash-wrapper {
    padding-top: 24px;
}

.flash {
    padding: 18px 24px;
}

.flash.success {
    color: var(--success);
}

.flash.error {
    color: var(--error);
}

.clean-list,
.detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clean-list li {
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clean-list li:last-child {
    border-bottom: 0;
}

.centered-panel {
    display: flex;
    justify-content: center;
}

.confirmation-panel,
.admin-login-form {
    width: min(620px, 100%);
    text-align: center;
}

.admin-shell {
    padding-top: 48px;
}

.table-panel {
    background: var(--panel-strong);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.table-headline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 22px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.data-table th {
    color: var(--text);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-grid {
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.detail-card {
    flex: 1 1 320px;
}

.detail-list div {
    display: grid;
    gap: 6px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.detail-list dt {
    color: var(--gold);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.detail-list dd {
    margin: 0;
}

.pagination-wrap {
    margin-top: 24px;
}

.pagination-wrap svg {
    width: 18px;
}

.site-footer {
    padding: 40px 0 56px;
}

.footer-contact {
    text-align: right;
}

.brand-column {
    display: grid;
    gap: 4px;
}

.brand-subtitle,
.footer-copy {
    color: var(--muted);
    font-size: 0.9rem;
}

.nav-actions,
.language-switcher,
.chip-row,
.cards-grid,
.blog-list,
.contact-stack,
.notes-list,
.admin-toolbar,
.admin-toolbar-links,
.stack-form {
    display: flex;
    gap: 14px;
}

.nav-actions,
.language-switcher,
.admin-toolbar {
    align-items: center;
}

.nav-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.language-switcher {
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.language-switcher a {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.language-switcher .is-active {
    color: #08111d;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.chip-row {
    margin-top: 24px;
    flex-wrap: wrap;
}

.info-chip,
.card-badge,
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    color: var(--gold);
    font-size: 0.76rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.cards-grid,
.blog-list,
.contact-stack,
.notes-list {
    flex-wrap: wrap;
}

.cards-grid > *,
.blog-list > *,
.contact-stack > *,
.notes-list > * {
    flex: 1 1 280px;
}

.text-link {
    color: var(--gold-strong);
    font-weight: 700;
}

.rate-display {
    display: inline-block;
    margin-top: 18px;
    font-size: 2rem;
    color: var(--text);
    font-family: "Cormorant Garamond", serif;
}

.support-grid {
    display: grid;
    gap: 28px;
}

.article-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    gap: 28px;
    align-items: start;
}

.article-panel,
.article-sidebar {
    padding: 32px;
}

.article-content {
    margin-top: 24px;
    color: var(--muted);
    line-height: 1.8;
}

.article-content p {
    margin: 0 0 18px;
}

.sidebar-link {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-link:last-of-type {
    border-bottom: 0;
}

.footer-links {
    display: grid;
    gap: 10px;
}

.footer-links a {
    color: var(--muted);
}

.admin-toolbar {
    justify-content: space-between;
    margin: 22px 0 28px;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.03);
}

.admin-toolbar-links {
    flex-wrap: wrap;
}

.admin-toolbar-links a {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.03);
}

.admin-toolbar-links .is-active {
    color: #09111c;
    background: linear-gradient(135deg, var(--gold-strong), var(--gold));
}

.status-new {
    color: #cdd8e5;
}

.status-qualified,
.status-contacted {
    color: #9adbb4;
}

.status-negotiating {
    color: #f2c879;
}

.status-converted {
    color: #7fd3a1;
}

.status-rejected {
    color: #f4a4a4;
}

.stack-form {
    flex-direction: column;
    margin-bottom: 20px;
}

.note-card {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
}

.note-card strong,
.note-card span {
    display: block;
}

.note-card span {
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

@media (max-width: 980px) {
    .nav-shell,
    .footer-shell,
    .admin-topbar,
    .hero-grid,
    .two-column-grid,
    .faq-grid,
    .inquiry-grid,
    .policy-grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .site-nav {
        display: none;
    }

    .article-shell {
        grid-template-columns: 1fr;
    }

    .admin-toolbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-contact {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .container {
        width: min(100% - 24px, 100%);
    }

    .hero-section,
    .section-block {
        padding: 64px 0;
    }

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

    .table-headline {
        flex-direction: column;
        align-items: flex-start;
    }
}
