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

:root {
    --hay:        #C8A84B;
    --hay-dark:   #8B6F2E;
    --hay-light:  #F0E0A0;
    --hay-bg:     rgba(200, 168, 75, 0.10);
    --earth:      #3D2B1A;
    --earth-soft: #5C3D22;
    --green:      #4A7C59;
    --bg:         #F7F2EA;
    --bg-warm:    #EFE8DC;
    --bg-card:    #FFFFFF;
    --border:     #DDD0BB;
    --text:       #2A1F14;
    --text-soft:  #7A6555;
    --radius:     12px;
    --shadow:     0 4px 24px rgba(61,43,26,0.08);
    --shadow-lg:  0 12px 48px rgba(61,43,26,0.12);
}

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Nav ─────────────────────────────────────────── */
.nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(247,242,234,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 5%;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px;
}

.nav-logo {
    display: flex; align-items: center; gap: 10px;
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--earth);
}

.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-ghost-nav {
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-soft);
    transition: background 0.15s, color 0.15s;
}
.btn-ghost-nav:hover { background: var(--bg-warm); color: var(--text); }

.btn-hay {
    padding: 8px 20px;
    border-radius: 8px;
    background: var(--hay);
    color: var(--earth);
    font-size: 0.88rem;
    font-weight: 600;
    transition: background 0.15s, box-shadow 0.15s;
}
.btn-hay:hover { background: var(--hay-dark); color: var(--hay-light); box-shadow: 0 4px 14px rgba(200,168,75,0.35); }

/* ── Buttons ─────────────────────────────────────── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--earth);
    color: var(--hay-light);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    border: none; cursor: pointer;
}
.btn-primary:hover {
    background: var(--earth-soft);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(61,43,26,0.22);
}

.btn-outline {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--earth);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.btn-outline:hover { border-color: var(--hay); background: var(--hay-bg); }

/* ── Section helpers ─────────────────────────────── */
.section { padding: 96px 5%; }
.container { max-width: 1100px; margin: 0 auto; }

.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--hay-bg);
    border: 1px solid rgba(200,168,75,0.3);
    color: var(--hay-dark);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 20px;
    margin-bottom: 16px;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: var(--earth);
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.05rem;
    color: var(--text-soft);
    max-width: 560px;
    line-height: 1.7;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
    padding: 80px 5% 96px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--hay-bg);
    border: 1px solid rgba(200,168,75,0.35);
    color: var(--hay-dark);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    color: var(--earth);
    line-height: 1.15;
    margin-bottom: 20px;
}
.hero-title span { color: var(--hay-dark); }

.hero-sub {
    font-size: 1.1rem;
    color: var(--text-soft);
    line-height: 1.75;
    margin-bottom: 36px;
    max-width: 480px;
}

.hero-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.hero-trust {
    margin-top: 22px;
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.trust-item {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 0.78rem;
    color: var(--text-soft);
}
.trust-item svg { color: var(--green); flex-shrink: 0; }
.trust-sep { color: var(--border); font-size: 1rem; line-height: 1; }

/* ── App Mockup ──────────────────────────────────── */
.mockup-wrap { position: relative; }

.mockup-shadow {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg), 0 0 0 6px rgba(200,168,75,0.08);
    overflow: hidden;
}

.mockup-bar {
    background: var(--earth);
    padding: 10px 16px;
    display: flex; align-items: center; gap: 12px;
}

.mockup-dots { display: flex; align-items: center; gap: 6px; }

.mockup-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}
.mockup-dot:nth-child(1) { background: #e05d5d; }
.mockup-dot:nth-child(2) { background: #e0b85d; }
.mockup-dot:nth-child(3) { background: #5db867; }

.mockup-url {
    flex: 1; text-align: center;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.45);
    font-family: monospace;
}

.mockup-body { display: flex; height: 300px; }

.mockup-sidebar {
    width: 140px;
    background: var(--bg-warm);
    border-right: 1px solid var(--border);
    padding: 14px 10px;
    flex-shrink: 0;
}

.mockup-sidebar-title {
    font-size: 0.6rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-soft);
    padding: 0 6px;
    margin-bottom: 6px;
}

.mockup-nav-item {
    display: flex; align-items: center; gap: 7px;
    padding: 7px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-soft);
    margin-bottom: 2px;
}
.mockup-nav-item svg { flex-shrink: 0; opacity: 0.55; }
.mockup-nav-item.active {
    background: var(--hay-bg);
    color: var(--earth);
    font-weight: 600;
}
.mockup-nav-item.active svg { opacity: 1; }

.mockup-main { flex: 1; padding: 16px; overflow: hidden; }

