/* ============================================
   LightTrailGPSPro Website - Mountain Theme
   HYBRID: Marketing Style + All Features
   ============================================ */

:root {
    /* Primary Colors - Morning Sky */
    --color-mountain-deep: #4A7BA7;
    --color-mountain-blue: #6B9DC7;
    --color-sky-dawn: #87CEEB;
    --color-sky-light: #E8F4FC;
    
    /* Accent Colors */
    --color-sunrise-orange: #E67E22;
    --color-sunrise-gold: #F4A942;
    --color-sunset-pink: #F5B7B1;
    
    /* Forest/Nature */
    --color-forest-deep: #1D4D2C;
    --color-forest-green: #2D6A3F;
    --color-trail-brown: #8B6914;
    
    /* Neutrals */
    --color-snow: #FAFBFC;
    --color-mist: #F0F3F7;
    --color-stone: #E2E8F0;
    --color-slate: #64748B;
    --color-rock: #334155;
    --color-night: #0F172A;
    
    /* Text */
    --color-text: #1E293B;
    --color-text-muted: #64748B;
    --color-text-light: #94A3B8;
    
    /* Gradients - Morning Sky (light blue to white) */
    --gradient-sky: linear-gradient(180deg, #5B9BD5 0%, #87CEEB 35%, #B8E0F7 65%, #E8F4FC 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 40px rgba(230, 126, 34, 0.3);
    
    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: var(--color-snow);
    line-height: 1.6;
}
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-rock);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition-base);
}
.nav.scrolled {
    background: rgba(91, 157, 213, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}
.nav.scrolled .nav-logo { color: white; text-shadow: none; }
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-container.nav-centered {
    justify-content: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1A3A5C;
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.nav-logo.nav-logo-large {
    font-size: 1.75rem;
    gap: var(--space-md);
}
.nav-logo.nav-logo-large .logo-icon {
    font-size: 2rem;
}
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: var(--space-xl); }
.nav-links a { color: #1A3A5C; font-weight: 500; font-size: 0.95rem; text-shadow: 0 1px 2px rgba(255,255,255,0.5); }
.nav-links a:hover { color: var(--color-sunrise-orange); }
.nav-cta {
    background: var(--color-sunrise-orange);
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-full);
    font-weight: 600;
}
.nav-cta:hover { background: var(--color-sunrise-gold); color: white !important; }

/* ============================================
   Hero Section (Compact)
   ============================================ */
.hero {
    position: relative;
    padding: 80px 0 60px;
    background: var(--gradient-sky);
    overflow: hidden;
}
.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}
.mountain-layer {
    position: absolute;
    bottom: 0; left: 0; right: 0;
}
.mountain-back {
    height: 120px;
    background: linear-gradient(180deg, #A8C8E8 0%, #C5DCF0 100%);
    clip-path: polygon(0% 100%, 0% 60%, 10% 70%, 20% 40%, 30% 55%, 40% 25%, 50% 45%, 60% 20%, 70% 50%, 80% 30%, 90% 55%, 100% 35%, 100% 100%);
    opacity: 0.6;
}
.mountain-mid {
    height: 80px;
    background: linear-gradient(180deg, #7BA3C9 0%, #9FC5E8 100%);
    clip-path: polygon(0% 100%, 0% 70%, 15% 50%, 25% 65%, 35% 35%, 45% 55%, 55% 30%, 65% 50%, 75% 25%, 85% 45%, 100% 40%, 100% 100%);
    opacity: 0.8;
}
.mountain-front {
    height: 50px;
    background: linear-gradient(180deg, #5B8DB8 0%, #7BA3C9 100%);
    clip-path: polygon(0% 100%, 0% 60%, 20% 40%, 40% 60%, 60% 30%, 80% 55%, 100% 35%, 100% 100%);
}
.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}
.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    color: #1A3A5C;
    margin-bottom: var(--space-md);
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}
.hero-highlight {
    display: block;
    background: linear-gradient(135deg, var(--color-sunrise-orange), var(--color-sunrise-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.1rem;
    color: #2C5282;
    margin-bottom: var(--space-xl);
}
.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-full);
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    transition: all var(--transition-base);
}
.btn-primary {
    background: var(--color-sunrise-orange);
    color: white;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.btn-primary:hover { background: var(--color-sunrise-gold); transform: translateY(-2px); }
.btn-secondary {
    background: rgba(255,255,255,0.7);
    color: #1A3A5C;
    border: 2px solid rgba(26, 58, 92, 0.3);
}
.btn-secondary:hover { background: rgba(255,255,255,0.9); }

/* ============================================
   Features Grid (ALL FEATURES)
   ============================================ */
.features {
    padding: var(--space-3xl) 0;
    background: var(--color-snow);
}
.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}
.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
    background: linear-gradient(135deg, var(--color-mountain-deep), var(--color-sunrise-orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

/* Feature Category Headers */
.feature-category {
    margin-bottom: var(--space-2xl);
}
.category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-stone);
}
.category-icon { 
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.category-icon img {
    width: 28px;
    height: 28px;
    filter: invert(25%) sepia(60%) saturate(600%) hue-rotate(180deg) brightness(0.9);
}
.category-title {
    font-size: 1.25rem;
    color: var(--color-mountain-deep);
    margin: 0;
}
.category-count {
    background: var(--color-sunrise-orange);
    color: white;
    padding: 2px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: var(--space-md);
}
.feature-card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: 1px solid var(--color-stone);
}
.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-sunrise-orange);
}
.feature-icon { 
    font-size: 1.75rem; 
    margin-bottom: var(--space-sm);
    height: 32px;
    display: flex;
    align-items: center;
}
.feature-icon img {
    width: 32px;
    height: 32px;
    filter: invert(25%) sepia(60%) saturate(600%) hue-rotate(180deg) brightness(0.9);
}
.feature-title {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
    color: var(--color-mountain-deep);
}
.feature-desc {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ============================================
   Detailed Sections
   ============================================ */
.details-section {
    padding: var(--space-3xl) 0;
    scroll-margin-top: 80px;
}
.details-section:nth-child(even) { background: var(--color-mist); }
.details-section:nth-child(odd) { background: white; }

/* Section with forest/mountain background */
.bg-forest {
    background: linear-gradient(180deg, var(--color-forest-deep) 0%, var(--color-forest-green) 100%) !important;
    color: white;
}
.bg-forest .section-title,
.bg-forest .detail-title { color: white; -webkit-text-fill-color: white; }
.bg-forest .detail-desc { color: rgba(255,255,255,0.85); }
.bg-forest .detail-list li::before { color: var(--color-sunrise-gold); }
.bg-forest .data-table th { background: rgba(255,255,255,0.1); color: white; }
.bg-forest .data-table td { border-color: rgba(255,255,255,0.1); }

.bg-mountain {
    background: linear-gradient(180deg, var(--color-mountain-deep) 0%, var(--color-mountain-blue) 100%) !important;
    color: white;
}
.bg-mountain .section-title,
.bg-mountain .detail-title { color: white; -webkit-text-fill-color: white; }
.bg-mountain .detail-desc { color: rgba(255,255,255,0.85); }
.bg-mountain .detail-list li::before { color: var(--color-sunrise-gold); }

/* Detail Block */
.detail-block {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-2xl);
    align-items: start;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-2xl);
    border-bottom: 1px solid var(--color-stone);
}
.detail-block:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.detail-block.reverse { grid-template-columns: 300px 1fr; }
.detail-block.reverse .detail-screenshot { order: -1; }

