/* SaveBite – Landing Page (light cream theme, reference-inspired) */

/* ── Wrapper ── */
#landing-page {
    background: #FAF9F6;
    color: #0E0E10;
    font-family: 'Hanken Grotesk', 'Inter', sans-serif;
    overflow-x: hidden;
}

/* ── Text gradient override (green-to-teal for light bg) ── */
#landing-page .text-gradient {
    background: linear-gradient(100deg, #34A853, #1F9E73);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* ─────────────── HERO ─────────────── */
#landing-page .hero-section {
    background: #FAF9F6;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 90px 32px 100px;
    min-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    position: relative;
    overflow: hidden;
}
#landing-page .hero-section::before { display: none; }

#dots-field {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

#landing-page .hero-content {
    max-width: 1120px;
    width: 100%;
    max-width: 100%;
    position: relative;
    z-index: 2;
}

/* Hero eyebrow tag */
#landing-page .hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid rgba(14,14,16,.12);
    color: #43434a;
    padding: 0.45rem 1.1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(.22,1,.36,1) .1s forwards;
}

/* Hero title */
#landing-page .hero-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(38px, 6.2vw, 82px);
    line-height: 1.04;
    letter-spacing: -0.03em;
    color: #0E0E10;
    margin-bottom: 1.75rem;
    opacity: 0;
    animation: fadeUp .95s cubic-bezier(.22,1,.36,1) .25s forwards;
}

/* Per-line animation wrappers */
.hero-line-mask {
    display: block;
    overflow: hidden;
}
.hero-line-inner {
    display: inline-block;
    transform: translateY(115%);
}
.hero-line-inner.delay-1 { animation: heroMask .95s cubic-bezier(.22,1,.36,1) .15s forwards; }
.hero-line-inner.delay-2 { animation: heroMask .95s cubic-bezier(.22,1,.36,1) .27s forwards; }
.hero-line-inner.delay-3 { animation: heroMask .95s cubic-bezier(.22,1,.36,1) .39s forwards; }

/* Gradient text for landing hero */
.hero-gradient-text {
    background: linear-gradient(100deg, #34A853, #1F9E73);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Hero description */
#landing-page .hero-desc {
    color: #43434a;
    font-size: clamp(16px, 1.7vw, 19px);
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto 2.5rem;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(.22,1,.36,1) .48s forwards;
}

/* Hero CTA buttons */
.hero-cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(.22,1,.36,1) .6s forwards;
}

.btn-hero-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #0E0E10;
    color: #FAF9F6;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.btn-hero-dark:hover {
    box-shadow: 0 8px 24px rgba(14,14,16,.2);
}

.btn-hero-light {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: #0E0E10;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 15px;
    padding: 15px 28px;
    border-radius: 100px;
    border: 1px solid rgba(14,14,16,.12);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s;
}
.btn-hero-light:hover {
    box-shadow: 0 6px 16px rgba(14,14,16,.1);
}

/* Hero stats row */
#landing-page .hero-stats-group {
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp .8s cubic-bezier(.22,1,.36,1) .72s forwards;
}

#landing-page .hero-stat-card {
    background: white;
    border: 1px solid rgba(14,14,16,.07);
    border-radius: 16px;
    color: #0E0E10;
    text-align: left;
    padding: 1rem 1.5rem;
    box-shadow: 0 2px 8px rgba(14,14,16,.04);
}
#landing-page .hero-stat-card:hover {
    border-color: rgba(52,168,83,.3);
    box-shadow: 0 6px 20px rgba(52,168,83,.08);
    transform: translateY(-4px);
}

#landing-page .hero-stat-val {
    color: #34A853;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.7rem;
    font-weight: 700;
}
#landing-page .hero-stat-val.orange { color: #f97316; }
#landing-page .hero-stat-val[style*="--accent"] { color: #3b82f6; }
#landing-page .hero-stat-label { color: #6B6B72; font-size: 0.83rem; }

/* Hero image floating */
#landing-page .hero-image {
    display: none; /* hidden on centered hero layout */
}

/* ─────────────── MARQUEE ─────────────── */
.marquee-section {
    padding: 18px 0 28px;
    border-top: 1px solid rgba(14,14,16,.08);
    border-bottom: 1px solid rgba(14,14,16,.08);
    background: #ebeae7;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-track {
    display: inline-flex;
    gap: 0;
    animation: landingMarquee 28s linear infinite;
    will-change: transform;
}

.marquee-item {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(36px, 5.8vw, 80px);
    letter-spacing: -0.02em;
    display: inline-flex;
    align-items: center;
}

