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

:root {
    --green-900: #1a4d2e;
    --green-800: #1e6b3a;
    --green-700: #228b47;
    --green-600: #2da55d;
    --green-100: #d6f5e0;
    --green-50: #eef9f2;
    --gray-900: #111827;
    --gray-700: #374151;
    --gray-500: #6b7280;
    --gray-300: #d1d5db;
    --gray-100: #f3f4f6;
    --gray-50: #f9fafb;
    --white: #ffffff;
    --gold: #d4940a;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --max-width: 1120px;
    --radius: 10px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 14px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--gray-900);
    line-height: 1.6;
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: inherit;
    text-decoration: none;
}

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--gray-300);
    padding: 16px 0;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--green-800);
    letter-spacing: -0.01em;
}

.logo-icon {
    font-size: 1.5rem;
}

.main-nav {
    display: flex;
    gap: 28px;
    align-items: center;
}

.main-nav a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s;
}

.main-nav a:hover {
    color: var(--green-700);
}

.nav-list-link {
    background: var(--green-50);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid var(--green-100);
}

.list-count {
    background: var(--green-700);
    color: var(--white);
    font-size: 0.75rem;
    padding: 1px 7px;
    border-radius: 10px;
    margin-left: 4px;
    display: none;
}

.list-count.has-items {
    display: inline;
}

/* === Hero === */
.hero {
    background: url('../img/hero.jpg') center/cover no-repeat;
    color: var(--white);
    padding: 88px 0 96px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(17, 40, 24, 0.75);
    pointer-events: none;
}

.hero .container {
    position: relative;
}

.hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 560px;
    margin: 0 auto 36px;
    opacity: 0.88;
    line-height: 1.55;
    font-weight: 400;
}

.btn {
    display: inline-block;
    font-weight: 600;
    font-size: 1.05rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--white);
    color: var(--green-800);
    font-weight: 700;
}

.btn-primary:hover {
    background: var(--green-50);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: var(--green-700);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--green-800);
    transform: translateY(-1px);
}

/* === Trust Bar === */
.trust-bar {
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-300);
    padding: 24px 0;
}

.trust-items {
    display: flex;
    justify-content: center;
    gap: 48px;
    text-align: center;
}

.trust-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--green-800);
    margin-bottom: 2px;
}

.trust-item span {
    font-size: 0.85rem;
    color: var(--gray-500);
}

/* === Tools Section === */
.tools-section {
    padding: 72px 0 80px;
}

.tools-section h2,
.how-it-works h2 {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-500);
    font-size: 1.05rem;
    margin-bottom: 48px;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.tool-card {
    display: block;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.25s ease;
}

.tool-card:hover {
    border-color: var(--green-600);
    box-shadow: 0 6px 20px rgba(34, 139, 71, 0.12);
    transform: translateY(-3px);
}

.tool-card:hover .tool-cta {
    color: var(--green-800);
}

.tool-card-featured {
    background: var(--green-50);
    border-color: var(--green-100);
}

.tool-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.tool-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.tool-card p {
    font-size: 0.92rem;
    color: var(--gray-500);
    line-height: 1.5;
    margin-bottom: 16px;
}

.tool-cta {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-700);
}

/* === How It Works === */
.how-it-works {
    background: var(--gray-50);
    padding: 72px 0 80px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
    margin-top: 48px;
}

.step {
    text-align: center;
}

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--green-700);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step p {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.5;
}

/* === Footer === */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-300);
    padding: 48px 0 24px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo-icon {
    color: var(--green-600);
}

.footer-brand strong {
    color: var(--white);
}

.footer-brand p {
    font-size: 0.85rem;
    margin-top: 8px;
    max-width: 400px;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--gray-300);
    transition: color 0.2s;
}

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

