/* Fonts */
@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    /* Colors - Deep Premium Palette */
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #60a5fa;
    --secondary: #64748b;
    --bg-main: #0f172a;
    --bg-card: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #38bdf8;
    --success: #10b981;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-s: 1rem;
    --space-m: 2rem;
    --space-l: 4rem;
    --space-xl: 8rem;

    /* Others */
    --radius: 1rem;
    --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-s);
}

.section {
    padding: var(--space-xl) 0;
}

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

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 600;
    cursor: pointer;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(37, 99, 235, 0.4);
}

.btn-outline {
    border: 1px solid var(--secondary);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav-logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-img {
    height: 32px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-m);
}

.nav-links a {
    display: flex;
    align-items: center;
}

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

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding-top: 100px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-l);
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
    margin-bottom: var(--space-s);
    line-height: 1;
}

.hero-content p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: var(--space-m);
    max-width: 550px;
}

.hero-btns {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: rotate(-5deg);
    transition: var(--transition);
}

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

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-m);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-m);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    background: rgba(30, 41, 59, 0.8);
}

.feature-icon {
    font-size: 2.5rem;
    color: var(--primary-light);
    margin-bottom: var(--space-s);
}

.feature-card h3 {
    margin-bottom: 1rem;
}

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

/* Screenshots / Gallery */
.screenshots-carousel {
    display: flex;
    overflow-x: auto;
    gap: var(--space-m);
    padding: var(--space-s) 0 var(--space-l);
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.screenshots-carousel::-webkit-scrollbar {
    height: 6px;
    display: block;
}

.screenshots-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.screenshots-carousel::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

.screenshot-item {
    flex: 0 0 calc(33.333% - var(--space-m));
    min-width: 280px;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: center;
    transition: var(--transition);
}

.screenshot-item:hover {
    transform: scale(1.02);
}

@media (max-width: 1024px) {
    .screenshot-item {
        flex: 0 0 70%;
        /* Peek effect for next item */
    }
}

.screenshot-item img {
    width: 100%;
    display: block;
}

/* Platform Download Buttons */
.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn-google {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
}

.btn-google:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.btn-apple {
    background: var(--text-main);
    color: var(--bg-main);
}

.btn-apple:hover {
    background: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.3);
}

.platform-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.platform-note {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(37, 99, 235, 0.1), transparent);
    border-radius: var(--radius);
}

.cta-section h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.cta-section > p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-inline: auto;
}

.cta-btns {
    display: inline-flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Footer */
footer {
    padding: var(--space-l) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #0a0f1d;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-m);
    margin-bottom: var(--space-m);
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    padding-top: var(--space-m);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-image {
        order: -1;
    }

    .nav-links {
        display: none;
    }
}

/* Legal Pages Styling */
.legal-content {
    max-width: 800px;
    margin: 120px auto 100px;
    padding: 0 var(--space-s);
}

.legal-content h1 {
    margin-bottom: 2rem;
}

.legal-content h2 {
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.legal-content ul {
    list-style: disc;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}