*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --brand:       #22c55e;
    --brand-600:   #16a34a;
    --brand-700:   #15803d;
    --brand-50:    #f0fdf4;
    --brand-100:   #dcfce7;
    --brand-200:   #bbf7d0;
    --dark:        #060a14;
    --dark-card:   #0d1424;
    --dark-border: #1e293b;
    --text:        #0f172a;
    --text-muted:  #64748b;
    --text-light:  #94a3b8;
    --white:       #ffffff;
    --gray-50:     #f8fafc;
    --gray-100:    #f1f5f9;
    --gray-200:    #e2e8f0;
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    background: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ─── NAVBAR ─── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: 1rem 1.5rem;
    transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.nav.scrolled {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(0,0,0,.07);
}
.nav-inner {
    max-width: 1100px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.nav-logo {
    display: flex; align-items: center; gap: .5rem;
    font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
    color: var(--brand-700); text-decoration: none;
}
.logo-ia {
    color: var(--brand);
    font-weight: 900;
}
.nav-logo svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: .125rem; list-style: none; }
.nav-links a {
    font-size: .875rem; font-weight: 500; padding: .5rem .875rem;
    border-radius: .5rem; text-decoration: none; transition: color .2s, background .2s;
    color: rgba(255,255,255,.72);
}
.nav.scrolled .nav-links a { color: var(--text-muted); }
.nav-links a:hover { color: var(--white); background: rgba(255,255,255,.1); }
.nav.scrolled .nav-links a:hover { color: var(--text); background: var(--gray-100); }
.nav-actions { display: flex; gap: .5rem; align-items: center; }
.btn-ghost-sm {
    font-size: .875rem; font-weight: 500; padding: .5rem 1rem;
    border-radius: .625rem; text-decoration: none; transition: all .2s;
    color: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.18);
}
.nav.scrolled .btn-ghost-sm { color: var(--text-muted); border-color: var(--gray-200); }
.btn-ghost-sm:hover { background: rgba(255,255,255,.1); }
.nav.scrolled .btn-ghost-sm:hover { background: var(--gray-100); }
.btn-primary-sm {
    font-size: .875rem; font-weight: 600; padding: .5rem 1.125rem;
    border-radius: .625rem; text-decoration: none; transition: all .2s;
    color: var(--white); background: var(--brand);
    box-shadow: 0 1px 3px rgba(34,197,94,.3);
}
.btn-primary-sm:hover {
    background: var(--brand-600); transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34,197,94,.35);
}

