:root {
    --bg: #07070b;
    --bg-2: #10060a;
    --red: #e10600;
    --red-2: #ff2d2d;
    --text: #f5f6f8;
    --muted: #b7bac6;
    --line: rgba(255, 255, 255, 0.08);
    --card: #121216;
    --header: 74px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.hv-landing {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    font-family: Inter, "Segoe UI", sans-serif;
    background:
        radial-gradient(900px 420px at 78% 18%, rgba(220, 0, 30, 0.28), transparent 60%),
        radial-gradient(700px 380px at 8% 0%, rgba(160, 0, 20, 0.22), transparent 55%),
        linear-gradient(180deg, #12060a 0%, #07070b 42%, #050507 100%);
}

a { color: inherit; text-decoration: none; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--header);
    display: flex;
    align-items: center;
    backdrop-filter: blur(16px);
    background: rgba(8, 8, 12, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.topbar-inner, .wrap {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar-inner {
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    letter-spacing: -0.03em;
    font-size: 20px;
    white-space: nowrap;
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: auto;
}

.nav a {
    color: #ececf1;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 999px;
}

.nav a.active {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 20px rgba(225, 6, 0, 0.35);
}

.nav a:hover:not(.active) { color: #fff; }

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

.lang {
    display: flex;
    padding: 3px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.lang a {
    min-width: 34px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #9aa0ad;
    padding: 5px 7px;
    border-radius: 999px;
}

.lang a.on {
    background: var(--red);
    color: #fff;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.02);
}

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

.menu-toggle {
    display: none;
    margin-left: auto;
    background: transparent;
    color: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    width: 42px;
    height: 42px;
    font-size: 20px;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 12px;
    align-items: center;
    padding: 42px 0 8px;
    }

.hero-copy { position: relative; z-index: 2; max-width: 620px; min-width: 0; }

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 70, 70, 0.35);
    background: rgba(80, 8, 14, 0.55);
    color: #ffd7d7;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: 600;
}

.hero h1 {
    margin: 18px 0 14px;
    font-size: clamp(38px, 4.4vw, 58px);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 800;
}

.hero h1 span { color: var(--red-2); }

.hero-copy p {
    margin: 0 0 26px;
    max-width: 540px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 13px 20px;
    font-weight: 700;
    font-size: 15px;
}

.btn-red {
    background: linear-gradient(180deg, #ff2a2a, #d00000);
    color: #fff;
    box-shadow: 0 10px 28px rgba(225, 6, 0, 0.38);
}

.btn-red:hover { filter: brightness(1.08); }

.btn-ghost {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(8, 8, 12, 0.35);
    color: #fff;
}

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

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 26px;
    color: #d5d7df;
    font-size: 14px;
    font-weight: 600;
}

.pills span { display: inline-flex; align-items: center; gap: 8px; }

.stage {
    position: relative;
    height: 470px;
    min-width: 0;
}

.halo, .ring, .swoosh { position: absolute; pointer-events: none; }

.halo {
    width: 460px;
    height: 180px;
    left: 50%;
    bottom: 78px;
    transform: translateX(-50%);
    background: radial-gradient(ellipse, rgba(255, 20, 40, 0.95), rgba(255, 0, 30, 0.25) 46%, transparent 72%);
    filter: blur(6px);
}

.ring {
    width: 500px;
    height: 168px;
    left: 50%;
    bottom: 86px;
    transform: translateX(-50%) rotateX(68deg);
    border-radius: 50%;
    border: 2px solid rgba(255, 50, 60, 0.75);
    box-shadow: 0 0 24px rgba(255, 0, 40, 0.75), inset 0 0 18px rgba(255, 30, 40, 0.45);
}

.laptop {
    position: absolute;
    z-index: 2;
    width: min(320px, 78%);
    left: 50%;
    top: 78px;
    transform: translateX(-50%);
    filter: drop-shadow(0 30px 30px rgba(0, 0, 0, 0.45));
}

.bezel {
    background: linear-gradient(180deg, #3a3a40, #16161a);
    border-radius: 16px 16px 4px 4px;
    padding: 12px 12px 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.screen {
    height: 214px;
    border-radius: 6px 6px 0 0;
    background:
        radial-gradient(circle at 50% 42%, rgba(120, 10, 20, 0.55), transparent 42%),
        linear-gradient(180deg, #1a0a0e, #070709 78%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 40px rgba(255, 0, 30, 0.18);
}

.code-mark {
    color: #ff2a2a;
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -3px;
    line-height: 1;
    text-shadow: 0 0 18px rgba(255, 30, 40, 0.7);
}

.screen strong {
    margin-top: 8px;
    font-size: 20px;
    letter-spacing: -0.03em;
}

.deck {
    height: 16px;
    background: linear-gradient(#d7d7de, #a9a9b2);
    border-radius: 0 0 6px 6px;
}

.lip {
    height: 12px;
    margin: 0 -34px;
    background: linear-gradient(#f2f2f6, #c5c5ce);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.25);
}

.float {
    position: absolute;
    z-index: 3;
    width: 92px;
    height: 92px;
    border-radius: 26px;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(42, 12, 16, 0.92), rgba(12, 8, 10, 0.96));
    border: 1px solid rgba(255, 70, 80, 0.45);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(255, 0, 40, 0.22);
    animation: bob 5.5s ease-in-out infinite;
}

.float.mail { left: 0; top: 18px; }
.float.wa { right: 0; top: 0; animation-delay: -1.6s; border-color: rgba(37, 211, 102, 0.55); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 24px rgba(37, 211, 102, 0.2); }
.float.sms { right: 6px; top: 168px; animation-delay: -3s; }

.swoosh {
    left: 36%;
    right: -4%;
    bottom: 18px;
    width: auto;
    height: 190px;
    z-index: 0;
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.features {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 18px;
}

.card, .plan, .info-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.card { display: flex; gap: 16px; padding: 22px; min-height: 148px; }
.card h3, .plan h3, .info-card h3 { margin: 0 0 8px; font-size: 18px; }
.card p, .plan p, .info-card p { margin: 0; color: var(--muted); line-height: 1.5; font-size: 14.5px; }

.icon {
    width: 64px;
    height: 64px;
    flex: none;
    border-radius: 16px;
    display: grid;
    place-items: center;
    background: radial-gradient(circle at 40% 30%, #3a1218, #1a090c 70%);
    border: 1px solid rgba(255, 60, 70, 0.28);
    box-shadow: inset 0 0 18px rgba(255, 0, 30, 0.18);
}

.icon.green {
    background: radial-gradient(circle at 40% 30%, #123322, #07140e 72%);
    border-color: rgba(37, 211, 102, 0.35);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin: 34px 0 10px;
    padding: 8px 0 18px;
}

.stat {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
}

.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.08); }
.stat strong { display: block; font-size: 16px; }
.stat span { color: var(--muted); font-size: 14px; }
.stat svg { flex: none; }

.site-footer {
    text-align: center;
    color: #8d909a;
    font-size: 13px;
    padding: 28px 16px 34px;
}

.page {
    padding: 48px 0 20px;
}

.page h1 {
    margin: 12px 0;
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: -0.045em;
}

.lead { max-width: 680px; color: var(--muted); font-size: 18px; line-height: 1.55; }

.base-url {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 22px 0;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 60, 70, 0.28);
    background: rgba(40, 8, 12, 0.45);
}

.base-url code { color: #fff; font-size: 15px; }

.grid-2, .plans { display: grid; gap: 16px; margin-top: 22px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.plans { grid-template-columns: repeat(3, 1fr); }
.plan, .info-card { padding: 22px; }
.plan ul { margin: 14px 0 0; padding-left: 18px; color: var(--muted); }
.plan li + li { margin-top: 6px; }

.swagger-page { background: #0b0d11; }
.swagger-page .topbar { background: #0b0d11; }
#swagger-ui { min-height: calc(100vh - var(--header)); }

.swagger-ui .topbar { display: none; }

@media (max-width: 980px) {
    .topbar-inner { flex-wrap: wrap; align-items: center; padding: 10px 0; }
    .menu-toggle { display: inline-grid; place-items: center; }
    .nav, .top-actions { display: none; width: 100%; }
    .topbar.open .nav { display: flex; flex-direction: column; align-items: flex-start; padding: 8px 0; }
    .topbar.open .top-actions { display: flex; padding-bottom: 8px; }
    .hero, .features, .stats, .grid-2, .plans { grid-template-columns: 1fr; }
    .stage { height: 440px; margin-top: 10px; }
    .laptop { width: 280px; top: 96px; }
    .stat + .stat { border-left: 0; }
    .float.mail { left: 0; }
    .float.wa, .float.sms { right: 0; }
}
