/* v3.1 Home enhancements — nav, split hero, gallery, feature rows (loads after style.css) */

/* --- Sticky Nav --- */
.site-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 32px;
    background: rgba(18, 24, 36, 0.75);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border-alpha);
}
.nav-logo { font-family: 'SFMono-Regular', Consolas, monospace; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ivory); text-decoration: none; font-size: 0.9rem; font-weight: 700; }
.nav-logo span { color: var(--terracotta); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--cool-sage); text-decoration: none; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; transition: color 0.2s; }
.nav-links a:hover { color: var(--ivory); }
.nav-cta { border: 1px solid var(--terracotta) !important; color: var(--terracotta) !important; padding: 8px 16px; border-radius: 20px; }
.nav-cta:hover { background: var(--terracotta); color: var(--warm-black) !important; }
@media (max-width: 820px) { .nav-links a:not(.nav-cta) { display: none; } }

/* --- Split Hero --- */
.hero.hero-split {
    min-height: auto; display: grid; grid-template-columns: 1.15fr 0.85fr;
    gap: 48px; align-items: center; text-align: left;
    padding: 150px 0 70px;
}
.hero-split .hero-subtitle { margin-bottom: 36px; max-width: 560px; }
.hero-copy .cta-group { justify-content: flex-start; }
@media (max-width: 900px) {
    .hero.hero-split { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
    .hero-split .hero-subtitle { margin-left: auto; margin-right: auto; }
    .hero-copy .cta-group { justify-content: center; }
    .hero-visual { order: -1; }
    .phone-mockup { max-width: 240px; margin: 0 auto; }
}

/* --- Phone Mockup --- */
.phone-mockup {
    width: 100%; max-width: 300px; aspect-ratio: 1284 / 2778;
    border-radius: 44px; border: 3px solid rgba(255,255,255,0.18);
    box-shadow: 0 0 0 8px rgba(255,255,255,0.04), 0 30px 80px rgba(0,0,0,0.6), 0 0 60px rgba(212,175,55,0.12);
    overflow: hidden; position: relative;
    animation: float 6s ease-in-out infinite;
}
.phone-mockup img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phone-mockup::after {
    content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
    width: 34%; height: 22px; background: #000; border-radius: 12px; opacity: 0.9;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .phone-mockup { animation: none; } }

/* --- Screenshot Gallery --- */
.shots-gallery {
    display: flex; gap: 28px; overflow-x: auto; padding: 20px 4px 36px;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.shots-gallery::-webkit-scrollbar { height: 8px; }
.shots-gallery::-webkit-scrollbar-thumb { background: var(--border-alpha); border-radius: 4px; }
.shot { flex: 0 0 auto; width: 218px; scroll-snap-align: center; text-align: center; }
.shot .shot-frame {
    border-radius: 30px; border: 2px solid rgba(255,255,255,0.14);
    box-shadow: 0 16px 44px rgba(0,0,0,0.55);
    overflow: hidden; aspect-ratio: 1284 / 2778; background: #000;
    transition: transform 0.25s cubic-bezier(0.2, 0, 0, 1), border-color 0.25s;
}
.shot:hover .shot-frame { transform: translateY(-8px) scale(1.02); border-color: var(--terracotta); }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot figcaption { margin-top: 14px; font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cool-sage); }
.shot.platform-ios figcaption::before { content: '● '; color: var(--terracotta); }
.shot.platform-android figcaption::before { content: '▲ '; color: var(--terracotta); }
@media (max-width: 600px) { .shot { width: 176px; } }
/* --- Feature Rows (text + screenshot) --- */
.feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    padding: 48px 0; border-top: 1px solid var(--border-alpha);
}
.feature-row:first-of-type { border-top: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-visual { order: 1; }
.feature-copy { max-width: 30rem; }
.feature-copy .kicker { color: var(--terracotta); font-family: 'SFMono-Regular', Consolas, monospace; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.2em; display: block; margin-bottom: 12px; }
.feature-copy h3 { font-size: 1.4rem; margin-bottom: 14px; color: var(--ivory); letter-spacing: 0.01em; }
.feature-copy ul { list-style: none; }
.feature-copy li { color: var(--cool-sage); margin-bottom: 8px; padding-left: 22px; position: relative; line-height: 1.5; }
.feature-copy li::before { content: '—'; color: var(--terracotta); position: absolute; left: 0; }
.feature-visual .shot-frame {
    max-width: 250px; margin: 0 auto; border-radius: 34px;
    border: 2px solid rgba(255,255,255,0.14); overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 40px rgba(212,175,55,0.08);
    aspect-ratio: 1284 / 2778;
}
.feature-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 800px) {
    .feature-row { grid-template-columns: 1fr; gap: 32px; text-align: center; padding: 40px 0; }
    .feature-row .feature-copy { max-width: none; }
    .feature-row.reverse .feature-copy { order: 1; }
    .feature-row.reverse .feature-visual { order: 0; }
    .feature-copy li { text-align: left; }
}

/* --- Full-width bento card --- */
.bento-full { grid-column: 1 / -1; }

/* --- GPS hole-diagram bento visual --- */
.gps-preview {
    position: relative; height: 320px; margin-top: 24px; flex-shrink: 0;
    border-radius: 20px; background: rgba(0,0,0,0.16);
    border: 1px solid var(--border-alpha); overflow: hidden;
}
.gps-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.gps-fairway { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 56; stroke-linecap: round; }
.gps-green { fill: rgba(212,175,55,0.10); stroke: rgba(212,175,55,0.45); stroke-width: 1.5; }
.gps-bunker { fill: rgba(237,233,227,0.16); }
.gps-tee { fill: rgba(255,255,255,0.28); }
.gps-line { stroke: var(--terracotta); stroke-width: 2; stroke-dasharray: 6 7; opacity: 0.9; }
.gps-pin { stroke: var(--ivory); stroke-width: 2.5; }
.gps-flag { fill: var(--terracotta); }
.gps-chip {
    font-size: 0.62rem; color: var(--cool-sage);
    border: 1px solid var(--border-alpha); background: rgba(18,24,36,0.78);
    padding: 7px 12px; border-radius: 999px;
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.gps-chip.is-active { color: var(--terracotta); border-color: rgba(212,175,55,0.5); }
.gps-chip-top {
    position: absolute; top: 14px; left: 14px;
    font-size: 0.72rem; color: var(--terracotta); border-color: rgba(212,175,55,0.5);
}
.gps-chips {
    position: absolute; bottom: 14px; left: 14px; right: 14px;
    display: flex; gap: 8px; flex-wrap: wrap;
}

/* --- Store Badges --- */
.store-badges { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 10px 22px; border-radius: 12px; text-decoration: none;
    border: 1px solid var(--border-alpha); background: rgba(255,255,255,0.04);
    transition: transform 0.2s, border-color 0.2s, background 0.2s;
}
.store-badge:hover { transform: translateY(-2px); border-color: var(--terracotta); background: rgba(212,175,55,0.08); }
.store-badge svg { width: 26px; height: 26px; fill: var(--ivory); flex-shrink: 0; }
.store-badge .badge-text { text-align: left; line-height: 1.25; }
.store-badge .badge-small { display: block; font-size: 0.58rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--cool-sage); font-family: 'SFMono-Regular', Consolas, monospace; }
.store-badge .badge-big { display: block; font-size: 0.95rem; font-weight: 700; color: var(--ivory); letter-spacing: 0.02em; }

/* --- Data / attribution strip --- */
.data-note { text-align: center; color: var(--cool-sage); font-size: 0.78rem; margin-top: 28px; }
.data-note a { color: var(--terracotta); text-decoration: none; }
