:root {
    --bg: #050505;
    --bg2: #110707;
    --panel: rgba(20, 9, 9, 0.82);
    --panel-strong: #1a0d0d;
    --line: rgba(255, 82, 82, 0.26);
    --text: #f6ebeb;
    --muted: #cfbcbc;
    --accent: #ff3434;
    --accent2: #a90505;
    --good: #ff4c4c;
    --warn: #ffce6f;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.52);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    color: var(--text);
    font-family: 'Space Grotesk', system-ui, sans-serif;
    background:
        radial-gradient(1000px 460px at 18% 8%, rgba(255, 52, 52, 0.22), transparent 65%),
        radial-gradient(950px 500px at 85% 12%, rgba(169, 5, 5, 0.2), transparent 68%),
        linear-gradient(180deg, var(--bg2) 0%, var(--bg) 70%);
    overflow-x: hidden;
}

.grain {
    pointer-events: none;
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 0.45px, transparent 0.45px);
    background-size: 3px 3px;
    opacity: 0.2;
    z-index: 0;
}

.wrap {
    position: relative;
    z-index: 1;
    width: min(1140px, 92vw);
    margin: 0 auto;
    padding: 1.2rem 0 4.5rem;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.8rem;
    gap: 1rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.3px;
}

.brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid var(--line);
    box-shadow: 0 0 0 3px rgba(255, 52, 52, 0.14);
}

.back {
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(18, 8, 8, 0.85);
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-weight: 600;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.back:hover {
    transform: translateY(-1px);
    border-color: rgba(255, 92, 92, 0.72);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 1.4rem;
    margin-bottom: 1.1rem;
}

.hero-main,
.hero-side,
.card,
.faq,
.cta {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.hero-main {
    padding: 1.7rem;
    animation: floatIn 0.55s ease both;
}

.hero-side {
    padding: 1.2rem;
    animation: floatIn 0.62s ease both;
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 52, 52, 0.13);
    border: 1px solid rgba(255, 92, 92, 0.45);
    color: #ffd6d6;
    border-radius: 999px;
    padding: 0.3rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.tag .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--good);
    box-shadow: 0 0 10px rgba(255, 76, 76, 0.9);
}

h1 {
    font-family: 'Sora', 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 4.2vw, 3.1rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 0.9rem;
}

.lead {
    color: var(--muted);
    max-width: 60ch;
    line-height: 1.55;
    margin-bottom: 1.2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.btn {
    text-decoration: none;
    border-radius: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

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

.btn-primary {
    padding: 0.72rem 1.15rem;
    color: #fff5f5;
    background: linear-gradient(95deg, #ff4b4b 0%, #d40b0b 45%, #8c0404 100%);
    box-shadow: 0 10px 20px rgba(255, 52, 52, 0.34);
}

.btn-secondary {
    padding: 0.68rem 1.02rem;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(25, 10, 10, 0.9);
}

.side-title {
    font-size: 0.83rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #ffc5c5;
    margin-bottom: 0.8rem;
}

.checklist {
    list-style: none;
    display: grid;
    gap: 0.6rem;
}

.checklist li {
    padding: 0.55rem 0.65rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 106, 106, 0.26);
    background: rgba(17, 7, 7, 0.72);
    color: #f2dada;
    font-size: 0.94rem;
    line-height: 1.4;
}

.steps {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.card {
    padding: 1rem;
    animation: floatIn 0.7s ease both;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
    color: #fff5f5;
    background: linear-gradient(130deg, #ff4545 0%, #910505 100%);
}

.card h3 {
    margin-bottom: 0.45rem;
    font-size: 1rem;
}

.card p {
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.stack {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.faq,
.cta {
    padding: 1rem;
}

.faq h4,
.cta h4 {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}

.faq p,
.cta p {
    color: var(--muted);
    line-height: 1.45;
    font-size: 0.92rem;
    margin-bottom: 0.65rem;
}

.note {
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    background: rgba(255, 206, 111, 0.09);
    border: 1px solid rgba(255, 206, 111, 0.35);
    color: #ffe2a8;
    font-size: 0.84rem;
    line-height: 1.4;
}

.footer-line {
    margin-top: 1rem;
    color: #b59797;
    font-size: 0.76rem;
    text-align: center;
}

.guide-grid {
    margin-top: 1.2rem;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.9rem;
}

.guide,
.flow,
.trust {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 1rem;
}

.guide h4,
.flow h4,
.trust h4 {
    margin-bottom: 0.7rem;
    font-size: 1rem;
}

.setup-list {
    margin-left: 1.15rem;
    display: grid;
    gap: 0.55rem;
    color: var(--text);
    line-height: 1.45;
    font-size: 0.92rem;
}

.setup-list li::marker {
    color: #ff8a8a;
    font-weight: 700;
}

.perm-box {
    margin-top: 0.45rem;
    border: 1px solid rgba(255, 112, 112, 0.25);
    background: rgba(19, 8, 8, 0.72);
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
}

.perm-title {
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ffb4b4;
    margin-bottom: 0.45rem;
    font-weight: 700;
}

.perm-list {
    margin-left: 1rem;
    display: grid;
    gap: 0.25rem;
    color: #f3d4d4;
    font-size: 0.88rem;
}

.flow-list {
    margin-left: 1.1rem;
    display: grid;
    gap: 0.5rem;
    color: #f0dcdc;
    font-size: 0.9rem;
    line-height: 1.45;
}

.muted-mini {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.45;
    margin-top: 0.7rem;
}

@keyframes floatIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 980px) {
    .hero,
    .steps,
    .stack,
    .guide-grid {
        grid-template-columns: 1fr;
    }

    .hero-main,
    .hero-side,
    .card,
    .faq,
    .cta,
    .guide,
    .flow,
    .trust {
        border-radius: 14px;
    }
}
