/* ==========================================================================
   Peephole Team — landing page styles (dark, modern, bento)
   ========================================================================== */

:root {
    --bg: #0b0c10;
    --surface: #14161d;
    --surface-2: #191c24;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f2f3f5;
    --muted: #9aa0ac;
    --accent: #6ea8ff;
    --accent-2: #a78bfa;
    --radius: 22px;
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
}

body {
    /* Content protection: no text selection anywhere on the page.
       (Right-click / drag / copy are additionally blocked in script.js —
       see the note there: this deters casual copying, it cannot make
       on-screen content un-copyable in an absolute sense.) */
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    -webkit-user-drag: none;
    user-drag: none;
}

a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Soft, single-source background wash — calm, not "busy" */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 900px 500px at 20% -5%, rgba(110, 168, 255, 0.10), transparent 60%),
        radial-gradient(ellipse 700px 500px at 100% 10%, rgba(167, 139, 250, 0.07), transparent 60%);
    pointer-events: none;
}

/* ---------- Header / nav ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 14px 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(20, 22, 29, 0.6);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: 100px;
    padding: 8px 10px 8px 22px;
    transition: background var(--transition-speed);
}

.logo-container {
    display: flex;
    align-items: center;
    line-height: 0;
}

.logo {
    height: 34px;
    width: auto;
    display: block;
    transition: transform var(--transition-speed);
}

.logo:hover {
    transform: scale(1.04);
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    transition: color var(--transition-speed);
}

.nav-links a:hover {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.social-icons {
    display: flex;
    gap: 4px;
}

.social-icon {
    color: var(--muted);
    font-size: 16px;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: color var(--transition-speed), background var(--transition-speed);
}

.social-icon:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0a0d;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 10px 20px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 190px 0 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 50px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(110, 168, 255, 0.1);
    border: 1px solid rgba(110, 168, 255, 0.25);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

.hero h1 {
    font-size: 3.3rem;
    line-height: 1.05;
    margin-bottom: 20px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.hero h1 .grad {
    background: linear-gradient(120deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.12rem;
    max-width: 480px;
    margin: 0 0 36px;
    color: var(--muted);
}

.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.btn-primary, .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    padding: 15px 26px;
    border-radius: 100px;
    transition: transform var(--transition-speed), box-shadow var(--transition-speed), background var(--transition-speed);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #0a0a0d;
    box-shadow: 0 8px 30px rgba(110, 168, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(110, 168, 255, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.08);
}

/* Hero visual: small stack of real store screenshots, purely decorative
   (aria-hidden). These are portrait phone screenshots, so each card is
   sized to its own image's native ratio (height: auto) instead of a
   fixed aspect-ratio/object-fit crop — nothing here gets cropped. */
.hero-visual {
    position: relative;
    height: 480px;
}

.showcase-card {
    position: absolute;
    width: 168px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    background: var(--surface);
}

.showcase-card img {
    width: 100%;
    height: auto;
    display: block;
}

.sc-1 { top: 0; left: 70px; transform: rotate(-8deg); z-index: 2; width: 172px; }
.sc-2 { top: 130px; right: 10px; transform: rotate(7deg); z-index: 1; width: 150px; }
.sc-3 { bottom: 0; left: 140px; transform: rotate(4deg); z-index: 3; width: 162px; }

.glow-orb {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 168, 255, 0.28), transparent 70%);
    top: 15%;
    right: 0;
    filter: blur(10px);
    z-index: 0;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--muted);
    font-size: 22px;
    cursor: pointer;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
    40% { transform: translateY(-16px) translateX(-50%); }
    60% { transform: translateY(-8px) translateX(-50%); }
}

/* ---------- Section heading ---------- */
.section-head {
    max-width: 560px;
    margin-bottom: 50px;
}

.section-title {
    font-size: 2.3rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--muted);
    font-size: 1.05rem;
}

.games-section {
    padding: 90px 0 100px;
}

/* ---------- Bento games grid ---------- */
.bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}

.game-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
    grid-column: span 3;
    aspect-ratio: var(--ratio, 800 / 391);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: transform var(--transition-speed) ease, border-color var(--transition-speed) ease;
    isolation: isolate;
}

.game-card.featured {
    grid-column: span 4;
}

.game-card.small {
    grid-column: span 2;
}

.game-card:hover {
    transform: translateY(-8px);
    border-color: rgba(110, 168, 255, 0.35);
}

