/* ═══════════════════════════════════════════════════════
   Marshanam - Front Page CSS
═══════════════════════════════════════════════════════ */

:root {
    --green:      #25D366;
    --green-dark: #128C7E;
    --green-light:#dcfce7;
    --green-mid:  #16a34a;
    --bg:         #f9fafb;
    --surface:    #ffffff;
    --text:       #0f1f17;
    --muted:      #6b7280;
    --border:     #e5e7eb;
    --chat-bg:    #ece5dd;
    --bubble-out: #dcf8c6;
    --radius:     16px;
    --shadow:     0 4px 32px rgba(0,0,0,0.07);
}

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

html {
    scroll-behavior: smooth;
}

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

/* ── NAV ── */
nav {
    position: sticky; top: 0; z-index: 100;
    /* background: rgba(255,255,255,0.9); */
    background: #0a1f14;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    padding: 3vw 5vw;
    height: 64px;
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Inter', sans-serif;
    font-weight: 800; font-size: 1.25rem;
    /* color: var(--text); */
    color: #fff;
    display: flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.nav-logo span {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--green);
    display: grid; place-items: center;
    color: #fff; 
    font-size: .9rem;
}
.nav-links {
    display: flex;
    gap: 20px;
    list-style: none;
    margin-left: auto;
    margin-bottom: 0;
}
.nav-links a {
    text-decoration: none; color: var(--muted);
    font-size: .9rem; font-weight: 500;
    transition: color .2s;
    color: #fff;
}
.nav-links a:hover,
.nav-links a.active { 
    color: var(--green); 
}
.nav-actions {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}
.nav-actions a{
    color: #fff;
}

/* ── BUTTONS ── */
.btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: .55rem 1.3rem; border-radius: 10px;
    font-family: 'DM Sans', sans-serif; font-size: .9rem; font-weight: 500;
    border: none; cursor: pointer; transition: all .2s;
    text-decoration: none;
}
/* .btn-primary { background: var(--green); color: #fff; } */
.btn-primary { background: var(--green); color: #14532d; }
.btn-primary:hover {
    background: var(--green-mid);
    color: #fff;   /* white works fine on the darker #16a34a hover */
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37,211,102,.35);
}
.btn-outline {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }
.btn-lg { padding: .75rem 1.8rem; font-size: 1rem; border-radius: 12px; }

