:root {
    --bg: #050505;
    --panel: #0d0d0d;
    --line: rgba(255,255,255,.16);
    --text: #f4f4f4;
    --muted: #bdbdbd;
    --white: #ffffff;
    --black: #000000;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: Inter, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
}

.noise {
    pointer-events: none;
    position: fixed;
    inset: 0;
    opacity: .07;
    background-image:
      radial-gradient(circle at 20% 20%, rgba(255,255,255,.12) 0 1px, transparent 1px),
      radial-gradient(circle at 80% 30%, rgba(255,255,255,.08) 0 1px, transparent 1px),
      radial-gradient(circle at 40% 70%, rgba(255,255,255,.10) 0 1px, transparent 1px);
    background-size: 18px 18px, 22px 22px, 26px 26px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(10px);
    background: rgba(5,5,5,.8);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 28px;
}

.logo {
    color: var(--white);
    text-decoration: none;
    font-weight: 900;
    letter-spacing: .12em;
    font-size: 24px;
    transform: rotate(-2deg);
}
.logo span { color: #9d9d9d; }

.nav { display: flex; gap: 18px; }
.nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.nav a:hover { color: var(--white); }

.page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 34px 20px 60px;
}

.hero,
.profile-grid,
.grid {
    display: grid;
    gap: 20px;
}
.hero {
    grid-template-columns: 1.3fr .8fr;
    align-items: stretch;
    margin-bottom: 24px;
}
.grid.plans {
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 24px;
}
.profile-grid {
    grid-template-columns: 1.3fr .7fr;
}
.instruction-grid {
    grid-template-columns: repeat(3, 1fr);
}

.hero-copy,
.single,
.plan,
.hero-card,
.cta,
.profile-main,
.profile-side,
.instruction-grid article {
    background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 26px;
    position: relative;
}

.scribble-frame::before,
.scribble-frame::after {
    content: "";
    position: absolute;
    inset: -6px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 30px;
    transform: rotate(-.9deg);
    pointer-events: none;
}
.scribble-frame::after {
    inset: -10px;
    transform: rotate(1deg);
    opacity: .5;
}

.tag {
    color: #8b8b8b;
    font-size: 12px;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

h1, h2 {
    margin: 0 0 16px;
    line-height: .95;
    font-weight: 900;
}

h1 {
    font-size: clamp(42px, 8vw, 92px);
    text-transform: uppercase;
    letter-spacing: -.04em;
}

h2 {
    font-size: 30px;
    text-transform: uppercase;
}

p, li, ol {
    color: var(--muted);
    line-height: 1.6;
}

.hero-actions,
.login-form {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: .04em;
    transition: transform .15s ease, opacity .15s ease;
    border: 1px solid var(--white);
    cursor: pointer;
}
.btn:hover { transform: translateY(-2px); }
.btn-white {
    background: var(--white);
    color: var(--black);
}
.btn-outline {
    background: transparent;
    color: var(--white);
}

.plan-title { font-size: 18px; color: var(--muted); margin-bottom: 6px; }
.plan-price { font-size: 42px; font-weight: 900; margin-bottom: 8px; }
.plan-note { color: var(--muted); margin-bottom: 18px; }

.card-title { font-size: 18px; font-weight: 800; margin-bottom: 14px; }

.data-list {
    display: grid;
    gap: 12px;
}
.data-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(255,255,255,.14);
}
.data-list span { color: var(--muted); }
.data-list strong { text-align: right; }

.empty-box,
.help-box {
    color: var(--muted);
    border: 1px dashed rgba(255,255,255,.18);
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
}

.login-form input {
    flex: 1 1 260px;
    min-height: 50px;
    background: #0c0c0c;
    border: 1px solid rgba(255,255,255,.18);
    color: var(--white);
    border-radius: 999px;
    padding: 0 18px;
    font-size: 16px;
}

.narrow { max-width: 700px; margin: 0 auto; }
.section-head { margin-bottom: 20px; }

code {
    display: inline-block;
    background: rgba(255,255,255,.08);
    border-radius: 10px;
    padding: 4px 8px;
    color: #fff;
}

@media (max-width: 960px) {
    .hero,
    .grid.plans,
    .profile-grid,
    .instruction-grid {
        grid-template-columns: 1fr;
    }

    .topbar {
        flex-direction: column;
        gap: 12px;
    }

    .nav {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.key-box {
    margin-top: 12px;
    padding: 14px;
    border: 1px solid #fff;
    border-radius: 12px;
    word-break: break-all;
    background: rgba(255,255,255,0.04);
    font-size: 14px;
    line-height: 1.5;
}
