:root {
    --bg: #f6f4ef;
    --surface: rgba(255, 255, 255, 0.82);
    --surface-strong: #ffffff;
    --text: #231f20;
    --muted: #5d5758;
    --gold: #ffc918;
    --gold-deep: #f1ba05;
    --border: rgba(35, 31, 32, 0.12);
    --shadow: 0 24px 60px rgba(35, 31, 32, 0.08);
    --radius: 28px;
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    font-family: "Open Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(255, 201, 24, 0.24), transparent 28%),
        radial-gradient(circle at right center, rgba(35, 31, 32, 0.08), transparent 24%),
        linear-gradient(180deg, #fffdf8 0%, #f3efe7 100%);
    min-height: 100vh;
}

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

.page-shell {
    min-height: 100vh;
    padding: 20px;
}

.layout,
.subpage-layout {
    width: min(1180px, 100%);
    margin: 0 auto;
}

.hero,
.section-block,
.detail-card {
    backdrop-filter: blur(16px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.hero {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 22px;
    padding: 20px 28px;
    align-items: stretch;
}

.hero-copy h1,
.section-head h2,
.detail-card h1,
.detail-card h2 {
    margin: 0;
    font-family: "Montserrat", sans-serif;
    letter-spacing: -0.03em;
}

.hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 0.96;
    max-width: 10ch;
}

.section-copy,
.detail-copy {
    color: var(--muted);
    line-height: 1.7;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    font-weight: 700;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.button-gold {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-deep) 100%);
    box-shadow: 0 16px 30px rgba(255, 201, 24, 0.34);
}

.button-dark {
    background: #231f20;
    color: #fff;
}


.brand-panel {
    background: linear-gradient(160deg, rgba(35, 31, 32, 0.96), rgba(35, 31, 32, 0.78));
    border-radius: 26px;
    padding: 14px 18px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    min-height: 168px;
}

.brand-panel::after {
    content: "";
    position: absolute;
    inset: auto -10% -28% auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 201, 24, 0.7), transparent 70%);
}

.brand-logo {
    position: relative;
    z-index: 1;
    width: min(100%, 300px);
    height: auto;
    object-fit: contain;
    opacity: 0.94;
    filter: brightness(0) invert(1);
}

.settings-grid,
.card-grid {
    display: grid;
    gap: 18px;
}

.settings-grid span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.settings-grid strong {
    font-size: 1rem;
    line-height: 1.4;
}

.section-block,
.detail-card {
    margin-top: 18px;
    padding: 18px;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 22px;
    align-items: end;
    margin-bottom: 10px;
}

.section-head h2 {
    font-size: clamp(1.22rem, 2.2vw, 1.7rem);
}

.section-copy {
    max-width: 40ch;
    margin: 0;
}

.card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

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

.app-card,
.setup-card {
    display: block;
    min-height: 148px;
    padding: 15px;
    border-radius: 18px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.app-card {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(35, 31, 32, 0.08);
}

.setup-card {
    min-height: 126px;
    border: 1px solid rgba(35, 31, 32, 0.08);
}

.setup-card-gold {
    background: linear-gradient(160deg, #fff8df, #ffe7a7);
}

.setup-card-dark {
    background: linear-gradient(160deg, #2f2a2b, #231f20);
    color: #fff;
}

.app-card:hover,
.setup-card:hover,
.back-link:hover,
.button:hover {
    box-shadow: 0 18px 40px rgba(35, 31, 32, 0.12);
}

.app-card:hover,
.setup-card:hover {
    transform: translateY(-4px);
}

.app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background: rgba(255, 201, 24, 0.18);
    color: #6b5200;
    font-weight: 800;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
}

.app-card h3,
.setup-card h3 {
    margin: 10px 0 6px;
    font-family: "Montserrat", sans-serif;
    font-size: 0.95rem;
}

.app-card p,
.setup-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.34;
    font-size: 0.84rem;
}

.setup-card-dark p {
    color: rgba(255, 255, 255, 0.76);
}

.app-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.76rem;
    font-weight: 700;
    color: #7f6200;
}

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

.subpage-layout {
    max-width: 900px;
    margin: 0 auto;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 12px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--border);
    font-weight: 700;
}

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

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.download-row {
    margin-top: 18px;
}

.setup-form label {
    display: grid;
    gap: 8px;
}

.setup-form span {
    font-size: 0.92rem;
    font-weight: 700;
}

.setup-form input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 0 16px;
    font: inherit;
    background: rgba(255, 255, 255, 0.9);
}

.note-box {
    margin-top: 20px;
    padding: 18px 20px;
    border-left: 4px solid var(--gold);
    border-radius: 14px;
    background: rgba(255, 201, 24, 0.12);
}

.note-box-soft {
    margin-top: 16px;
    background: rgba(35, 31, 32, 0.05);
    border-left-color: rgba(35, 31, 32, 0.22);
}

.note-box strong {
    display: block;
    margin-bottom: 8px;
}

.note-box p {
    margin: 0;
    color: var(--muted);
}

.steps-list {
    margin: 22px 0 0;
    padding-left: 20px;
    line-height: 1.8;
    color: var(--muted);
}

@media (max-width: 980px) {
    .page-shell {
        padding: 18px;
    }

    .hero,
    .section-head,
    .card-grid,
    .compact-grid,
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 28px;
    }

    .section-head {
        display: grid;
        align-items: start;
    }
}
