/* Travler Website Styles - Following Native App Design System */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --orange-500: #f97316;
    --orange-600: #ea580c;
    --orange-50: #fff9f5;
    --orange-100: #fed7aa;
    --orange-800: #9a3412;

    /* Grays */
    --gray-900: #111827;
    --gray-800: #1f2937;
    --gray-700: #374151;
    --gray-600: #4b5563;
    --gray-500: #6b7280;
    --gray-400: #9ca3af;
    --gray-200: #e5e7eb;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: #dcfce7;
    --error: #ef4444;
    --error-light: #fef2f2;
    --info: #3b82f6;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 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-premium: 0 0 16px rgba(0, 0, 0, 0.1);
    --shadow-orange: 0 4px 16px rgba(249, 115, 22, 0.3);

    /* Typography */
    --font-system: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-system);
    color: var(--gray-900);
    line-height: 1.6;
    background: white;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
}

.logo-text {
    color: var(--gray-900);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--gray-700);
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn-primary, .btn-secondary {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: linear-gradient(to right, var(--orange-500), var(--orange-600));
    color: white;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

.btn-secondary {
    background: var(--gray-50);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-100);
}

.btn-primary-small {
    padding: 8px 20px;
    border-radius: 12px;
    background: var(--orange-500);
    color: white;
    font-weight: 600;
    transition: all 0.2s;
}

.btn-primary-small:hover {
    background: var(--orange-600);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    padding: 120px 24px 80px;
    color: white;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-subtitle {
    font-size: 20px;
    line-height: 1.6;
    opacity: 0.95;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-cta .btn-primary {
    background: white;
    color: var(--orange-500);
}

.hero-cta .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-cta .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

.phone-mockup {
    max-width: 400px;
    width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.3));
}

/* Section Styles */
section {
    padding: 80px 24px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.section-subtitle {
    font-size: 18px;
    text-align: center;
    color: var(--gray-600);
    margin-bottom: 48px;
}

/* Problem Section */
.problem-section {
    background: var(--gray-50);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.problem-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.problem-card p {
    color: var(--gray-600);
    font-size: 16px;
}

/* Solution Section */
.solution-section {
    background: var(--orange-50);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.solution-card {
    background: white;
    padding: 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: var(--shadow-premium);
}

.solution-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.solution-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.solution-card p {
    color: var(--gray-600);
    font-size: 16px;
}

/* How It Works */
.how-it-works {
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 24px;
    border: 2px solid var(--gray-200);
}

.step-number {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.step-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Features Section */
.features-section {
    background: var(--gray-50);
}

.feature-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-bottom: 80px;
}

.feature-showcase.reverse {
    direction: rtl;
}

.feature-showcase.reverse > * {
    direction: ltr;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.feature-showcase h3 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.feature-showcase p {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 20px;
}

.feature-list {
    list-style: none;
    margin-top: 20px;
}

.feature-list li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-700);
}

.feature-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

/* Feature Visual Mockups */
.feature-visual {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-premium);
}

.card-mockup {
    background: var(--gray-50);
    border-radius: 16px;
    padding: 16px;
    border: 1px solid var(--gray-200);
}

.card-image {
    background: linear-gradient(135deg, var(--orange-200), var(--orange-400));
    height: 160px;
    border-radius: 12px;
    margin-bottom: 12px;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.card-price {
    font-size: 16px;
    color: var(--gray-600);
}

.voting-mockup, .chat-mockup, .winner-mockup {
    padding: 32px;
    text-align: center;
}

.vote-bar {
    background: var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    height: 48px;
}

.vote-yes {
    background: var(--success);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    transition: width 0.3s;
}

.chat-bubble {
    background: var(--orange-50);
    border: 1px solid var(--orange-100);
    padding: 12px 20px;
    border-radius: 16px;
    margin-bottom: 12px;
    text-align: left;
}

.trophy {
    font-size: 64px;
    margin-bottom: 16px;
}

.winner-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--orange-500);
}

