:root {
    --ink: #0B0D10;
    --surface: #12151A;
    --surface-2: #171B21;
    --border: #262B33;
    --text: #E8EAED;
    --muted: #9AA3AE;
    --accent: #FF4D3D;
    --accent-soft: rgba(255, 77, 61, 0.12);
    --green: #3FB950;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

nav {
    background: rgba(11, 13, 16, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav .logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text);
}

nav .logo-icon {
    height: 30px;
    width: auto;
    display: block;
}

nav .logo-wordmark {
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.02em;
}

nav > div {
    display: flex;
    gap: 1.75rem;
    align-items: center;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.15s ease;
}

nav a:hover { color: var(--text); }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 6.5rem 1.5rem 5.5rem;
    background:
        radial-gradient(ellipse 70% 55% at 50% -10%, rgba(255, 77, 61, 0.16), transparent 70%),
        var(--ink);
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.hero-accent {
    color: var(--accent);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--muted);
    max-width: 520px;
    margin: 0 auto;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--text);
    font-weight: 800;
}

.stat span {
    font-size: 0.82rem;
    color: var(--muted);
}

/* ── Sections ── */
section h2 {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.section-sub {
    text-align: center;
    color: var(--muted);
    margin-bottom: 3rem;
}

.apps-section {
    padding: 5rem 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.5rem;
}

.app-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    border-color: #343B46;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}

.app-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-card-head h3 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.app-icon {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: block;
}

.app-icon-rounded {
    border-radius: 16px;
}

.status-pill {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 3px 10px;
    border-radius: 999px;
    margin-top: 2px;
}

.status-released {
    color: var(--green);
    background: rgba(63, 185, 80, 0.12);
}

.status-dev {
    color: var(--accent);
    background: var(--accent-soft);
}

.app-desc {
    color: var(--muted);
    font-size: 0.95rem;
    flex: 1;
}

.platform-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 12px;
    border-radius: 999px;
}

.app-links {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 0.5rem;
}

.btn {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--surface-2);
    transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    border-color: #3A424E;
    background: #1D222A;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: #ff6152;
    border-color: #ff6152;
}

.btn-disabled {
    color: var(--muted);
    border-style: dashed;
    cursor: default;
}

.btn-disabled:hover {
    transform: none;
    border-color: var(--border);
    background: var(--surface-2);
}

/* ── About ── */
.about-section {
    padding: 4rem 1.5rem 5rem;
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.about-section p {
    color: var(--muted);
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 3.5rem 1.5rem 2.5rem;
    text-align: center;
    background: var(--surface);
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.footer-icon {
    height: 34px;
    width: auto;
}

.footer-name {
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-tag {
    color: var(--muted);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.footer-email {
    display: inline-block;
    margin-top: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.footer-email:hover { text-decoration: underline; }

.footer-legal {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.25rem;
}

.footer-legal a {
    color: var(--muted);
    font-size: 0.8rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

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

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--muted);
}

/* ── Legal Pages ── */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 3.5rem 1.5rem 4rem;
}

.legal-back {
    display: inline-block;
    color: var(--muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    transition: color 0.15s ease;
}

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

.legal-app-head {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.legal-app-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    flex-shrink: 0;
}

.legal-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.25rem;
}

.legal-app-head h1 {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.legal-updated {
    color: var(--muted);
    font-size: 0.85rem;
    margin-top: 0.35rem;
}

.legal-section {
    margin-bottom: 2.25rem;
}

.legal-section h2 {
    text-align: left;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.6rem;
}

.legal-section p,
.legal-section li {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.legal-section ul {
    padding-left: 1.4rem;
    margin-bottom: 0.6rem;
}

.legal-section strong {
    color: var(--text);
    font-weight: 600;
}

.legal-section a {
    color: var(--accent);
    text-decoration: none;
}

.legal-section a:hover { text-decoration: underline; }

/* ── 404 ── */
.error-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-wrap {
    text-align: center;
}

.error-icon {
    height: 64px;
    width: auto;
    margin-bottom: 1.25rem;
}

.error-wrap h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.error-wrap p {
    color: var(--muted);
    margin: 0.5rem 0 1.75rem;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    nav {
        flex-direction: column;
        gap: 0.6rem;
        padding: 0.8rem 1rem;
    }
    nav > div {
        gap: 1.25rem;
    }
    .hero {
        padding: 4.5rem 1.25rem 3.5rem;
    }
    .hero-stats {
        gap: 1.75rem;
    }
    .apps-section {
        padding: 3.5rem 1.25rem;
    }
}
