/* ==========================================
   Zaagster Website - Dark Theme with Yellow Accents
   Inspired by yototo.co.uk
   ========================================== */

/* CSS Variables - Dark Theme */
:root {
    /* Background Colors */
    --background: #0D0D0D;
    --background-alt: #1A1A1A;
    --background-elevated: #252525;

    /* Primary/Accent Colors - Yellow */
    --primary: #FFD700;
    --primary-light: #FFE44D;
    --primary-dark: #E5C200;
    --primary-glow: rgba(255, 215, 0, 0.3);

    /* Text Colors */
    --text: #FFFFFF;
    --text-secondary: #B3B3B3;
    --text-muted: #666666;

    /* Supporting Colors */
    --success: #10B981;
    --error: #EF4444;
    --border: #333333;

    /* Shadows - Yellow Glow */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.4), 0 2px 4px -1px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.4), 0 4px 6px -2px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.5), 0 10px 10px -5px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 30px rgba(255, 215, 0, 0.2);
    --shadow-glow-lg: 0 10px 40px rgba(255, 215, 0, 0.3);

    /* Layout */
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--background);
}

.btn-primary:hover {
    background: var(--primary-light);
    color: var(--background);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-secondary:hover {
    background: var(--background-elevated);
    color: var(--text);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--background);
}

.btn-nav {
    padding: 10px 20px;
    background: var(--primary);
    color: var(--background);
    font-size: 14px;
}

.btn-nav:hover {
    background: var(--primary-light);
    color: var(--background);
    box-shadow: var(--shadow-glow);
}

.btn-black-text,
.btn-black-text:hover {
    color: #000 !important;
}

.btn-primary {
    color: #000;
}

/* ==========================================
   Navigation
   ========================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text);
}

.logo:hover {
    color: var(--text);
}

.logo:hover .logo-icon-img {
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.3);
}

.logo-icon-img {
    width: 50px;
    height: auto;
    border-radius: 10px;
    transition: var(--transition);
}

.logo-text {
    color: var(--primary);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--background);
    border-radius: 10px;
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: var(--transition);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 120px 24px 80px;
    background: var(--background);
    overflow: hidden;
}

/* Animated gradient background */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 560px;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero h1 .highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 40px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}

.stat:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.stat-icon {
    font-size: 1.5rem;
}

.stat-text {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    height: 600px;
    background: var(--background-elevated);
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 40px rgba(255, 215, 0, 0.1);
    border: 1px solid var(--border);
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--background);
    border-radius: 20px;
    z-index: 10;
}

.phone-notch::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: #333;
    border-radius: 50%;
}

.phone-notch::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #333;
    border-radius: 50%;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background-alt);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    position: relative;
}

.map-placeholder {
    height: 60%;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    position: relative;
}

.map-real {
    height: 70%;
    position: relative;
    overflow: hidden;
}

.map-real iframe {
    pointer-events: none;
}

.map-pins-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.pin {
    position: absolute;
    width: 24px;
    height: 24px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.pin::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: var(--background);
    border-radius: 50%;
}

.pin-1 { top: 20%; left: 30%; background: var(--primary); }
.pin-2 { top: 35%; left: 55%; background: var(--primary-light); animation: pulse-pin 2s infinite; }
.pin-3 { top: 55%; left: 25%; background: var(--success); }
.pin-4 { top: 45%; left: 70%; background: var(--primary); }
.pin-5 { top: 65%; left: 45%; background: var(--primary-light); animation: pulse-pin 2.5s infinite 0.5s; }

@keyframes pulse-pin {
    0%, 100% { transform: rotate(-45deg) scale(1); }
    50% { transform: rotate(-45deg) scale(1.1); }
}

.app-card {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--background-elevated);
    border-radius: 24px 24px 32px 32px;
    padding: 16px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}

.card-image {
    height: 80px;
    background: linear-gradient(135deg, var(--background-alt) 0%, var(--border) 100%);
    border-radius: 12px;
    margin-bottom: 12px;
}

.card-title {
    height: 16px;
    width: 70%;
    background: var(--text);
    border-radius: 4px;
    margin-bottom: 8px;
}

