/* ===================================
   Listie Website Styles
   Inspired by the vibrant sunburst icon
   =================================== */

:root {
    /* Sunburst colors from the icon */
    --coral: #FF6B35;
    --orange: #F7931E;
    --yellow: #FFE66D;
    --green: #4ECDC4;
    --blue: #1A535C;
    --charcoal: #2D3436;

    /* UI colors */
    --background: #FEFEFE;
    --surface: #FFFFFF;
    --text-primary: #1a1a1a;
    --text-secondary: #636e72;
    --text-muted: #b2bec3;

    /* Category colors */
    --dairy: #74b9ff;
    --bakery: #fdcb6e;
    --produce: #00b894;
    --meat: #e17055;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Borders */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--background);
    overflow-x: hidden;
}

/* Sunburst Background Decoration */
.sunburst-bg {
    position: fixed;
    top: -50%;
    right: -30%;
    width: 100%;
    height: 150%;
    background: conic-gradient(
        from 180deg,
        transparent 0deg,
        rgba(255, 107, 53, 0.03) 30deg,
        transparent 60deg,
        rgba(247, 147, 30, 0.03) 90deg,
        transparent 120deg,
        rgba(255, 230, 109, 0.03) 150deg,
        transparent 180deg,
        rgba(78, 205, 196, 0.03) 210deg,
        transparent 240deg,
        rgba(26, 83, 92, 0.03) 270deg,
        transparent 300deg,
        rgba(255, 107, 53, 0.03) 330deg,
        transparent 360deg
    );
    pointer-events: none;
    z-index: -1;
}

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

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

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
}

h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

p {
    color: var(--text-secondary);
}

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

.section-subtitle {
    text-align: center;
    font-size: 1.125rem;
    max-width: 500px;
    margin: 0 auto var(--space-3xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-lg);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--coral), var(--orange));
    color: white;
    box-shadow: 0 4px 14px rgba(255, 107, 53, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.45);
}

.btn-small {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.875rem;
    background: var(--charcoal);
    color: white;
}

.btn-small:hover {
    background: var(--text-primary);
}

.btn-large {
    padding: var(--space-md) var(--space-xl);
    font-size: 1.125rem;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: var(--space-md) 0;
    background: rgba(254, 254, 254, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

header nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

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

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

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

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

/* Hero Section */
.hero {
    padding: calc(100px + var(--space-3xl)) 0 var(--space-3xl);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

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

.hero-content {
    max-width: 560px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: var(--space-lg) 0 var(--space-xl);
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.coming-soon {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-left: var(--space-xs);
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 280px;
    height: 580px;
    background: linear-gradient(145deg, #2D3436, #1a1a1a);
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 50px 100px rgba(0, 0, 0, 0.15),
        0 20px 40px rgba(0, 0, 0, 0.1),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--surface);
    border-radius: 32px;
    overflow: hidden;
    padding: var(--space-lg);
}

.app-preview {
    height: 100%;
}

.preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.preview-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.preview-count {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.preview-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.preview-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--background);
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.preview-item.completed {
    opacity: 0.5;
}

.preview-item.completed .item-name {
    text-decoration: line-through;
}

.item-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--text-muted);
    border-radius: 50%;
    flex-shrink: 0;
}

.item-check.checked {
    background: var(--green);
    border-color: var(--green);
    position: relative;
}

.item-check.checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.item-name {
    flex: 1;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.item-category {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.item-category.dairy { background: rgba(116, 185, 255, 0.15); color: #0984e3; }
.item-category.bakery { background: rgba(253, 203, 110, 0.2); color: #e17055; }
.item-category.produce { background: rgba(0, 184, 148, 0.15); color: #00b894; }
.item-category.meat { background: rgba(225, 112, 85, 0.15); color: #d63031; }

/* Features Section */
.features {
    padding: var(--space-3xl) 0;
    background: linear-gradient(180deg, transparent, rgba(255, 107, 53, 0.02));
}

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

.feature-card {
    background: var(--surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--icon-color), rgba(255, 255, 255, 0.5));
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    color: white;
}

.feature-card h3 {
    margin-bottom: var(--space-sm);
}

/* Download Section */
.download {
    padding: var(--space-3xl) 0;
}

.download-card {
    text-align: center;
    background: linear-gradient(135deg, var(--charcoal), #1a1a1a);
    padding: var(--space-3xl);
    border-radius: var(--radius-xl);
    color: white;
}

.download-icon {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.download-card h2 {
    color: white;
    margin-bottom: var(--space-sm);
}

.download-card p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-lg);
}

.download-note {
    font-size: 0.875rem;
    margin-top: var(--space-md) !important;
    margin-bottom: 0 !important;
    opacity: 0.6;
}

/* Footer */
footer {
    padding: var(--space-xl) 0;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 600;
    color: var(--text-primary);
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.footer-bottom p {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 var(--space-md);
    }

    .nav-links a:not(.btn) {
        display: none;
    }

    .hero {
        padding-top: calc(80px + var(--space-xl));
    }

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

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}
