:root {
    --ink: #17171a;
    --ink-soft: #55555c;
    --paper: #f7f5f1;
    --paper-alt: #efece5;
    --line: #ddd8cd;
    --accent: #8d8d8d;
    --radius: 14px;
    --max-width: 1120px;
    --font-display: 'Saira Extra Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Muli', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* {
    box-sizing: border-box;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0;
    color: var(--ink);
}

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

.eyebrow {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.28em;
    font-size: 0.8rem;
    color: var(--ink-soft);
    margin: 0 0 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 1.05rem;
    text-decoration: none !important;
    padding: 0.85rem 1.9rem;
    border-radius: 999px;
    border: 2px solid var(--ink);
    transition: all 0.25s ease;
}

.btn-primary {
    background: var(--ink);
    color: var(--paper) !important;
}

.btn-primary:hover {
    background: transparent;
    color: var(--ink) !important;
}

.btn-ghost {
    background: transparent;
    color: var(--ink) !important;
    border-color: var(--line);
}

.btn-ghost:hover {
    border-color: var(--ink);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4rem 1.5rem 6rem;
    text-align: center;
    background:
        radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0/28px 28px,
        var(--paper);
}

.hero-inner {
    max-width: 700px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: min(320px, 70vw);
    height: auto;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: clamp(2.1rem, 5vw, 3.4rem);
    line-height: 1.05;
    margin-bottom: 1.1rem;
}

.hero-lede {
    max-width: 480px;
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin: 0 auto 2.2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.scroll-cue {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 44px;
    border: 2px solid var(--line);
    border-radius: 999px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-cue span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: var(--ink-soft);
    animation: scroll-cue 1.6s ease infinite;
}

@keyframes scroll-cue {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(12px); opacity: 0; }
    100% { transform: translateY(0); opacity: 0; }
}

/* Sections */
section {
    padding: 5.5rem 1.5rem;
}

.section-head {
    max-width: var(--max-width);
    margin: 0 auto 3rem;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 0.9rem;
}

.section-lede {
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto;
}

/* Apps grid */
.apps {
    background: var(--paper-alt);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.apps-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.app-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.app-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px -18px rgba(23, 23, 26, 0.35);
}

.app-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    margin-bottom: 1.1rem;
    box-shadow: 0 4px 14px -6px rgba(23, 23, 26, 0.4);
}

.app-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
}

.app-card .tag {
    font-size: 0.65em;
    vertical-align: middle;
    background: var(--accent);
    color: #fff;
    text-transform: uppercase;
    padding: 0.15em 0.5em;
    border-radius: 999px;
    letter-spacing: 0.05em;
    margin-left: 0.35em;
}

.app-card p {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin: 0 0 1.4rem;
    flex-grow: 1;
}

.app-link {
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    font-size: 0.95rem;
    color: var(--accent);
}

.app-link:hover {
    text-decoration: underline !important;
}

.tag-soon {
    background: var(--accent);
}

.app-card.is-soon {
    border-style: dashed;
    border-color: var(--accent);
}

.app-link-disabled {
    color: var(--ink-soft);
    cursor: default;
}

.app-link-disabled:hover {
    text-decoration: none !important;
}

/* About */
.about-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.about-inner h2 {
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    margin-bottom: 1.2rem;
}

.about-inner p {
    color: var(--ink-soft);
    font-size: 1.05rem;
    margin-bottom: 2.2rem;
}

.about-inner a:not(.btn) {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Footer */
.site-footer {
    padding: 2.5rem 1.5rem;
    text-align: center;
    border-top: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 0.9rem;
}

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

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

.socials {
    display: flex;
    justify-content: center;
    gap: 1.1rem;
    margin-top: 1rem;
}

.socials img {
    width: 26px;
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.socials a:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

/* Reveal on scroll */
.app-card,
.about-inner {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.app-card.is-visible,
.about-inner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media screen and (max-width: 900px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 560px) {
    .apps-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 3rem 1.25rem 5rem;
    }

    section {
        padding: 4rem 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}
