/**
 * Sath Leja - Neumorphic Design System
 * Soft shadows, inset effects, warm clay aesthetic
 */

/* =============================================================================
   CSS VARIABLES
   ============================================================================= */

:root {
    /* Neumorphic Colors - Light Clay */
    --bg-base: #e8e4df;
    --bg-surface: #e8e4df;
    --bg-elevated: #f0ece7;

    /* Shadows */
    --shadow-light: #ffffff;
    --shadow-dark: rgba(166, 161, 154, 0.5);

    /* Neumorphic shadows */
    --neu-shadow: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --neu-shadow-sm: 4px 4px 8px var(--shadow-dark), -4px -4px 8px var(--shadow-light);
    --neu-shadow-lg: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    --neu-inset: inset 4px 4px 8px var(--shadow-dark), inset -4px -4px 8px var(--shadow-light);
    --neu-inset-sm: inset 2px 2px 4px var(--shadow-dark), inset -2px -2px 4px var(--shadow-light);

    /* Text Colors */
    --text-primary: #2d2a26;
    --text-secondary: #6b6560;
    --text-muted: #9a948d;

    /* Accent */
    --accent: #5a5248;
    --accent-light: #7a7268;

    /* Typography */
    --font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-accent: 'Caveat', cursive;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;

    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* =============================================================================
   RESET & BASE
   ============================================================================= */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-weight: 400;
    color: var(--text-primary);
    background: var(--bg-base);
    min-height: 100vh;
    overflow: hidden;
    line-height: 1.6;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input,
select {
    font-family: inherit;
    border: none;
    outline: none;
}

/* =============================================================================
   APP CONTAINER
   ============================================================================= */

.app {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
}

/* =============================================================================
   PARALLAX BACKGROUND
   ============================================================================= */

.parallax-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    z-index: 0;
    pointer-events: none;
}

.parallax-image {
    width: 90%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.1s ease-out;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, var(--bg-base) 70%);
}

/* =============================================================================
   NAVIGATION: TABS
   ============================================================================= */

.nav-tabs {
    position: fixed;
    top: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
}

.tabs-container {
    display: flex;
    gap: var(--space-xs);
    padding: var(--space-sm);
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow);
}

.tab-item {
    padding: var(--space-sm) var(--space-lg);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-full);
    transition: var(--transition-normal);
}

.tab-item:hover {
    color: var(--text-primary);
}

.tab-item.active {
    box-shadow: var(--neu-inset-sm);
    color: var(--text-primary);
}

/* =============================================================================
   SECTIONS CONTAINER
   ============================================================================= */

.sections-container {
    position: relative;
    width: 100%;
    height: 100vh;
    z-index: 1;
}

.section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl);
    opacity: 0;
    visibility: hidden;
    transform: translateX(100px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}

.section.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.section.exit-left {
    transform: translateX(-100px);
}

.section-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
}

/* =============================================================================
   HERO SECTION
   ============================================================================= */

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xl);
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    padding: var(--space-md);
}

.hero-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.hero-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow);
    padding: var(--space-sm);
    background: var(--bg-surface);
}

.hero-name {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-family: var(--font-accent);
    font-size: 1.75rem;
    color: var(--text-secondary);
}

/* Taglines Carousel */
.taglines-carousel {
    width: 100%;
    max-width: 500px;
    height: 120px;
    overflow: hidden;
    position: relative;
}

.tagline-wrapper {
    position: relative;
    height: 100%;
}

.tagline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.tagline.active {
    opacity: 1;
    transform: translateY(0);
}

.quote-mark {
    font-family: var(--font-accent);
    font-size: 3rem;
    color: var(--accent-light);
    line-height: 1;
}

.quote-text {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-primary);
    font-style: italic;
}

.quote-author {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Hero CTA */
.hero-cta {
    display: flex;
    gap: var(--space-md);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-lg) var(--space-2xl);
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--shadow-dark);
}

/* =============================================================================
   NEUMORPHIC BUTTONS
   ============================================================================= */

.btn-neumorphic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--bg-surface);
    box-shadow: var(--neu-shadow);
    transition: var(--transition-normal);
}

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

.btn-neumorphic:active {
    transform: translateY(0);
    box-shadow: var(--neu-inset);
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 8px 8px 16px rgba(90, 82, 72, 0.3), -8px -8px 16px var(--shadow-light);
}

