/* ============================================
   ShopList - Main Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    --primary-color: #00A980;
    --primary-dark: #008A68;
    --primary-light: #00C896;
    --accent-color: #2196F3;
    --accent-dark: #1976D2;

    --soil-black: #130F2B;
    --gray-1: #262627;
    --gray-2: #434345;
    --gray-3: #606063;
    --gray-4: #8e8e93;
    --gray-5: #A8A8A8;
    --gray-6: #C8C8CC;
    --gray-7: #D1D1D6;
    --gray-8: #EEEEF3;
    --gray-9: #F8F8F8;

    --white: #FFFFFF;
    --black: #000000;

    --body-font-family: "Inter", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;
    --header-font-family: "Poppins", "Avenir Next", -apple-system, BlinkMacSystemFont, sans-serif;

    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
}

/* --- Base Styles --- */
body {
    font-family: var(--body-font-family);
    font-display: swap;
    background-color: var(--white);
    color: var(--gray-1);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Header / Navbar --- */
.site-header {
    position: fixed;
    z-index: 40;
    width: 100vw;
    top: 0;
    background-color: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-8);
    transition: box-shadow var(--transition-normal);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
}

.nav-container {
    margin: 0 auto;
    padding: 0.75rem 1rem;
    max-width: 1024px;
    height: 57px;
}

.nav-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-weight: 700;
    color: var(--gray-1);
    font-size: 22px;
    text-decoration: none;
    transition: opacity var(--transition-fast);
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-img {
    padding-right: 0.375rem;
    position: relative;
    top: -2px;
    width: 44px;
    height: 44px;
}

/* Desktop Navigation */
.desktop-nav {
    display: none;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.download-btn {
    display: inline-block;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    font-weight: 600;
    font-size: 0.875rem;
    padding: 8px 1.25rem 6px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.download-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Mobile Navigation */
.mobile-nav-btn {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.mobile-nav-btn:hover {
    background-color: var(--gray-9);
}

.mobile-nav-btn img {
    width: 1.25rem;
}

.mobile-menu {
    display: none;
    position: fixed;
    z-index: 40;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--white);
    padding: 1.5rem;
    top: 57px;
    animation: slideIn var(--transition-slow) forwards;
}

.mobile-menu.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    margin-bottom: 1rem;
}

.mobile-close-btn {
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
}

.mobile-close-btn:hover {
    background-color: var(--gray-9);
}

.mobile-close-btn svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--gray-3);
}

.mobile-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-list li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-8);
}

.mobile-nav-list li:last-child {
    border-bottom: none;
}

.mobile-nav-list a {
    font-weight: 600;
    font-size: 1.25rem;
    color: var(--gray-1);
    text-decoration: none;
    display: block;
    transition: color var(--transition-fast);
}

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

.mobile-nav-list .mobile-download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 1.125rem;
    text-align: center;
    transition: all var(--transition-fast);
}

.mobile-nav-list .mobile-download-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

/* --- Header Spacer --- */
.header-spacer {
    height: 57px;
    width: 100%;
}

/* --- Hero Section --- */
.hero-section {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    position: relative;
    z-index: 10;
    overflow-x: hidden;
    padding: 0 1rem;
}

.hero-content {
    flex: 1;
    text-align: left;
    padding-top: 4rem;
}

.hero-title {
    font-family: var(--header-font-family);
    font-weight: 600;
    font-size: 55px;
    line-height: 60px;
    color: var(--soil-black);
    letter-spacing: -0.025em;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 1.375rem;
    font-weight: 500;
    color: var(--gray-2);
    padding-top: 1.5rem;
    line-height: 1.6;
    max-width: 500px;
}

