/* ===========================
   CUSTOM FONTS FOR FLAPPYSTONK
   =========================== */

/* Title font (BIOS) */
@font-face {
    font-family: 'FlappyBIOS';
    src: url('../fonts/Mx437_IBM_BIOS-2y.woff2') format('woff2'),
         url('../fonts/Mx437_IBM_BIOS-2y.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Body font (DOS ISO) */
@font-face {
    font-family: 'FlappyDOS';
    src: url('../fonts/Mx437_IBM_DOS_ISO9.woff2') format('woff2'),
         url('../fonts/Mx437_IBM_DOS_ISO9.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

html, body {
    height: 100%;
}

body {
    font-family: 'FlappyDOS', -apple-system, BlinkMacSystemFont,
        'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', sans-serif;
    background: #020617; 
    color: #e5e7eb;
    -webkit-font-smoothing: antialiased;
}

/* LAYOUT HELPERS */
.fs-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.fs-section {
    padding: 4rem 0;
    background: #020617;
}

.fs-section-alt {
    background: rgba(15, 23, 42, 0.8);
}

.fs-section h2 {
    font-size: 2rem;
    margin-bottom: 0.75rem;
    text-align: center; /* FIX: Center the new section titles */
}

.fs-section-sub {
    color: #9ca3af;
    margin-bottom: 2.5rem;
    text-align: center; /* FIX: Center the new section sub-titles */
    max-width: 600px;   /* FIX: Constrain sub-title width */
    margin-left: auto;
    margin-right: auto;
}

/* HEADER / NAV */
.fs-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
}

.fs-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.25rem;
}

.fs-logo {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none; 
    color: inherit; 
}

.fs-logo-icon {
    height: 4rem;
    width: auto;
    border-radius: 12px;
    display: block;
}

.fs-logo-text {
    font-size: 2rem;
    text-transform: uppercase;
    line-height: 1; 
    display: block;
}

.fs-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
}

.fs-nav-links a {
    color: #e5e7eb;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.fs-nav-links a:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.fs-nav-cta {
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(94, 234, 212, 0.8);
    background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.25), transparent);
}

h1, h2, h3, h4, h5, h6, .fs-logo-text, .fs-nav-cta, .fs-phone-title, .fs-store-main {
    font-family: 'FlappyBIOS', 'FlappyDOS', sans-serif;
}
/* We also target the logo text, cta, etc. to make them match */


/* HERO */
.fs-hero {
    padding: 4rem 0 4.5rem;
    background: radial-gradient(circle at top, #111827, #020617 55%, #000 100%);
}

.fs-hero-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
}

.fs-hero-copy h1 {
    font-size: clamp(2.3rem, 5vw, 3rem);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.fs-hero-sub {
    color: #9ca3af;
    font-size: 0.98rem;
    max-width: 26rem;
    margin-bottom: 1.5rem;
}

.fs-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.fs-store-btn {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.fs-store-btn img {
    width: 150px; 
    height: auto;
    vertical-align: middle;
}

.fs-store-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.fs-hero-note {
    font-size: 0.8rem;
    color: #9ca3af;
}

.fs-hero-cta-group {
    display: contents; 
}


/* HERO PHONE MOCK */
.fs-hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.fs-phone-frame {
    border-radius: 2.5rem;
    padding: 0.0rem 0.0rem 0.0rem 0.0rem; 
    background: radial-gradient(circle at top, #0f172a, #020617);
    border: 1px solid rgba(148, 163, 184, 0.4);
    box-shadow:
        0 25px 45px rgba(15, 23, 42, 0.95),
        0 0 0 1px rgba(15, 23, 42, 0.9);
}

.fs-phone-screen {
    width: 240px;
    height: 492px;
    border-radius: 2.5rem;
    background: radial-gradient(circle at top, #1d283a, #020617 65%);
    position: relative;
    overflow: hidden; 
}

.fs-phone-video {
    width: 100%;
    height: 100%;
    position: absolute;
    object-fit: contain;
}


.fs-phone-badge {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(252, 211, 77, 0.8);
    background: rgba(15, 23, 42, 0.85);
    align-self: flex-start;
}

.fs-phone-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0.4rem;
}

.fs-phone-sub {
    font-size: 0.85rem;
    color: #9ca3af;
}

.fs-phone-ticker {
    margin-top: auto;
    padding: 0.6rem 0.5rem;
    border-radius: 0.9rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.4);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
}

.fs-phone-ticker span {
    display: block;
}

/* GRID & CARDS */
.fs-grid {
    display: grid;
    gap: 1.5rem;
}

/* -- FIX: Renamed this to be a 2-column grid -- */
.fs-grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.fs-card {
    background: rgba(15, 23, 42, 0.9);
    border-radius: 1rem;
    padding: 1.25rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.8);
}

.fs-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.35rem;
}

