/* ===========================
   Your Year Landing Page
   Premium CSS with Pastel Gradients
   =========================== */

/* CSS Custom Properties */
:root {
    /* Pastel palette inspired by the logo */
    --pastel-pink: #f8d7e0;
    --pastel-lavender: #e8d4f0;
    --pastel-yellow: #f8edc4;
    --pastel-mint: #d4f0e8;
    --pastel-blue: #d4e8f8;
    --pastel-peach: #f8e4d4;

    /* Dark accents */
    --dark: #1a1a1a;
    --dark-soft: #2d2d2d;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;

    /* Backgrounds */
    --bg-white: #ffffff;
    --bg-cream: #fdfbf7;
    --bg-light: #f8f6f3;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, var(--pastel-yellow) 0%, var(--pastel-pink) 25%, var(--pastel-lavender) 50%, var(--pastel-blue) 75%, var(--pastel-mint) 100%);
    --gradient-soft: linear-gradient(135deg, rgba(248, 215, 224, 0.3) 0%, rgba(232, 212, 240, 0.3) 50%, rgba(212, 232, 248, 0.3) 100%);

    /* Sizing */
    --container-max: 1200px;
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-medium: 0 8px 40px rgba(0, 0, 0, 0.1);
    --shadow-strong: 0 16px 64px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

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

/* ===========================
   Navigation
   =========================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(253, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--spacing-sm) var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    text-decoration: none;
    color: var(--text-primary);
}

.nav-logo-img {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
}

.nav-logo-text {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.nav-cta {
    background: var(--dark);
    color: white !important;
    padding: 0.6rem 1.2rem;
    border-radius: 100px;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

/* Mobile nav */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* ===========================
   Hero Section
   =========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(80px + var(--spacing-lg)) var(--spacing-md) var(--spacing-lg);
    overflow: hidden;
}

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

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to top, var(--bg-cream), transparent);
}

.hero-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
    width: 100%;
}

.hero-text {
    animation: fadeInUp 0.8s ease;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: var(--spacing-md);
}

.hero-title-accent {
    background: linear-gradient(135deg, #e85d75 0%, #9b59b6 50%, #3498db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 500px;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-md);
    align-items: center;
    /* Ensure badges are vertically aligned */
}

.store-badge {
    display: block;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

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

.store-badge-svg {
    height: 48px;
    width: auto;
}

.hero-privacy {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.9rem;
    color: var(--text-muted);
}

.hero-privacy svg {
    flex-shrink: 0;
}

.hero-phone {
    display: flex;
    justify-content: center;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.phone-frame {
    position: relative;
    width: 280px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-strong), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform var(--transition-slow);
}

.phone-frame:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.phone-screenshot {
    width: 100%;
    height: auto;
    border-radius: 28px;
    display: block;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-muted);
    font-size: 0.85rem;
    animation: bounce 2s infinite;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

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

    .hero-phone {
        /* order: -1; Removed to keep text first on mobile */
        margin-top: var(--spacing-sm);
    }

    .phone-frame {
        width: 160px;
        border-radius: 20px;
        padding: 8px;
        transform: none;
    }

    .phone-frame .phone-screenshot {
        border-radius: 14px;
    }

    .hero-scroll-indicator {
        display: none;
    }
}

/* ===========================
   Section Shared Styles
   =========================== */
.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: var(--spacing-sm);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--spacing-md);
}

.feature-card {
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-soft);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--dark);
}

.feature-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===========================
   How It Works Section
   =========================== */
.how-it-works {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-soft);
}

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 280px;
    padding: var(--spacing-md);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--dark);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-soft);
}

.step-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.step-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    margin-top: 32px;
    flex-shrink: 0;
}

@media (max-width: 800px) {
    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step-connector {
        width: 2px;
        height: 40px;
        margin-top: 0;
    }
}

/* ===========================
   Screenshots Section
   =========================== */
.screenshots {
    padding: var(--spacing-xl) 0;
    background: var(--bg-white);
}

.screenshots-gallery {
    display: flex;
    justify-content: center;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
}

.screenshot-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
}

.phone-frame-small {
    width: 200px;
    padding: 8px;
    border-radius: 30px;
}

.phone-frame-small .phone-screenshot {
    border-radius: 22px;
}

.screenshot-caption {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===========================
   CTA Section
   =========================== */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: var(--gradient-hero);
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.6);
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-logo {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-medium);
    margin-bottom: var(--spacing-md);
}

.cta-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    letter-spacing: -0.02em;
}

.cta-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

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

/* ===========================
   Footer
   =========================== */
.footer {
    background: var(--dark);
    color: white;
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.footer-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--spacing-md);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===========================
   FAQ Section
   =========================== */
.faq {
    padding: var(--spacing-xl) 0;
    background: var(--bg-light);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-item summary {
    padding: var(--spacing-md);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--text-secondary);
    line-height: 1.7;
}

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

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Focus styles */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--dark);
    outline-offset: 2px;
}

/* Selection */
::selection {
    background: var(--pastel-lavender);
    color: var(--dark);
}