@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@300;400;500&family=IBM+Plex+Sans:wght@300;400;600&display=swap');

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

:root {
    --bg: #0a0a0a;
    --fg: #e0e0e0;
    --dim: #606060;
    --accent: #a8d640;
    --mono: 'IBM Plex Mono', monospace;
    --sans: 'IBM Plex Sans', sans-serif;
    --max-w: 680px;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--sans);
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { opacity: 0.7; }

/* ---------- layout ---------- */

.container {
    position: relative;
    z-index: 1;
    max-width: var(--max-w);
    margin: 0 auto;
}

/* ---------- side nav ---------- */

.side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    /* Anchor to the left edge of the container with a gutter */
    left: calc(50% - var(--max-w) / 2 - 100px);
}

.side-nav a {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--dim);
    text-decoration: none;
    letter-spacing: 0.06em;
    text-transform: lowercase;
    transition: color 0.2s;
}

.side-nav a:hover,
.side-nav a.active {
    color: var(--accent);
}

@media (max-width: 900px) {
    .side-nav {
        position: fixed;
        left: 0;
        top: 0;
        transform: none;
        flex-direction: row;
        gap: 0;
        width: 100%;
        justify-content: center;
        padding: 1rem 1rem;
        background: rgba(10, 10, 10, 0.92);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .side-nav a {
        margin: 0 0.8rem;
    }
    body.has-nav {
        padding-top: 4rem;
    }
}

/* ---------- typography ---------- */

h1 {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 1.6rem;
    margin-bottom: 0.25rem;
}

h2 {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--fg);
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

h3 {
    font-family: var(--mono);
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

p {
    font-weight: 300;
    font-size: 0.88rem;
    color: #b0b0b0;
    margin-bottom: 1rem;
}

.updated {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--dim);
    margin-bottom: 2.5rem;
}

.intro {
    color: var(--dim);
    font-size: 0.85rem;
    margin-bottom: 2rem;
    font-weight: 300;
}

.caps {
    font-size: 0.8rem;
    text-transform: none;
    color: #888;
}

/* ---------- lists ---------- */

ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1rem;
}

ul li {
    font-weight: 300;
    font-size: 0.88rem;
    color: #b0b0b0;
    padding-left: 1.2rem;
    position: relative;
    margin-bottom: 0.4rem;
}

ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--dim);
}

/* ---------- nav ---------- */

.back {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    display: inline-block;
    margin-bottom: 2rem;
    transition: opacity 0.2s;
}

.back:hover { opacity: 0.7; }

/* ---------- landing page ---------- */

.wordmark {
    font-family: var(--mono);
    font-weight: 300;
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.25rem;
}

.wordmark span {
    color: var(--accent);
}

.tagline {
    font-family: var(--mono);
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--dim);
    margin-bottom: 3rem;
    letter-spacing: 0.04em;
}

.divider {
    width: 48px;
    height: 1px;
    background: var(--dim);
    margin-bottom: 2.5rem;
}

.product {
    margin-bottom: 2.5rem;
}

.product-name {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 1rem;
    color: var(--fg);
    margin-bottom: 0.4rem;
}

.product-desc {
    font-family: var(--sans);
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--dim);
    line-height: 1.6;
    max-width: 480px;
}

.product-links {
    margin-top: 0.6rem;
}

.product-links a {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
    margin-right: 1.2rem;
    transition: opacity 0.2s;
}

.product-links a:hover {
    opacity: 0.7;
}

/* ---------- page header ---------- */

.page-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.page-header img {
    width: 40px;
    height: 40px;
}

.page-header h1 {
    font-size: 1.1rem;
    font-weight: 400;
}

.page-header h1 span {
    color: var(--accent);
}

.page-subtitle {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--dim);
    margin-bottom: 2.5rem;
    letter-spacing: 0.04em;
}

/* ---------- product cards ---------- */

.product-card {
    border: 1px solid #1a1a1a;
    margin-bottom: 2.5rem;
    position: relative;
}

.product-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #111;
    border-bottom: 1px solid #1a1a1a;
}

.product-card-title {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--fg);
}

/* group container for multiple tags on a single card */
.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.product-card-tag {
    font-family: var(--mono);
    font-size: 0.65rem;
    letter-spacing: 0.06em;
    padding: 0.2rem 0.5rem;
    border: 1px solid;
}

.tag-plugin {
    color: var(--accent);
    border-color: rgba(168, 214, 64, 0.3);
}

.tag-app {
    color: #5bcefa;
    border-color: rgba(91, 206, 250, 0.3);
}

.tag-m4l {
    color: #d4a54a;
    border-color: rgba(212, 165, 74, 0.3);
}

.product-card-body {
    padding: 1.2rem 1rem;
}

.product-card-body p {
    font-size: 0.82rem;
    line-height: 1.65;
    color: #999;
    margin-bottom: 0.75rem;
}

.product-card-body p:last-of-type {
    margin-bottom: 0;
}

.product-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #1a1a1a;
}

.spec {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.03em;
}

.spec strong {
    color: #999;
    font-weight: 400;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-top: 1px solid #1a1a1a;
    background: #0d0d0d;
}

/* group container for multiple buy links on a single card */
.product-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: flex-end;
}

.product-price {
    font-family: var(--mono);
    font-size: 0.8rem;
    color: var(--fg);
    letter-spacing: 0.02em;
}

.product-price .free {
    color: var(--accent);
}

/* dimmed platform tag next to a price (e.g. "$5 VST · $0.99 iOS") */
.product-price .plat {
    color: var(--dim);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
}

.product-link {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.04em;
    padding: 0.35rem 0.8rem;
    border: 1px solid rgba(168, 214, 64, 0.3);
    transition: background 0.2s, color 0.2s;
}

.product-link:hover {
    background: var(--accent);
    color: #0a0a0a;
    opacity: 1;
}

/* button color variants — match the corresponding tag colors */
.product-link-app {
    color: #5bcefa;
    border-color: rgba(91, 206, 250, 0.3);
}

.product-link-app:hover {
    background: #5bcefa;
    color: #0a0a0a;
}

.product-link-m4l {
    color: #d4a54a;
    border-color: rgba(212, 165, 74, 0.3);
}

.product-link-m4l:hover {
    background: #d4a54a;
    color: #0a0a0a;
}

/* ---------- page: home (index.html) ---------- */

.page-home {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    overflow: hidden;
}

.page-home .container {
    max-width: 640px;
    width: 100%;
}

.logo {
    width: 96px;
    height: 96px;
    max-width: 96px;
    max-height: 96px;
    object-fit: contain;
    margin-bottom: 1.5rem;
}

@media (max-width: 900px) {
    .page-home {
        padding-top: 4rem;
    }
}

/* ---------- page: products ---------- */

.page-products {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.page-products .container {
    padding-top: 2rem;
}

.page-products footer {
    margin-top: auto;
    padding-top: 3rem;
}

@media (max-width: 900px) {
    .page-products {
        padding-top: 4rem;
    }
}

/* ---------- page: privacy / legal ---------- */

.page-legal {
    padding: 3rem 2rem;
}

/* ---------- footer ---------- */

footer {
    position: relative;
    z-index: 1;
    margin-top: 4rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--dim);
    letter-spacing: 0.03em;
}

footer a {
    color: var(--dim);
    text-decoration: none;
    border-bottom: 1px solid rgba(96,96,96,0.3);
    transition: color 0.2s;
}

footer a:hover {
    color: var(--fg);
}
