:root {
    /* Color System */
    --primary: #007AFF;
    --soccer: #34C759;
    --tennis: #FFCC00;
    --basketball: #FF9500;
    --volleyball: #007AFF;
    --football: #A2845E;
    --cards: #AF52DE;
    --yardsale: #FF2D55;
    --background: #FFFFFF;
    --background-secondary: #F2F2F7;
    --text-primary: #000000;
    --text-secondary: #8E8E93;
    --error: #FF3B30;

    /* Legacy compatibility */
    --bg-color: var(--background);
    --bg-secondary: var(--background-secondary);
    --text-color: var(--text-primary);
    --primary-color: var(--primary);

    /* Gradient System */
    --gradient-primary: linear-gradient(135deg, #007AFF 0%, #5AC8FA 100%);
    --gradient-hero: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    --gradient-cta: linear-gradient(135deg, #007AFF 0%, #0062CC 100%);
    --gradient-glass: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.85) 100%);

    /* Enhanced Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Typography */
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Enhanced Shadow System */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(0, 122, 255, 0.2);
    --shadow-3d: 0 10px 30px rgba(0, 0, 0, 0.1), 0 1px 8px rgba(0, 0, 0, 0.06);
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* Typography */
h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.03em;
    color: #1d1d1f;
}

p {
    color: var(--text-secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1rem 5%;
    background: var(--gradient-glass);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

nav {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* More breathing room */
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo-img {
    height: 32px;
    /* Reduced from 40px for better balance */
    width: auto;
    border-radius: 22.5%;
    /* iOS app-icon squircle look */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
    /* Subtle lift */
}

.logo-text {
    font-size: 1.5rem;
    /* Increased from 1.3rem */
    font-weight: 700;
    /* Bolder */
    color: #1d1d1f;
    letter-spacing: -0.03em;
    /* Tighter tracking for premium feel */
    line-height: 1;
    position: relative;
    top: 1px;
    /* Optical alignment adjustment */
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: #1d1d1f;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--primary-color);
}

/* Buttons */
.cta-button {
    padding: 0.6rem 1.2rem;
    border-radius: 980px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:active::before {
    width: 300px;
    height: 300px;
}

.cta-button.small {
    background: var(--gradient-cta);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.cta-button.small:hover {
    box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

.cta-button.primary {
    background: var(--primary);
    color: #fff;
    padding: 0.875rem 2.25rem;
    font-size: 1.0625rem;
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.2);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.cta-button.primary:hover {
    background: #0051D5;
    box-shadow: 0 6px 16px rgba(0, 122, 255, 0.25);
    transform: translateY(-1px);
}

.cta-button.secondary {
    color: var(--primary);
    background: transparent;
    margin-left: 1.25rem;
    font-size: 1.0625rem;
    font-weight: 400;
}

.cta-button.secondary:hover {
    background: transparent;
    opacity: 0.7;
    transform: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 5% 4rem;
    text-align: center;
    background: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 980px;
    margin-bottom: 5rem;
    z-index: 10;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.07;
    margin-bottom: 1.75rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    color: #1d1d1f;
}

.hero-subtitle {
    font-size: 1.75rem;
    line-height: 1.4;
    max-width: 640px;
    margin: 0 auto 3rem;
    color: #6e6e73;
    font-weight: 400;
    letter-spacing: -0.005em;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-visual {
    width: 100%;
    max-width: 400px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px;
    z-index: 10;
}

.phone-mockup-container {
    position: relative;
    width: 320px;
    height: 650px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* iPhone Frame */
.iphone-frame {
    --pin-color: var(--soccer);
    width: 360px;
    height: 720px;
    background: #000;
    border-radius: 55px;
    position: relative;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(0, 0, 0, 0.05) inset,
                0 0 0 12px #1d1d1f,
                0 0 0 13px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* Dynamic Island / Notch */
.iphone-frame::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: 126px;
    height: 32px;
    background: #000;
    border-radius: 22px;
    z-index: 10;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Maps Interface Inside iPhone */
.maps-interface {
    width: 100%;
    height: 100%;
    background: #F5F5F7 url('../assets/app_map_crop.jpg') center / cover no-repeat;
    border-radius: 43px;
    position: relative;
    overflow: hidden;
}

/* Soft veil at the top so the search bar stays readable over the map */
.maps-interface::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(245, 245, 247, 0.9) 0%, rgba(245, 245, 247, 0.35) 18%, rgba(245, 245, 247, 0) 40%);
}

/* Map gradient overlay for depth */
.map-gradient {
    display: none;
}

/* Maps UI Top Bar */
.maps-ui-top {
    position: absolute;
    top: 64px;
    left: 20px;
    right: 20px;
    z-index: 5;
}

.search-bar {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 0.9rem;
    color: #86868b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
    font-weight: 400;
    display: flex;
    align-items: center;
    letter-spacing: -0.01em;
}

.search-prefix {
    color: #86868b;
}

.search-sport {
    color: var(--primary);
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.25s ease;
    margin-left: 0.25em;
}

.search-ellipsis {
    display: none;
}

/* Pin Drop Animation */
.pin-drop-animation {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 6;
    pointer-events: none;
}

.dropping-pin {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 5px solid var(--pin-color, var(--soccer));
    background: #fff;
    background: color-mix(in srgb, var(--pin-color, var(--soccer)) 18%, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    animation: logoDrop 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.pin-emoji {
    font-size: 2.4rem;
    line-height: 1;
}

.pin-emoji .pin-img {
    /* Custom art needs ~25% more size than emoji to carry the same visual
       weight (emoji fill their glyph box; PNGs have transparent margins). */
    width: 3rem;
    height: 3rem;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.pin-count {
    position: absolute;
    top: -10px;
    right: -10px;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 13px;
    background: #3A3A3C;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-sizing: border-box;
}

@keyframes logoDrop {
    0% {
        transform: translateY(-180px) scale(0.5);
        opacity: 0;
        filter: drop-shadow(0 0px 0px rgba(0, 0, 0, 0));
    }
    10% {
        opacity: 1;
    }
    40% {
        transform: translateY(310px) scale(1);
        filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.25));
    }
    50% {
        transform: translateY(285px) scale(1);
        filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
    }
    55% {
        transform: translateY(310px) scale(1);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
    }
    60%, 100% {
        transform: translateY(310px) scale(1);
        filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
        opacity: 1;
    }
}

/* Landing Ripple Effect */
.landing-ripple {
    position: absolute;
    top: 348px;
    left: 50%;
    width: 90px;
    height: 90px;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 1.5px solid var(--pin-color, var(--primary));
    opacity: 0;
    z-index: 5;
    animation: rippleBurst 4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    transition: border-color 0.3s ease;
}

@keyframes rippleBurst {
    0%, 38% {
        transform: translateX(-50%) scale(0.5);
        opacity: 0;
    }
    40% {
        transform: translateX(-50%) scale(0.6);
        opacity: 0.5;
    }
    60% {
        transform: translateX(-50%) scale(1.8);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) scale(1.8);
        opacity: 0;
    }
}

/* Features Section */
.features {
    padding: 8rem 5%;
    background: var(--bg-secondary);
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-header p {
    font-size: 1.3rem;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, minmax(300px, auto));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    background: #fff;
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(0, 0, 0, 0.04);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-card-hover);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-3d);
    border-color: rgba(0, 122, 255, 0.1);
}

.bento-card > * {
    position: relative;
    z-index: 2;
}

.bento-card h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* Grid Spans */
.card-large {
    grid-column: span 2;
    grid-row: span 2;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 50%, #f2f2f7 100%);
    position: relative;
    overflow: hidden;
}

.card-large::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.card-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.card-small {
    grid-column: span 1;
    grid-row: span 1;
    background: #1d1d1f;
    /* Dark contrast card */
    color: #fff;
}

.card-small h3,
.card-small p {
    color: #fff;
}

.card-wide {
    grid-column: span 3;
    /* Full width on mobile, handled in media query */
    display: none;
    /* Hidden for now in 3x2 grid, or we can adjust layout */
}

/* Visuals inside cards */
.map-visual {
    flex: 1;
    background-image: url('../assets/dropin_map.png');
    background-size: cover;
    background-position: center;
    border-radius: 20px;
    margin-top: 1.5rem;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pin-marker {
    width: 20px;
    height: 20px;
    background: var(--primary-color);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
}

.pulse-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.4;
    }

    100% {
        transform: translate(-50%, -50%) scale(3);
        opacity: 0;
    }
}

.sports-icons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

/* Emoji + name chips: compact enough that the 2x2 grid fits the bento card */
.sport-icon {
    font-size: 1.5rem;
    background: var(--bg-secondary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 56px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.sport-icon::after {
    content: attr(data-label);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: var(--text-secondary, #6b7280);
    white-space: nowrap;
    transition: color 0.25s ease;
}

.sport-icon:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(90, 200, 250, 0.1) 100%);
    box-shadow: 0 8px 16px rgba(0, 122, 255, 0.2);
}

.sport-icon:hover::after {
    color: var(--accent, #007AFF);
}

/* Live Activity Card Styling */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    align-self: flex-start;
    margin-bottom: 1rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #30d158;
    border-radius: 50%;
    position: relative;
    animation: livePulse 2s ease-in-out infinite;
}

.status-dot::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: #30d158;
    opacity: 0.4;
    animation: liveRing 2s ease-in-out infinite;
}

@keyframes livePulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes liveRing {
    0% {
        transform: scale(1);
        opacity: 0.4;
    }
    50% {
        transform: scale(1.5);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0;
    }
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 10px;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

.activity-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateX(4px);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color);
}

/* Showcase Section */
.showcase {
    padding: 0;
    background: #000;
    /* Contrast section */
    color: #fff;
    position: relative;
    overflow: hidden;
}

.showcase-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: #000;
}

.bg-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    /* Slightly lower opacity for bright day footage to blend with text */
    filter: grayscale(100%) contrast(1.1);
}

.dither-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    /* Use a noise texture or CSS radial gradient to simulate dither if SVG is too heavy */
    background-image: radial-gradient(transparent 1px, var(--bg-color) 1px);
    background-size: 4px 4px;
    backdrop-filter: contrast(150%) brightness(100%);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.showcase-content {
    position: relative;
    z-index: 2;
    padding: 10rem 5%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.showcase-text {
    flex: 1;
    max-width: 500px;
}

.showcase-visuals {
    flex: 1;
    position: relative;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.ui-screen {
    position: absolute;
    width: 280px;
    border-radius: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 8px solid #fff;
    transition: transform 0.5s ease;
}

.map-screen {
    z-index: 1;
    transform: translateX(-20px) rotate(-5deg);
}

.nearby-screen {
    z-index: 2;
    transform: translateX(20px) translateY(40px) rotate(5deg);
}

.showcase-visuals:hover .map-screen {
    transform: translateX(-40px) rotate(-8deg) scale(1.05);
}

.showcase-visuals:hover .nearby-screen {
    transform: translateX(40px) translateY(40px) rotate(8deg) scale(1.05);
}

.showcase-text h2 {
    font-size: 4rem;
    color: #fff;
    margin-bottom: 1.5rem;
}

.showcase-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.feature-list li {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
}

.feature-list li span {
    color: var(--primary-color);
    font-weight: 600;
    margin-right: 1rem;
}

/* CTA Section */
.cta-section {
    padding: 8rem 5%;
    background: linear-gradient(180deg, #FFFFFF 0%, #F8F9FA 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(0, 122, 255, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.cta-container {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-container h2 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.app-store-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.appstore-badge {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.appstore-badge img {
    display: block;
    height: 54px;
}

.appstore-badge:hover {
    transform: scale(1.05);
}

.store-btn {
    padding: 0.8rem 1.5rem;
    background: var(--gradient-cta);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 16px rgba(0, 122, 255, 0.25);
    position: relative;
    overflow: hidden;
}

.store-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.store-btn:active::before {
    width: 300px;
    height: 300px;
}

.store-btn:hover {
    box-shadow: 0 6px 24px rgba(0, 122, 255, 0.4);
    transform: translateY(-2px);
}

/* Footer */
footer {
    padding: 3rem 5%;
    background: var(--bg-secondary);
    font-size: 0.8rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e5e5e5;
}

.footer-links a,
.socials a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 2rem;
}

.footer-links a:hover,
.socials a:hover {
    color: var(--primary-color);
}

.copyright {
    max-width: 1200px;
    margin: 2rem auto 0;
    color: var(--text-secondary);
}

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

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

/* Responsive */
@media (max-width: 768px) {
    /* Header */
    .glass-header {
        padding: 0.875rem 5%;
    }

    nav {
        gap: 1rem;
    }

    .logo-img {
        height: 28px;
    }

    .logo-text {
        font-size: 1.25rem;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 0.75rem;
    }

    .cta-button.small {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }

    /* Hero Section */
    .hero {
        padding: 5rem 5% 3rem;
        min-height: auto;
    }

    .hero-title {
        font-size: 3.25rem;
        line-height: 1.08;
        margin-bottom: 1.25rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
        margin-bottom: 2rem;
    }

    .hero-content {
        margin-bottom: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }

    .cta-button.primary,
    .cta-button.secondary {
        width: 100%;
        max-width: 280px;
        margin-left: 0;
        text-align: center;
        padding: 0.875rem 2rem;
    }

    .hero-visual {
        height: 600px;
        max-width: 320px;
    }

    .phone-mockup-container {
        width: 300px;
        height: 600px;
    }

    .iphone-frame {
        width: 300px;
        height: 600px;
        border-radius: 48px;
    }

    .iphone-frame::before {
        top: 16px;
        width: 110px;
        height: 28px;
    }

    .maps-ui-top {
        top: 54px;
        left: 16px;
        right: 16px;
    }

    .search-bar {
        padding: 11px 14px;
        font-size: 0.8rem;
    }

    .dropping-pin {
        width: 64px;
        height: 64px;
        border-width: 4px;
    }

    .pin-emoji {
        font-size: 2rem;
    }

    .pin-emoji .pin-img {
        width: 2.5rem;
        height: 2.5rem;
    }

    .pin-count {
        min-width: 22px;
        height: 22px;
        font-size: 0.75rem;
    }

    .landing-ripple {
        top: 290px;
        width: 75px;
        height: 75px;
    }

    @keyframes logoDrop {
        0% {
            transform: translateY(-150px) scale(0.5);
            opacity: 0;
            filter: drop-shadow(0 0px 0px rgba(0, 0, 0, 0));
        }
        10% {
            opacity: 1;
        }
        40% {
            transform: translateY(260px) scale(1);
            filter: drop-shadow(0 14px 28px rgba(0, 0, 0, 0.25));
        }
        50% {
            transform: translateY(238px) scale(1);
            filter: drop-shadow(0 5px 14px rgba(0, 0, 0, 0.2));
        }
        55% {
            transform: translateY(260px) scale(1);
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
        }
        60%, 100% {
            transform: translateY(260px) scale(1);
            filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.18));
            opacity: 1;
        }
    }

    /* Features Section */
    .features {
        padding: 5rem 5%;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    .section-header h2 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .section-header p {
        font-size: 1.1rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem;
    }

    .card-large,
    .card-medium,
    .card-small,
    .card-wide {
        grid-column: span 1;
        grid-row: auto;
        min-height: 300px;
        padding: 2rem;
    }

    .bento-card h3 {
        font-size: 1.75rem;
    }

    .bento-card p {
        font-size: 1rem;
    }

    .sport-icon {
        font-size: 1.3rem;
        height: 48px;
    }

    .sport-icon::after {
        font-size: 0.75rem;
    }

    /* Showcase Section */
    .showcase-content {
        flex-direction: column;
        text-align: center;
        padding: 6rem 5%;
    }

    .showcase-text h2 {
        font-size: 2.75rem;
        margin-bottom: 1rem;
    }

    .showcase-text p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .feature-list {
        padding-left: 0;
    }

    .feature-list li {
        font-size: 1rem;
        justify-content: center;
    }

    .showcase-visuals {
        margin-top: 4rem;
        height: 400px;
        width: 100%;
    }

    .ui-screen {
        width: 220px;
    }

    .map-screen {
        transform: translateX(-15px) rotate(-5deg);
    }

    .nearby-screen {
        transform: translateX(15px) translateY(30px) rotate(5deg);
    }

    .showcase-visuals:hover .map-screen {
        transform: translateX(-25px) rotate(-6deg) scale(1.03);
    }

    .showcase-visuals:hover .nearby-screen {
        transform: translateX(25px) translateY(30px) rotate(6deg) scale(1.03);
    }

    /* CTA Section */
    .cta-section {
        padding: 5rem 5%;
    }

    .cta-container h2 {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    .cta-container p {
        font-size: 1.1rem;
    }

    .app-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .store-btn {
        width: 100%;
        max-width: 280px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .footer-links,
    .socials {
        display: flex;
        gap: 1.5rem;
    }

    .footer-links a,
    .socials a {
        margin-left: 0;
    }

    .copyright {
        text-align: center;
    }
}

/* Extra Small Devices (iPhone SE, smaller phones) */
@media (max-width: 375px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .hero-visual {
        height: 500px;
    }

    .phone-mockup-container {
        width: 260px;
        height: 520px;
    }

    .iphone-frame {
        width: 260px;
        height: 520px;
    }

    .dropping-pin {
        width: 56px;
        height: 56px;
        border-width: 4px;
    }

    .pin-emoji {
        font-size: 1.7rem;
    }

    .pin-count {
        min-width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }

    .landing-ripple {
        top: 250px;
        width: 65px;
        height: 65px;
    }

    @keyframes logoDrop {
        0% {
            transform: translateY(-130px) scale(0.5);
            opacity: 0;
            filter: drop-shadow(0 0px 0px rgba(0, 0, 0, 0));
        }
        10% {
            opacity: 1;
        }
        40% {
            transform: translateY(225px) scale(1);
            filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
        }
        50% {
            transform: translateY(206px) scale(1);
            filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.2));
        }
        55% {
            transform: translateY(225px) scale(1);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
        }
        60%, 100% {
            transform: translateY(225px) scale(1);
            filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.18));
            opacity: 1;
        }
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    .bento-card h3 {
        font-size: 1.5rem;
    }

    .showcase-text h2 {
        font-size: 2.25rem;
    }

    .cta-container h2 {
        font-size: 2rem;
    }

    .ui-screen {
        width: 180px;
    }

    .showcase-visuals {
        height: 350px;
    }
}