/* Use Cases */
.use-cases {
    background: white;
}

.use-case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.use-case-card {
    background: var(--orange-50);
    padding: 32px;
    border-radius: 24px;
    border: 2px solid var(--orange-100);
}

.use-case-card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.use-case-card p {
    color: var(--gray-700);
    line-height: 1.7;
}

/* Comparison Section */
.comparison-section {
    background: var(--gray-50);
}

.comparison-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 48px;
}

.comparison-column {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
}

.comparison-column.highlight {
    background: var(--orange-50);
    border: 2px solid var(--orange-500);
    box-shadow: var(--shadow-orange);
}

.comparison-column h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--gray-700);
    line-height: 1.6;
}

.comparison-list.positive li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
    font-size: 20px;
}

.comparison-list.negative li:before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gray-400);
    font-weight: 700;
}

.comparison-note {
    margin-top: 48px;
    text-align: center;
}

.comparison-note p {
    font-size: 16px;
    color: var(--gray-700);
    margin-bottom: 12px;
    line-height: 1.7;
}

.comparison-note strong {
    color: var(--orange-500);
    font-weight: 700;
}

/* FAQ Section */
.faq-section {
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.faq-item {
    background: var(--gray-50);
    padding: 32px;
    border-radius: 24px;
    border: 1px solid var(--gray-200);
}

.faq-item h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gray-900);
}

.faq-item p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* Download Section */
.download-section {
    background: linear-gradient(135deg, var(--orange-500), var(--orange-600));
    padding: 100px 24px;
    text-align: center;
    color: white;
}

.download-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.download-subtitle {
    font-size: 20px;
    opacity: 0.95;
    margin-bottom: 40px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.store-badge {
    transition: transform 0.2s, opacity 0.2s;
    display: inline-block;
}

.store-badge:hover {
    transform: translateY(-4px);
    opacity: 0.9;
}

.download-note {
    font-size: 14px;
    opacity: 0.9;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 64px 24px 32px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
}

.footer-section h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-section a:hover {
    color: var(--orange-500);
}

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--gray-800);
}

/* Invite Page Styles */
.invite-page {
    background: var(--orange-50);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.invite-container {
    width: 100%;
    max-width: 600px;
}

.invite-state {
    display: none;
}

.invite-state.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.invite-card {
    background: white;
    border-radius: 24px;
    padding: 48px;
    box-shadow: var(--shadow-premium);
    text-align: center;
}

.invite-card.error {
    border: 2px solid var(--error-light);
}

.invite-icon {
    font-size: 64px;
    margin-bottom: 24px;
}

.invite-card h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.invite-message {
    font-size: 16px;
    color: var(--gray-600);
    margin-bottom: 24px;
    line-height: 1.7;
}

.invite-details {
    background: var(--orange-50);
    border: 1px solid var(--orange-100);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 32px;
}

.invite-benefits {
    text-align: left;
    margin-bottom: 32px;
}

.invite-benefits h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--gray-900);
}

.invite-benefits ul {
    list-style: none;
}

.invite-benefits li {
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
    color: var(--gray-700);
}

.invite-benefits li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: 700;
}

.invite-note {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 16px;
}

.back-link {
    display: inline-block;
    margin-top: 24px;
    color: var(--orange-500);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--orange-600);
}

.error-cta {
    margin-top: 32px;
}

.error-cta h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.error-cta p {
    color: var(--gray-600);
    margin-bottom: 24px;
}

/* Spinner */
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--orange-100);
    border-top-color: var(--orange-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 24px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-cta {
        justify-content: center;
    }

    .phone-mockup {
        max-width: 300px;
        margin: 0 auto;
    }

    .section-title {
        font-size: 32px;
    }

    .feature-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .feature-showcase.reverse {
        direction: ltr;
    }

    .comparison-table {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .nav-links {
        gap: 16px;
    }

    .nav-links a:not(.btn-primary-small) {
        display: none;
    }

    .invite-card {
        padding: 32px 24px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
}