.marquee-word { padding: 0 32px; }
.marquee-outline {
    padding: 0 32px;
    color: transparent;
    -webkit-text-stroke: 1.3px rgba(14,14,16,.32);
}
.marquee-italic { padding: 0 32px; font-style: italic; }
.marquee-accent { padding: 0 32px; color: #6E8BFF; }

/* ─────────────── SERVICES SECTION ─────────────── */
#landing-page .about-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

#landing-page .about-service-card {
    background: white;
    border: 1px solid rgba(14,14,16,.07);
    border-radius: 22px;
    padding: 30px;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    color: #0E0E10;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transition: box-shadow .3s, transform .3s;
}
#landing-page .about-service-card:hover {
    box-shadow: 0 16px 40px rgba(14,14,16,.08);
    transform: translateY(-4px);
    border-color: rgba(14,14,16,.12);
}

#landing-page .about-service-card.dark-card {
    background: #0E0E10;
    color: #FAF9F6;
    border: none;
}
#landing-page .about-service-card.dark-card .about-service-desc { color: rgba(250,249,246,.66); }
#landing-page .about-service-card.dark-card .about-service-title { color: #FAF9F6; }

#landing-page .about-service-icon {
    width: 62px;
    height: 62px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
    box-shadow: none;
}
#landing-page .about-service-icon.primary {
    background: rgba(52,168,83,.12);
    color: #34A853;
}
#landing-page .about-service-icon.secondary {
    background: rgba(249,115,22,.12);
    color: #f97316;
}
#landing-page .about-service-icon.accent {
    background: rgba(110,139,255,.12);
    color: #6E8BFF;
}
#landing-page .about-service-icon i {
    width: 26px;
    height: 26px;
}

/* Icon floating animation */
.icon-float  { animation: floaty  5.5s ease-in-out infinite; }
.icon-floatB { animation: floatyB 6.5s ease-in-out infinite; }

#landing-page .about-service-title {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 1.2;
    margin-bottom: 10px;
    color: inherit;
}
#landing-page .about-service-desc {
    color: #43434a;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

/* ─────────────── VALUES / IMPACT SECTION (dark) ─────────────── */
.values-section {
    padding: 120px 32px;
    background: #0E0E10;
    color: #FAF9F6;
    position: relative;
    overflow: hidden;
}

.values-aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}
.aurora-blob-a {
    position: absolute;
    left: -6%;
    bottom: -20%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle at 50% 50%, rgba(52,168,83,.35) 0%, rgba(52,168,83,0) 62%);
    filter: blur(30px);
    animation: auroraA 20s ease-in-out infinite;
}
.aurora-blob-b {
    position: absolute;
    right: -4%;
    top: -10%;
    width: 36vw;
    height: 36vw;
    background: radial-gradient(circle at 50% 50%, rgba(110,139,255,.3) 0%, rgba(110,139,255,0) 62%);
    filter: blur(28px);
    animation: auroraB 24s ease-in-out infinite;
}