.detail-header {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.detail-icon { 
    font-size: 1.5rem;
    display: flex;
    align-items: center;
}
.detail-icon img {
    width: 28px;
    height: 28px;
    filter: invert(25%) sepia(60%) saturate(600%) hue-rotate(180deg) brightness(0.9);
}
.detail-title {
    font-size: 1.35rem;
    color: var(--color-mountain-deep);
    margin: 0;
}
.detail-desc {
    color: var(--color-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    padding: var(--space-sm) var(--space-md);
    text-align: left;
    border-bottom: 1px solid var(--color-stone);
}
.data-table th {
    background: var(--color-mist);
    font-weight: 600;
    color: var(--color-mountain-deep);
}

/* Detail Lists */
.detail-subsection { margin-bottom: var(--space-lg); }
.detail-subsection h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-sunrise-orange);
    margin-bottom: var(--space-sm);
}
.detail-list { list-style: none; }
.detail-list li {
    position: relative;
    padding-left: var(--space-lg);
    margin-bottom: var(--space-xs);
    font-size: 0.95rem;
}
.detail-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--color-forest-green);
    font-weight: bold;
}

/* Steps */
.detail-steps {
    background: rgba(0,0,0,0.03);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}
.bg-forest .detail-steps,
.bg-mountain .detail-steps { background: rgba(255,255,255,0.1); }
.detail-steps h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-sunrise-orange);
    margin-bottom: var(--space-md);
}
.detail-steps ol { list-style: none; counter-reset: steps; }
.detail-steps ol li {
    counter-increment: steps;
    position: relative;
    padding-left: var(--space-xl);
    margin-bottom: var(--space-sm);
    font-size: 0.95rem;
}
.detail-steps ol li::before {
    content: counter(steps);
    position: absolute;
    left: 0;
    width: 20px; height: 20px;
    background: var(--color-sunrise-orange);
    color: white;
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screenshot Placeholder */
.detail-screenshot {
    background: linear-gradient(135deg, var(--color-mist) 0%, var(--color-stone) 100%);
    border: 2px dashed var(--color-slate);
    border-radius: var(--radius-xl);
    aspect-ratio: 9/16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    position: sticky;
    top: 100px;
}
.bg-forest .detail-screenshot,
.bg-mountain .detail-screenshot {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.3);
}
.screenshot-icon { font-size: 2.5rem; opacity: 0.4; }
.screenshot-label {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}
.bg-forest .screenshot-label,
.bg-mountain .screenshot-label { color: rgba(255,255,255,0.6); }