.card-subtitle {
    height: 12px;
    width: 50%;
    background: var(--border);
    border-radius: 4px;
    margin-bottom: 12px;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.thumbs {
    font-size: 16px;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
}

.hero-wave path {
    fill: var(--background-alt);
}

/* ==========================================
   Features Section
   ========================================== */
.features {
    padding: 100px 0;
    background: var(--background-alt);
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 60px;
}

.section-tag {
    display: inline-block;
    padding: 8px 20px;
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    border: 2px solid var(--primary);
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.feature-card {
    padding: 32px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
}

.feature-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: var(--background-alt);
    color: var(--primary);
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h3 {
    margin-bottom: 12px;
    color: var(--text);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ==========================================
   How It Works Section
   ========================================== */
.how-it-works {
    padding: 100px 0;
    background: var(--background);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
    padding: 40px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: var(--primary);
    color: var(--background);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
}

.step-content h3 {
    margin-bottom: 8px;
    color: var(--text);
}

.step-content p {
    color: var(--text-secondary);
}

.step-visual {
    min-width: 200px;
}

/* Mini Card Visual */
.mini-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--background);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}

.mini-card-icon {
    font-size: 2rem;
}

.mini-card-text {
    display: flex;
    flex-direction: column;
}

.mini-card-text strong {
    font-size: 14px;
    color: var(--text);
}

.mini-card-text span {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Friends Avatars */
.friends-avatars {
    display: flex;
    align-items: center;
}

.avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: var(--background);
    font-weight: 600;
    font-size: 18px;
    margin-left: -12px;
    border: 3px solid var(--background-alt);
    box-shadow: var(--shadow);
}

.avatar:first-child {
    margin-left: 0;
}

.avatar-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--background);
    font-weight: 600;
    font-size: 14px;
    margin-left: -12px;
    border: 3px solid var(--background-alt);
}

/* Mini Map */
.map-mini {
    width: 200px;
    height: 120px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: var(--radius);
    position: relative;
    border: 1px solid var(--border);
}

.map-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    border: 3px solid var(--background);
    box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px var(--primary-glow); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px var(--primary-glow); }
}

/* ==========================================
   Social Section
   ========================================== */
.social {
    padding: 100px 0;
    background: var(--background-alt);
}

.social-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.social-content h2 {
    margin-bottom: 20px;
}

.social-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 32px;
    line-height: 1.7;
}

.social-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.social-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: var(--text);
}

.social-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Activity Feed Visual */
.activity-feed {
    background: var(--background);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--border);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.activity-item:first-child {
    padding-top: 0;
}

.activity-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--background);
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
    font-size: 14px;
    color: var(--text-secondary);
}

.activity-content strong {
    font-weight: 600;
    color: var(--text);
}

.place-name {
    color: var(--primary);
    font-weight: 500;
}

.activity-time {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.activity-emoji {
    font-size: 1.5rem;
}

/* ==========================================
   Download/Access App Section
   ========================================== */
.download {
    padding: 100px 0;
    background: var(--background);
    text-align: center;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255, 215, 0, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.download-content {
    position: relative;
    z-index: 1;
}

.download-content h2 {
    color: var(--text);
    margin-bottom: 16px;
}

.download-content > p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
}

/* PWA Button - Main CTA */
.pwa-button {
    padding: 20px 48px;
    background: var(--primary);
    color: var(--background);
    font-size: 18px;
    font-weight: 700;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.pwa-button:hover {
    background: var(--primary-light);
    color: var(--background);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow-lg);
}

.pwa-button svg {
    width: 24px;
    height: 24px;
}

.pwa-info {
    margin-top: 32px;
}

.pwa-tip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--background-alt);
    border: 1px solid var(--border);
    border-radius: 30px;
    color: var(--text-secondary);
    font-size: 14px;
}

.pwa-tip svg {
    flex-shrink: 0;
    color: var(--primary);
}

/* ==========================================
   Footer
   ========================================== */
.footer {
    padding: 60px 0 30px;
    background: var(--background);
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 280px;
}

.footer-links h4 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    color: var(--text-muted);
}

.footer-links ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 14px;
}

/* ==========================================
   Animations
   ========================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 20px var(--primary-glow); }
    50% { box-shadow: 0 0 40px var(--primary-glow); }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==========================================
   Responsive Design
   ========================================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text {
        max-width: 100%;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .social-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--background);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 24px;
    }

    .step-number {
        margin: 0 auto;
    }

    .step-visual {
        display: flex;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-brand {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-brand p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 16px 60px;
    }

    .hero-stats {
        flex-direction: column;
    }

    .stat {
        width: 100%;
        justify-content: center;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }
}
