/* ============================================
   NUNO LANDING PAGE - STYLES
   Based on App Light Theme Colors
   ============================================ */

:root {
    --primary: #1b2a3b;
    --primary-light: #35adff;
    --primary-lighter: #5bc0ff;
    --success: #00ea8b;
    --warning: #e3a508;
    --error: #B22222;
    --background: #F9FAFB;
    --surface: #FFFFFF;
    --text-primary: #101828;
    --text-secondary: #667085;
    --text-tertiary: #98A2B3;
    --border: #E5E7EB;
    --divider: #F2F4F7;
    --gradient-primary: linear-gradient(135deg, #1b2a3b 0%, #2d4a63 100%);
    --gradient-accent: linear-gradient(135deg, #35adff 0%, #5bc0ff 100%);
    --gradient-hero: linear-gradient(180deg, #1b2a3b 0%, #2d4a63 50%, #3d5a73 100%);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
    --section-padding: 100px 0;
    --container-padding: 0 24px;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

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

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: var(--transition-normal);
    white-space: nowrap;
}

.btn-icon { width: 18px; height: 18px; }

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(27, 42, 59, 0.05);
}

.btn-lg { padding: 16px 32px; font-size: 16px; }
.btn-full { width: 100%; }

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition-normal);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    font-weight: 800;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition-normal);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    padding: 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
}

.mobile-menu.active { display: block; }

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.mobile-nav-links a {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 8px 0;
}

/* HERO SECTION */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 72px;
    overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-image {
    position: absolute;
    inset: 0;
    background-image: url('assets/hero-car-optimized.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.4;
    filter: saturate(1.2) brightness(0.8);
}
.hero-gradient { 
    position: absolute; 
    inset: 0; 
    background: linear-gradient(180deg, rgba(27, 42, 59, 0.9) 0%, rgba(27, 42, 59, 0.7) 50%, rgba(27, 42, 59, 0.9) 100%); 
}
.hero-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 120px;
}

.hero-text { color: white; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

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

.hero-description {
    font-size: 18px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-actions .btn-primary {
    background: white;
    color: var(--primary);
}

.hero-actions .btn-primary:hover {
    background: var(--primary-light);
    color: white;
}

.hero-actions .btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.hero-actions .btn-outline:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.1);
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat { display: flex; flex-direction: column; }
.stat-number { font-size: 28px; font-weight: 700; color: white; }
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255, 255, 255, 0.2); }

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup { position: relative; z-index: 1; }

.phone-frame {
    width: 280px;
    height: 580px;
    background: #1A1A1A;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.phone-frame::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 12px;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    padding: 50px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: 100%;
}

.app-header-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.app-title {
    font-weight: 800;
    font-size: 16px;
    color: var(--text-primary);
    letter-spacing: -0.3px;
}

/* Vehicle Filter Chips */
.app-chips {
    display: flex;
    gap: 6px;
    margin-bottom: 6px;
}

.chip {
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-secondary);
}

.chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Date Navigator */
.app-date-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    padding: 8px;
    border-radius: 14px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.date-arrow {
    width: 28px;
    height: 28px;
    background: var(--background);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.date-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

.date-icon {
    font-size: 12px;
}

/* Summary Card Premium */
.app-summary-card-premium {
    background: linear-gradient(135deg, #1b2a3b 0%, #2c3e50 100%);
    padding: 16px;
    border-radius: 20px;
    color: white;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-shadow: 0 8px 20px rgba(27, 42, 59, 0.2);
}

.premium-label {
    font-size: 8px;
    font-weight: 800;
    opacity: 0.6;
    letter-spacing: 1px;
}

.premium-value {
    font-size: 20px;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.premium-stats {
    display: flex;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.p-stat {
    display: flex;
    flex-direction: column;
}

.p-label {
    font-size: 7px;
    font-weight: 700;
    opacity: 0.5;
}

.p-val {
    font-size: 10px;
    font-weight: 800;
}

/* Pro Card */
.app-pro-card {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    padding: 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

.pro-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-diamond {
    font-size: 16px;
}

.pro-text {
    display: flex;
    flex-direction: column;
}

.pro-title {
    font-size: 10px;
    font-weight: 800;
}

.pro-subtitle {
    font-size: 8px;
    opacity: 0.9;
}

.pro-arrow {
    font-size: 14px;
    font-weight: 800;
}

/* Chart Preview */
.app-chart-preview {
    background: white;
    padding: 12px;
    border-radius: 16px;
    border: 1px solid var(--border);
    height: 60px;
}

.bar-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 100%;
    gap: 4px;
}

.bar {
    flex: 1;
    background: #E5E7EB;
    border-radius: 4px;
    transition: height 0.3s ease;
}

.bar.active {
    background: var(--primary);
}

/* Categories Preview */
.app-categories-preview {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.cat-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.cat-dot.fuel { background: #F79009; }
.cat-dot.maint { background: #00EA8B; }

.cat-name {
    flex: 1;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-primary);
}

.cat-price {
    font-size: 9px;
    font-weight: 800;
    color: var(--text-primary);
}

.phone-glow {
    position: absolute;
    inset: -20%;
    background: radial-gradient(circle, rgba(53, 173, 255, 0.3) 0%, transparent 70%);
    z-index: 0;
    animation: glow 4s ease-in-out infinite alternate;
}

@keyframes glow {
    0% { opacity: 0.5; transform: scale(0.95); }
    100% { opacity: 1; transform: scale(1.05); }
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    padding: 12px 16px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.floating-card.card-1 { top: 15%; right: -10%; }
.floating-card.card-2 { bottom: 25%; left: -5%; animation-delay: 1.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.floating-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-icon svg { width: 16px; height: 16px; }
.floating-icon.success { background: rgba(0, 234, 139, 0.15); color: var(--success); }
.floating-icon.info { background: rgba(53, 173, 255, 0.15); color: var(--primary-light); }

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

.hero-wave svg { display: block; width: 100%; height: auto; }

/* SECTIONS COMMON */
.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(53, 173, 255, 0.1);
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-tag.light { background: rgba(255, 255, 255, 0.2); color: white; }

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.section-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* FEATURES SECTION */
.features { padding: var(--section-padding); background: var(--background); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--surface);
    padding: 32px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon svg { width: 28px; height: 28px; }
.feature-icon.fuel { background: rgba(53, 173, 255, 0.1); color: var(--primary-light); }
.feature-icon.chart { background: rgba(0, 234, 139, 0.1); color: var(--success); }
.feature-icon.reminder { background: rgba(227, 165, 8, 0.1); color: var(--warning); }
.feature-icon.vehicles { background: rgba(27, 42, 59, 0.1); color: var(--primary); }
.feature-icon.expense { background: rgba(178, 34, 34, 0.1); color: var(--error); }
.feature-icon.sync { background: rgba(119, 107, 248, 0.1); color: #776bf8; }

.feature-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 12px; }
.feature-description { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* HOW IT WORKS */
.how-it-works { padding: var(--section-padding); background: var(--surface); }

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 24px;
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    color: white;
    font-size: 24px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.step-connector { flex: 0 0 80px; height: 2px; background: var(--border); margin-top: 32px; }
.step-content { max-width: 220px; }
.step-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin-bottom: 8px; }
.step-description { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* DOWNLOAD SECTION */
.download { padding: var(--section-padding); background: var(--gradient-hero); position: relative; overflow: hidden; }

.download::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.5;
}

.download-content {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-text { color: white; }
.download-title { font-size: clamp(28px, 4vw, 40px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.download-title .highlight { color: var(--primary-light); }
.download-description { font-size: 18px; color: rgba(255, 255, 255, 0.8); margin-bottom: 32px; line-height: 1.7; }
.download-buttons { display: flex; gap: 16px; flex-wrap: wrap; }

.store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    color: var(--primary);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    transition: var(--transition-normal);
}

.store-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-icon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.store-icon svg { width: 28px; height: 28px; }
.store-text { display: flex; flex-direction: column; text-align: left; }
.store-label { font-size: 11px; color: var(--text-secondary); }
.store-name { font-size: 16px; font-weight: 700; }

.download-visual { 
    display: flex; 
    flex-direction: column;
    align-items: center; 
    gap: 32px; 
}

.download-image-container {
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 4px solid rgba(255, 255, 255, 0.1);
    transform: rotate(2deg);
    transition: var(--transition-normal);
}

.download-image-container:hover {
    transform: rotate(0deg) scale(1.02);
}

.download-context-img {
    width: 100%;
    height: auto;
    display: block;
}

/* FOOTER */
.footer { background: var(--surface); padding: 64px 0 32px; border-top: 1px solid var(--border); }
.footer-content { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin-bottom: 48px; }
.footer-brand { max-width: 280px; }
.footer-brand .logo { margin-bottom: 16px; }
.footer-tagline { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.footer-column h4 { font-size: 14px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-column ul { display: flex; flex-direction: column; gap: 12px; }
.footer-column a { font-size: 14px; color: var(--text-secondary); }
.footer-column a:hover { color: var(--primary); }
.footer-bottom { padding-top: 32px; border-top: 1px solid var(--border); text-align: center; }
.footer-bottom p { font-size: 14px; color: var(--text-tertiary); }

.mobile-sticky-cta {
    display: none;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; text-align: center; gap: 40px; }
    .hero-description { margin: 0 auto 32px; }
    .hero-actions { justify-content: center; }
    .hero-stats { justify-content: center; }
    .hero-visual { order: -1; }
    .floating-card.card-1 { right: 5%; }
    .floating-card.card-2 { left: 5%; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .download-content { grid-template-columns: 1fr; text-align: center; }
    .download-buttons { justify-content: center; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-brand { max-width: 100%; text-align: center; }
    .footer-brand .logo { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: flex; }
    .hero { min-height: auto; padding: 120px 0 80px; }
    .phone-frame { width: 240px; height: 500px; }
    .floating-card { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-container { flex-direction: column; gap: 32px; }
    .step-connector { display: none; }
    .footer-links { grid-template-columns: 1fr; text-align: center; }
    .mobile-sticky-cta {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 1100;
    }
    .mobile-sticky-cta .btn {
        box-shadow: var(--shadow-xl);
        padding: 14px 20px;
    }
    body { padding-bottom: 88px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 32px; }
    .hero-description { font-size: 16px; }
    .btn-lg { padding: 14px 24px; font-size: 14px; }
    .feature-card { padding: 24px; }
    .download-buttons { flex-direction: column; }
    .store-btn { width: 100%; justify-content: center; }
}
