/* ==========================================================================
   Zest Landing Page — landing.css
   Brand: #F7D94C (Lemon), #2B2B2B (Charcoal), #4A4F55 (Graphite),
          #FAFAF7 (Off-white), #7CB518 (Leaf Green), #3E5773 (Slate Blue)
   Font:  Inter
   ========================================================================== */

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

:root {
    --zest-lemon: #F7D94C;
    --zest-lemon-dark: #E5C83A;
    --zest-lemon-light: #FBE98A;
    --zest-lemon-glow: rgba(247, 217, 76, 0.25);
    --zest-charcoal: #2B2B2B;
    --zest-graphite: #4A4F55;
    --zest-off-white: #FAFAF7;
    --zest-leaf: #7CB518;
    --zest-slate: #3E5773;
    --zest-white: #FFFFFF;
    --zest-border: #E8E8E4;
    --zest-muted: #9CA3AF;

    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-card: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-elevated: 0 4px 24px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    color: var(--zest-charcoal);
    background: var(--zest-off-white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

/* --- Typography ---------------------------------------------------------- */
h1, h2, h3, h4 {
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p {
    color: var(--zest-graphite);
    font-size: 1.0625rem;
    line-height: 1.7;
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--zest-slate);
    background: rgba(62, 87, 115, 0.08);
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

/* --- Layout -------------------------------------------------------------- */
.zest-container {
    width: 100%;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 24px;
}

.zest-section {
    padding: 100px 0;
}

/* --- Buttons ------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    padding: 14px 32px;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--zest-lemon);
    color: var(--zest-charcoal);
    box-shadow: 0 2px 8px var(--zest-lemon-glow);
}
.btn-primary:hover {
    background: var(--zest-lemon-dark);
    box-shadow: 0 4px 20px var(--zest-lemon-glow);
    transform: translateY(-2px);
}

.btn-secondary {
    background: var(--zest-white);
    color: var(--zest-charcoal);
    border: 1.5px solid var(--zest-border);
}
.btn-secondary:hover {
    border-color: var(--zest-lemon);
    background: rgba(247, 217, 76, 0.06);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--zest-charcoal);
    padding: 14px 20px;
}
.btn-ghost:hover {
    color: var(--zest-slate);
}

.btn-large {
    padding: 18px 40px;
    font-size: 1.0625rem;
    border-radius: var(--radius-lg);
}

.btn svg,
.btn .btn-arrow {
    transition: transform var(--transition);
}
.btn:hover svg,
.btn:hover .btn-arrow {
    transform: translateX(3px);
}

/* --- Navigation ---------------------------------------------------------- */
.zest-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--transition);
    padding: 0 24px;
}

.zest-nav.scrolled {
    border-bottom-color: var(--zest-border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.zest-nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.zest-nav-logo img {
    height: 42px;
    width: auto;
}

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

.nav-login {
    font-weight: 500;
    font-size: 0.9375rem;
    color: var(--zest-graphite);
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-login:hover {
    color: var(--zest-charcoal);
    background: rgba(0, 0, 0, 0.04);
}

.nav-cta {
    font-size: 0.9375rem;
    padding: 10px 24px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--zest-charcoal);
    margin: 5px 0;
    border-radius: 2px;
    transition: all var(--transition);
}

/* --- Hero ---------------------------------------------------------------- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    background: var(--zest-off-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--zest-lemon-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--zest-white);
    border: 1px solid var(--zest-border);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--zest-graphite);
    margin-bottom: 28px;
    box-shadow: var(--shadow-card);
}

.hero-badge-dot {
    width: 8px;
    height: 8px;
    background: var(--zest-leaf);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.3); }
}

.hero h1 {
    margin-bottom: 24px;
    color: var(--zest-charcoal);
}

.hero h1 .highlight {
    color: var(--zest-charcoal);
    position: relative;
    display: inline-block;
}

.hero h1 .highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: -4px;
    right: -4px;
    height: 14px;
    background: var(--zest-lemon);
    opacity: 0.4;
    border-radius: 4px;
    z-index: -1;
}

.hero-sub {
    font-size: 1.1875rem;
    color: var(--zest-graphite);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

.hero-proof {
    margin-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    font-size: 0.875rem;
    color: var(--zest-muted);
}

.hero-proof-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-proof-icon {
    color: var(--zest-leaf);
}

/* --- Pain Section -------------------------------------------------------- */
.pain-section {
    background: var(--zest-white);
}

.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.pain-text h2 {
    margin-bottom: 20px;
}

.pain-text > p {
    margin-bottom: 32px;
    font-size: 1.0625rem;
}

.pain-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pain-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pain-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    background: #FEF3F2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.pain-item-text h4 {
    margin-bottom: 4px;
    color: var(--zest-charcoal);
}

.pain-item-text p {
    font-size: 0.9375rem;
    color: var(--zest-graphite);
    line-height: 1.6;
}

.pain-visual {
    position: relative;
}

.pain-card {
    background: var(--zest-off-white);
    border: 1px solid var(--zest-border);
    border-radius: var(--radius-xl);
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.pain-card-stat {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.stat-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--zest-white);
    border-radius: var(--radius);
    border: 1px solid var(--zest-border);
}

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

.stat-label {
    font-size: 0.875rem;
    color: var(--zest-graphite);
}

.stat-value {
    margin-left: auto;
    font-weight: 700;
    font-size: 1.25rem;
    color: #DC2626;
}

.stat-value.positive {
    color: var(--zest-leaf);
}

/* --- Solution Section ---------------------------------------------------- */
.solution-section {
    background: var(--zest-off-white);
    position: relative;
}

.solution-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.solution-header h2 {
    margin-bottom: 16px;
}

.solution-header p {
    font-size: 1.0625rem;
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.solution-card {
    background: var(--zest-white);
    border: 1px solid var(--zest-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.solution-card:hover {
    border-color: var(--zest-lemon);
    box-shadow: var(--shadow-elevated);
    transform: translateY(-4px);
}

.solution-card-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.solution-card-icon.icon-invoice { background: rgba(247, 217, 76, 0.15); }
.solution-card-icon.icon-order { background: rgba(124, 181, 24, 0.12); }
.solution-card-icon.icon-alert { background: rgba(62, 87, 115, 0.1); }
.solution-card-icon.icon-price { background: rgba(247, 217, 76, 0.15); }

.solution-card h3 {
    margin-bottom: 10px;
    color: var(--zest-charcoal);
}

.solution-card p {
    font-size: 0.9375rem;
    line-height: 1.65;
}

.solution-card-tag {
    display: inline-block;
    margin-top: 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--zest-slate);
    background: rgba(62, 87, 115, 0.06);
    padding: 4px 12px;
    border-radius: 100px;
}

/* --- How It Works -------------------------------------------------------- */
.how-section {
    background: var(--zest-charcoal);
    color: var(--zest-white);
}

.how-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 64px;
}

.how-header .section-label {
    background: rgba(247, 217, 76, 0.15);
    color: var(--zest-lemon);
}

.how-header h2 {
    color: var(--zest-white);
    margin-bottom: 16px;
}

.how-header p {
    color: rgba(255, 255, 255, 0.6);
}

.how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

/* Connecting line between steps */
.how-steps::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.66% + 40px);
    right: calc(16.66% + 40px);
    height: 2px;
    background: linear-gradient(90deg, var(--zest-lemon) 0%, rgba(247, 217, 76, 0.3) 100%);
}

.how-step {
    text-align: center;
    position: relative;
}

.how-step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(247, 217, 76, 0.1);
    border: 2px solid var(--zest-lemon);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
}

