/* ===== Gravity Client page (/gravity) and its legal pages ===== */
.gravity-page {
    --gv-accent: #2f6fd6;
    --gv-accent-light: #7cb8ff;
    --gv-surface: #0f1424;
}

/* Hero */
.gv-hero-top {
    display: flex;
    align-items: center;
    gap: 1.1rem;
}

.gv-hero-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex: 0 0 auto;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.gv-hero-meta {
    margin-top: 0.3rem;
    color: var(--p-muted);
    font-size: 0.95rem;
}

.gv-hero .page-lead {
    max-width: 680px;
    margin-top: 1.1rem;
}

.gv-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.gv-cta.center {
    justify-content: center;
}

.gv-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 46px;
    padding: 0.7rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--p-line);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font: 600 0.98rem 'Rubik', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, border-color 0.2s ease;
}

.gv-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(124, 184, 255, 0.5);
}

.gv-btn.primary {
    background: var(--gv-accent);
    border-color: transparent;
}

.gv-btn.primary:hover {
    background: #2563eb;
}

.gv-btn.small {
    min-height: 38px;
    padding: 0.45rem 0.9rem;
    font-size: 0.88rem;
}

.gv-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.gv-btn small {
    font-weight: 400;
    opacity: 0.8;
}

.gv-cta-note {
    margin-top: 0.8rem;
    color: var(--p-muted);
    font-size: 0.9rem;
}

/* Launcher screenshot */
.gv-showcase {
    padding-top: 0.5rem;
}

.gv-window {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--p-line);
    background: #0b0e18;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.gv-window-bar {
    display: flex;
    gap: 7px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--p-line);
}

.gv-window-bar i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: #ff5f57;
}

.gv-window-bar i:nth-child(2) { background: #febc2e; }
.gv-window-bar i:nth-child(3) { background: #28c840; }

.gv-window img,
.gv-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.gv-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.gv-stats div {
    padding: 1.1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--p-line);
    background: var(--p-card);
}

.gv-stats dt {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
}

.gv-stats dd {
    margin: 0.3rem 0 0;
    color: var(--p-muted);
    font-size: 0.9rem;
}

/* Section heads */
.gv-center {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.gravity-page .section-head p {
    text-wrap: pretty;
}

/* Before / after slider */
.gv-compare {
    position: relative;
    margin: 0;
    aspect-ratio: 1400 / 788;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--p-line);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    user-select: none;
    -webkit-user-select: none;
    touch-action: pan-y;
}

.gv-compare img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gv-compare-top {
    clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.gv-compare-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: var(--pos);
    width: 2px;
    margin-left: -1px;
    background: #fff;
    pointer-events: none;
}

.gv-compare-line i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: var(--gv-accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 6-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.gv-compare-tag {
    position: absolute;
    bottom: 14px;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    background: rgba(8, 11, 22, 0.78);
    border: 1px solid var(--p-line);
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    pointer-events: none;
}

.gv-compare-tag.left { left: 14px; color: var(--gv-accent-light); }
.gv-compare-tag.right { right: 14px; }

.gv-compare input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: ew-resize;
}

.gv-compare:has(input:focus-visible) .gv-compare-line i {
    outline: 3px solid var(--gv-accent-light);
    outline-offset: 3px;
}

/* Feature cards */
.gv-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gv-card {
    padding: 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--p-line);
    background: var(--p-card);
}

.gv-card-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: 0.9rem;
    border-radius: 11px;
    background: rgba(47, 111, 214, 0.18);
}

.gv-card-icon svg {
    width: 20px;
    height: 20px;
    fill: var(--gv-accent-light);
}

.gv-card h3 {
    margin-bottom: 0.4rem;
    color: #fff;
    font: 600 1.05rem 'Rubik', sans-serif;
}

.gv-card p {
    color: var(--p-muted);
    font-size: 0.95rem;
    line-height: 1.55;
}

.gv-card a,
.gv-row-text a,
.gv-legal a {
    color: #9cc8ff;
}

/* Image + text rows */
.gv-row {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
}

.page-section > .container > .gv-row:first-child {
    margin-top: 0;
}

.gv-row.flip .gv-row-text {
    order: 2;
}

.gv-row-text h3 {
    margin-bottom: 0.6rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.25rem, 2.6vw, 1.7rem);
    line-height: 1.25;
    text-wrap: balance;
}

.gv-row-text p {
    color: var(--p-muted);
    line-height: 1.65;
}

.gv-row-text kbd {
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    border: 1px solid var(--p-line);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font: 600 0.85em 'Rubik', sans-serif;
}

