/* ===================================
   TripTribe Landing Page Styles
   Mobile-First Design
   =================================== */

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

:root {
    /* Colors from app theme */
    --primary-blue: #2b46ff;
    --accent-color: #FF6B6B;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --background: #ffffff;
    --card-bg: #ffffff;
    --border-color: #e5e5e5;

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #E0F7FA 0%, #F3E5F5 100%);
    --gradient-2: linear-gradient(135deg, #2b46ff 0%, #6B8AFF 100%);

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-s: 16px;
    --spacing-m: 24px;
    --spacing-l: 32px;
    --spacing-xl: 48px;
    --spacing-xxl: 64px;

    /* Border Radius */
    --radius-s: 8px;
    --radius-m: 12px;
    --radius-l: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-primary);
    background: var(--background);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    padding: var(--spacing-s) 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-s);
}

.brand-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: none;
    list-style: none;
    gap: var(--spacing-m);
    align-items: center;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-menu li a:hover {
    color: var(--primary-blue);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    overflow: hidden;
}

.blob-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background: var(--gradient-1);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: #2b46ff;
    top: -100px;
    left: -100px;
    animation-delay: 0s;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: #FF6B6B;
    bottom: -100px;
    right: -100px;
    animation-delay: 7s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: #6B8AFF;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {

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

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    align-items: center;
    text-align: center;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: var(--spacing-s);
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-tagline {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-m);
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: var(--spacing-l);
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
    width: 100%;
}

.hero-visual {
    max-width: 300px;
}

.phone-mockup {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== Buttons ===== */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-m);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-2);
    color: rgb(255, 255, 255);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: white;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
}

.btn-large {
    padding: 16px 32px;
    font-size: 18px;
}

/* ===== Features Section ===== */
.features {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.features-grid {
    display: grid;
    gap: var(--spacing-l);
    margin-top: var(--spacing-xl);
}

.feature-card {
    background: white;
    padding: var(--spacing-l);
    border-radius: var(--radius-l);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient-1);
    border-radius: var(--radius-m);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-m);
    color: var(--primary-blue);
}

.feature-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: var(--spacing-s);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== Screenshots Section ===== */
.screenshots {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-1);
}

.screenshot-carousel {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-top: var(--spacing-xl);
}

.screenshot-carousel::-webkit-scrollbar {
    display: none;
}

.screenshot-track {
    display: flex;
    gap: var(--spacing-m);
    padding: var(--spacing-s);
}

.screenshot-item {
    flex: 0 0 auto;
    width: 250px;
    text-align: center;
}

.screenshot-item img {
    width: 100%;
    border-radius: var(--radius-l);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-s);
}

.screenshot-item p {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ===== Safety Section ===== */
.safety {
    padding: var(--spacing-xxl) 0;
    background: white;
}

.safety-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.safety-grid {
    display: grid;
    gap: var(--spacing-l);
    margin: var(--spacing-xl) 0;
}

.safety-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-s);
    padding: var(--spacing-m);
    background: var(--gradient-1);
    border-radius: var(--radius-m);
}

.safety-item svg {
    color: var(--primary-blue);
}

.safety-item p {
    font-weight: 600;
}

.disclaimer {
    background: #FFF3CD;
    border: 2px solid #FFE69C;
    border-radius: var(--radius-m);
    padding: var(--spacing-m);
    margin: var(--spacing-l) 0;
}

.disclaimer p {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== About Section ===== */
.about {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-1);
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* ===== Support Section ===== */
.support {
    padding: var(--spacing-xxl) 0;
    background: white;
    text-align: center;
}

.support-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-l);
}

.support-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-s);
    max-width: 400px;
    margin: 0 auto var(--spacing-l);
}

.support-email {
    color: var(--text-secondary);
}

.support-email a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

/* ===== Download Section ===== */
.download {
    padding: var(--spacing-xxl) 0;
    background: var(--gradient-1);
    text-align: center;
}

.download-text {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-l);
}

.download-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-m);
}

.store-badge img {
    height: 60px;
    width: auto;
}

.coming-soon {
    color: var(--text-secondary);
    font-style: italic;
}

/* ===== Footer ===== */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-xl) 0 var(--spacing-m);
}

.footer-content {
    display: grid;
    gap: var(--spacing-l);
    margin-bottom: var(--spacing-l);
}

.footer-brand {
    text-align: center;
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-s);
    margin-bottom: var(--spacing-s);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.footer-links h4 {
    margin-bottom: var(--spacing-s);
    font-size: 16px;
}

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

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links ul li a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-m);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Responsive Design ===== */
@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-l);
    }

    .mobile-menu-toggle {
        display: none;
    }

    .nav-menu {
        display: flex;
    }

    .hero-content {
        flex-direction: row;
        text-align: left;
        justify-content: space-between;
    }

    .hero-text {
        flex: 1;
    }

    .hero-buttons {
        flex-direction: row;
        width: auto;
    }

    .hero-visual {
        max-width: 400px;
    }

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

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

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

    .support-buttons {
        flex-direction: row;
        max-width: none;
        justify-content: center;
    }

    .download-buttons {
        flex-direction: row;
    }

    .footer-content {
        grid-template-columns: 2fr 1fr 1fr;
        text-align: left;
    }

    .footer-brand {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .hero-visual {
        max-width: 500px;
    }
}