:root {
    --bg: #0B0D10;
    --bg-elevated: #12151A;
    --bg-muted: #1A1F27;
    --border: #2A313C;
    --mint: #30F2B2;
    --violet: #968CEE;
    --text: #F3F5F7;
    --muted: #9AA3B2;
    --tertiary: #6B7380;
    --max: 760px;
    --nav-max: 1120px;
    --page-pad: clamp(20px, 3vw, 40px);
    --brand-gradient: linear-gradient(90deg, #30F2B2 0%, #968CEE 50%, #F68BBB 100%);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    padding-inline: max(var(--page-pad), calc((100vw - var(--nav-max)) / 2));
    font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(820px 420px at 50% -12%, rgba(150, 140, 238, 0.14), transparent 58%),
        var(--bg);
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
}

.nav-wrap {
    width: 100%;
    max-width: var(--nav-max);
    margin: 0 auto;
}

.nav-shell {
    position: sticky;
    top: 16px;
    z-index: 50;
    padding-top: 8px;
}

.nav {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 8px 10px 8px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(18, 21, 26, 0.45);
    backdrop-filter: blur(22px) saturate(1.35);
    -webkit-backdrop-filter: blur(22px) saturate(1.35);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 0.04em;
    z-index: 1;
}

.brand img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.15;
}

.brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--muted);
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    z-index: 1;
}

.nav-links a {
    padding: 10px 16px;
    border-radius: 999px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    transition: background 140ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
    background: rgba(255, 255, 255, 0.08);
}

main {
    flex: 1;
    padding: 40px 0 64px;
}

.article .back {
    display: inline-flex;
    margin-bottom: 22px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.article .back:hover { color: var(--text); }

.eyebrow {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--bg-muted);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.article h1 {
    margin: 0 0 14px;
    font-size: clamp(30px, 4.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 28px;
    color: var(--tertiary);
    font-size: 14px;
    font-weight: 600;
}

.cover {
    margin-bottom: 32px;
    border-radius: 22px;
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--bg-elevated);
}

.cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cover-placeholder {
    aspect-ratio: 16 / 9;
    display: grid;
    place-items: center;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background:
        linear-gradient(145deg, rgba(48, 242, 178, 0.16), rgba(150, 140, 238, 0.2) 55%, rgba(246, 139, 187, 0.14)),
        var(--bg-muted);
}

.content {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(243, 245, 247, 0.92);
}

.content p { margin: 0 0 18px; }

.content h2 {
    margin: 32px 0 12px;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.content h3 {
    margin: 26px 0 10px;
    font-size: 18px;
    font-weight: 800;
}

.content .faq h3 {
    margin: 28px 0 10px;
    color: var(--mint);
    font-size: 19px;
}

.content table {
    width: 100%;
    margin: 8px 0 24px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.45;
}

.content th,
.content td {
    padding: 10px 12px;
    border: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}

.content th {
    background: rgba(48, 242, 178, 0.08);
    color: var(--text);
    font-weight: 800;
}

.content td {
    color: var(--muted);
}

.content tr:nth-child(even) td {
    background: rgba(255, 255, 255, 0.02);
}

.content ul,
.content ol {
    margin: 0 0 18px;
    padding-left: 1.2em;
}

.content li { margin-bottom: 8px; }

.content img {
    margin: 8px 0 22px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.content figure {
    margin: 10px 0 26px;
}

.content figure img {
    margin: 0;
    width: 100%;
}

.content figure.fig-phone {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.content figure.fig-phone .phone-frame {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: clamp(36px, 7vw, 64px) clamp(28px, 8vw, 96px);
    border-radius: 22px;
    background:
        radial-gradient(520px 220px at 50% 20%, rgba(48, 242, 178, 0.12), transparent 70%),
        #050607;
    border: 1px solid transparent;
    background-clip: padding-box;
    box-shadow:
        0 0 0 1px rgba(48, 242, 178, 0.28),
        0 0 0 1px rgba(150, 140, 238, 0.12) inset,
        0 18px 40px rgba(0, 0, 0, 0.35);
    position: relative;
}

.content figure.fig-phone .phone-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(48, 242, 178, 0.75), rgba(150, 140, 238, 0.35), rgba(246, 139, 187, 0.28));
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
}

.content figure.fig-phone img {
    width: min(100%, 300px);
    background: transparent;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.content figcaption {
    margin-top: 12px;
    color: var(--tertiary);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.content blockquote {
    margin: 22px 0;
    padding: 14px 18px;
    border-left: 3px solid var(--violet);
    border-radius: 0 14px 14px 0;
    background: rgba(150, 140, 238, 0.08);
    color: var(--muted);
    font-size: 16px;
}

.cta-box {
    margin-top: 40px;
    padding: 24px;
    border-radius: 22px;
    border: 1px solid var(--border);
    background:
        radial-gradient(420px 180px at 20% 0%, rgba(150, 140, 238, 0.16), transparent 70%),
        var(--bg-elevated);
}

.cta-box h3 {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 800;
}

.cta-box p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.55;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--brand-gradient);
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
}

footer {
    border-top: 1px solid var(--border);
    padding: 18px 0 28px;
    color: var(--tertiary);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.footer-links a:hover { color: var(--text); }

@media (max-width: 720px) {
    .nav-links {
        position: static;
        left: auto;
        transform: none;
        margin-left: auto;
    }

            .nav-links a:not(.is-active) { display: none; }
    .brand-tag { font-size: 10px; }
    .content { font-size: 16px; }
}
