:root {
    --navy: #1c398e;
    --blue: #2f6bff;
    --gold: #f5c451;
    --ink: #eef2ff;
    --muted: rgba(226, 234, 255, 0.78);
    --font: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

.home-body {
    min-height: 100vh;
    color: var(--ink);
    font-family: var(--font);
    background:
        radial-gradient(ellipse 48% 62% at 8% 46%, rgba(78, 132, 235, 0.5), transparent 64%),
        radial-gradient(ellipse 40% 52% at 94% 54%, rgba(5, 14, 58, 0.78), transparent 66%),
        linear-gradient(165deg, #1d4ec4 0%, #173fae 46%, #12348f 100%);
}

.home-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 22px 0 28px;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.home-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    text-decoration: none;
}

.home-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--blue);
    box-shadow: 0 8px 18px rgba(47, 107, 255, 0.35);
}

.home-name {
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--gold);
}

.home-name span { color: #fff; }

.home-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 6px;
}

.home-user-copy {
    display: grid;
}

.home-user-copy strong {
    font-size: 0.88rem;
}

.home-user-copy em {
    color: var(--muted);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 700;
}

.home-avatar {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #12306f;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.home-btn-light {
    background: #fff;
    color: var(--navy);
}

.home-btn-light:hover { background: #eef3ff; }

.home-btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
}

.home-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }

.home-btn-gold {
    background: var(--gold);
    color: #1c2a4a;
}

.home-btn-gold:hover { background: #ffd36a; }

.home-main { flex: 1; }

.home-alert {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fde8e8;
    color: #9b1c1c;
    font-size: 0.9rem;
}

.home-alert-ok {
    background: #e7f6ee;
    color: #146c43;
}

.home-hero {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 36px;
    align-items: center;
    margin-top: 56px;
}

.home-kicker {
    margin: 0 0 10px;
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-copy h1 {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.08;
    letter-spacing: -0.04em;
}

.home-lead {
    max-width: 34rem;
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.home-visual {
    display: grid;
    place-items: center;
}

.home-phone {
    width: min(100%, 280px);
    padding: 18px 18px 22px;
    border-radius: 28px;
    background: linear-gradient(180deg, #f7f9ff 0%, #e8edf8 100%);
    color: #1c2434;
    box-shadow: 0 28px 50px rgba(8, 18, 64, 0.35);
}

.home-phone-bar {
    width: 72px;
    height: 6px;
    margin: 4px auto 18px;
    border-radius: 999px;
    background: #d5dbe8;
}

.home-qr {
    display: grid;
    place-items: center;
    padding: 16px;
    border-radius: 18px;
    background: #fff;
}

.home-phone p {
    margin: 14px 0 0;
    text-align: center;
    color: #5b6578;
    font-size: 0.86rem;
    font-weight: 700;
}

.home-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 56px;
}

.home-features article {
    padding: 20px 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(12, 32, 96, 0.28);
}

.home-features h2 {
    margin: 12px 0 8px;
    font-size: 1.02rem;
}

.home-features p {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

.home-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: rgba(245, 196, 81, 0.16);
    color: var(--gold);
}

.home-foot {
    margin-top: 40px;
    color: rgba(226, 234, 255, 0.72);
    font-size: 0.82rem;
}

@media (max-width: 860px) {
    .home-hero,
    .home-features { grid-template-columns: 1fr; }
    .home-hero { margin-top: 32px; }
    .home-visual { order: -1; }
    .home-phone { width: min(100%, 240px); }
}

@media (max-width: 640px) {
    .home-shell { width: calc(100% - 28px); }
    .home-nav, .home-actions { flex-wrap: wrap; }
    .home-user-copy { display: none; }
}
