@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Playfair+Display:ital,wght@0,600;0,700;0,800;1,600;1,700;1,800&display=swap');

:root {
    --bg-color: #ffffff;
    --ink: #050505;
    --text-main: #111111;
    --text-soft: #494949;
    --text-muted: #8b8b8b;
    --surface: #f7f7f5;
    --surface-strong: #eeeeeb;
    --line: rgba(0, 0, 0, 0.11);
    --line-strong: rgba(0, 0, 0, 0.18);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
    --shadow-soft: 0 16px 46px rgba(0, 0, 0, 0.09);
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-color);
    color: var(--text-main);
    font-family: var(--sans);
    line-height: 1.5;
    overflow-x: hidden;
}

body[data-page="home"] {
    background:
        linear-gradient(180deg, #ffffff 0%, #fbfbfa 56rem, #ffffff 100%),
        var(--bg-color);
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f6f6f4;
}

::-webkit-scrollbar-thumb {
    background: #c8c8c3;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #777;
}

.site-nav,
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background 0.25s ease, border-bottom 0.25s ease;
}

.site-nav.scrolled,
nav.scrolled {
    background: rgba(255, 255, 255, 0.86);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
}

.brand,
.logo {
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.72rem;
    color: var(--ink);
    font-weight: 800;
    letter-spacing: 0;
}

.brand img,
.logo img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: block;
    border: 1px solid var(--line);
}

.btn-primary,
.btn-secondary,
.store-badge {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: var(--ink);
    color: white;
    padding: 0.72rem 1.35rem;
    border: 1px solid var(--ink);
}

.btn-primary:hover {
    background: #2a2a2a;
    border-color: #2a2a2a;
    transform: translateY(-1px);
}

.btn-secondary {
    color: var(--ink);
    padding: 0.72rem 1.25rem;
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.74);
}

.btn-secondary:hover {
    border-color: rgba(0, 0, 0, 0.34);
    background: white;
    transform: translateY(-1px);
}

.btn-large {
    min-height: 54px;
    padding: 0.95rem 1.55rem;
}

.home-hero {
    min-height: 100svh;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.98fr);
    gap: clamp(2.2rem, 6vw, 6rem);
    align-items: center;
    padding: 8rem 5% 4rem;
    max-width: 1260px;
    margin: 0 auto;
}

.hero-copy {
    max-width: 720px;
}

.eyebrow {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
}

.hero-copy h1,
.section-head h2,
.feature-copy h2,
.download-section h2,
.screenshot-card h2,
.poster-title {
    font-family: var(--serif);
    letter-spacing: 0;
    color: var(--ink);
}

.hero-copy h1 {
    font-size: clamp(4.4rem, 10vw, 8.8rem);
    line-height: 0.82;
    font-weight: 800;
    max-width: 820px;
    margin-bottom: 1.55rem;
}

.hero-text {
    color: var(--text-soft);
    font-size: clamp(1.08rem, 1.8vw, 1.35rem);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}

.platform-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 1.2rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.poster-stack {
    position: relative;
    width: min(100%, 520px);
    min-height: 620px;
    display: flex;
    justify-content: center;
}

