/* ============================================
   NaviWeather Landing Page
   Apple-style monochromatic design
   ============================================ */

:root {
    --accent: #2563EB;
    --accent-light: #3B82F6;
    --bg: #FAFAFA;
    --bg-dark: #111111;
    --text: #1a1a1a;
    --text-light: #888;
    --text-dark: #f5f5f5;
    --clay: #E8E8E8;
    --clay-shadow: #D0D0D0;
    --clay-highlight: #F5F5F5;
    --purple: #8B5CF6;
    --gold: #F59E0B;
    --orange: #F97316;
    --red: #EF4444;
    --green: #22C55E;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: background 0.3s;
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo { font-size: 20px; }
.logo-navi { font-weight: 800; color: var(--accent); }
.logo-weather { font-weight: 400; color: var(--text-light); }

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: white;
    background: var(--accent);
    padding: 8px 18px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
    transform: scale(1.04);
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

/* ============================================
   Hero
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 24px 40px;
    position: relative;
}

.hero-badge {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    background: rgba(37, 99, 235, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 24px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    color: var(--text);
}

.hero-title-accent {
    background: linear-gradient(135deg, var(--accent), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 20px);
    color: var(--text-light);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-actions { display: flex; gap: 12px; justify-content: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(37, 99, 235, 0.35); }

.btn-small { padding: 10px 24px; font-size: 14px; border-radius: 10px; }
.btn-large { padding: 16px 32px; font-size: 17px; }

/* Hero Image Sequence */
.hero-sequence {
    position: relative;
    height: 600vh; /* 6 images × 100vh each */
}

.seq-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: background-color 0.6s ease, opacity 0.4s ease;
    pointer-events: none;
    opacity: 0;
}

.seq-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.seq-frame {
    position: relative;
    width: 80%;
    max-width: 900px;
    aspect-ratio: 16 / 9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow:
        0 20px 60px rgba(0,0,0,0.1),
        0 4px 20px rgba(0,0,0,0.06);
}

.seq-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
    will-change: opacity;
}

.seq-img.active {
    opacity: 1;
}

.seq-label {
    margin-top: 28px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-light);
    text-transform: uppercase;
    transition: color 0.6s ease, opacity 0.4s ease;
    opacity: 1;
}

.seq-label.dark-mode {
    color: rgba(255,255,255,0.7);
}

.seq-dots {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.seq-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.15);
    transition: background 0.3s, transform 0.3s;
}

.seq-dot.active {
    background: var(--accent);
    transform: scale(1.3);
}

.seq-dot.dark-mode {
    background: rgba(255,255,255,0.25);
}

.seq-dot.dark-mode.active {
    background: rgba(255,255,255,0.9);
}

/* Scroll Indicator */
.scroll-indicator {
    display: flex;
    justify-content: center;
    padding-bottom: 40px;
}
.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--text-light), transparent);
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 0.8; transform: scaleY(1); }
}

/* ============================================
   Feature Sections
   ============================================ */

.feature-section {
    padding: 120px 24px;
    position: relative;
}

.feature-section.dark {
    background: var(--bg-dark);
    color: var(--text-dark);
}

.feature-section.light-blue {
    background: linear-gradient(180deg, #F0F4FF 0%, var(--bg) 100%);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.feature-label {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
}
.feature-label.light { color: var(--accent-light); }

.feature-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.feature-title.light { color: white; }

.feature-desc {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-light);
    max-width: 520px;
}
.feature-desc.center { text-align: center; margin: 0 auto; }

