/* Brightbox Studio — single stylesheet
   Modern indie game studio aesthetic. Dark base, warm yellow accent
   (matches the cube logo). Mobile-first, responsive. */

:root {
    --bg:          #0b0c10;
    --bg-elev:     #15171f;
    --bg-elev-2:   #1d2030;
    --text:        #f5f5f7;
    --text-muted:  rgba(245, 245, 247, 0.65);
    --text-dim:    rgba(245, 245, 247, 0.40);
    --accent:      #ffc83d;
    --accent-hot:  #ffae00;
    --border:      rgba(255, 255, 255, 0.10);
    --radius:      18px;
    --radius-lg:   28px;
    --max-w:       1080px;
    --font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Inter, system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-hot); }

img { max-width: 100%; display: block; }

/* ── Layout ────────────────────────────────────────── */

.container {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

section { padding: 80px 0; }
@media (max-width: 640px) { section { padding: 56px 0; } }

/* ── Header / Nav ──────────────────────────────────── */

header {
    padding: 22px 0;
    position: sticky;
    top: 0;
    background: rgba(11, 12, 16, 0.85);
    backdrop-filter: saturate(150%) blur(14px);
    -webkit-backdrop-filter: saturate(150%) blur(14px);
    border-bottom: 1px solid var(--border);
    z-index: 100;
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.01em;
    font-size: 18px;
}
.brand img {
    width: 32px; height: 32px;
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 15px;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

/* ── Hero ──────────────────────────────────────────── */

.hero {
    padding-top: 100px;
    padding-bottom: 100px;
    text-align: center;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%,
            rgba(255, 200, 61, 0.18) 0%,
            transparent 60%),
        var(--bg);
}
.hero-logo {
    width: 110px; height: 110px;
    margin: 0 auto 24px;
    filter: drop-shadow(0 0 30px rgba(255, 200, 61, 0.5));
}
.hero h1 {
    font-size: clamp(34px, 7vw, 72px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 18px;
    word-wrap: break-word;
    hyphens: auto;
}
.hero h1 .accent { color: var(--accent); }
.hero p.tagline {
    font-size: clamp(17px, 2vw, 21px);
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.5;
}
.hero .cta-row {
    margin-top: 36px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: transform .15s ease, background .15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #1a1300;
}
.btn-primary:hover { background: var(--accent-hot); transform: translateY(-1px); color: #1a1300; }
.btn-secondary {
    background: var(--bg-elev);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-elev-2); transform: translateY(-1px); color: var(--text); }

/* ── Section heading ──────────────────────────────── */

.section-h {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    line-height: 1.1;
}
.section-sub {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
    max-width: 520px;
}

/* ── Apps grid ────────────────────────────────────── */

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.app-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.app-card:hover {
    background: var(--bg-elev-2);
    border-color: rgba(255, 200, 61, 0.35);
    transform: translateY(-2px);
}
.app-icon {
    width: 64px; height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    object-fit: cover;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.app-icon-placeholder {
    width: 64px; height: 64px;
    border-radius: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-hot));
    display: grid; place-items: center;
    color: #1a1300;
    font-weight: 900;
    font-size: 22px;
}
.app-meta {
    flex: 1;
    min-width: 0;
}
.app-name {
    font-weight: 800;
    font-size: 17px;
    color: var(--text);
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.app-tagline {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}
.app-status {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 3px 8px;
    border-radius: 999px;
    margin-top: 6px;
    display: inline-block;
}
.app-status.live    { background: rgba(80, 200, 120, 0.18); color: #50c878; }
.app-status.tf      { background: rgba(255, 200, 61, 0.18); color: var(--accent); }
.app-status.dev     { background: rgba(160, 160, 200, 0.15); color: rgba(245,245,247,0.6); }

/* ── Content pages (privacy, support, about) ──────── */

.page {
    padding: 60px 0 100px;
}
.page-h1 {
    font-size: clamp(34px, 5vw, 48px);
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.05;
    margin-bottom: 12px;
}
.page-meta {
    color: var(--text-dim);
    font-size: 14px;
    margin-bottom: 40px;
}
.page-content { max-width: 720px; }
.page-content h2 {
    font-size: 24px;
    font-weight: 800;
    margin-top: 44px;
    margin-bottom: 14px;
    letter-spacing: -0.015em;
}
.page-content h3 {
    font-size: 17px;
    font-weight: 700;
    margin-top: 28px;
    margin-bottom: 10px;
    color: var(--text);
}
.page-content p, .page-content li {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1.65;
}
.page-content ul, .page-content ol {
    padding-left: 22px;
    margin-bottom: 18px;
}
.page-content strong {
    color: var(--text);
    font-weight: 600;
}
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 14px;
}
.page-content th, .page-content td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}
.page-content th {
    color: var(--text);
    font-weight: 700;
    background: var(--bg-elev);
}
.page-content td:first-child {
    color: var(--text);
    font-weight: 600;
}
.callout {
    background: var(--bg-elev);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 20px 0;
    font-size: 14px;
    color: var(--text-muted);
}

/* ── Footer ───────────────────────────────────────── */

footer {
    padding: 50px 0 30px;
    border-top: 1px solid var(--border);
    color: var(--text-dim);
    font-size: 13px;
}
.footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}
.footer-links {
    display: flex;
    gap: 20px;
}
.footer-links a {
    color: var(--text-dim);
    font-size: 13px;
}
.footer-links a:hover { color: var(--accent); }

/* ── Responsive ──────────────────────────────────── */

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .brand { font-size: 16px; }
    .brand img { width: 28px; height: 28px; }
    .nav-links { gap: 14px; }
    .nav-links a { font-size: 13px; }
    .hero { padding-top: 60px; padding-bottom: 70px; }
    .hero-logo { width: 88px; height: 88px; }
    .hero h1 { font-size: 36px !important; line-height: 1.1; }
    .footer-row { flex-direction: column; align-items: flex-start; }
    .cta-row .btn { font-size: 13px; padding: 11px 18px; }
    .section-h { font-size: 28px; }
}
@media (max-width: 400px) {
    .hero h1 { font-size: 30px !important; }
    .nav-links { gap: 10px; }
    .nav-links a { font-size: 12px; }
    .brand { font-size: 14px; gap: 7px; }
    .brand img { width: 24px; height: 24px; }
}
