/* Ciubi.NET support page – mirrors the main site's design tokens (src/styles/global.css) */

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-ext-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "Inter Variable";
    font-style: normal;
    font-display: swap;
    font-weight: 100 900;
    src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --ciubi-dark: #0f172a;
    --ciubi-darker: #020617;
    --ciubi-blue: #00aeef;
    --ciubi-blue-hover: #0ea5e9;
    --ciubi-light: #b3e5fc;
    --text: #ffffff;
    --text-muted: #9ca3af;
    --text-soft: #d1d5db;
    --border: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);
    --surface: rgba(255, 255, 255, 0.05);
    --surface-hover: rgba(255, 255, 255, 0.08);
    --amber: #fbbf24;
    --font: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
    color-scheme: dark;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--ciubi-dark);
    color: var(--text);
    font-family: var(--font);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background: var(--ciubi-blue);
    color: #fff;
}

a {
    color: inherit;
}

h1,
h2,
h3,
p {
    margin: 0;
}

.container {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

/* Background: blurred glows + faint grid, as in the main site's hero */
.backdrop {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.glow {
    position: absolute;
    border-radius: 9999px;
}

.glow-a {
    top: -5rem;
    right: -5rem;
    width: 500px;
    height: 500px;
    background: rgba(0, 174, 239, 0.2);
    filter: blur(100px);
    opacity: 0.5;
}

.glow-b {
    bottom: -5rem;
    left: -5rem;
    width: 400px;
    height: 400px;
    background: rgba(179, 229, 252, 0.1);
    filter: blur(80px);
    opacity: 0.3;
}

.grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 4rem 4rem;
    -webkit-mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 50% at 50% 0%, #000 70%, transparent 100%);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(15, 23, 42, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.brand img {
    display: block;
    height: 3.5rem;
    width: auto;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.header-link {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.header-link:hover {
    color: #fff;
}

.lang-switch {
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-muted);
    background: none;
    border: 0;
    padding: 0.25rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lang-switch:hover {
    color: #fff;
}

/* Hero */
.hero {
    text-align: center;
    padding: 3.5rem 0 2.5rem;
}

.eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--ciubi-light);
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 1.5rem;
}

h1 span {
    display: block;
}

.gradient {
    background: linear-gradient(to right, var(--ciubi-blue), var(--ciubi-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.lead {
    max-width: 40rem;
    margin: 0 auto;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

@media (min-width: 640px) {
    .hero {
        padding: 5rem 0 3rem;
    }

    .eyebrow {
        font-size: 1rem;
    }

    h1 {
        font-size: 3.25rem;
    }

    .lead {
        font-size: 1.25rem;
    }
}

/* Safety notice */
.notice {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid rgba(251, 191, 36, 0.3);
    background: rgba(251, 191, 36, 0.06);
    border-radius: 1rem;
    color: var(--text-soft);
    font-size: 0.95rem;
}

.notice-icon {
    flex: none;
    width: 1.75rem;
    height: 1.75rem;
    color: var(--amber);
}

.notice-title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.25rem;
}

/* Section headings */
h2 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.downloads,
.steps,
.help {
    margin-top: 3.5rem;
}

/* Download cards */
.download-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 640px) {
    .download-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.download-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 1rem;
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.download-card:hover,
.download-card:focus-visible {
    border-color: rgba(0, 174, 239, 0.5);
    background: var(--surface-hover);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.15);
    transform: translateY(-2px);
}

.download-card:focus-visible {
    outline: 2px solid var(--ciubi-blue);
    outline-offset: 2px;
}

.os-icon {
    flex: none;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0.6rem;
    border-radius: 0.75rem;
    background: rgba(0, 174, 239, 0.1);
    border: 1px solid rgba(0, 174, 239, 0.3);
    color: var(--ciubi-blue);
}

.download-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.download-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
}

.download-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    overflow-wrap: anywhere;
}

.download-arrow {
    flex: none;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.download-card:hover .download-arrow {
    color: var(--ciubi-blue);
}

/* Highlight the visitor's own platform (set by support.js) */
.download-card.is-recommended {
    border-color: rgba(0, 174, 239, 0.5);
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.15);
}

/* Steps */
.step-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

@media (min-width: 768px) {
    .step-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

.step {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 1rem;
}

@media (min-width: 768px) {
    .step {
        flex-direction: column;
    }
}

.step-number {
    flex: none;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 9999px;
    background: var(--ciubi-blue);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 0 15px rgba(0, 174, 239, 0.3);
}

.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Help */
.help {
    text-align: center;
    padding: 2rem 1.25rem;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 1rem;
    margin-bottom: 4rem;
}

.help h2 {
    margin-bottom: 0.5rem;
}

.help p {
    color: var(--text-muted);
}

.help-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (min-width: 640px) {
    .help-actions {
        flex-direction: row;
        justify-content: center;
    }
}

.btn {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--ciubi-blue);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 174, 239, 0.3);
}

.btn-primary:hover {
    background: var(--ciubi-blue-hover);
    box-shadow: 0 0 30px rgba(0, 174, 239, 0.5);
}

.btn-secondary {
    background: var(--surface);
    border: 1px solid var(--border);
    color: #fff;
    font-weight: 600;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
}

/* Footer */
.site-footer {
    margin-top: auto;
    background: var(--ciubi-darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-inner {
    display: grid;
    gap: 0.35rem;
    text-align: center;
}

.site-footer strong {
    color: var(--text-soft);
}

.site-footer a {
    color: var(--text-soft);
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--ciubi-light);
}

.trademark {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: #6b7280;
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
    }
}
