:root {
    --bg: #f4efe7;
    --panel: rgba(255, 252, 247, 0.82);
    --ink: #1e1b18;
    --muted: #625a51;
    --accent: #b84f2d;
    --accent-soft: #f6d8bf;
    --line: rgba(30, 27, 24, 0.09);
    --success: #346b52;
    --shadow: 0 18px 45px rgba(74, 42, 23, 0.12);
    --radius: 24px;
    --font-main: "Segoe UI", "Helvetica Neue", sans-serif;
    --dark-surface: #10231c;
    --dark-surface-2: #173429;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-main);
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(255, 226, 196, 0.9), transparent 30%),
        radial-gradient(circle at top right, rgba(191, 223, 208, 0.55), transparent 28%),
        linear-gradient(180deg, #efe4d4 0%, #f7f2eb 42%, #efe7db 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent 70%);
}

.app-shell {
    width: min(100%, 1180px);
    margin: 0 auto;
    padding: 20px 16px 100px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 8px 2px;
}

.brand-mark {
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-size: 1.08rem;
}

.top-links {
    display: none;
    align-items: center;
    gap: 10px;
}

.top-link {
    padding: 10px 14px;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.46);
}

.top-link.active {
    color: #fff;
    background: rgba(30, 27, 24, 0.88);
}

.top-link-logout {
    background: rgba(184, 79, 45, 0.12);
    color: #8a3a21;
}

.hero,
.panel,
.bottom-nav {
    backdrop-filter: blur(18px);
}

.hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 22px;
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(255, 250, 244, 0.9), rgba(245, 225, 205, 0.75));
    box-shadow: var(--shadow);
}

.hero-home {
    background:
        radial-gradient(circle at top right, rgba(255, 234, 214, 0.9), transparent 28%),
        linear-gradient(145deg, rgba(255, 250, 244, 0.94), rgba(245, 225, 205, 0.82));
}

.hero-pricing {
    background:
        radial-gradient(circle at top right, rgba(209, 235, 220, 0.9), transparent 28%),
        linear-gradient(145deg, rgba(249, 253, 250, 0.94), rgba(226, 241, 232, 0.82));
}

.hero-actions {
    display: grid;
    gap: 10px;
}

.hero-showcase {
    position: relative;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: stretch;
    min-height: 620px;
}

.hero-copy-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 12px;
}

.hero-showcase h1 {
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    line-height: 0.95;
    letter-spacing: -0.04em;
    max-width: 10ch;
}

.hero-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.hero-spotlight {
    display: grid;
    gap: 12px;
    min-width: min(100%, 260px);
}

.hero-kpi {
    padding: 16px;
    border-radius: 22px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.72);
}

.hero-proof-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.proof-pill {
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(30, 27, 24, 0.08);
    color: var(--muted);
    font-size: 0.9rem;
}