.how-step-number span {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--zest-lemon);
}

.how-step h3 {
    color: var(--zest-white);
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.how-step p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.9375rem;
    max-width: 280px;
    margin: 0 auto;
}

/* --- Testimonials / Social Proof ----------------------------------------- */
.social-section {
    background: var(--zest-white);
}

.social-header {
    text-align: center;
    max-width: 560px;
    margin: 0 auto 56px;
}

.social-header h2 {
    margin-bottom: 16px;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--zest-off-white);
    border: 1px solid var(--zest-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-elevated);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: var(--zest-lemon);
    font-size: 1.125rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--zest-graphite);
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--zest-lemon);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--zest-charcoal);
}

.testimonial-info strong {
    display: block;
    font-size: 0.9375rem;
    color: var(--zest-charcoal);
}

.testimonial-info span {
    font-size: 0.8125rem;
    color: var(--zest-muted);
}

/* --- Final CTA Section --------------------------------------------------- */
.cta-section {
    background: var(--zest-off-white);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, var(--zest-lemon-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card {
    background: var(--zest-white);
    border: 1px solid var(--zest-border);
    border-radius: var(--radius-xl);
    padding: 72px 48px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    box-shadow: var(--shadow-elevated);
}

.cta-card h2 {
    margin-bottom: 16px;
}

.cta-card > p {
    max-width: 480px;
    margin: 0 auto 36px;
}

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

.cta-note {
    margin-top: 20px;
    font-size: 0.8125rem;
    color: var(--zest-muted);
}

/* --- Footer -------------------------------------------------------------- */
.zest-footer {
    background: var(--zest-charcoal);
    color: rgba(255, 255, 255, 0.6);
    padding: 48px 0;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-logo img {
    height: 36px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
}

.footer-copy {
    font-size: 0.8125rem;
}

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

.footer-links a {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--transition);
}

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

/* --- Animations ---------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* --- Responsive ---------------------------------------------------------- */
@media (max-width: 1024px) {
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .zest-section {
        padding: 72px 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 60px;
    }

    .zest-nav-actions .nav-login,
    .zest-nav-actions .nav-cta {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    /* Mobile menu */
    .zest-nav-actions.open {
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--zest-white);
        border-bottom: 1px solid var(--zest-border);
        box-shadow: var(--shadow-elevated);
        flex-direction: column;
        padding: 24px;
        gap: 12px;
    }

    .zest-nav-actions.open .nav-login,
    .zest-nav-actions.open .nav-cta {
        display: flex;
        width: 100%;
        justify-content: center;
    }

    .pain-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .pain-visual {
        order: -1;
    }

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

    .how-steps {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .how-steps::before {
        display: none;
    }

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

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
        max-width: 320px;
    }

    .hero-proof {
        flex-direction: column;
        gap: 12px;
    }

    .cta-card {
        padding: 48px 24px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.625rem; }

    .zest-container {
        padding: 0 16px;
    }

    .solution-card {
        padding: 28px;
    }
}