.footer-bottom {
    padding-top: 20px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* === Quiz Page Layout === */
.page-header {
    background: linear-gradient(135deg, var(--green-900) 0%, var(--green-700) 100%);
    color: var(--white);
    padding: 48px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.page-header p {
    font-size: 1.05rem;
    opacity: 0.9;
}

.quiz-container {
    max-width: 680px;
    margin: 48px auto 80px;
    padding: 0 24px;
}

.quiz-progress {
    display: flex;
    gap: 6px;
    margin-bottom: 32px;
}

.quiz-progress-step {
    flex: 1;
    height: 4px;
    background: var(--gray-300);
    border-radius: 2px;
    transition: background 0.3s;
}

.quiz-progress-step.active {
    background: var(--green-600);
}

.quiz-question {
    display: none;
}

.quiz-question.active {
    display: block;
}

.quiz-question h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    text-align: left;
}

.quiz-question .hint {
    color: var(--gray-500);
    font-size: 0.92rem;
    margin-bottom: 24px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.quiz-option {
    display: block;
    width: 100%;
    padding: 16px 20px;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: var(--font-sans);
    text-align: left;
    cursor: pointer;
    transition: all 0.15s;
}

.quiz-option:hover {
    border-color: var(--green-600);
    background: var(--green-50);
}

.quiz-option.selected {
    border-color: var(--green-600);
    background: var(--green-50);
    font-weight: 600;
}

.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
}

.quiz-nav .btn {
    padding: 12px 28px;
}

/* === Results === */
.results-section {
    padding: 48px 0 80px;
}

.results-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.results-summary {
    color: var(--gray-500);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.product-card {
    display: flex;
    gap: 24px;
    background: var(--white);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    transition: all 0.2s;
}

.product-card:hover {
    box-shadow: var(--shadow-sm);
}

.product-image {
    width: 140px;
    height: 140px;
    background: var(--gray-100);
    border-radius: 8px;
    flex-shrink: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.product-brand {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 8px;
}

.product-reason {
    font-size: 0.9rem;
    color: var(--gray-700);
    line-height: 1.5;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: var(--green-50);
    border-radius: 6px;
    border-left: 3px solid var(--green-600);
}

.product-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.product-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--green-800);
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.88rem;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--green-700);
    color: var(--green-700);
}

.btn-outline:hover {
    background: var(--green-50);
}

/* === Product extras === */
.product-badge {
    display: inline-block;
    background: var(--green-700);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 10px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.product-source {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-style: italic;
    margin-bottom: 12px;
}

/* === My List Page === */
.my-list-section {
    padding: 48px 0 80px;
}

.my-list-section .container {
    max-width: 780px;
}

.empty-list {
    text-align: center;
    padding: 64px 0;
    color: var(--gray-500);
}

.empty-list h2 {
    font-size: 1.4rem;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.share-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    padding: 16px;
    background: var(--green-50);
    border-radius: var(--radius);
    align-items: center;
}

.share-bar p {
    flex: 1;
    font-size: 0.92rem;
    color: var(--gray-700);
}

/* === About Page === */
.about-section {
    padding: 48px 0 96px;
}

.about-block {
    margin-bottom: 40px;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-block h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--green-800);
}

.about-block p {
    font-size: 0.95rem;
    color: var(--gray-700);
    line-height: 1.7;
    margin-bottom: 12px;
}

.about-block p:last-child {
    margin-bottom: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.2rem;
    }

    .trust-items {
        flex-direction: column;
        gap: 16px;
    }

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .main-nav {
        gap: 16px;
    }

    .product-card {
        flex-direction: column;
    }

    .product-image {
        width: 100%;
        height: 120px;
    }
}

/* === Mobile Menu Toggle === */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px 8px;
    color: var(--gray-700);
}

@media (max-width: 480px) {
    .hero {
        padding: 48px 0 56px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

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

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 16px 24px;
        border-bottom: 1px solid var(--gray-300);
        box-shadow: var(--shadow-md);
        gap: 16px;
    }

    .main-nav.open {
        display: flex;
    }

    .site-header .container {
        position: relative;
    }
}