.gv-ticks {
    display: grid;
    gap: 0.55rem;
    margin-top: 1.1rem;
    list-style: none;
}

.gv-ticks li {
    position: relative;
    padding-left: 1.7rem;
    color: var(--p-text);
}

.gv-ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 1.1rem;
    height: 1.1rem;
    border-radius: 50%;
    background: rgba(47, 111, 214, 0.2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237cb8ff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
}

.gv-frame {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--p-line);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.gv-pair {
    display: grid;
    gap: 1rem;
}

.gv-cape-frames {
    display: block;
    width: 100%;
    max-width: 360px;
    height: auto;
    margin-top: 1.4rem;
    image-rendering: pixelated;
    border-radius: 10px;
    border: 1px solid var(--p-line);
}

/* DGNetwork server card */
.gv-server {
    padding: 1.6rem;
    border-radius: 18px;
    border: 1px solid var(--p-line);
    background: var(--p-card);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.gv-server-top {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gv-server-top img {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    image-rendering: pixelated;
}

.gv-server-name {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.gv-server-name span {
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    background: rgba(47, 111, 214, 0.18);
    border: 1px solid rgba(124, 184, 255, 0.35);
    color: var(--gv-accent-light);
    font: 700 0.72rem 'Rubik', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gv-server-modes {
    margin-top: 0.2rem;
    color: var(--p-muted);
    font-size: 0.92rem;
}

.gv-server-addr {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 1.3rem;
    padding: 0.7rem 0.7rem 0.7rem 1rem;
    border-radius: 12px;
    border: 1px solid var(--p-line);
    background: rgba(8, 11, 22, 0.7);
}

.gv-server-addr code {
    color: #fff;
    font: 600 1rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.gv-server-note {
    margin-top: 0.9rem;
    color: var(--p-muted);
    font-size: 0.9rem;
}

/* Download */
.gv-download {
    padding: 2.6rem 1.5rem;
    border-radius: 20px;
    border: 1px solid rgba(124, 184, 255, 0.3);
    background: radial-gradient(ellipse 70% 80% at 50% 0%, rgba(47, 111, 214, 0.22), transparent 70%), var(--gv-surface);
    text-align: center;
}

.gv-download > img {
    border-radius: 16px;
    margin-bottom: 1rem;
}

.gv-download h2 {
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.4rem, 3vw, 2rem);
}

.gv-download > p {
    max-width: 560px;
    margin: 0.6rem auto 0;
    color: var(--p-muted);
}

.gv-version {
    margin-top: 1rem !important;
    font-size: 0.9rem;
}

.gv-legal {
    font-size: 0.9rem;
}

.gv-disclaimer {
    font-size: 0.75rem;
    letter-spacing: 0.02em;
    opacity: 0.8;
}

/* Legal pages (privacy / terms) */
.gv-legal-doc {
    color: var(--p-text);
    line-height: 1.7;
}

.gv-legal-doc h2 {
    margin: 2rem 0 0.6rem;
    color: #fff;
    font: 600 1.25rem 'Rubik', sans-serif;
}

.gv-legal-doc p,
.gv-legal-doc ul {
    margin-bottom: 0.9rem;
    color: #c3cbe6;
}

.gv-legal-doc ul {
    padding-left: 1.3rem;
}

.gv-legal-doc a {
    color: #9cc8ff;
}

.gv-legal-doc table {
    width: 100%;
    margin: 0.5rem 0 1.2rem;
    border-collapse: collapse;
    font-size: 0.93rem;
}

.gv-legal-doc th,
.gv-legal-doc td {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--p-line);
    text-align: left;
    vertical-align: top;
}

.gv-legal-doc th {
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.gv-legal-doc .gv-short {
    padding: 1rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(124, 184, 255, 0.3);
    background: rgba(47, 111, 214, 0.1);
}


/* Responsive */
@media (max-width: 900px) {
    .gv-grid,
    .gv-grid.three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gv-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gv-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.5rem;
    }

    .gv-row.flip .gv-row-text {
        order: 0;
    }
}

@media (max-width: 600px) {
    .gv-grid,
    .gv-grid.three {
        grid-template-columns: minmax(0, 1fr);
    }

    .gv-hero-icon {
        width: 56px;
        height: 56px;
    }

    .gv-compare-line i {
        width: 36px;
        height: 36px;
        margin: -18px 0 0 -18px;
    }

    .gv-legal-doc table {
        display: block;
        overflow-x: auto;
    }
}