.btn-primary:hover {
    background: var(--accent-light);
}

.btn-secondary {
    color: var(--text-primary);
}

.btn-ghost {
    box-shadow: none;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    box-shadow: var(--neu-shadow-sm);
}

.btn-full {
    width: 100%;
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-arrow {
    transition: transform var(--transition-fast);
}

.btn-neumorphic:hover .btn-arrow {
    transform: translateX(4px);
}

/* =============================================================================
   FORM ELEMENTS
   ============================================================================= */

.neumorphic-form {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.form-card {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-shadow);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    text-align: left;
}

.input-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--neu-inset);
}

.input-icon {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.input-neumorphic {
    flex: 1;
    font-size: 1rem;
    color: var(--text-primary);
    background: transparent;
}

.input-neumorphic::placeholder {
    color: var(--text-muted);
}

.input-large {
    padding: var(--space-lg);
    font-size: 1.25rem;
    text-align: center;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-inset);
    width: 100%;
}

.input-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 40px;
}

.connector-line {
    position: absolute;
    left: 50%;
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(to bottom, var(--text-muted) 0, var(--text-muted) 4px, transparent 4px, transparent 8px);
}

.swap-btn {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface);
    border-radius: 50%;
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.swap-btn:hover {
    box-shadow: var(--neu-shadow);
    color: var(--text-primary);
}

.input-row {
    display: flex;
    gap: var(--space-md);
}

.input-small {
    flex: 0 0 100px;
}

/* Popular Routes */
.popular-routes {
    margin-top: var(--space-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.popular-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.route-chips {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.route-chip {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-sm);
    transition: var(--transition-normal);
}

.route-chip:hover {
    box-shadow: var(--neu-inset-sm);
    color: var(--text-primary);
}

/* =============================================================================
   SECTION HEADERS
   ============================================================================= */

.section-header {
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto;
}

/* =============================================================================
   PUBLISH WIZARD
   ============================================================================= */

.publish-wizard {
    max-width: 500px;
    margin: 0 auto;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: var(--space-2xl);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-dot {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    background: var(--bg-surface);
    border-radius: 50%;
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-muted);
    transition: var(--transition-normal);
}

.wizard-step.active .step-dot {
    box-shadow: var(--neu-inset-sm);
    background: var(--accent);
    color: #fff;
}

.wizard-step.completed .step-dot {
    background: var(--accent);
    color: #fff;
}

.step-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.wizard-connector {
    width: 60px;
    height: 2px;
    background: var(--shadow-dark);
    margin: 0 var(--space-sm);
    margin-bottom: var(--space-lg);
}

.wizard-connector.active {
    background: var(--accent);
}

.wizard-content {
    position: relative;
    min-height: 300px;
}

.wizard-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.wizard-slide.active {
    position: relative;
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
}

.wizard-question {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.wizard-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}

/* Price Selector */
.price-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
}

.price-adjust {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-surface);
    border-radius: 50%;
    box-shadow: var(--neu-shadow-sm);
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.price-adjust:hover {
    box-shadow: var(--neu-shadow);
    color: var(--text-primary);
}

.price-adjust:active {
    box-shadow: var(--neu-inset-sm);
}

.price-display {
    display: flex;
    align-items: baseline;
    padding: var(--space-lg) var(--space-2xl);
    background: var(--bg-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--neu-inset);
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-right: var(--space-xs);
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-hint {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* =============================================================================
   STORY / ABOUT SECTION
   ============================================================================= */

.story-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.story-card {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow);
    text-align: center;
    transition: var(--transition-normal);
}

.story-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--neu-shadow-lg);
}

.story-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-md);
}

.story-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.story-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.values-grid {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.value-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-sm);
}

.value-icon {
    font-size: 1.25rem;
}

.value-text {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* =============================================================================
   TRUST SECTION
   ============================================================================= */

.trust-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.trust-card {
    padding: var(--space-xl);
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--neu-shadow);
    text-align: left;
    transition: var(--transition-normal);
}

.trust-card:hover {
    transform: translateY(-4px);
}

.trust-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    background: var(--bg-surface);
    border-radius: 50%;
    box-shadow: var(--neu-inset-sm);
    margin-bottom: var(--space-md);
}

.trust-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.trust-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trust-cta {
    margin-top: var(--space-2xl);
}

