/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
    --bg:          #080808;
    --bg-2:        #0d0d0d;
    --bg-card:     #111111;
    --bg-card-2:   #161616;
    --pink:        #f472b6;
    --purple:      #a855f7;
    --pink-dim:    rgba(244, 114, 182, 0.15);
    --purple-dim:  rgba(168, 85, 247, 0.15);
    --grad:        linear-gradient(135deg, #f472b6 0%, #a855f7 100%);
    --text:        #f0f0f0;
    --text-2:      #888;
    --text-3:      #444;
    --border:      rgba(255, 255, 255, 0.07);
    --border-2:    rgba(255, 255, 255, 0.12);
    --r:           16px;
    --r-sm:        8px;
}

/* ── Base ───────────────────────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* subtle film-grain overlay */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: 0.025;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px 200px;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
}

/* ── Utilities ──────────────────────────────────────────────── */
.gradient-text {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pink);
    margin-bottom: 14px;
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    height: 64px;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
    transition: transform 0.3s ease, background 0.3s ease;
}

.nav.hidden { transform: translateY(-100%); }

.nav-inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 28px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.7; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }

.nav-pill {
    padding: 8px 18px !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid rgba(255, 255, 255, 0.14) !important;
    color: #fff !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.12) !important;
    transition: background 0.2s, box-shadow 0.2s !important;
}
.nav-pill:hover {
    background: rgba(255, 255, 255, 0.13) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.2) !important;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(100px);
}

.hero-glow-1 {
    width: 100%;
    height: 70%;
    border-radius: 0;
    background: linear-gradient(to top, rgba(168,85,247,0.55) 0%, rgba(168,85,247,0.15) 40%, transparent 100%);
    bottom: 0;
    left: 0;
    right: 0;
    filter: blur(40px);
}

.hero-glow-2 {
    width: 80%;
    height: 50%;
    border-radius: 0;
    background: linear-gradient(to top, rgba(244,114,182,0.35) 0%, rgba(244,114,182,0.08) 50%, transparent 100%);
    bottom: 0;
    left: 10%;
    filter: blur(60px);
}

.hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-2);
    padding: 7px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 32px;
}

.eyebrow::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 8px var(--pink);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-headline {
    font-size: clamp(56px, 10vw, 120px);
    font-weight: 800;
    line-height: 1.0;
    letter-spacing: -0.04em;
    color: #ffffff;
    margin-bottom: 40px;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 44px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: rgba(168, 85, 247, 0.28);
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: -0.01em;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 4px 24px rgba(168, 85, 247, 0.3);
    transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
}
.btn-primary:hover {
    background: rgba(168, 85, 247, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 6px 32px rgba(168, 85, 247, 0.45);
    transform: translateY(-2px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    padding: 14px 28px;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transition: background 0.2s, box-shadow 0.2s, color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* ── Sections ───────────────────────────────────────────────── */
.section {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}

.section-header {
    margin-bottom: 52px;
}

.section-header h2 {
    font-size: clamp(28px, 3.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
}

/* ── Apps ───────────────────────────────────────────────────── */
.apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

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

/* card shell — featured uses gradient border trick */
.app-card {
    border-radius: var(--r);
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: transform 0.3s ease, border-color 0.3s ease;
    position: relative;
}

.app-card.featured {
    background: transparent;
    border: none;
    padding: 1px;
    background: var(--grad);
}

.app-card.featured:hover { transform: translateY(-4px); }
.app-card.dim:hover { transform: translateY(-2px); border-color: var(--border-2); }

.app-card-bg {
    position: absolute;
    inset: 1px;
    border-radius: calc(var(--r) - 1px);
    background: var(--bg-card);
    z-index: 0;
}

.app-card-content {
    position: relative;
    z-index: 1;
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    height: 100%;
}

.app-card.featured .app-card-content {
    border-radius: calc(var(--r) - 1px);
    background: #111111;
}

.app-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.app-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-badge.live {
    background: rgba(244, 114, 182, 0.1);
    color: var(--pink);
    border: 1px solid rgba(244, 114, 182, 0.2);
}

.badge-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--pink);
    box-shadow: 0 0 6px var(--pink);
    animation: pulse 2s ease-in-out infinite;
}

.app-badge.dev {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-3);
    border: 1px solid var(--border);
}

.app-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-icon {
    background: transparent;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.featured-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.dim-icon {
    background: var(--bg-2);
    border: 1px solid var(--border);
}

.app-body h3 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 8px;
}

.app-tagline {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
    margin-bottom: 10px;
}

.app-desc {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
}

.app-card.dim .app-body h3 { color: var(--text-2); }
.app-card.dim .app-tagline { color: var(--text-2); }

.app-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    color: var(--pink);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    margin-top: auto;
    transition: color 0.2s, gap 0.2s;
}
.app-link:hover { color: var(--purple); gap: 12px; }
.app-link .arrow { transition: transform 0.2s; }
.app-link:hover .arrow { transform: translate(2px, -2px); }

.app-coming {
    padding-top: 20px;
    border-top: 1px solid var(--border);
    margin-top: auto;
    color: var(--text-3);
    font-size: 14px;
    font-weight: 500;
}

/* ── Studio ─────────────────────────────────────────────────── */
.studio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

@media (max-width: 700px) {
    .studio-grid { grid-template-columns: 1fr; gap: 48px; }
}

.studio-text h2 {
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.15;
}

.studio-text p {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.75;
    margin-bottom: 14px;
}

.studio-stats {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.stat {
    padding: 28px 0;
}

.stat-divider {
    height: 1px;
    background: var(--border);
}

.stat-num {
    display: block;
    font-size: 54px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-2);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* ── Contact ────────────────────────────────────────────────── */
.contact-inner {
    position: relative;
    padding: 80px;
    border-radius: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    overflow: hidden;
}

.contact-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(168,85,247,0.12) 0%, transparent 70%);
    top: -150px;
    right: -100px;
    pointer-events: none;
}

.contact-inner h2 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    line-height: 1.05;
}

.contact-inner p {
    font-size: 17px;
    color: var(--text-2);
    margin-bottom: 40px;
    line-height: 1.7;
    max-width: 480px;
}

.contact-email {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
    transition: color 0.2s, border-color 0.2s;
}

.contact-email:hover {
    color: var(--pink);
    border-color: var(--pink);
}

@media (max-width: 700px) {
    .contact-inner { padding: 48px 32px; }
    .contact-email { font-size: 17px; }
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
    padding: 36px 0;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.01em;
}

.footer-copy {
    font-size: 13px;
    color: var(--text-3);
}

.footer-nav {
    display: flex;
    gap: 24px;
}

.footer-nav a {
    font-size: 13px;
    color: var(--text-3);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text-2); }

@media (max-width: 600px) {
    .footer-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Reveal Animation ───────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.apps-grid .app-card:nth-child(2).reveal { transition-delay: 0.12s; }