.values-inner {
    max-width: 1240px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.values-eyebrow {
    font-size: 13px;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(250,249,246,.5);
    margin-bottom: 18px;
    display: block;
}

.values-heading {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 500;
    font-size: clamp(30px, 4.4vw, 60px);
    letter-spacing: -0.03em;
    line-height: 1;
    margin: 0 0 70px;
}

.values-list {
    border-top: 1px solid rgba(250,249,246,.14);
}

.values-row {
    display: grid;
    grid-template-columns: 100px 1fr 1.4fr;
    gap: 24px;
    padding: 30px 0;
    border-bottom: 1px solid rgba(250,249,246,.14);
    align-items: baseline;
}
.values-row:last-child { border-bottom: none; }

.values-num {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 15px;
}
.values-num.c1 { color: #34A853; }
.values-num.c2 { color: #f97316; }
.values-num.c3 { color: #3b82f6; }
.values-num.c4 { color: #9FE8CF; }

.values-stat {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(22px, 2.2vw, 32px);
    line-height: 1.1;
}

.values-label {
    color: rgba(250,249,246,.6);
    font-size: 16px;
    line-height: 1.55;
}

.values-source {
    color: rgba(250,249,246,.35);
    font-size: 13px;
    margin-top: 40px;
    text-align: right;
}

/* ─────────────── TYPEWRITER ─────────────── */
/* Hide typewriter elements before JS reveals them — prevents flash of full text */
[data-typewriter] {
  opacity: 0;
}

.tw-active::after {
  content: '|';
  display: inline;
  animation: twBlink 0.75s step-end infinite;
  color: currentColor;
  opacity: 0.65;
  margin-left: 1px;
  font-weight: 300;
}

@keyframes twBlink {
  0%, 100% { opacity: 0.65; }
  50% { opacity: 0; }
}

/* ─────────────── DATA-REVEAL ─────────────── */
[data-reveal] {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity .9s cubic-bezier(.22,1,.36,1), transform .9s cubic-bezier(.22,1,.36,1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

/* ─────────────── LANDING FOOTER ─────────────── */
#landing-footer {
    background: #FAF9F6;
    border-top: 1px solid rgba(14,14,16,.08);
    padding: 50px 32px 60px;
    color: #6B6B72;
    font-size: 14px;
}
#landing-footer .footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

/* Contact row inside footer */
#landing-footer .about-contact-row {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
#landing-footer .about-contact-item {
    border-color: rgba(14,14,16,.1);
    padding: 0 2rem;
}
#landing-footer .about-contact-label { color: #6B6B72; }
#landing-footer .about-contact-value { color: #0E0E10; }
#landing-footer .about-contact-icon { color: #34A853; }

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #0E0E10;
}
.footer-brand-name {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.footer-copy {
    color: #6B6B72;
    font-size: 14px;
    text-align: center;
}

/* ─────────────── RESPONSIVE ─────────────── */
@media (max-width: 900px) {
    #landing-page .about-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .values-row {
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
    }
    .values-label {
        grid-column: 2 / 3;
    }
}

@media (max-width: 640px) {
    #landing-page .hero-section {
        padding: 70px 20px 80px;
    }
    #landing-page .about-services-grid {
        grid-template-columns: 1fr;
    }
    .values-section { padding: 80px 20px; }
    .values-row {
        grid-template-columns: 60px 1fr;
    }
    .marquee-section { padding: 12px 0 18px; }
    #landing-footer .about-contact-row { flex-direction: column; align-items: center; }
    #landing-footer .about-contact-item {
        border-left: none;
        border-top: 1px solid rgba(14,14,16,.1);
        padding: 1rem 0;
    }
    #landing-footer .about-contact-item:first-child { border-top: none; padding-top: 0; }
}

/* ── Dark Mode Landing Page Overrides ── */
[data-theme="dark"] #landing-page {
    background: #0b0f19;
    color: #f8fafc;
}
[data-theme="dark"] #landing-page .hero-section {
    background: #0b0f19;
}
[data-theme="dark"] #landing-page .hero-tag {
    border-color: rgba(255,255,255,.12);
    color: #94a3b8;
}
[data-theme="dark"] #landing-page .hero-title {
    color: #f8fafc;
}
[data-theme="dark"] #landing-page .hero-desc {
    color: #94a3b8;
}
[data-theme="dark"] #landing-page .hero-stat-card {
    background: rgba(30,41,59,0.6);
    border-color: rgba(255,255,255,.08);
    color: #f8fafc;
    box-shadow: none;
}
[data-theme="dark"] #landing-page .hero-stat-card:hover {
    border-color: rgba(52,168,83,.35);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: rgba(30,41,59,0.85);
}
[data-theme="dark"] #landing-page .hero-stat-label { color: #94a3b8; }
[data-theme="dark"] .marquee-section {
    background: #151d30;
    border-top-color: rgba(255,255,255,.08);
    border-bottom-color: rgba(255,255,255,.08);
}
[data-theme="dark"] .marquee-outline {
    -webkit-text-stroke: 1.3px rgba(255,255,255,.25);
}
[data-theme="dark"] #landing-page .about-service-card {
    background: rgba(30,41,59,0.6);
    border-color: rgba(255,255,255,.1);
    color: #f8fafc;
}
[data-theme="dark"] #landing-page .about-service-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,0.3);
    border-color: rgba(255,255,255,.18);
    background: rgba(30,41,59,0.85);
}
[data-theme="dark"] #landing-page .about-service-card.dark-card {
    background: rgba(16,185,129,0.1);
    border: 1px solid rgba(16,185,129,0.2);
    color: #f8fafc;
}
[data-theme="dark"] #landing-page .about-service-card.dark-card .about-service-title { color: #f8fafc; }
[data-theme="dark"] #landing-page .about-service-card.dark-card .about-service-desc { color: rgba(248,250,252,.6); }
[data-theme="dark"] #landing-page .about-service-desc { color: #94a3b8; }
[data-theme="dark"] #landing-footer {
    background: #0b0f19;
    border-top-color: rgba(255,255,255,.08);
    color: #94a3b8;
}
[data-theme="dark"] .footer-brand { color: #f8fafc; }
[data-theme="dark"] #landing-footer .about-contact-value { color: #f8fafc; }
[data-theme="dark"] #landing-footer .about-contact-label { color: #94a3b8; }
[data-theme="dark"] #landing-footer .about-contact-item { border-color: rgba(255,255,255,.1); }
[data-theme="dark"] .footer-copy { color: #94a3b8; }