/* ─── HERO ─── */
.hero {
    min-height: 100vh; background: var(--dark);
    display: flex; align-items: center;
    padding: 7rem 1.5rem 6rem; position: relative; overflow: hidden;
}
.hero::before {
    content: ''; position: absolute; top: -15%; left: 50%;
    transform: translateX(-50%); width: 900px; height: 900px;
    background: radial-gradient(circle, rgba(34,197,94,.11) 0%, transparent 68%);
    pointer-events: none;
}
.hero::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 100px;
    background: linear-gradient(to bottom, transparent, var(--white));
    pointer-events: none;
}
.hero-inner {
    max-width: 1100px; margin: 0 auto; position: relative; z-index: 1;
    display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 4.5rem;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: .45rem;
    background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.22);
    color: var(--brand); font-size: .72rem; font-weight: 600;
    letter-spacing: .05em; text-transform: uppercase;
    padding: .35rem .875rem; border-radius: 2rem; margin-bottom: 1.625rem;
}
.hero-title {
    font-size: clamp(2.6rem, 5vw, 4.25rem); font-weight: 700;
    letter-spacing: -.03em; line-height: 1.05; color: var(--white); margin-bottom: 1.5rem;
}
.hero-title span {
    background: linear-gradient(130deg, var(--brand), #4ade80);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-sub {
    font-size: 1.1rem; line-height: 1.72; color: rgba(255,255,255,.52);
    margin-bottom: 2.5rem; max-width: 430px;
}
.hero-actions { display: flex; gap: .875rem; align-items: center; flex-wrap: wrap; }
.btn-hero {
    display: inline-flex; align-items: center; gap: .375rem;
    background: var(--brand); color: var(--white); font-size: 1rem; font-weight: 600;
    padding: .875rem 1.875rem; border-radius: .875rem; text-decoration: none;
    transition: all .2s; box-shadow: 0 4px 20px rgba(34,197,94,.35);
}
.btn-hero:hover { background: var(--brand-600); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(34,197,94,.42); }
.btn-hero-ghost {
    font-size: 1rem; font-weight: 500; color: rgba(255,255,255,.6);
    text-decoration: none; padding: .875rem 1.125rem; transition: color .2s;
}
.btn-hero-ghost:hover { color: var(--white); }

/* ─── BROWSER FRAME ─── */
.browser-frame {
    background: #1a2035; border-radius: 14px; overflow: hidden;
    box-shadow: 0 40px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
    animation: floatY 4.5s ease-in-out infinite;
}
@keyframes floatY {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}
.browser-bar {
    background: #0d1424; padding: .7rem 1rem;
    display: flex; align-items: center; gap: .875rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.bdots { display: flex; gap: 6px; }
.bdot { width: 10px; height: 10px; border-radius: 50%; }
.bdot.r { background: #ff5f57; } .bdot.y { background: #febc2e; } .bdot.g { background: #28c840; }
.burl {
    flex: 1; background: rgba(255,255,255,.06); border-radius: 5px;
    padding: .28rem .7rem; font-size: .68rem; color: rgba(255,255,255,.3); font-family: monospace;
}
.bcontent { background: #f8fafc; font-size: .65rem; }

/* mini app inside browser */
.mnav {
    background: #fff; border-bottom: 1px solid #f1f5f9;
    padding: .475rem .875rem; display: flex; align-items: center; justify-content: space-between;
}
.mlogo { display: flex; align-items: center; gap: .3rem; color: #16a34a; font-weight: 700; font-size: .72rem; }
.mlinks { display: flex; gap: .2rem; }
.mlink { padding: .18rem .38rem; border-radius: .3rem; font-size: .58rem; color: #94a3b8; font-weight: 500; }
.mlink.active { background: #f0fdf4; color: #16a34a; }
.mcontent { padding: .875rem; }

/* macro bar */
.mbar-wrap { margin-bottom: .55rem; }
.mbar-head { display: flex; justify-content: space-between; font-size: .68rem; color: #64748b; margin-bottom: .22rem; font-weight: 500; }
.mbar-bg { height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; }
.mbar-fill { height: 100%; border-radius: 3px; }

/* food entry */
.fentry { display: flex; align-items: center; gap: .575rem; padding: .55rem 0; border-bottom: 1px solid #f8fafc; }
.fentry:last-child { border-bottom: none; }
.ficon { width: 30px; height: 30px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: .8rem; flex-shrink: 0; }
.finfo { flex: 1; min-width: 0; }
.fname { font-size: .67rem; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fmeta { font-size: .58rem; color: #94a3b8; margin-top: 1px; }
.fkcal { font-size: .67rem; font-weight: 700; color: #16a34a; white-space: nowrap; }

/* ─── TRUST STRIP ─── */
.trust { background: var(--white); padding: 3.25rem 1.5rem; border-bottom: 1px solid var(--gray-100); }
.trust-inner { max-width: 840px; margin: 0 auto; display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; text-align: center; }
.tn { font-size: 2.4rem; font-weight: 700; letter-spacing: -.03em; color: var(--brand-600); line-height: 1; margin-bottom: .5rem; }
.tl { font-size: .875rem; color: var(--text-muted); font-weight: 500; }

/* ─── SECTIONS ─── */
.section { padding: 6rem 1.5rem; }
.section-dark { background: var(--dark); }
.section-alt { background: var(--gray-50); }
.s-inner { max-width: 1100px; margin: 0 auto; }
.s-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.s-grid.rev { direction: rtl; } .s-grid.rev > * { direction: ltr; }
.s-label {
    display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; font-weight: 600;
    letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .875rem;
}
.s-title {
    font-size: clamp(1.875rem, 3.2vw, 2.75rem); font-weight: 700;
    letter-spacing: -.025em; line-height: 1.1; margin-bottom: 1.25rem;
}
.section-dark .s-title { color: var(--white); }
.s-body { font-size: 1rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 1.75rem; }
.section-dark .s-body { color: rgba(255,255,255,.5); }
.flist { list-style: none; display: flex; flex-direction: column; gap: .7rem; }
.flist li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9375rem; color: var(--text-muted); }
.section-dark .flist li { color: rgba(255,255,255,.55); }
.flist li::before {
    content: ''; display: inline-block; width: 18px; height: 18px; min-width: 18px;
    background: var(--brand-50); border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: center; background-size: 10px; margin-top: 2px;
}
.section-dark .flist li::before { background-color: rgba(34,197,94,.12); }

/* section header (centered) */
.s-header { text-align: center; max-width: 620px; margin: 0 auto 4rem; }

/* ─── HOW IT WORKS ─── */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; margin-top: 3rem; }
.step { text-align: center; position: relative; }
.step-icon {
    width: 60px; height: 60px; background: rgba(34,197,94,.08);
    border: 1px solid rgba(34,197,94,.15); border-radius: 16px;
    margin: 0 auto 1.25rem; display: flex; align-items: center; justify-content: center;
}
.step-icon svg { width: 26px; height: 26px; stroke: var(--brand); }
.step-t { font-size: 1.1rem; font-weight: 700; color: var(--white); margin-bottom: .6rem; letter-spacing: -.02em; }
.step-b { font-size: .9375rem; line-height: 1.65; color: rgba(255,255,255,.48); }
.step-connector {
    position: absolute; top: 30px; right: -1.25rem;
    width: 2.5rem; height: 2px;
    background: linear-gradient(to right, rgba(34,197,94,.25), transparent);
}

/* ─── CTA ─── */
.cta-section {
    background: linear-gradient(145deg, #052e16, #064e3b, #022c22);
    padding: 8rem 1.5rem; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; top: 50%; left: 50%;
    transform: translate(-50%,-50%); width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(34,197,94,.14) 0%, transparent 65%);
    pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 660px; margin: 0 auto; }
.cta-title {
    font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; letter-spacing: -.03em;
    line-height: 1.06; color: var(--white); margin-bottom: 1.25rem;
}
.cta-sub { font-size: 1.1rem; color: rgba(255,255,255,.5); margin-bottom: 2.5rem; max-width: 460px; margin-left: auto; margin-right: auto; line-height: 1.7; }
.btn-cta {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--brand); color: var(--white); font-size: 1.0625rem; font-weight: 600;
    padding: 1rem 2.25rem; border-radius: 1rem; text-decoration: none; transition: all .2s;
    box-shadow: 0 4px 24px rgba(34,197,94,.4);
}
.btn-cta:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(34,197,94,.5); background: var(--brand-600); }

/* ─── FOOTER ─── */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,.06); padding: 2.75rem 1.5rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.flogo { display: flex; align-items: center; gap: .45rem; color: rgba(255,255,255,.55); font-weight: 700; font-size: .875rem; text-decoration: none; }
.flogo-ia { color: rgba(255,255,255,.9); font-weight: 900; }
.flinks { display: flex; gap: 1.75rem; }
.flinks a { font-size: .78rem; color: rgba(255,255,255,.32); text-decoration: none; transition: color .2s; }
.flinks a:hover { color: rgba(255,255,255,.68); }
.fcopy { font-size: .72rem; color: rgba(255,255,255,.22); }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.from-left  { transform: translateX(-38px); }
.reveal.from-right { transform: translateX(38px); }
.reveal.visible    { opacity: 1; transform: translate(0); }
.d1 { transition-delay: .1s; } .d2 { transition-delay: .2s; } .d3 { transition-delay: .3s; } .d4 { transition-delay: .4s; }

/* ─── UTILITY CARDS ─── */
.card {
    background: var(--white); border: 1px solid var(--gray-200); border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,.07);
}
.nrow { display: flex; align-items: center; justify-content: space-between; padding: .38rem 0; border-bottom: 1px solid #f8fafc; font-size: .75rem; }
.nrow:last-child { border-bottom: none; }
.nbadge { font-size: .6rem; font-weight: 600; padding: .15rem .4rem; border-radius: .25rem; }
.bg { background: #f0fdf4; color: #16a34a; } .bb { background: #eff6ff; color: #2563eb; } .bo { background: #fff7ed; color: #ea580c; }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 3rem; text-align: center; }
    .hero-sub { margin-left: auto; margin-right: auto; }
    .hero-actions { justify-content: center; }
    .s-grid { grid-template-columns: 1fr; gap: 3rem; }
    .s-grid.rev { direction: ltr; }
    .steps { grid-template-columns: 1fr; gap: 2rem; }
    .trust-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .nav-links { display: none; }
    .step-connector { display: none; }
}
@media (max-width: 600px) {
    .footer-inner { flex-direction: column; text-align: center; }
    .flinks { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}