.mockup-greeting {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-soft);
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.mockup-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.mockup-stat {
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}
.mockup-stat-val   { font-size: 1.1rem; font-weight: 700; color: var(--earth); display: block; }
.mockup-stat-label { font-size: 0.6rem; color: var(--text-soft); display: block; margin-top: 1px; }

.mockup-table { width: 100%; }
.mockup-row {
    display: flex; gap: 6px;
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
    font-size: 0.65rem;
    color: var(--text-soft);
}
.mockup-row .col1 { width: 90px; font-weight: 500; color: var(--text); }
.mockup-row .col2 { flex: 1; }
.mockup-badge {
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 0.58rem;
    font-weight: 600;
}
.badge-green { background: rgba(74,124,89,0.15); color: var(--green); }
.badge-hay   { background: var(--hay-bg); color: var(--hay-dark); }

/* ── Mockup Float Card ───────────────────────────── */
.mockup-float {
    position: absolute;
    bottom: -24px; right: -24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    box-shadow: var(--shadow);
    min-width: 186px;
}
.mockup-float-header {
    display: flex; align-items: center; gap: 5px;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-soft);
    margin-bottom: 5px;
}
.mockup-float-val {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--earth);
    line-height: 1.1;
}
.mockup-float-bar {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin: 8px 0 5px;
    overflow: hidden;
}
.mockup-float-progress {
    height: 100%;
    background: var(--green);
    border-radius: 2px;
}
.mockup-float-sub {
    font-size: 0.62rem;
    color: var(--text-soft);
}

/* ── Features ────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 28px;
    transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    border-color: var(--hay);
}

.feature-icon {
    width: 48px; height: 48px;
    background: var(--hay-bg);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(200,168,75,0.25);
    color: var(--earth);
}

.feature-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: var(--earth);
    margin-bottom: 10px;
}

.feature-text { font-size: 0.9rem; color: var(--text-soft); line-height: 1.65; }

.feature-list {
    list-style: none;
    margin-top: 14px;
    display: flex; flex-direction: column; gap: 6px;
}
.feature-list li {
    font-size: 0.82rem;
    color: var(--text-soft);
    display: flex; align-items: center; gap: 8px;
}
.feature-list li::before {
    content: '';
    width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234A7C59' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── Steps ───────────────────────────────────────── */
.steps-bg { background: var(--bg-warm); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 54px;
    left: 18%;
    right: 18%;
    height: 1px;
    background: var(--border);
    z-index: 0;
}

.step {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 52px; height: 52px;
    background: var(--earth);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Serif Display', serif;
    font-size: 1.25rem;
    color: var(--hay-light);
    margin: 0 auto 18px;
    border: 2px solid var(--hay);
    position: relative;
    z-index: 2;
}

.step-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: var(--earth);
    margin-bottom: 8px;
}

.step-text { font-size: 0.87rem; color: var(--text-soft); line-height: 1.6; }

/* ── CTA Banner ──────────────────────────────────── */
.cta-banner {
    background: var(--earth);
    padding: 80px 5%;
    text-align: center;
}

.cta-banner .section-title { color: var(--hay-light); }
.cta-banner .section-sub   { color: rgba(240,224,160,0.65); margin: 0 auto 36px; }

.cta-actions { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-primary-light {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: var(--hay);
    color: var(--earth);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.15s, transform 0.15s;
    border: none; cursor: pointer;
}
.btn-primary-light:hover { background: var(--hay-light); transform: translateY(-1px); }

.btn-outline-light {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--hay-light);
    border: 1.5px solid rgba(240,224,160,0.35);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 500;
    transition: border-color 0.15s, background 0.15s;
    cursor: pointer;
}
.btn-outline-light:hover { border-color: var(--hay-light); background: rgba(255,255,255,0.06); }

/* ── Footer ──────────────────────────────────────── */
.footer {
    background: var(--earth);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 28px 5%;
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    color: var(--hay-light);
}

.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
    font-size: 0.82rem;
    color: rgba(240,224,160,0.55);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--hay-light); }

.footer-copy { font-size: 0.78rem; color: rgba(240,224,160,0.4); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
    .hero { grid-template-columns: 1fr; gap: 48px; padding: 48px 5% 64px; }
    .hero-visual { order: -1; }
    .features-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; gap: 16px; }
    .steps-grid::before { display: none; }
    .mockup-float { display: none; }
}

@media (max-width: 600px) {
    .section { padding: 56px 5%; }
    .nav { padding: 0 4%; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .hero-trust { gap: 6px; }
    .trust-sep { display: none; }
    .trust-item { width: 100%; }
    .footer { flex-direction: column; text-align: center; }
    .footer-links { justify-content: center; }
    .cta-actions { flex-direction: column; }
}
