/* =========================================================================
   FilmPix Studios Apps — Single Page
   Aesthetic: editorial dark, refined minimalism
   Type: Inter Tight (display) + Geist Mono (accents)
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Geist+Mono:wght@400;500&family=Inter+Tight:wght@400;500;600;700&display=swap');

/* -------- Reset -------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { font: inherit; background: none; border: 0; cursor: pointer; color: inherit; }

/* -------- Tokens -------- */
:root {
    --bg: #0a0a0b;
    --bg-elev: #131316;
    --bg-hover: #1a1a1f;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.16);
    --ink: #ffffff;
    --ink-soft: rgba(255, 255, 255, 0.7);
    --ink-mute: rgba(255, 255, 255, 0.5);
    --ink-faint: rgba(255, 255, 255, 0.35);

    --accent: #FF5C00;          /* matches Rydr, ties brand together */
    --accent-soft: rgba(255, 92, 0, 0.12);

    --serif: 'Fraunces', Georgia, serif;
    --sans: 'Inter Tight', -apple-system, BlinkMacSystemFont, sans-serif;
    --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

    --radius: 18px;
    --radius-sm: 10px;
    --shadow-card: 0 1px 0 rgba(255,255,255,0.04) inset, 0 30px 60px -30px rgba(0,0,0,0.6);

    --max-w: 980px;
}

/* -------- Base -------- */
html { scroll-behavior: smooth; }
body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

/* Subtle film grain — signature studio detail */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 100;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* =========================================================================
   HERO
   ========================================================================= */
.hero {
    padding: 88px 0 56px;
    position: relative;
}

/* Soft radial glow behind the title — pulls the eye in */
.hero::after {
    content: "";
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--accent-soft) 0%, transparent 60%);
    z-index: -1;
    pointer-events: none;
}

.brand {
    display: inline-block;
    margin-bottom: 64px;
    transition: opacity 0.2s ease;
}
.brand:hover { opacity: 0.85; }

.brand-logo {
    display: block;
    width: 160px;
    height: auto;
    /* The logo's gradient (orange → pink → purple) reads beautifully on dark */
}

.hero-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: clamp(48px, 9vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.025em;
    margin-bottom: 24px;
    /* Slight optical adjustment to match Fraunces' character */
    font-variation-settings: 'opsz' 144;
}

.hero-sub {
    font-size: clamp(17px, 2vw, 19px);
    line-height: 1.5;
    color: var(--ink-soft);
    max-width: 540px;
}

/* =========================================================================
   APPS LIST
   ========================================================================= */
.apps {
    display: grid;
    gap: 14px;
    padding: 24px 0 88px;
}

.app {
    position: relative;
}

.app-link {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    padding: 28px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 0.25s cubic-bezier(0.2, 0.7, 0.2, 1),
                background-color 0.25s ease,
                border-color 0.25s ease;
    will-change: transform;
}

.app-link:hover {
    background: var(--bg-hover);
    border-color: var(--line-strong);
    transform: translateY(-2px);
}

.app-link:hover .app-cta {
    color: var(--accent);
    transform: translateX(4px);
}

.app-icon-wrap {
    width: 88px;
    height: 88px;
    flex-shrink: 0;
    position: relative;
}

.app-icon {
    width: 100%;
    height: 100%;
    border-radius: 22%;
    box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.5);
}

/* FrameForge polaroid icon doesn't need extra rounding */
.app--frameforge .app-icon {
    border-radius: 14%;
}

.app-info {
    min-width: 0; /* prevents grid overflow */
}

.app-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-mute);
    margin-bottom: 10px;
}

.app-platform { color: var(--ink-soft); }
.app-price { color: var(--accent); }
.app-dot { opacity: 0.4; }

.app-name {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 26px;
    line-height: 1.1;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
}

.app-tagline {
    font-size: 15px;
    line-height: 1.55;
    color: var(--ink-soft);
    margin-bottom: 14px;
    max-width: 56ch;
}

.app-cta {
    display: inline-block;
    font-family: var(--mono);
    font-size: 12.5px;
    color: var(--ink-mute);
    letter-spacing: 0.01em;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* =========================================================================
   CONTACT
   ========================================================================= */
.contact {
    text-align: center;
    padding: 56px 0 80px;
    border-top: 1px solid var(--line);
}

.contact-title {
    font-family: var(--serif);
    font-weight: 500;
    font-size: 32px;
    letter-spacing: -0.015em;
    margin-bottom: 12px;
}

.contact-text {
    color: var(--ink-soft);
    margin-bottom: 16px;
}

.contact-link {
    font-family: var(--mono);
    font-size: 16px;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
    padding-bottom: 2px;
}
.contact-link:hover { border-bottom-color: var(--accent); }

/* =========================================================================
   FOOTER
   ========================================================================= */
.footer {
    border-top: 1px solid var(--line);
    padding: 32px 0;
}

.footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.footer-text {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-faint);
    letter-spacing: 0.01em;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--ink-mute);
}

.footer-nav a {
    color: var(--ink-mute);
    transition: color 0.2s ease;
}
.footer-nav a:hover { color: var(--ink); }

.footer-dot {
    color: var(--ink-faint);
}

/* =========================================================================
   STAGGERED LOAD-IN — subtle, just enough to feel alive
   ========================================================================= */
@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand,
.hero-title,
.hero-sub,
.app,
.contact,
.footer {
    animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}

.brand        { animation-delay: 0.05s; }
.hero-title   { animation-delay: 0.15s; }
.hero-sub     { animation-delay: 0.25s; }
.app:nth-child(1) { animation-delay: 0.40s; }
.app:nth-child(2) { animation-delay: 0.50s; }
.app:nth-child(3) { animation-delay: 0.60s; }
.app:nth-child(4) { animation-delay: 0.70s; }
.app:nth-child(5) { animation-delay: 0.80s; }
.app:nth-child(6) { animation-delay: 0.90s; }
.contact      { animation-delay: 1.05s; }
.footer       { animation-delay: 1.15s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01s !important;
    }
}

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 640px) {
    .hero { padding: 56px 0 32px; }
    .brand { margin-bottom: 40px; }
    .brand-logo { width: 130px; }

    .app-link {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }
    .app-icon-wrap { width: 72px; height: 72px; }
    .app-name { font-size: 22px; }
    .app-tagline { font-size: 14px; }

    .contact { padding: 40px 0 56px; }
    .contact-title { font-size: 26px; }

    .footer .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* High-contrast forced colours support */
@media (forced-colors: active) {
    .app-link { border: 1px solid CanvasText; }
}