.poster-card,
.screenshot-card {
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.poster-card {
    position: relative;
    width: min(100%, 440px);
    min-height: 620px;
    border-radius: 38px;
    padding: 2.2rem 2rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.poster-title {
    font-size: clamp(3rem, 5.4vw, 5rem);
    line-height: 0.86;
    font-weight: 800;
}

.poster-title em,
.screenshot-card h2 em {
    font-style: italic;
    font-weight: 700;
}

.challenge-board {
    margin-top: clamp(1.45rem, 3.2vw, 2rem);
    display: grid;
    gap: 0.7rem;
}

.photo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
    overflow: hidden;
    border-radius: 14px;
    background: #ddd;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

.photo-strip span {
    min-height: clamp(72px, 7.4vw, 92px);
    background: #d9d5cc;
}

.photo-strip span:nth-child(1) {
    background: linear-gradient(145deg, #191919, #8c8c86);
}

.photo-strip span:nth-child(2) {
    background: linear-gradient(145deg, #d7d1c3, #8a8b82);
}

.photo-strip span:nth-child(3) {
    background: linear-gradient(145deg, #ece5d0, #567052);
}

.photo-strip span:nth-child(4) {
    background: linear-gradient(145deg, #f3f0e8, #202020);
}

.photo-strip.soft span:nth-child(1) {
    background: linear-gradient(145deg, #e6e0d3, #7a6b55);
}

.photo-strip.soft span:nth-child(2) {
    background: linear-gradient(145deg, #d7e4cf, #43533f);
}

.photo-strip.soft span:nth-child(3) {
    background: linear-gradient(145deg, #ededeb, #b5b1a8);
}

.photo-strip.soft span:nth-child(4) {
    background: linear-gradient(145deg, #242424, #dfd7c5);
}

.photo-strip.glow span:nth-child(1) {
    background: linear-gradient(145deg, #efefe9, #aeb7a4);
}

.photo-strip.glow span:nth-child(2) {
    background: linear-gradient(145deg, #222, #d8d1c3);
}

.photo-strip.glow span:nth-child(3) {
    background: linear-gradient(145deg, #e7d8c6, #8d8678);
}

.photo-strip.glow span:nth-child(4) {
    background: linear-gradient(145deg, #faf8f2, #cfc7b8);
}

.photo-strip.pale span:nth-child(1) {
    background: linear-gradient(145deg, #111, #a2a09a);
}

.photo-strip.pale span:nth-child(2) {
    background: linear-gradient(145deg, #e9ebdf, #6b735f);
}

.photo-strip.pale span:nth-child(3) {
    background: linear-gradient(145deg, #f4efe7, #bfb5a7);
}

.photo-strip.pale span:nth-child(4) {
    background: linear-gradient(145deg, #2d2d2d, #e5dfd2);
}

.friend-feed i {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 2px solid #e3e3e1;
    border-radius: 50%;
    font-style: normal;
    font-weight: 900;
}

.showcase-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: 1220px;
    padding: 1rem 5% 5rem;
    margin: 0 auto;
}

.screenshot-card {
    min-height: 560px;
    border-radius: 34px;
    padding: clamp(1.45rem, 3vw, 2rem);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.screenshot-card h2 {
    font-size: clamp(3rem, 5.3vw, 5.2rem);
    line-height: 0.86;
    font-weight: 800;
}

.mock-phone {
    margin: auto auto 0;
    width: min(100%, 300px);
    border: 10px solid #111;
    border-bottom-width: 18px;
    border-radius: 36px;
    padding: 1.1rem;
    background: white;
    box-shadow: var(--shadow);
}

.mock-title {
    font-family: var(--serif);
    font-size: 2.1rem;
    font-weight: 800;
    text-align: center;
    margin: 1.2rem 0;
}

.mock-row {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
}

.mock-row::before {
    content: "";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid #e5e5e2;
    flex: 0 0 auto;
}

.mock-row.done::before {
    content: "✓";
    display: grid;
    place-items: center;
    background: #050505;
    border-color: #050505;
    color: white;
}

.friend-feed {
    margin: auto 0 0;
    display: grid;
    gap: 1.1rem;
}

.friend-feed div {
    min-height: 112px;
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) 40px;
    gap: 0.85rem;
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 1rem;
    box-shadow: var(--shadow-soft);
}

.friend-feed div::before {
    content: "";
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 3px solid #d9bc64;
    background: linear-gradient(145deg, #f1e7d3, #262626);
}

.friend-feed span {
    font-weight: 900;
    font-size: 1.18rem;
    align-self: end;
}

.friend-feed strong {
    grid-column: 2;
    color: var(--text-muted);
    align-self: start;
}

.friend-feed i {
    grid-column: 3;
    grid-row: 1 / span 2;
    background: #050505;
    color: white;
    border-color: #050505;
}

.friend-feed div:last-child i {
    background: white;
    color: transparent;
    border-color: #e5e5e2;
}

.story-card {
    width: min(100%, 320px);
    margin: auto auto 1rem;
    border-radius: 26px;
    background: white;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 1.25rem;
}

.story-card span {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-style: italic;
    font-weight: 800;
}

.story-card p {
    color: var(--text-soft);
    margin: 0.2rem 0 0.8rem;
}

.story-card ol {
    list-style-position: inside;
    display: grid;
    gap: 0.35rem;
    font-weight: 600;
}

.steps-section,
.feature-band,
.download-section {
    padding: 6rem 5%;
    max-width: 1220px;
    margin: 0 auto;
}

.section-head {
    max-width: 760px;
    margin-bottom: 2.5rem;
}

.section-head h2,
.feature-copy h2,
.download-section h2 {
    font-size: clamp(2.7rem, 6vw, 5.5rem);
    line-height: 0.9;
    font-weight: 800;
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.step-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.35rem;
    min-height: 260px;
}

.step-number {
    color: var(--text-muted);
    font-weight: 900;
    font-size: 0.92rem;
}

.step-card h3 {
    margin-top: 2.4rem;
    font-size: 1.35rem;
    line-height: 1.1;
}

.step-card p {
    color: var(--text-muted);
    margin-top: 0.85rem;
}

.feature-band {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

.feature-copy p {
    color: var(--text-soft);
    font-size: 1.12rem;
    margin-top: 1.25rem;
}

.feature-list {
    display: grid;
    gap: 0.85rem;
}

.feature-list div {
    border-left: 3px solid var(--ink);
    background: var(--surface);
    padding: 1.1rem 1.25rem;
}

.feature-list div:nth-child(2) {
    background: #f2f2ef;
}

.feature-list div:nth-child(3) {
    background: #ededeb;
}

.feature-list strong {
    display: block;
    margin-bottom: 0.2rem;
}

.feature-list span {
    display: block;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.download-section {
    text-align: center;
    padding-bottom: 7rem;
}

.download-logo {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    margin-bottom: 1.5rem;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
}

.store-badge {
    margin-top: 2rem;
    background: var(--ink);
    color: white;
    padding: 0.95rem 1.55rem;
    border: 1px solid var(--ink);
}

.store-badge:hover {
    transform: translateY(-1px);
}

footer {
    border-top: 1px solid var(--line);
    padding: 2.8rem 5%;
    text-align: center;
    background: #fbfbfa;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    align-items: center;
}

.footer-brand {
    color: var(--text-main);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.6rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

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

.copyright {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.fade-in {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.page-container {
    padding: 10rem 5% 4rem;
    max-width: 840px;
    margin: 0 auto;
    min-height: 80vh;
}

.page-container h1 {
    font-family: var(--serif);
    font-size: clamp(3rem, 9vw, 5.6rem);
    line-height: 0.9;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.page-container .updated {
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1rem;
}

.page-content {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 1.05rem;
}

.page-content h2 {
    font-family: var(--serif);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.05;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.page-content h3 {
    font-family: var(--serif);
    font-size: 1.18rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.page-content p {
    margin-bottom: 1.2rem;
    line-height: 1.8;
}

.page-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.page-content li {
    margin-bottom: 0.6rem;
    line-height: 1.8;
}

.page-content strong {
    color: var(--text-main);
    font-weight: 800;
}

.page-content a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 980px) {
    .home-hero,
    .feature-band {
        grid-template-columns: 1fr;
    }

    .hero-copy {
        max-width: none;
    }

    .hero-visual {
        justify-content: flex-start;
    }

    .poster-stack {
        min-height: 620px;
    }

    .step-grid,
    .showcase-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .showcase-strip .screenshot-card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 680px) {
    .site-nav,
    nav {
        padding: 0.9rem 1rem;
    }

    .brand span {
        display: none;
    }

    .site-nav > .download-link,
    nav > .download-link {
        display: none;
    }

    body[data-page="home"] .site-nav {
        display: none;
    }

    .brand img,
    .logo img {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .home-hero {
        padding: 2rem 1rem 3rem;
    }

    .hero-copy h1 {
        font-size: clamp(4rem, 21vw, 6rem);
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }

    .poster-stack {
        min-height: 560px;
        width: 100%;
    }

    .poster-card {
        width: 100%;
        min-height: 560px;
        border-radius: 30px;
        padding: 1.6rem 1.25rem;
    }

    .photo-strip span {
        min-height: 68px;
    }

    .showcase-strip,
    .steps-section,
    .feature-band,
    .download-section {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .showcase-strip,
    .step-grid {
        grid-template-columns: 1fr;
    }

    .showcase-strip .screenshot-card:last-child {
        grid-column: auto;
    }

    .screenshot-card {
        min-height: 500px;
        border-radius: 28px;
    }

    .step-card {
        min-height: auto;
    }

    .step-card h3 {
        margin-top: 1.4rem;
    }

    .footer-links {
        flex-direction: column;
    }
}