.feature-block {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-visual {
    display: flex;
    justify-content: center;
}

/* Clay Cards */
.clay-card {
    background: linear-gradient(145deg, #f2f2f2, #e0e0e0);
    border-radius: 24px;
    padding: 32px;
    box-shadow:
        8px 8px 24px rgba(0,0,0,0.06),
        -4px -4px 16px rgba(255,255,255,0.8);
    width: 100%;
    max-width: 420px;
}

/* Trip Bar Widget — matches app's CombinedTripBar */
.trip-bar-widget { padding: 4px 0; }

.trip-bar-header {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #999;
    margin-bottom: 10px;
}

.trip-snowflake-row {
    display: flex;
    height: 16px;
    gap: 1px;
    margin-bottom: 2px;
}
.trip-sf-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.trip-sf-icon {
    font-size: 11px;
    color: var(--purple);
    font-weight: 700;
}

.trip-bar {
    display: flex;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
    gap: 1px;
    margin-bottom: 6px;
}
.trip-seg {
    flex: 1;
    transition: opacity 0.4s;
}
.trip-seg-none     { background: #22C55E; opacity: 0.5; }
.trip-seg-light    { background: #93C5FD; }
.trip-seg-moderate { background: #FDBA74; }
.trip-seg-heavy    { background: #FCA5A5; }
.trip-seg-snow     { background: #e0e0e0; }

.trip-km-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
}
.trip-km-row span {
    font-size: 9px;
    font-weight: 500;
    color: #aaa;
}

.trip-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.trip-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #888;
    font-weight: 500;
}
.trip-sw {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
.trip-sw-light    { background: #93C5FD; }
.trip-sw-moderate { background: #FDBA74; }
.trip-sw-heavy    { background: #FCA5A5; }
.trip-sw-snow     { background: #e5e5e5; border: 1px solid #ccc; }
.trip-sw-freeze   { font-size: 12px; color: var(--purple); font-weight: 700; }

/* Departure Chart — accurate app representation */
.dep-chart { padding: 4px 0; }

.dep-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.dep-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.8px;
    color: #555;
}
.dep-toggle {
    display: flex;
    background: #eee;
    border-radius: 8px;
    overflow: hidden;
}
.dep-toggle-btn {
    font-size: 12px;
    font-weight: 600;
    padding: 5px 14px;
    color: #888;
    cursor: pointer;
    transition: all 0.2s;
}
.dep-toggle-btn.active {
    background: var(--accent);
    color: white;
    border-radius: 8px;
}

.dep-chart-area {
    position: relative;
    height: 120px;
    margin-bottom: 4px;
    border-radius: 8px;
    overflow: hidden;
}

/* Background zones */
.dep-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    display: flex;
}
.dep-bg-zone {
    position: absolute;
    top: 0;
    height: 100%;
}
.dep-bg-zone.night { background: rgba(0,0,0,0.04); }
.dep-bg-zone.daylight { background: rgba(251,191,36,0.08); }
.dep-bg-zone.glare { background: rgba(251,191,36,0.12); }

/* Bars */
.dep-bars {
    position: relative;
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
    padding: 0 2px;
    z-index: 2;
}
.dep-bar {
    flex: 1;
    border-radius: 2px 2px 0 0;
    transition: height 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    min-width: 3px;
}

/* Current time indicator */
.dep-current {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 3;
    pointer-events: none;
}
.dep-current-line {
    width: 2px;
    height: 100%;
    background: var(--accent);
    opacity: 0.5;
    border-radius: 1px;
}

/* Sunglasses row */
.dep-glare-row {
    display: flex;
    gap: 2px;
    padding: 0 2px;
    height: 14px;
    margin-bottom: 2px;
}
.dep-glare-slot {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
}

/* Precipitation indicator row (green dashes) */
.dep-precip-row {
    display: flex;
    gap: 2px;
    padding: 0 2px;
    height: 4px;
    margin-bottom: 8px;
}
.dep-precip-dot {
    flex: 1;
    border-radius: 2px;
}

/* Time labels */
.dep-time-labels {
    display: flex;
    justify-content: space-between;
    padding: 0 2px;
    margin-bottom: 14px;
}
.dep-time-labels span {
    font-size: 9px;
    font-weight: 500;
    color: #999;
}

/* Legend */
.dep-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
}
.dep-legend-item {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #888;
    font-weight: 500;
}
.dep-swatch {
    width: 10px;
    height: 10px;
    border-radius: 2px;
    flex-shrink: 0;
}
.sunglasses-icon { font-size: 11px; width: auto; height: auto; }
.sw-daylight { background: rgba(251,191,36,0.35); }
.sw-night { background: rgba(0,0,0,0.08); }
.sw-none { background: var(--green); }
.sw-light { background: #93C5FD; }
.sw-moderate { background: #FDBA74; }
.sw-heavy { background: #FCA5A5; }
.sw-snow { background: #e5e5e5; border: 1px solid #ccc;
}

/* ============================================
   Gauges Grid
   ============================================ */

.gauges-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.gauge-card {
    text-align: center;
    padding: 24px 12px;
    border-radius: 20px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    transition: transform 0.3s, background 0.3s;
}
.gauge-card:hover {
    transform: translateY(-4px);
    background: rgba(255,255,255,0.08);
}

.gauge-circle {
    width: 80px;
    height: 80px;
    margin: 0 auto 16px;
    position: relative;
}
.gauge-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gauge-arc {
    transition: stroke-dashoffset 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gauge-card h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: white;
}
.gauge-card p {
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    line-height: 1.4;
}

/* ============================================
   Image Showcases (Sun Glare & Freeze)
   ============================================ */

.image-showcase {
    width: 100%;
    max-width: 460px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow:
        8px 8px 30px rgba(0,0,0,0.08),
        -4px -4px 16px rgba(255,255,255,0.8);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-showcase:hover {
    transform: scale(1.02) translateY(-4px);
}

.showcase-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 6s cubic-bezier(0.16, 1, 0.3, 1);
}
.image-showcase:hover .showcase-img {
    transform: scale(1.05);
}

/* Sun Glare — warm glow animation */
.glare-showcase {
    background: #f5f0e8;
}
.sun-glow-anim {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(251,191,36,0.25) 0%, rgba(251,191,36,0.08) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: sunGlowPulse 3s ease-in-out infinite;
}
@keyframes sunGlowPulse {
    0%, 100% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.3); opacity: 1; }
}

/* Freeze — overlay badge + snowflakes */
.freeze-showcase {
    background: #eef2f7;
}
.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}
.freeze-overlay {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 16px;
}
.freeze-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    animation: badgeFloat 3s ease-in-out infinite;
}
@keyframes badgeFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.freeze-temp-val {
    font-size: 28px;
    font-weight: 800;
    color: var(--purple);
    line-height: 1;
}
.freeze-temp-lbl {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

/* Snowflakes falling over freeze image */
.showcase-snowflakes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}
.sf {
    position: absolute;
    color: var(--purple);
    opacity: 0;
    animation: snowDrift 5s linear infinite;
}
.sf-1 { top: -8%; left: 15%; font-size: 16px; animation-delay: 0s; }
.sf-2 { top: -8%; left: 45%; font-size: 22px; animation-delay: 1.2s; }
.sf-3 { top: -8%; left: 70%; font-size: 14px; animation-delay: 2.5s; }
.sf-4 { top: -8%; left: 88%; font-size: 18px; animation-delay: 3.8s; }

@keyframes snowDrift {
    0% { transform: translateY(0) translateX(0) rotate(0deg); opacity: 0; }
    10% { opacity: 0.35; }
    80% { opacity: 0.35; }
    100% { transform: translateY(320px) translateX(-20px) rotate(360deg); opacity: 0; }
}


/* ============================================
   Timeline
   ============================================ */

.timeline-visual {
    max-width: 500px;
    margin: 0 auto;
}

.timeline-card {
    padding: 24px;
}

.timeline-items {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.timeline-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
}
.tl-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 16px;
}
.tl-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.tl-dot.green { background: var(--green); }
.tl-dot.blue { background: var(--accent); }
.tl-dot.orange { background: var(--orange); }
.tl-line {
    width: 2px;
    flex: 1;
    background: #ddd;
    margin-top: 4px;
}
.tl-content { flex: 1; }
.tl-place { font-size: 15px; font-weight: 700; }
.tl-time { font-size: 12px; color: #999; font-weight: 500; margin-top: 2px; }
.tl-weather { font-size: 13px; color: #777; margin-top: 4px; }

/* ============================================
   Pricing
   ============================================ */

.pricing-grid {
    max-width: 700px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.pricing-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 20px;
    padding: 32px 24px;
    position: relative;
    transition: transform 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }

.pricing-card.featured {
    background: rgba(37, 99, 235, 0.08);
    border: 2px solid rgba(37, 99, 235, 0.3);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 12px;
    white-space: nowrap;
}

.pricing-tier {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.pricing-price {
    font-size: 36px;
    font-weight: 800;
    color: white;
}
.per-month {
    font-size: 16px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
}
.pricing-period {
    font-size: 13px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 24px;
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}
.pricing-features li {
    font-size: 14px;
    color: rgba(255,255,255,0.65);
    padding: 6px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.check { font-weight: 700; color: rgba(255,255,255,0.3); }
.check.accent { color: var(--accent-light); }

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    text-align: center;
    padding: 160px 24px;
}
.cta-content { max-width: 600px; margin: 0 auto; }
.cta-content .feature-title { margin-bottom: 12px; }
.cta-content .feature-desc { margin-bottom: 32px; }

/* ============================================
   Footer
   ============================================ */

.footer {
    background: #f0f0f0;
    padding: 40px 24px;
    border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }
.footer-copy {
    font-size: 12px;
    color: #bbb;
    width: 100%;
    text-align: center;
    margin-top: 16px;
}

/* ============================================
   Animations
   ============================================ */

[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate="fade-right"] { transform: translateX(-40px); }
[data-animate="fade-left"] { transform: translateX(40px); }
[data-animate="fade-up"] { transform: translateY(40px); }

[data-animate].visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .feature-block {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .feature-block.reverse { direction: ltr; }

    .gauges-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }
}

@media (max-width: 600px) {
    .nav-inner { padding: 0 20px; }

    .hero { padding: 100px 20px 40px; }

    .feature-section { padding: 80px 20px; }

    .gauges-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gauge-card:last-child {
        grid-column: span 2;
        max-width: 200px;
        margin: 0 auto;
    }

    .seq-frame {
        width: 90%;
        border-radius: 16px;
    }
    .seq-label { font-size: 13px; }

    .footer-inner { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
}