/* ── HERO ── */
.hero {
    background: linear-gradient(135deg, #0d3d2a 0%, #1a5c3e 50%, #0f4d35 100%);
    /*min-height: 90vh;*/
    display: flex; align-items: center;
    position: relative; overflow: hidden;
    /*padding: 6rem 5vw 5rem;*/
    padding: 2.5rem 5vw;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 80% 50%, rgba(37,211,102,.15) 0%, transparent 70%);
}
.hero-grid {
    display: grid; 
    grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: center;
    max-width: 1200px; margin: 0 auto; width: 100%;
    position: relative; z-index: 1;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    background: rgba(37,211,102,.15); border: 1px solid rgba(37,211,102,.3);
    color: #5febb0; border-radius: 100px;
    padding: .3rem .9rem; font-size: .8rem; font-weight: 500;
    margin-bottom: 1.5rem;
}
.hero-badge span {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--green); display: inline-block;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:.5; transform:scale(1.4); }
}
.hero h1 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 800; line-height: 1.1;
    color: #fff; margin-bottom: 1.2rem;
}
.hero h1 em { font-style: normal; color: var(--green); }
.hero p {
    color: rgba(255,255,255,.65);
    font-size: 1.1rem; max-width: 460px;
    margin-bottom: 2rem; font-weight: 300;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-tagline {
    color: #22c55e;
    font-size: 1.6rem;
    font-weight: 700;
    margin: 12px 0 14px;
    line-height: 1.3;
}

/**------------ Chat mockup start ------------**/
.chat-mockup {
    background: var(--surface);
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.35);
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-12px); }
}
.chat-header {
    /*background: var(--green-dark); */
    background: #075e54;
    padding: 10px 15px;
    display: flex; align-items: center; gap: .75rem;
    color: #fff;
}
.chat-avatar {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(255,255,255,.2);
    display: grid; place-items: center; font-size: 1rem;
}
.chat-name   { font-weight: 600; font-size: .9rem; }
.chat-status { font-size: .72rem; opacity: .8; }
.chat-body {
    background: var(--chat-bg);
    padding: 1rem; min-height: 300px;
    display: flex; flex-direction: column; gap: 8px;
}
.date-divider {
    text-align: center; font-size: .7rem; color: #888;
    background: rgba(255,255,255,.5); border-radius: 100px;
    padding: .15rem .75rem; align-self: center;
}
.bubble {
    max-width: 75%; padding: .6rem .9rem;
    border-radius: 12px; font-size: .85rem; line-height: 1.45;
    position: relative;
}
.bubble-in {
    background: var(--bubble-out); align-self: flex-end;
    border-bottom-right-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.bubble-out {
    background: #fff; align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,.1);
}
.bubble-meta {
    font-size: .65rem; color: #999; text-align: right; margin-top: 2px;
    display: flex; justify-content: flex-end; align-items: center; gap: 3px;
}
.tick { color: #53bdeb; }
.chat-input-bar {
    padding: .75rem 1rem; background: #f0f0f0;
    display: flex; gap: .5rem; align-items: center;
}
.chat-input-bar input {
    flex: 1; border: none; background: #fff;
    border-radius: 24px; padding: .5rem 1rem;
    font-size: .85rem; outline: none; font-family: inherit;
}
.chat-send-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--green); border: none; cursor: pointer;
    display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
/**------------ Chat mockup end ------------**/

/* ── STATS STRIP ── */
.stats-strip {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 5vw;
}
.stats-inner {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.stat-item { text-align: center; }
.stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem; font-weight: 800;
    color: var(--green-mid); line-height: 1;
}
.stat-label { font-size: .85rem; color: var(--muted); margin-top: .35rem; }

/* ── SHARED SECTION STYLES ── */
section { padding: 2.5rem 5vw; }
.section-tag {
    display: inline-block;
    background: var(--green-light); color: var(--green-mid);
    font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
    padding: .3rem .8rem; border-radius: 100px; margin-bottom: 1rem;
}
h2 {
    font-family: 'Inter', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800; line-height: 1.15; margin-bottom: 1rem;
}
.section-sub {
    color: var(--muted); font-size: 1.05rem;
    max-width: 520px; font-weight: 300;
}
.section-header { margin-bottom: 3.5rem; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ── ABOUT ── */
.about-grid {
    max-width: 1200px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: 1fr 1fr;
    /* gap: 5rem;  */
    align-items: center;
}
.about-features { display: flex; flex-direction: column; gap: .75rem; }
.about-feature {
    display: flex; align-items: center; gap: .75rem;
    font-size: .95rem; font-weight: 500;
}
.about-feature i {
    width: 28px; height: 28px; border-radius: 8px;
    background: var(--green-light); color: var(--green-mid);
    display: grid; place-items: center; font-style: normal; font-size: .9rem;
    flex-shrink: 0;
}
.about-visual {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-radius: 24px; 
    padding: 2rem;
    margin-left: 30px;
}
.stats-grid-small {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}
.stat-card {
    background: var(--surface); border-radius: 16px;
    padding: 1.5rem; text-align: center; box-shadow: var(--shadow);
}
.stat-card .num {
    font-family: 'Inter', sans-serif; font-size: 2rem; font-weight: 800;
    color: var(--green-mid);
}
.stat-card .lbl { font-size: .8rem; color: var(--muted); margin-top: .25rem; }

/* ── FEATURES ── */
.features-section { background: var(--surface); }
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.feature-card {
    border: 1.5px solid var(--border);
    border-radius: 20px; padding: 2rem;
    transition: all .3s; position: relative; overflow: hidden;
}
.feature-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--green);
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.feature-card:hover {
    border-color: var(--green);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(37,211,102,.12);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
    width: 48px; height: 48px; border-radius: 14px;
    background: var(--green-light); color: var(--green-mid);
    display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 1.2rem;
}
.feature-card h3 {
    font-family: 'Inter', sans-serif; font-size: 1.05rem;
    font-weight: 700; margin-bottom: .5rem;
}
.feature-card p { font-size: .9rem; color: var(--muted); line-height: 1.6; }

/* ── HOW IT WORKS ── */
.how-section { background: var(--bg); }
.steps-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(5, 1fr);
    gap: 1.5rem; position: relative;
}
.steps-grid::before {
    content: '';
    position: absolute; top: 28px; left: 12%; right: 12%; height: 2px;
    background: linear-gradient(to right, var(--green), var(--green-dark));
    z-index: 0;
}
.step-card {
    background: var(--surface); border-radius: 20px; 
    padding: 15px 12px;
    text-align: center; position: relative; z-index: 1;
    box-shadow: var(--shadow); transition: transform .3s;
}
.step-card:hover { transform: translateY(-4px); }
.step-num {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--green); color: #14532d;
    font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 800;
    display: grid; place-items: center; margin: 0 auto 1.2rem;
}
.step-card h3 { font-family: 'Inter', sans-serif; font-size: .95rem; font-weight: 700; margin-bottom: .5rem; }
.step-card p  { font-size: .85rem; color: var(--muted); }

/* ── TESTIMONIALS ── */
.testimonials-section { background: var(--surface); }
.testi-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem;
}
.testi-card {
    background: var(--bg); border-radius: 20px; padding: 2rem;
    border: 1.5px solid var(--border); transition: all .3s;
}
.testi-card:hover {
    border-color: var(--green);
    box-shadow: 0 8px 30px rgba(37,211,102,.1);
}
.testi-stars  { color: var(--green); font-size: 1rem; margin-bottom: 1rem; letter-spacing: 2px; }
.testi-quote  { font-size: .95rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; color: #374151; }
.testi-author { display: flex; align-items: center; gap: .75rem; }
.testi-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; display: grid; place-items: center;
    font-weight: 700; font-size: .9rem;
}
.testi-name { font-weight: 600; font-size: .9rem; }
.testi-role { font-size: .78rem; color: var(--muted); }