.game-card .bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.game-card .bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.6s ease;
}

.game-card:hover .bg img {
    transform: scale(1.06);
}

.game-card.coming-soon {
    background: linear-gradient(135deg, #1b2030, #0a0c12);
}

.game-card .scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Dark enough from the very top that baked-in text/art on the
       screenshot itself never visually collides with our own title —
       still lets the artwork read through as texture/color. */
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.4) 0%, rgba(11, 12, 16, 0.55) 35%, rgba(11, 12, 16, 0.95) 100%);
}

.game-card.featured .scrim {
    /* The featured card is tall enough to show more of the artwork
       before the text block begins. */
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.15) 0%, rgba(11, 12, 16, 0.4) 45%, rgba(11, 12, 16, 0.95) 100%);
}

.game-card .scrim.solid {
    background: linear-gradient(180deg, rgba(11, 12, 16, 0.2) 0%, rgba(11, 12, 16, 0.75) 100%);
}

/* Small tiles are short (wide aspect, narrow column) — keep them to a
   title + one action so the text block never has to fight the
   screenshot's own baked-in title art for space. */
.game-card.small .content p {
    display: none;
}

.game-card.small .content {
    padding: 18px 20px;
}

.game-card.small h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.game-card .content {
    position: relative;
    z-index: 2;
    padding: 24px;
}

.game-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 12px;
    color: #fff;
}

.game-card h3 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: #fff;
}

.game-card.featured h3 {
    font-size: 1.9rem;
}

.game-card p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9rem;
    margin-bottom: 16px;
    max-width: 420px;
}

.store-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.store-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #0a0a0d;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 9px 16px;
    border-radius: 100px;
    text-decoration: none;
    transition: transform var(--transition-speed);
}

.store-pill:hover {
    transform: translateY(-2px);
}

.store-pill.dark {
    background: #0a0a0d;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.store-pill.muted {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: default;
}

/* ---------- Contact ---------- */
.contact-section {
    padding: 0 0 110px;
}

.contact-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-method {
    flex: 1 1 230px;
    min-width: 0;
    max-width: 280px;
    padding: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    text-align: center;
    transition: transform var(--transition-speed), border-color var(--transition-speed);
}

.contact-method:hover {
    transform: translateY(-5px);
    border-color: rgba(110, 168, 255, 0.35);
}

.contact-method i {
    font-size: 1.8rem;
    color: var(--accent);
    margin-bottom: 14px;
}

.contact-method h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.contact-method p {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.contact-method a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.contact-method a:hover {
    color: var(--text);
}

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

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

.footer-brand {
    line-height: 0;
}

.footer-brand img {
    height: 26px;
    width: auto;
    display: block;
}

.footer-links {
    display: flex;
    gap: 26px;
    list-style: none;
    flex-wrap: wrap;
}

.footer-links a {
    color: #c3c7cf;
    text-decoration: none;
    font-size: 0.88rem;
    transition: color var(--transition-speed);
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-visual {
        display: none;
    }
    .bento {
        grid-template-columns: repeat(2, 1fr);
    }
    .game-card, .game-card.featured, .game-card.small {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    .section-title {
        font-size: 1.9rem;
    }
    .footer-flex {
        flex-direction: column;
        text-align: center;
    }
}

/* Below this width there isn't room for the logo, text nav links, social
   icons and the CTA button all in one bar without crowding — drop the
   text links (the CTA button already covers "go to games") and tighten
   the remaining gaps so logo/CTA sit at a clean, even distance. */
@media (max-width: 700px) {
    .nav-links {
        display: none;
    }
    .nav {
        padding: 8px 8px 8px 16px;
    }
    .nav-right {
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 150px 0 70px;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .section-title {
        font-size: 1.7rem;
    }
    .games-section {
        padding: 60px 0;
    }
    .social-icons {
        display: none;
    }
    .nav-cta {
        padding: 9px 16px;
        font-size: 0.8rem;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ---------- Animations ---------- */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ---------- Scroll to top button ---------- */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-speed);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    border-color: rgba(110, 168, 255, 0.4);
}

/* ---------- Skip link (a11y) ---------- */
.skip-link {
    position: absolute;
    left: -999px;
    top: auto;
    background: var(--accent);
    color: #0a0a0d;
    padding: 10px 16px;
    z-index: 2000;
    border-radius: 0 0 8px 0;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
    top: 0;
}