.hero-badges {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-badges a {
    display: inline-block;
    transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.hero-badges a:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.hero-badges img {
    height: 44px;
}

.hero-qr {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem;
    background: var(--gray-9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.hero-qr img {
    width: 140px;
    height: 140px;
}

.hero-qr-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    color: var(--gray-4);
    margin-top: 0.5rem;
    font-weight: 500;
}

.hero-image-wrapper {
    flex: 0 0 auto;
    padding-top: 2rem;
    max-width: 340px;
    margin-left: auto;
}

.hero-image-wrapper img {
    position: relative;
    z-index: 20;
    width: 85%;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

/* Hero Mobile */
.hero-mobile {
    display: none;
    text-align: center;
    padding: 2rem 1rem;
}

.hero-mobile .hero-title {
    font-size: 36px;
    line-height: 42px;
    text-align: center;
}

.hero-mobile .hero-subtitle {
    font-size: 1.125rem;
    text-align: center;
    padding-top: 1rem;
    margin: 0 auto;
}

.hero-mobile .hero-badges {
    align-items: center;
    margin-top: 1.5rem;
}

.hero-mobile-image {
    margin-top: 1.5rem;
}

.hero-mobile-image img {
    width: 75%;
    max-width: 300px;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.12));
}

/* --- Features Section --- */
.features-section {
    padding: 5rem 1rem 3rem;
    text-align: center;
}

.features-section .section-title {
    font-family: var(--header-font-family);
    font-weight: 600;
    font-size: 2rem;
    color: var(--soil-black);
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.feature-card {
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--gray-9);
    transition: all var(--transition-normal);
    border: 1px solid transparent;
}

.feature-card:hover {
    background: var(--white);
    border-color: var(--gray-8);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-family: var(--header-font-family);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--soil-black);
    margin-bottom: 0.5rem;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--gray-3);
    line-height: 1.6;
}

/* --- Footer --- */
.site-footer {
    margin-top: 3rem;
    padding-top: 3rem;
    background: var(--gray-9);
    border-top: 1px solid var(--gray-8);
}

.footer-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1rem;
    text-align: center;
}

.footer-logo {
    display: block;
    margin: 0 auto;
    width: 80px;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-logo:hover {
    opacity: 1;
}

.footer-tagline {
    font-size: 1.0625rem;
    color: var(--gray-4);
    font-weight: 500;
    padding-top: 0.75rem;
    max-width: 400px;
    margin: 0 auto;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    padding: 2rem 0;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--gray-3);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 2rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--gray-8);
    transition: all var(--transition-fast);
    color: var(--gray-3);
}

.footer-social a:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.footer-social a svg {
    width: 18px;
    height: 18px;
}

.footer-copyright {
    font-size: 0.875rem;
    color: var(--gray-4);
    font-weight: 500;
    padding-bottom: 1.5rem;
}

/* --- Privacy Policy Page --- */
.policy-page {
    max-width: 768px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.policy-page h1 {
    font-family: var(--header-font-family);
    font-weight: 700;
    font-size: 2.5rem;
    color: var(--soil-black);
    margin-bottom: 0.5rem;
    letter-spacing: -0.025em;
}

.policy-page .policy-updated {
    color: var(--gray-4);
    font-size: 0.9375rem;
    margin-bottom: 2.5rem;
    font-weight: 500;
}

.policy-page h2 {
    font-family: var(--header-font-family);
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--soil-black);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--gray-8);
}

.policy-page h3 {
    font-family: var(--header-font-family);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--gray-1);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-page p {
    color: var(--gray-2);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.policy-page ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.policy-page ul li {
    color: var(--gray-2);
    line-height: 1.8;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.policy-page a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.policy-page a:hover {
    color: var(--primary-dark);
}

.policy-page .policy-contact-box {
    background: var(--gray-9);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    margin-top: 1.5rem;
    border: 1px solid var(--gray-8);
}

.policy-page .policy-contact-box p {
    margin-bottom: 0.5rem;
}

/* --- 404 Page --- */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
    padding: 2rem;
}

.error-code {
    font-family: var(--header-font-family);
    font-size: 8rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-family: var(--header-font-family);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--soil-black);
    margin-bottom: 1rem;
}

.error-desc {
    font-size: 1.0625rem;
    color: var(--gray-3);
    max-width: 400px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

.error-home-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: var(--white);
    padding: 0.875rem 2rem;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.error-home-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .desktop-nav {
        display: flex;
    }
    .mobile-nav-btn {
        display: none;
    }
    .hero-section {
        flex-wrap: nowrap;
    }
    .hero-mobile {
        display: none !important;
    }
}

@media (max-width: 767px) {
    .hero-desktop {
        display: none;
    }
    .hero-mobile {
        display: block;
    }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    .policy-page h1 {
        font-size: 1.875rem;
    }
    .policy-page h2 {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .error-code {
        font-size: 5rem;
    }
}