/* ── PRICING ── */
.pricing-section { background: var(--bg); }
.pricing-grid {
    max-width: 1000px; margin: 0 auto;
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem; align-items: start;
}
.price-card {
    background: var(--surface); border-radius: 24px; padding: 2rem;
    border: 1.5px solid var(--border); transition: all .3s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
    background: linear-gradient(145deg, #0d3d2a, #1a5c3e);
    border-color: transparent; color: #fff;
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(18,140,126,.3);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.price-tier   { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1.1rem; margin-bottom: .5rem; }
.price-amount { font-family: 'Inter', sans-serif; font-size: 3rem; font-weight: 800; line-height: 1; margin: .75rem 0 .25rem; }
.price-amount sup { font-size: 1.2rem; vertical-align: super; }
.price-amount sub { font-size: .9rem; font-weight: 400; opacity: .7; }
.price-desc   { font-size: .85rem; opacity: .7; margin-bottom: 1.5rem; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.8rem; }
.price-features li { font-size: .88rem; display: flex; align-items: center; gap: .6rem; }
.price-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.price-card.featured .price-features li::before { color: #6ee7b7; }
.price-card.featured .btn-primary { background: #fff; color: var(--green-mid); }
.price-card.featured .btn-primary:hover { background: #f0fdf4; }

/* ── CTA BANNER ── */
.cta-banner {
    background: linear-gradient(135deg, #0d3d2a, #1a5c3e);
    padding: 5rem 5vw; text-align: center;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,.65); font-size: 1.1rem; margin-bottom: 2rem; font-weight: 300; }

/* ── CONTACT ── */
.contact-section { background: var(--surface); }
.contact-grid {
    max-width: 900px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 4rem; align-items: start;
}
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: .85rem; font-weight: 500; margin-bottom: .4rem; }
.form-group input,
.form-group textarea {
    width: 100%; border: 1.5px solid var(--border); border-radius: 12px;
    padding: .75rem 1rem; font-family: inherit; font-size: .9rem;
    background: var(--bg); outline: none; transition: border-color .2s;
    resize: vertical;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--green); }
.form-error   { display: block; color: #dc2626; font-size: .8rem; margin-top: .3rem; }
.form-success {
    background: var(--green-light); color: var(--green-mid);
    border-radius: 10px; padding: .75rem 1rem;
    font-size: .9rem; margin: 15px 0;
}
.contact-info { padding-top: .5rem; }
.contact-info h3 { font-family: 'Inter', sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.contact-info p  { color: var(--muted); font-size: .95rem; margin-bottom: 1.5rem; }
.contact-detail  { display: flex; align-items: center; gap: .75rem; font-size: .9rem; margin-bottom: .75rem; }
.contact-detail i {
    width: 36px; height: 36px; border-radius: 10px;
    background: var(--green-light); color: var(--green-mid);
    display: grid; place-items: center; font-style: normal; flex-shrink: 0;
}

/* ── FOOTER ── */
footer {
    background: #0a1f14;
    color: rgba(255,255,255,.6);
    padding: 3.5rem 5vw 2rem;
}
.footer-grid {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem; margin-bottom: 3rem;
}
.footer-brand {
    color: #fff; font-family: 'Inter', sans-serif; font-size: 1.2rem; font-weight: 800;
    margin-bottom: .75rem; display: flex; align-items: center; gap: 8px;
    text-decoration: none;
}
.footer-brand span {
    width: 26px; height: 26px; border-radius: 7px;
    background: var(--green); display: grid; place-items: center; color: #fff; font-size: .8rem;
}
.footer-desc { font-size: .85rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 { color: #fff; font-weight: 600; font-size: .9rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a {
    text-decoration: none; color: rgba(255,255,255,.55);
    font-size: .85rem; transition: color .2s;
}
.footer-col ul a:hover { color: var(--green); }
.footer-bottom {
    max-width: 1200px; margin: 0 auto;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 1.5rem; text-align: center; font-size: .8rem;
    color: rgba(255,255,255,.75);
}

/* ── SCROLL ANIMATIONS ── */
.fade-up {
    opacity: 0; transform: translateY(30px);
    transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .1s; }
.fade-up:nth-child(3) { transition-delay: .2s; }
.fade-up:nth-child(4) { transition-delay: .3s; }
.fade-up:nth-child(5) { transition-delay: .4s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
    .features-grid, .pricing-grid, .testi-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid::before { display: none; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .price-card.featured { transform: none; }
    .chat-mockup { max-width: 380px; margin: 0 auto; }
}
@media (max-width: 600px) {
    .steps-grid, .stats-inner, .stats-grid-small { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
}