@import 'tokens.css';

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-white);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.section-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-md);
    text-align: center;
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

p {
    color: var(--text-medium);
    margin-bottom: 1em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    font-size: var(--text-base);
    cursor: pointer;
    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: var(--shadow-md);
}

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

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

.btn-text {
    color: var(--primary);
    font-weight: 600;
    padding: 0;
}

.btn-text:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.btn-store {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #1a1a1a;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-store:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-store svg {
    width: 20px;
    height: 20px;
}

/* Layout Utilities */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

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

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

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

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

    .section-title {
        font-size: var(--text-xl);
    }
}

/* Header */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    height: var(--header-height);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    font-weight: 800;
    font-size: var(--text-xl);
    color: var(--primary);
    letter-spacing: -0.02em;
}

.logo img {
    width: 80px;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-medium);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
}

/* Hero */
.hero {
    padding: var(--space-section) 0;
    background: linear-gradient(135deg, #f0fdfc 0%, #ffffff 100%);
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: var(--space-xxl);
}

.hero-text {
    flex: 1;
}

.hero-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-md);
    color: var(--text-dark);
}

.hero-subtitle {
    font-size: var(--text-lg);
    color: var(--text-light);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

.hero-image {
    flex: 1;
    position: relative;
}

.store-images-grid img {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.store-images-grid img:hover {
    transform: scale(1.45);
    z-index: 10;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.mockup-container {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    background: #ffffff;
    padding: 0;
    max-width: 260px;
    /* Reduced from 320px */
    margin: 0 auto;
    border: 12px solid #1a1a1a;
}

.mockup-screen {
    background: var(--bg-light);
    border-radius: calc(var(--radius-lg) - 12px);
    overflow: hidden;
    aspect-ratio: 9/19.5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.mockup-screen img {
    width: 100%;
    height: 100%;
}

/* Cards */
.card {
    background: white;
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border);
}

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

.card-icon {
    width: 56px;
    height: 56px;
    background-color: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.card-title {
    font-size: var(--text-lg);
    margin-bottom: var(--space-sm);
}

/* App Section */
.app-section {
    background-color: var(--bg-light);
}

.app-content {
    display: flex;
    align-items: center;
    gap: var(--space-xxl);
}

.app-text {
    flex: 1;
}

.app-features {
    margin-top: var(--space-lg);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.check-icon {
    color: var(--primary);
}

/* Map Section */
.map-section {
    background: white;
}

.map-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: var(--space-lg);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background: white;
}

.map-frame {
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.map-info {
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.info-item {
    margin-bottom: var(--space-md);
}

.info-label {
    font-size: var(--text-sm);
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xs);
    font-weight: 600;
}

.info-value {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-dark);
}

/* Testimonials */
.testimonial-card {
    text-align: center;
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--bg-alt);
    margin: 0 auto var(--space-md);
    overflow: hidden;
}

.quote {
    font-style: italic;
    color: var(--text-medium);
    margin-bottom: var(--space-md);
}

.user-name {
    font-weight: 700;
    font-size: var(--text-base);
}

.user-location {
    font-size: var(--text-sm);
    color: var(--text-light);
}

/* CTA Section */
.cta-section {
    background-color: var(--primary);
    color: white;
    text-align: center;
    padding: var(--space-xxl) 0;
}

.cta-title {
    color: white;
    font-size: var(--text-3xl);
    margin-bottom: var(--space-md);
}

.cta-btn {
    background: white;
    color: var(--primary);
    padding: 16px 32px;
    font-size: var(--text-lg);
    border-radius: var(--radius-pill);
    font-weight: 700;
    display: inline-block;
    margin-top: var(--space-lg);
    transition: var(--transition);
}

.cta-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Footer */
.footer {
    background-color: var(--text-dark);
    color: white;
    padding: var(--space-xl) 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

.footer-logo {
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--primary);
}

.footer-logo img {
    width: 80px;
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-light);
}

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

/* Mobile */
@media (max-width: 768px) {

    .hero-content,
    .app-content {
        flex-direction: column;
        text-align: center;
    }

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

    .map-container {
        grid-template-columns: 1fr;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: var(--space-lg);
        box-shadow: var(--shadow-md);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .hero-title {
        font-size: var(--text-3xl);
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}