.fs-card p {
    font-size: 0.9rem;
    color: #9ca3af;
}

/* -- FIX: Removed all rules for .fs-screenshot-grid,
  -- .fs-screenshot-placeholder, and .fs-screenshot-note
*/

/* ABOUT */
.fs-about-grid {
    display: grid;
    gap: 2rem;
}

.fs-about-callout {
    background: radial-gradient(circle at top left, rgba(45, 212, 191, 0.1), rgba(15, 23, 42, 0.98));
    border-radius: 1.1rem;
    padding: 1.4rem 1.3rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
}

.fs-about-callout ul {
    list-style: disc;
    padding-left: 1.1rem;
    margin: 0.6rem 0 0.8rem;
    color: #e5e7eb;
    font-size: 0.9rem;
}

.fs-about-small {
    font-size: 0.8rem;
    color: #9ca3af;
}

/* LEGAL SECTION */
.fs-legal-section {
    padding: 2.5rem 0;
}

.fs-legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.fs-legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.fs-legal-links a {
    font-size: 0.9rem;
    color: #a5b4fc;
    text-decoration: none;
    border-bottom: 1px solid rgba(129, 140, 248, 0.5);
    padding-bottom: 0.1rem;
}

/* FOOTER */
.fs-footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1rem 0 1.5rem;
    background: rgba(15, 23, 42, 0.98);
}

.fs-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.fs-footer-note {
    font-size: 0.8rem;
    color: #9ca3af;
}

.fs-logo-text .tm {
    font-size: 0.33em;
    position: relative;
    top: 0.5em;
    margin-left: 0.15em;
}

/* RESPONSIVE */
@media (min-width: 768px) {
    .fs-hero-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
        grid-template-rows: auto 1fr; 
    }
    
    .fs-hero-copy {
        grid-column: 1;
        grid-row: 1;
    }

    .fs-hero-cta-group {
        grid-column: 1;
        grid-row: 2;
        align-self: start;
        display: block; 
    }

    .fs-hero-media {
        grid-column: 2;
        grid-row: 1 / span 2;
    }


    .fs-about-grid {
        grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    }
}

@media (max-width: 767px) {
    .fs-nav-links {
        display: none;
    }

    .fs-hero {
        padding-top: 2.5rem;
    }
    
    .fs-hero-grid {
        display: flex;
        flex-direction: column;
    }
    
    .fs-hero-copy {
        order: 1; 
    }
    
    .fs-hero-media {
        order: 2; 
        margin-top: 1.5rem;
    }
    
    .fs-hero-cta-group {
        order: 3; 
        margin-top: 5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}

/* HAMBURGER BUTTON */
.fs-nav-toggle {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    color: #e5e7eb;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}


/* MOBILE MENU BEHAVIOR */
@media (max-width: 767px) {

    /* SHOW HAMBURGER */
    .fs-nav-toggle {
        display: block;
    }

    /* HIDE MENU BY DEFAULT */
    .fs-nav-links {
        display: none;
        position: absolute;
        top: 60px;
        right: 1rem;
        background: rgba(15, 23, 42, 0.98);
        border: 1px solid rgba(148, 163, 184, 0.35);
        border-radius: 0.5rem;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.75rem;
        width: 180px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.4);
        z-index: 999;
    }

    /* SHOW MENU WHEN TOGGLED */
    .fs-nav-links.open {
        display: flex;
    }
}

body.page-legal {
    background: #020617; 
}

.fs-legal-text {
    max-width: 800px; 
}

.fs-legal-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.fs-legal-text h2 {
    font-size: 1.8rem;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.fs-legal-text h3 {
    font-size: 1.5rem;
    color: #a5b4fc; 
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.fs-legal-text p, .fs-legal-text ul {
    font-size: 1.1rem;
    color: #9ca3af;
    margin-bottom: 1rem;
}

.fs-legal-text ul {
    list-style-position: inside;
    padding-left: 1rem; 
}

.fs-legal-text a {
    color: #a5b4fc;
}