:root {
    --bg: #f7f1ea;
    --bg-soft: #fffaf4;
    --panel: rgba(255, 255, 255, 0.88);
    --panel-solid: #ffffff;
    --text: #161616;
    --muted: #666055;
    --line: rgba(23, 18, 12, 0.08);
    --gold: #b97822;
    --gold-dark: #8b5615;
    --dark: #171717;
    --shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.12);
    --shadow-md: 0 18px 60px rgba(0, 0, 0, 0.08);
    --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.06);
    --radius-xl: 34px;
    --radius-lg: 28px;
    --radius-md: 22px;
    --container: min(1200px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(223, 191, 140, 0.28), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 0, 0, 0.06), transparent 28%),
        linear-gradient(180deg, #fbf8f4 0%, var(--bg) 100%);
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.container { width: var(--container); margin: 0 auto; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    border-bottom: 1px solid rgba(0,0,0,.04);
    backdrop-filter: blur(18px);
    background: rgba(247, 241, 234, 0.86);
}
.site-header__inner {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
}
.brand__name {
    font-weight: 900;
    font-size: 1.85rem;
    line-height: 1;
    letter-spacing: -0.08em;
}
.brand__tag {
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: var(--gold);
    font-weight: 800;
}
.site-nav,
.site-header__actions {
    display: flex;
    align-items: center;
    gap: 16px;
}
.site-nav a {
    color: rgba(22,22,22,.72);
    font-weight: 600;
    font-size: .96rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold {
    color: #fff;
    background: linear-gradient(135deg, #b97822 0%, #d59634 100%);
    box-shadow: 0 14px 34px rgba(185, 120, 34, 0.28);
}
.btn-soft {
    background: rgba(255,255,255,.8);
    border-color: rgba(0,0,0,.08);
    box-shadow: var(--shadow-sm);
}
.btn-dark {
    color: #fff;
    background: #161616;
}
.btn-block { width: 100%; }

.page-hero {
    position: relative;
    overflow: hidden;
    padding: 52px 0 28px;
}
.page-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
    gap: 36px;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid rgba(185,120,34,.22);
    background: rgba(255,255,255,.7);
    box-shadow: var(--shadow-sm);
    text-transform: uppercase;
    letter-spacing: .24em;
    font-size: .72rem;
    color: var(--gold);
    font-weight: 800;
}
.page-hero h1,
.section-heading h2,
.plan-hero h1,
.auth-panel__copy h1 {
    margin: 18px 0 0;
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: .93;
}
.page-hero h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 760px; }
.lead,
.plan-hero p,
.auth-panel__copy p { 
    margin: 22px 0 0;
    color: rgba(22,22,22,.64);
    font-size: 1.08rem;
    line-height: 1.85;
    max-width: 760px;
}
.hero-actions,
.hero-tags { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-actions { margin-top: 34px; }
.hero-tags { margin-top: 26px; }
.hero-tag {
    padding: 11px 16px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: var(--shadow-sm);
    color: rgba(22,22,22,.68);
    font-weight: 700;
    font-size: .94rem;
}
.hero-media {
    display: grid;
    grid-template-columns: minmax(0,1.12fr) minmax(0,.78fr);
    gap: 18px;
}
.hero-media__stack { display: grid; gap: 18px; }
.media-card,
.card,
.plan-card,
.gallery-card,
.step-card,
.auth-card {
    background: var(--panel-solid);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.media-card { border-radius: 32px; }
.media-card--hero { min-height: 620px; }
.media-card img,
.gallery-card__media img,
.auth-panel__visual img { width: 100%; height: 100%; object-fit: cover; }

.section {
    padding: 26px 0 82px;
}
.section-heading {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 28px;
}
.section-heading h2 { font-size: clamp(2.2rem, 4vw, 4rem); }
.section-heading p {
    margin: 0;
    max-width: 560px;
    color: rgba(22,22,22,.58);
    line-height: 1.85;
}
.cards-3,
.gallery-grid,
.plans-grid {
    display: grid;
    gap: 22px;
}
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.gallery-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.plans-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.step-card,
.plan-card,
.gallery-card { border-radius: 30px; }
.step-card,
.plan-card { padding: 30px; }
.step-card__number,
.kicker {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: .22em;
    font-weight: 900;
    font-size: .78rem;
}
.step-card h3,
.plan-card h3,
.gallery-card h3 { margin: 18px 0 0; font-size: 1.9rem; letter-spacing: -0.05em; }
.step-card p,
.plan-card p,
.gallery-card p,
.auth-card p,
.site-footer p { color: rgba(22,22,22,.62); line-height: 1.8; }
.gallery-card__media { aspect-ratio: 4 / 4.2; }
.gallery-card__body { padding: 24px; }
.plan-card--featured {
    border-color: rgba(199,137,41,.28);
    background: linear-gradient(180deg, #fff8ef 0%, #ffffff 100%);
    box-shadow: 0 22px 70px rgba(185,120,34,.14);
}
.plan-price {
    margin-top: 14px;
    font-size: 3.2rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}
.plan-limit { margin-top: 10px; color: rgba(22,22,22,.58); font-size: 1.02rem; }
.plan-features {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    color: rgba(22,22,22,.72);
}
.plan-features li::before {
    content: '•';
    margin-right: 8px;
    color: var(--gold);
    font-weight: 900;
}
.plan-cta { margin-top: 24px; }

.cta-band {
    padding: 14px 0 90px;
}
.cta-band__inner {
    display: grid;
    grid-template-columns: minmax(0,1.1fr) minmax(0,.9fr);
    gap: 30px;
    align-items: center;
    padding: 42px;
    border-radius: 34px;
    color: #fff;
    background: linear-gradient(180deg, #171717 0%, #101010 100%);
    box-shadow: 0 24px 80px rgba(0,0,0,.18);
}
.cta-band h2 { margin: 12px 0 0; font-size: clamp(2.2rem, 4.2vw, 4rem); letter-spacing: -0.07em; line-height: .97; }
.cta-band p { color: rgba(255,255,255,.72); line-height: 1.85; max-width: 720px; }
.cta-band__buttons { display: grid; gap: 14px; }

.plan-hero,
.auth-panel { padding: 56px 0 88px; }
.plan-hero__content,
.auth-panel__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
    gap: 32px;
    align-items: stretch;
}
.auth-panel__copy,
.auth-card,
.plan-hero__copy,
.plan-hero__side {
    padding: 34px;
    border-radius: 32px;
    background: rgba(255,255,255,.76);
    border: 1px solid rgba(0,0,0,.05);
    box-shadow: var(--shadow-md);
}
.auth-panel__copy h1,
.plan-hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.8rem); }
.auth-panel__visual,
.plan-hero__side {
    overflow: hidden;
    border-radius: 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,.05);
    background: #fff;
}
.auth-panel__visual { min-height: 100%; }
.form-grid { display: grid; gap: 16px; margin-top: 28px; }
.form-grid label { display: grid; gap: 9px; font-weight: 700; color: #2d2a26; }
.form-grid input {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,.10);
    background: rgba(255,255,255,.92);
    color: #191919;
}
.form-grid input:focus { outline: 2px solid rgba(185,120,34,.18); border-color: rgba(185,120,34,.36); }
.alert {
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 600;
}
.alert.error { background: #fff2f2; color: #a23a32; border: 1px solid #efc2c2; }
.alert.success { background: #effaf0; color: #23683a; border: 1px solid #bee4c5; }
.helper-text { margin-top: 14px; color: rgba(22,22,22,.58); line-height: 1.7; }
.inline-links { display: grid; gap: 10px; margin-top: 18px; }
.inline-links a { color: var(--gold-dark); font-weight: 700; }

.dashboard-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    background: #f8f5f0;
}
.sidebar {
    padding: 26px;
    background: #151515;
    color: #fff;
}
.sidebar__brand { font-size: 1.4rem; font-weight: 900; letter-spacing: -0.05em; }
.sidebar__nav { display: grid; gap: 8px; margin-top: 26px; }
.sidebar__nav a {
    padding: 13px 14px;
    border-radius: 16px;
    color: rgba(255,255,255,.82);
    background: rgba(255,255,255,.04);
}
.dashboard-main { padding: 26px; }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,.05);
}
.topbar h1 { margin: 0; letter-spacing: -0.05em; }
.topbar__user { font-weight: 700; color: rgba(22,22,22,.66); }
.site-footer {
    padding: 0 0 34px;
}
.site-footer__inner {
    padding-top: 24px;
    border-top: 1px solid rgba(0,0,0,.06);
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}
.site-footer__links { display: flex; gap: 18px; color: rgba(22,22,22,.6); font-weight: 600; }

@media (max-width: 1100px) {
    .site-nav { display: none; }
    .page-hero__grid,
    .plan-hero__content,
    .auth-panel__grid,
    .cta-band__inner,
    .section-heading,
    .hero-media {
        grid-template-columns: 1fr;
    }
    .cards-3,
    .gallery-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }
    .media-card--hero { min-height: 460px; }
}

@media (max-width: 720px) {
    :root { --container: min(1200px, calc(100% - 24px)); }
    .site-header__inner {
        min-height: auto;
        padding: 16px 0;
        align-items: flex-start;
        flex-direction: column;
    }
    .site-header__actions { width: 100%; flex-direction: column; }
    .site-header__actions .btn,
    .hero-actions .btn,
    .cta-band__buttons .btn,
    .plan-cta .btn,
    .btn-block { width: 100%; }
    .page-hero { padding-top: 32px; }
    .plan-hero, .auth-panel, .section, .cta-band { padding-bottom: 54px; }
    .plan-hero__copy, .auth-panel__copy, .auth-card, .plan-hero__side, .cta-band__inner { padding: 24px; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; }
    .dashboard-shell { grid-template-columns: 1fr; }
}
