/* Global Reset & Base Variables */
:root {
    --primary: #1E88E5;
    --primary-dark: #1565C0;
    --accent: #00B0FF;
    --bg-cream: #FFFDF9;
    --surface: #FFFFFF;
    --text-main: #2C3E50;
    --text-muted: #7F8C8D;
    --border: rgba(30, 136, 229, 0.08);
    --border-hover: rgba(30, 136, 229, 0.2);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 10px 30px rgba(30, 136, 229, 0.08);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
    --font-outfit: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-outfit);
    background-color: var(--bg-cream);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 800;
    line-height: 1.2;
}

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

/* Button & Badge Classes */
.btn-primary {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #FFFFFF;
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(30, 136, 229, 0.3);
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 136, 229, 0.4);
}

.btn-primary.btn-sm {
    padding: 8px 18px;
    font-size: 14px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    background: transparent;
    color: var(--primary);
    padding: 14px 28px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: var(--transition);
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(30, 136, 229, 0.05);
    transform: translateY(-2px);
}

.badge {
    display: inline-block;
    background: rgba(30, 136, 229, 0.08);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Navigation Bar */
.navbar {
    background: rgba(255, 253, 249, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: var(--transition);
}

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

.logo {
    display: flex;
    align-items: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--primary-dark);
    text-decoration: none;
    gap: 10px;
}

.logo-img {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(30, 136, 229, 0.15);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

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

.nav-btn {
    background: none;
    border: none;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-outfit);
    font-size: 16px;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    padding-top: 160px;
    padding-bottom: 100px;
    background: radial-gradient(circle at 80% 20%, rgba(0, 176, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(30, 136, 229, 0.03) 0%, transparent 50%);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
}

.hero-content h1 {
    font-size: 54px;
    color: #1A252C;
    margin-bottom: 24px;
}

.hero-content p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Feed Screenshot Styling (No Bezel Frame) */
.feed-screenshot {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    border-radius: 28px;
    border: 1px solid rgba(30, 136, 229, 0.1);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
    transition: var(--transition);
}

.feed-screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 30px 60px rgba(30, 136, 229, 0.2);
}

/* CTA Group Container & Store Badges */
.cta-group-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.store-badge-container {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 600;
    background: rgba(30, 136, 229, 0.04);
    padding: 8px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.badge-icon {
    font-size: 16px;
}

/* Feature Tag Badges */
.feature-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 8px;
    margin-left: 8px;
    background: rgba(127, 140, 141, 0.1);
    color: var(--text-muted);
    vertical-align: middle;
}

.feature-tag.active {
    background: rgba(46, 204, 113, 0.15);
    color: #27ae60;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #FFFFFF;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-title {
    text-align: center;
    font-size: 38px;
    margin-bottom: 60px;
    color: #1A252C;
}

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

.feature-card {
    background: var(--bg-cream);
    padding: 40px 30px;
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: var(--transition);
}

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

.feature-icon {
    width: 50px;
    height: 50px;
    background: rgba(30, 136, 229, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 24px;
    margin-bottom: 24px;
}

.feature-card h3 {
    font-size: 20px;
    color: #1A252C;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
}

/* Modals Overlay & Body */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 22, 34, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal {
    background: #FFFFFF;
    width: 100%;
    max-width: 700px;
    max-height: 80vh;
    border-radius: 24px;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-header h2 {
    font-size: 24px;
    color: var(--primary-dark);
}

.close-btn {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.close-btn:hover {
    color: var(--primary);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

.font-legal h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: #1A252C;
}

.font-legal p {
    font-size: 14px;
    color: var(--text-main);
    margin-bottom: 14px;
}

.font-legal ul {
    margin-left: 20px;
    margin-bottom: 14px;
    font-size: 14px;
}

.font-legal li {
    margin-bottom: 6px;
}

.legal-date {
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Footer Section */
.footer {
    background: var(--bg-cream);
    padding: 40px 0;
    border-top: 1px solid var(--border);
    font-size: 14px;
}

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

.footer p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-outfit);
    font-size: 14px;
}

.footer-btn:hover {
    text-decoration: underline;
}

/* Mobile Responsiveness */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    
    .hero-content p {
        margin: 0 auto 40px;
    }

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

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

@media (max-width: 768px) {
    .navbar-container {
        height: 70px;
    }

    .nav-links {
        display: none; /* simple burger placeholder or offscreen logic in production, here we keep it clean */
    }

    .hero-content h1 {
        font-size: 38px;
    }

    .footer-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
