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

:root {
    --green:       #2d4a1e;
    --green-dark:  #1a3010;
    --green-light: #e8f0e4;
    --accent:      #D4FF00;
    --accent-dark: #bfef00;
    --bg:          #f4f4f0;
    --white:       #ffffff;
    --text:        #1a1a1a;
    --muted:       #6b7280;
    --border:      #e0e0da;
    --error:       #dc2626;
    --radius:      12px;
    --radius-sm:   8px;
    --shadow:      0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg:   0 8px 32px rgba(0,0,0,0.12);
    --transition:  0.2s ease;
    --max-width:   1100px;
    --header-h:    64px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ---- Header ---- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    height: var(--header-h);
}

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

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 36px; width: auto; }
.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -0.5px;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--green);
    color: var(--accent);
}
.btn-primary:hover {
    background: var(--green-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-accent {
    background: var(--accent);
    color: var(--green);
    font-weight: 700;
}
.btn-accent:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--green);
    color: var(--green);
}

.btn-large { padding: 14px 28px; font-size: 1rem; border-radius: var(--radius); }
.btn-full  { width: 100%; }

/* ---- Badge ---- */
.badge {
    display: inline-block;
    background: var(--accent);
    color: var(--green);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* ---- Section titles ---- */
.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
.section-subtitle {
    text-align: center;
    color: var(--muted);
    margin-bottom: 48px;
    font-size: 1rem;
}

/* ---- Placeholder images ---- */
.placeholder-image {
    background: linear-gradient(135deg, #e4ebe0 0%, #cfdbc8 100%);
    border-radius: var(--radius);
    border: 2px dashed #b8ccb0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #7a9870;
    font-size: 0.85rem;
    font-weight: 500;
}
.placeholder-icon { font-size: 2rem; }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 100px;
    background: var(--white);
}
.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}
.hero-content p {
    font-size: 1.1rem;
    color: var(--muted);
    margin-bottom: 36px;
    line-height: 1.75;
}
.hero-visual .placeholder-image {
    aspect-ratio: 4/3;
}

/* ---- Features ---- */
.features {
    padding: 80px 0;
    background: var(--bg);
}
.features .section-title { margin-bottom: 48px; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.feature-card {
    background: var(--white);
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--green);
}
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ---- Gallery ---- */
.gallery {
    padding: 80px 0;
    background: var(--white);
}
.gallery .section-title { margin-bottom: 40px; }
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 16px;
    height: 340px;
}
.gallery-grid .placeholder-image { height: 100%; }

/* ---- Colors ---- */
.colors {
    padding: 80px 0;
    background: var(--bg);
}
.colors-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 680px;
    margin: 0 auto;
}
.color-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.color-swatch {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 3px 10px rgba(0,0,0,0.18);
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}
.color-swatch:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.color-item span {
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    color: var(--muted);
}

/* ---- CTA Section ---- */
.cta-section { padding: 80px 0; }
.cta-box {
    background: var(--green);
    border-radius: var(--radius);
    padding: 64px 48px;
    text-align: center;
}
.cta-box h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    color: var(--accent);
}
.cta-box p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
    line-height: 1.75;
}

/* ---- Footer ---- */
.footer {
    background: var(--green-dark);
    padding: 24px 0;
    text-align: center;
}
.footer p { color: rgba(255,255,255,0.4); font-size: 0.82rem; }

/* ---- Fade-in animation ---- */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Survey page ---- */
.survey-page { background: var(--bg); }

.survey-main {
    padding: 60px 0 100px;
    min-height: calc(100vh - var(--header-h));
}

.survey-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.survey-header {
    text-align: center;
    margin-bottom: 44px;
}
.survey-header h1 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.2;
}
.survey-header p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ---- Form ---- */
.survey-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group > label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}

.required { color: var(--green); }

.form-group input[type="text"],
.form-group input[type="email"] {
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
}
.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(45,74,30,0.1);
}
.form-group input.invalid {
    border-color: var(--error);
}

.radio-group {
    display: grid;
    gap: 10px;
}
.radio-group-2 { grid-template-columns: 1fr 1fr; }
.radio-group-4 { grid-template-columns: repeat(4, 1fr); }

.radio-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    background: var(--white);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text);
    user-select: none;
}
.radio-option:hover {
    border-color: var(--green);
    background: var(--green-light);
}
.radio-option input[type="radio"] {
    accent-color: var(--green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    cursor: pointer;
}
.radio-option:has(input:checked) {
    border-color: var(--green);
    background: var(--green-light);
    font-weight: 600;
}
.radio-group.invalid .radio-option {
    border-color: var(--error);
}

.field-error {
    display: none;
    font-size: 0.8rem;
    color: var(--error);
    font-weight: 500;
}
.field-error.show { display: block; }

/* ---- Success state ---- */
.success-state {
    text-align: center;
    padding: 64px 40px;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.success-icon {
    width: 72px;
    height: 72px;
    background: var(--green);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin: 0 auto 24px;
}
.success-state h2 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}
.success-state p {
    color: var(--muted);
    margin-bottom: 36px;
    font-size: 1rem;
    line-height: 1.7;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr 1fr; }
    .colors-grid   { grid-template-columns: repeat(3, 1fr); max-width: 360px; }
}

@media (max-width: 768px) {
    .hero { padding: 48px 0 60px; }
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .hero-visual { order: -1; }
    .hero-visual .placeholder-image { aspect-ratio: 16/9; }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        height: auto;
    }
    .gallery-grid .placeholder-image { aspect-ratio: 1; }
    .gallery-grid .placeholder-image:first-child { display: none; }

    .cta-box { padding: 44px 28px; }

    .survey-form { padding: 24px 20px; }
    .radio-group-4 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
    .features-grid { grid-template-columns: 1fr; }
    .radio-group-2 { grid-template-columns: 1fr; }
    .radio-group-4 { grid-template-columns: 1fr 1fr; }
    .colors-grid   { grid-template-columns: repeat(3, 1fr); }
    .gallery-grid  { grid-template-columns: 1fr; height: auto; }
    .gallery-grid .placeholder-image:first-child { display: flex; aspect-ratio: 16/9; }
}