.showcase-stack {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.showcase-phone {
    width: min(100%, 360px);
    border-radius: 38px;
    padding: 18px;
    color: #f8f7f4;
    background:
        linear-gradient(180deg, rgba(28, 50, 41, 0.98), rgba(14, 25, 20, 0.98));
    box-shadow: 0 30px 80px rgba(18, 29, 24, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-topline {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.live-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #6fd98f;
    box-shadow: 0 0 0 6px rgba(111, 217, 143, 0.15);
}

.phone-card,
.phone-mini-card {
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.phone-card {
    padding: 18px;
}

.phone-card-main strong,
.phone-mini-card strong,
.phone-card-muted strong {
    display: block;
    margin: 6px 0;
}

.phone-card-main strong {
    font-size: 2rem;
}

.phone-card-main span,
.phone-card small,
.phone-mini-card small,
.phone-card-muted span {
    color: rgba(255, 255, 255, 0.7);
}

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

.phone-mini-card {
    padding: 16px;
}

.phone-mini-card strong {
    font-size: 1.8rem;
}

.phone-card-muted {
    background: linear-gradient(135deg, rgba(67, 129, 99, 0.28), rgba(255, 255, 255, 0.08));
}

.floating-notes {
    position: absolute;
    right: -10px;
    bottom: 26px;
    display: grid;
    gap: 12px;
    width: min(240px, 42%);
}

.note-card {
    box-shadow: 0 16px 38px rgba(16, 35, 28, 0.18);
}

.accent-note {
    background: linear-gradient(180deg, rgba(255, 241, 227, 0.95), rgba(247, 223, 194, 0.88));
}

.hero-kpi strong {
    display: block;
    margin-bottom: 6px;
}

.eyebrow {
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    color: var(--accent);
}

.hero h1,
.panel h2,
.data-form h3,
.three-columns h3 {
    margin: 0;
}

.hero-copy {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.45;
}

.ghost-button,
.action-card,
.primary-button,
.primary-link {
    border: 0;
    cursor: pointer;
}

.ghost-button,
.primary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.ghost-button {
    align-self: flex-start;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
}

.primary-link {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f5b47, #3f8967);
    color: #fff;
    font-weight: 600;
}

.content-stack {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.feature-grid {
    display: grid;
    gap: 12px;
}

.journey-grid,
.pricing-grid {
    display: grid;
    gap: 12px;
}

.spotlight-band {
    display: grid;
    gap: 16px;
}

.panel {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.panel-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.tight {
    margin-bottom: 10px;
}

.status-pill,
.soft-badge,
.role-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
}

.status-pill {
    background: var(--accent);
    color: #fff;
}

.soft-badge {
    background: var(--accent-soft);
    color: #7b3a20;
}

.metrics-grid,
.action-grid,
.card-list,
.form-stack,
.three-columns {
    display: grid;
    gap: 12px;
}

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

.metric-card,
.info-card,
.action-card,
.data-form,
.step-card,
.price-card {
    border-radius: 22px;
    border: 1px solid var(--line);
}

.metric-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.66);
}

.metric-card span,
.info-card p,
.info-card small,
.action-card small,
.device-feedback {
    color: var(--muted);
}

.metric-card strong {
    display: block;
    margin: 8px 0 4px;
    font-size: 1.8rem;
}

.info-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.step-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.68);
}

.step-card span {
    width: 34px;
    height: 34px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    background: var(--accent-soft);
    color: #7b3a20;
    font-weight: 700;
}

.price-card {
    display: grid;
    gap: 14px;
    padding: 22px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.featured-price {
    background:
        radial-gradient(circle at top right, rgba(209, 235, 220, 0.72), transparent 34%),
        rgba(255, 255, 255, 0.82);
    border-color: rgba(31, 91, 71, 0.22);
}

.price-copy {
    margin: 0;
    color: var(--muted);
}

.price-list {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
}

.price-list li + li {
    margin-top: 8px;
}

.spotlight-card {
    position: relative;
    overflow: hidden;
    min-height: 240px;
    padding: 24px;
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.dark-card {
    color: #f7f6f1;
    background:
        radial-gradient(circle at top right, rgba(111, 217, 143, 0.18), transparent 24%),
        linear-gradient(145deg, var(--dark-surface), var(--dark-surface-2));
}

.dark-card p {
    max-width: 54ch;
    color: rgba(247, 246, 241, 0.74);
}

.image-card {
    background:
        linear-gradient(145deg, rgba(245, 225, 205, 0.96), rgba(255, 249, 242, 0.9));
    border: 1px solid rgba(30, 27, 24, 0.08);
}

.image-card-copy {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 10px;
    max-width: 22rem;
}

.image-card-copy strong {
    font-size: 2rem;
    line-height: 1;
}

.abstract-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(6px);
}

.orb-one {
    width: 190px;
    height: 190px;
    right: 24px;
    top: 24px;
    background: rgba(31, 91, 71, 0.24);
}

.orb-two {
    width: 140px;
    height: 140px;
    right: 100px;
    bottom: 20px;
    background: rgba(184, 79, 45, 0.22);
}

.empty-card {
    text-align: center;
}

.card-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.role-chip {
    background: rgba(52, 107, 82, 0.12);
    color: var(--success);
}

.compact .info-card strong {
    display: block;
    margin-bottom: 6px;
}

.two-columns {
    display: grid;
    gap: 16px;
}

.form-stack,
.three-columns {
    grid-template-columns: minmax(0, 1fr);
}

.data-form {
    display: grid;
    gap: 10px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.72);
}

.data-form input,
.data-form select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid rgba(30, 27, 24, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
}

.primary-button {
    min-height: 46px;
    padding: 0 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, #1f5b47, #3f8967);
    color: #fff;
    font-weight: 600;
}

.inline-form {
    margin-bottom: 12px;
}

.single-form {
    max-width: 560px;
}

.single-form input[disabled] {
    opacity: 0.7;
    cursor: not-allowed;
}

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

.action-card {
    position: relative;
    display: grid;
    gap: 8px;
    padding: 16px;
    text-align: left;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 232, 214, 0.84));
}

.action-icon {
    width: fit-content;
    padding: 7px 10px;
    border-radius: 12px;
    background: rgba(184, 79, 45, 0.12);
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.file-card input {
    position: absolute;
    inset: 0;
    opacity: 0;
}

.device-feedback {
    margin-top: 14px;
    font-size: 0.92rem;
}

.feedback-box {
    margin-bottom: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--line);
}

.error-box {
    color: #8b261b;
    background: rgba(242, 199, 192, 0.52);
}

.success-box {
    color: #1d5d46;
    background: rgba(197, 233, 214, 0.6);
}

.logout-card {
    display: grid;
    gap: 12px;
}

.inline-ghost {
    width: fit-content;
}

.panel-spacer {
    height: 16px;
}

.bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    width: min(calc(100% - 24px), 448px);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    padding: 10px;
    border-radius: 26px;
    background: rgba(33, 28, 24, 0.9);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.nav-item {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    border-radius: 18px;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.alert-card {
    border-left: 5px solid var(--accent);
}

@media (min-width: 680px) {
    .two-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

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

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

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

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

    .spotlight-band {
        grid-template-columns: 1.15fr 0.85fr;
    }

    .top-links {
        display: inline-flex;
    }

    .bottom-nav {
        position: static;
        transform: none;
        width: 100%;
        margin-top: 8px;
    }
}

@media (max-width: 860px) {
    .hero-showcase {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-copy-column {
        padding-right: 0;
    }

    .showcase-stack {
        padding-top: 12px;
    }

    .floating-notes {
        position: static;
        width: 100%;
        margin-top: 12px;
    }
}

@media (max-width: 679px) {
    .app-shell {
        width: min(100%, 540px);
    }

    .hero-showcase h1 {
        font-size: 2.9rem;
        max-width: none;
    }

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