.trust-promise {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* =============================================================================
   FOOTER
   ============================================================================= */

.footer-badge {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    z-index: 100;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    font-size: 0.75rem;
    color: var(--text-muted);
    background: var(--bg-surface);
    border-radius: var(--radius-full);
    box-shadow: var(--neu-shadow-sm);
    transition: var(--transition-normal);
}

.footer-divider {
    opacity: 0.5;
}

/* =============================================================================
   RESPONSIVE
   ============================================================================= */

@media (max-width: 900px) {
    .section {
        padding: var(--space-xl);
        padding-top: 100px;
        /* Space for wrapped tabs */
    }

    .story-content {
        grid-template-columns: 1fr;
    }

    .trust-features {
        grid-template-columns: 1fr;
    }

    .hero-stats {
        flex-direction: column;
        gap: var(--space-md);
    }

    .stat-divider {
        width: 60px;
        height: 1px;
    }

    /* Scrollable tabs on tablet */
    .nav-tabs {
        left: 0;
        right: 0;
        transform: none;
        padding: 0 var(--space-md);
    }

    .tabs-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        max-width: 100%;
        justify-content: flex-start;
        gap: var(--space-sm);
    }

    .tabs-container::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.8125rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Taglines smaller */
    .taglines-carousel {
        height: 100px;
    }

    .quote-text {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .section {
        padding: var(--space-md);
        padding-top: 80px;
    }

    .hero-name {
        font-size: 2rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
    }

    .btn-neumorphic {
        width: 100%;
        min-height: 48px;
        /* Touch target */
    }

    .section-title {
        font-size: 1.5rem;
    }

    .section-subtitle {
        font-size: 1rem;
    }

    .input-row {
        flex-direction: column;
    }

    .input-small {
        flex: 1;
    }

    .values-grid {
        flex-direction: column;
        align-items: center;
    }

    .nav-tabs {
        top: var(--space-sm);
        padding: 0 var(--space-sm);
    }

    .tabs-container {
        padding: var(--space-xs);
    }

    .tab-item {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.75rem;
    }

    /* Hero adjustments */
    .hero-logo {
        width: 60px;
        height: 60px;
    }

    .hero-stats {
        padding: var(--space-md);
        gap: var(--space-sm);
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 0.625rem;
    }

    /* Taglines */
    .taglines-carousel {
        height: 90px;
    }

    .quote-mark {
        font-size: 2rem;
    }

    .quote-text {
        font-size: 1rem;
    }

    /* Form adjustments */
    .form-card {
        padding: var(--space-md);
    }

    .input-wrapper {
        padding: var(--space-sm) var(--space-md);
    }

    /* Wizard */
    .wizard-question {
        font-size: 1.25rem;
    }

    .price-value {
        font-size: 2rem;
    }

    .price-display {
        padding: var(--space-md) var(--space-lg);
    }

    /* Story cards */
    .story-card {
        padding: var(--space-md);
    }

    .story-icon {
        font-size: 2rem;
    }

    /* Trust cards */
    .trust-card {
        padding: var(--space-md);
    }

    .trust-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    /* Hide footer on mobile to prevent overlap */
    .footer-badge {
        display: none;
    }

    /* Hero scrollable content */
    .hero-content {
        max-height: calc(100vh - 80px);
        gap: var(--space-md);
        padding-bottom: var(--space-xl);
    }

    .hero-brand {
        gap: var(--space-sm);
    }

    /* Compact stats on mobile */
    .hero-stats {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        padding: var(--space-sm);
    }

    .stat-item {
        flex: 0 0 auto;
        min-width: 80px;
    }

    .stat-divider {
        display: none;
    }
}

/* Extra small phones (iPhone SE, etc.) */
@media (max-width: 375px) {
    .hero-name {
        font-size: 1.75rem;
    }

    .hero-tagline {
        font-size: 1rem;
    }

    .tab-item {
        padding: 6px 10px;
        font-size: 0.6875rem;
    }

    .section-title {
        font-size: 1.25rem;
    }

    .btn-neumorphic {
        padding: var(--space-sm) var(--space-md);
        font-size: 0.875rem;
    }

    .popular-routes {
        flex-direction: column;
    }

    .route-chips {
        justify-content: center;
    }
}

/* =============================================================================
   ANIMATIONS
   ============================================================================= */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}