/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Nunito', sans-serif;
    color: #494221;
    background: #fffdf7;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1300px; margin: 0 auto; padding: 0 24px; }

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 36px;
    background: #8F875A;
    color: #fff;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: background 0.3s, transform 0.2s;
}
.btn:hover { background: #7a7449; transform: translateY(-2px); }
.btn-lg { padding: 18px 48px; font-size: 1.15rem; }
.btn-sm { padding: 8px 22px; font-size: 0.9rem; }

/* === Navbar === */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(255, 253, 247, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(73, 66, 33, 0.1);
    padding: 12px 0;
}
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; }
.nav-logo-img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: #8F875A; }

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5f0e1 0%, #e8dfc8 50%, #d4c9a8 100%);
    overflow: hidden;
    text-align: center;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, rgba(143, 135, 90, 0.08) 0%, transparent 70%);
}
.hero-content { position: relative; z-index: 1; }
.hero-logo { width: 160px; margin: 0 auto 24px; filter: drop-shadow(0 4px 12px rgba(73, 66, 33, 0.15)); }
.hero h1 { font-size: 3.2rem; font-weight: 800; margin-bottom: 16px; }
.hero-sub { font-size: 1.25rem; max-width: 540px; margin: 0 auto 36px; opacity: 0.85; }

/* === Sections === */
.section { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.2rem; font-weight: 800; margin-bottom: 60px; }

/* === Features === */
.features { background: #fffdf7; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.feature-card {
    background: #fff;
    border: 1px solid rgba(73, 66, 33, 0.08);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(73, 66, 33, 0.1); }
.feature-icon { font-size: 2.8rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.95rem; opacity: 0.8; }

/* === How it works === */
.how-it-works { background: #f5f0e1; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 48px; text-align: center; }
.step { position: relative; }
.step-number {
    width: 48px; height: 48px;
    background: #8F875A; color: #fff;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem; font-weight: 800;
    margin: 0 auto 20px;
}
.step-img {
    width: 140px; height: 140px;
    object-fit: contain;
    margin: 0 auto 16px;
    border-radius: 16px;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 0.95rem; opacity: 0.8; max-width: 280px; margin: 0 auto; }

/* === Stories === */
.stories { background: #fffdf7; }
.stories-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 24px;
    margin-bottom: 32px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
}
.story-card {
    background: #fff;
    border: 1px solid rgba(143, 135, 90, 0.16);
    border-radius: 22px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 20px 45px rgba(73, 66, 33, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    flex: 0 0 210px;
    scroll-snap-align: start;
}
.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 52px rgba(73, 66, 33, 0.14);
}
.story-cover-frame {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 18px;
    background: radial-gradient(circle at top, rgba(215, 201, 139, 0.38), rgba(143, 135, 90, 0.08));
}
.story-cover {
    width: 100%;
    max-width: 190px;
    max-height: 190px;
    object-fit: contain;
    border-radius: 18px;
}
.story-card h3 { font-size: 1rem; font-weight: 700; color: #494221; }
.stories-note { text-align: center; font-size: 0.95rem; opacity: 0.7; font-style: italic; }

/* === Download === */
.download {
    background: linear-gradient(135deg, #494221 0%, #6b5f35 100%);
    color: #fff;
    text-align: center;
}
.download-content { max-width: 500px; }
.download-logo { width: 100px; margin: 0 auto 24px; filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0,0,0,0.3)); }
.download h2 { font-size: 2rem; margin-bottom: 10px; }
.download p { opacity: 0.8; margin-bottom: 28px; }
.google-play-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 40px;
    background: #fff; color: #494221;
    border-radius: 50px;
    font-weight: 700; font-size: 1.1rem;
    transition: transform 0.2s, box-shadow 0.3s;
}
.google-play-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.apk-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 32px;
    border: 2px solid rgba(255,255,255,0.4);
    color: #fff;
    border-radius: 50px;
    font-weight: 600; font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
}
.apk-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.7); }

