:root {
    --bg: #040913;
    --bg-2: #0a1731;
    --panel: rgba(7, 16, 31, 0.88);
    --panel-2: rgba(12, 25, 49, 0.9);
    --gold: #f3c96f;
    --gold-2: #d48b2d;
    --gold-soft: rgba(243, 201, 111, 0.16);
    --line: rgba(243, 201, 111, 0.35);
    --text: #f8e8bd;
    --muted: #d5c08f;
    --ok: #53d686;
    --warn: #efb04f;
    --shadow: 0 14px 42px rgba(0, 0, 0, 0.38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 0%, rgba(212, 139, 45, 0.16), transparent 24%),
        radial-gradient(circle at 100% 16%, rgba(26, 74, 160, 0.18), transparent 30%),
        linear-gradient(180deg, #081325 0%, #06101f 36%, #040913 100%);
    min-height: 100vh;
}

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

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at top center, rgba(243, 201, 111, 0.07), transparent 34%),
        linear-gradient(90deg, transparent, rgba(243, 201, 111, 0.035), transparent);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(3, 8, 16, 0.8);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 0 24px rgba(243, 201, 111, 0.08);
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 16px 0;
    flex-wrap: wrap;
}

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

.brand-emblem,
.footer-emblem {
    display: block;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid rgba(255, 227, 167, 0.6);
    box-shadow: 0 0 22px rgba(243, 201, 111, 0.22);
    background: rgba(0,0,0,0.2);
}

.brand-emblem {
    width: 76px;
    height: 76px;
}

.footer-emblem {
    width: 64px;
    height: 64px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-title {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: 0.2px;
    color: #ffe2a5;
    text-shadow: 0 0 14px rgba(243, 201, 111, 0.18);
}

.brand-subtitle {
    font-size: 13px;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav a {
    padding: 10px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #f1deb3;
}

.nav a:hover {
    border-color: var(--line);
    background: rgba(243, 201, 111, 0.06);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(243, 201, 111, 0.08);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot-ok { background: var(--ok); }
.dot-warn { background: var(--warn); }

.page {
    padding: 34px 0 58px;
    position: relative;
    z-index: 1;
}

.premium-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 26px;
    background:
        linear-gradient(180deg, rgba(13, 26, 51, 0.9) 0%, rgba(6, 12, 23, 0.94) 100%);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.premium-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(135deg, rgba(243, 201, 111, 0.08), transparent 26%),
        linear-gradient(315deg, rgba(49, 94, 181, 0.13), transparent 34%);
    pointer-events: none;
}

.hero {
    padding: 34px;
    margin-bottom: 22px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.3px;
    color: var(--gold);
}

.hero h1,
.page-head h1,
.section-head h2,
.feature-card h2,
.stat-panel h2,
.mission-banner h2,
.crest-caption h2 {
    margin: 0 0 12px;
    line-height: 1.08;
}

.hero h1 {
    font-size: 54px;
    max-width: 780px;
}

.hero-lead,
.page-head p,
.feature-card p,
.flow-item p,
.stat-panel p,
.footer-text,
.mission-banner p,
.crest-caption p {
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 22px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 22px;
    border-radius: 15px;
    border: 1px solid rgba(255, 231, 182, 0.85);
    background: linear-gradient(180deg, #ffe09a 0%, #d39438 52%, #a5631c 100%);
    color: #241504;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.2px;
    box-shadow:
        0 0 0 1px rgba(243, 201, 111, 0.18) inset,
        0 10px 20px rgba(165, 99, 28, 0.3);
    cursor: pointer;
}

.btn:hover { filter: brightness(1.04); transform: translateY(-1px); }

.btn-outline {
    background: rgba(243, 201, 111, 0.05);
    color: var(--text);
    border: 1px solid var(--line);
    box-shadow: none;
}

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

.metric-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(243, 201, 111, 0.06);
    border: 1px solid var(--line);
}

.metric-value {
    font-size: 24px;
    font-weight: 800;
    color: #ffe0a3;
}

.metric-label {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}

.crest-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    min-height: 100%;
}

.hero-emblem {
    width: min(100%, 430px);
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 0 26px rgba(243, 201, 111, 0.26));
}

.mission-banner {
    margin-bottom: 22px;
}

.grid {
    display: grid;
    gap: 20px;
}

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

.feature-card {
    min-height: 230px;
    transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.feature-card:hover,
.card-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
}

.feature-icon {
    width: 58px;
    height: 58px;
    margin-bottom: 18px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #241504;
    background: linear-gradient(180deg, #ffe4a9 0%, #d59031 100%);
    box-shadow: 0 0 22px rgba(243, 201, 111, 0.22);
}

.section-head { margin-bottom: 18px; }

.flow-section { margin-top: 22px; }

.flow-list {
    display: grid;
    gap: 14px;
}

.flow-item {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 18px;
    align-items: start;
    padding: 18px;
    border-radius: 18px;
    background: rgba(243, 201, 111, 0.04);
    border: 1px solid rgba(243, 201, 111, 0.14);
}

.flow-item h3 {
    margin: 2px 0 8px;
    font-size: 22px;
}

.flow-step {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-weight: 800;
    color: #241504;
    background: linear-gradient(180deg, #ffe4a9 0%, #d59031 100%);
}

.cta-banner {
    margin-top: 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.page-head { margin-bottom: 20px; }

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

.dashboard-emblem {
    width: 180px;
    max-width: 34%;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(243, 201, 111, 0.2));
}

.builder-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 20px;
}

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

.form-grid .full { grid-column: 1 / -1; }

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--muted);
    font-size: 14px;
}

input,
textarea {
    width: 100%;
    padding: 13px 14px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(8, 17, 33, 0.92);
    color: var(--text);
    font-size: 14px;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: rgba(255, 222, 149, 0.72);
    box-shadow: 0 0 0 3px rgba(243, 201, 111, 0.08);
}

.form-actions { margin-top: 4px; }

.result-head { margin-bottom: 14px; }

.result-box {
    min-height: 420px;
    padding: 18px;
    border-radius: 18px;
    white-space: pre-wrap;
    background: rgba(4, 9, 18, 0.94);
    border: 1px solid var(--line);
    color: #f7e5b8;
    line-height: 1.65;
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(243, 201, 111, 0.04);
}

.stat-panel { min-height: 220px; }
.warn-box { margin-bottom: 20px; }
.ok { color: var(--ok); font-weight: 800; }
.warn { color: var(--warn); font-weight: 800; }

.site-footer {
    margin-top: 18px;
    border-top: 1px solid var(--line);
    background: rgba(3, 8, 16, 0.82);
}

.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 22px 0;
    flex-wrap: wrap;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-brand {
    font-weight: 800;
    color: #f7d79b;
    margin-bottom: 6px;
}

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

@media (max-width: 980px) {
    .hero-grid,
    .builder-layout,
    .grid.two,
    .grid.three,
    .hero-metrics,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 { font-size: 38px; }
    .cta-banner,
    .footer-grid,
    .dashboard-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-emblem {
        width: 150px;
        max-width: 100%;
    }
}