/* Wide screenshots for reports */
.detail-screenshot.wide {
    aspect-ratio: 16/10;
    position: static;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    padding: var(--space-2xl) 0;
    background: linear-gradient(135deg, var(--color-mountain-deep), var(--color-mountain-blue));
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
}
.stat-item { text-align: center; }
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--color-sunrise-orange);
    line-height: 1;
    margin-bottom: var(--space-xs);
}
.stat-label { color: rgba(255,255,255,0.8); font-size: 0.9rem; }

/* ============================================
   Download Section
   ============================================ */
.download {
    padding: var(--space-3xl) 0;
    background: var(--color-night);
    text-align: center;
}
.download-title { font-size: 2rem; color: white; margin-bottom: var(--space-sm); }
.download-subtitle { font-size: 1.1rem; color: rgba(255,255,255,0.7); margin-bottom: var(--space-xl); }
.download-buttons { display: flex; gap: var(--space-lg); justify-content: center; flex-wrap: wrap; }
.store-btn {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-xl);
    background: white;
    color: var(--color-night);
    border-radius: var(--radius-lg);
    transition: all var(--transition-base);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }
.store-icon { font-size: 1.5rem; }
.store-text { text-align: left; }
.store-label { display: block; font-size: 0.65rem; opacity: 0.7; text-transform: uppercase; }
.store-name { display: block; font-family: 'Outfit', sans-serif; font-size: 1.1rem; font-weight: 600; }

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: var(--space-xl) 0;
    background: var(--color-night);
    color: rgba(255,255,255,0.6);
    border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: white;
}
.footer-links { display: flex; gap: var(--space-xl); }
.footer-links a:hover { color: var(--color-sunrise-orange); }
.footer-copy { font-size: 0.85rem; text-align: center; }
.footer-copy a { text-decoration: underline; }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
    .detail-block { grid-template-columns: 1fr; }
    .detail-block.reverse { grid-template-columns: 1fr; }
    .detail-screenshot { 
        max-width: 250px; 
        margin: 0 auto;
        position: static;
    }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .hero-title { font-size: 1.75rem; }
}

/* ============================================
   Icon Reference Section
   ============================================ */
.icon-reference {
    background: linear-gradient(135deg, var(--color-mist) 0%, var(--color-stone) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-2xl);
    text-align: center;
}
.icon-ref-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-mountain-deep);
    margin-bottom: var(--space-lg);
}
.icon-ref-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}
.icon-ref-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    min-width: 70px;
}
.icon-ref-placeholder {
    width: 48px;
    height: 48px;
    background: white;
    border: 2px dashed var(--color-slate);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-base);
}
.icon-ref-placeholder:hover {
    border-color: var(--color-sunrise-orange);
    transform: scale(1.1);
}
.icon-ref-item span {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.icon-ref-note {
    margin-top: var(--space-md);
    font-size: 0.75rem;
    color: var(--color-text-light);
    font-style: italic;
}

/* ============================================
   Highlighted Feature Cards
   ============================================ */
.feature-category.featured {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.1) 0%, rgba(244, 169, 66, 0.1) 100%);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    border: 2px solid var(--color-sunrise-orange);
}
.feature-card.highlight {
    border-color: var(--color-sunrise-orange);
    background: linear-gradient(135deg, white 0%, rgba(230, 126, 34, 0.05) 100%);
}
.feature-card.highlight:hover {
    border-color: var(--color-sunrise-gold);
    box-shadow: var(--shadow-xl), 0 0 20px rgba(230, 126, 34, 0.2);
}

/* ============================================
   Dual Screenshots Layout
   ============================================ */
.detail-screenshots-dual {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.detail-screenshot.small {
    aspect-ratio: 9/12;
    position: static;
    min-height: 180px;
}
.detail-block.reverse .detail-screenshots-dual { order: -1; }

@media (max-width: 900px) {
    .detail-screenshots-dual {
        flex-direction: row;
        justify-content: center;
    }
    .detail-screenshot.small {
        max-width: 150px;
        min-height: 200px;
    }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: fadeInUp 0.5s ease forwards; }