/* === Footer === */
.footer { background: #3a3519; color: rgba(255,255,255,0.7); padding: 32px 0; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { transition: color 0.2s; }
.footer-links a:hover { color: #fff; }

/* === Shared Pages === */
.page-body {
    min-height: 100vh;
    background: #fffdf7;
}
.page-main {
    padding-top: 72px;
}
.page-hero {
    position: relative;
    overflow: hidden;
    padding: 112px 0 72px;
    background: linear-gradient(135deg, #f5f0e1 0%, #ebe0c4 52%, #d7c796 100%);
}
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(255, 255, 255, 0.45), transparent 40%);
}
.page-hero .container {
    position: relative;
    z-index: 1;
}
.page-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: #6b5f35;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.page-title {
    max-width: 900px;
    font-size: 3rem;
    line-height: 1.08;
    font-weight: 800;
    margin-bottom: 18px;
}
.page-subtitle {
    max-width: 760px;
    font-size: 1.1rem;
    opacity: 0.84;
}
.page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}
.btn-outline {
    display: inline-block;
    padding: 14px 36px;
    border-radius: 50px;
    border: 2px solid rgba(73, 66, 33, 0.18);
    color: #494221;
    font-weight: 700;
    transition: background 0.3s, border-color 0.3s, transform 0.2s;
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.45);
    border-color: rgba(73, 66, 33, 0.3);
    transform: translateY(-2px);
}
.page-section {
    padding: 76px 0;
}
.page-section-soft {
    background: #f5f0e1;
}
.section-intro {
    max-width: 740px;
    margin: 0 auto 38px;
    text-align: center;
    opacity: 0.82;
}
.page-grid {
    display: grid;
    gap: 24px;
}
.page-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

    .stories-grid {
        gap: 18px;
    }

    .story-card {
        flex-basis: min(220px, 78vw);
    }
.page-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.page-card {
    padding: 30px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(73, 66, 33, 0.08);
    border-radius: 24px;
    box-shadow: 0 18px 44px rgba(73, 66, 33, 0.08);
}
.page-card h3 {
    margin-bottom: 12px;
    font-size: 1.2rem;
    font-weight: 800;
}
.page-card p {
    opacity: 0.82;
}
.stat-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
.stat-pill {
    padding: 22px 18px;
    border-radius: 20px;
    text-align: center;
    background: linear-gradient(135deg, #fff 0%, #f8f3e6 100%);
    border: 1px solid rgba(73, 66, 33, 0.08);
}
.stat-pill strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: 800;
}
.story-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 22px;
}
.story-list-card {
    padding: 28px 24px;
    background: #fff;
    border-radius: 22px;
    border: 1px solid rgba(73, 66, 33, 0.08);
    box-shadow: 0 14px 32px rgba(73, 66, 33, 0.07);
}
.story-list-emoji {
    display: inline-block;
    margin-bottom: 14px;
    font-size: 2rem;
}
.story-list-card h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    font-weight: 800;
}
.story-list-card p {
    opacity: 0.82;
    font-size: 0.96rem;
}
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.tag {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(143, 135, 90, 0.12);
    border: 1px solid rgba(143, 135, 90, 0.22);
    font-weight: 700;
}
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: 28px;
    align-items: start;
}
.contact-form {
    padding: 32px;
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(73, 66, 33, 0.08);
    box-shadow: 0 18px 44px rgba(73, 66, 33, 0.08);
}
.field {
    margin-bottom: 18px;
}
.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(73, 66, 33, 0.12);
    background: #fffdf7;
    color: #494221;
    font: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: #8F875A;
    box-shadow: 0 0 0 4px rgba(143, 135, 90, 0.14);
}
.field textarea {
    min-height: 180px;
    resize: vertical;
}
.form-note {
    margin-top: 12px;
    font-size: 0.92rem;
    opacity: 0.76;
}
.form-status {
    min-height: 24px;
    margin-top: 14px;
    font-weight: 700;
}
.form-status[data-state='error'] {
    color: #b42318;
}
.form-status[data-state='success'] {
    color: #496a38;
}
.detail-list {
    list-style: none;
    display: grid;
    gap: 14px;
}
.detail-list li {
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(73, 66, 33, 0.08);
}
.detail-list span {
    display: block;
    margin-bottom: 6px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.55;
}
.inline-link {
    color: #8F875A;
    font-weight: 700;
}
.inline-link:hover,
.nav-links a.is-current,
.footer-links a.is-current {
    color: #8F875A;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .page-grid-3,
    .contact-layout {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    .hero-sub { font-size: 1.05rem; }
    .hero-logo { width: 120px; }
    .section { padding: 64px 0; }
    .section-title { font-size: 1.7rem; margin-bottom: 40px; }
    .nav-links { gap: 16px; font-size: 0.9rem; }
    .footer-content { flex-direction: column; text-align: center; }
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .page-main { padding-top: 64px; }
    .page-hero { padding: 96px 0 56px; }
    .page-title { font-size: 2.15rem; }
    .page-subtitle { font-size: 1rem; }
    .page-grid-2,
    .page-grid-3,
    .stat-strip,
    .story-list { grid-template-columns: 1fr; }
    .page-card,
    .contact-form { padding: 24px; }
    .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
    .nav-links li:not(:last-child) { display: none; }
    .hero h1 { font-size: 1.8rem; }
    .steps { gap: 32px; }
}
