/**
 * RAG Chat Landing Page — ragchat.in
 * Clean, modern design with dark sections and green accents.
 */

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

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #1e293b;
    background: #fff;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow { max-width: 800px; }

/* ─── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: #64748b;
    max-width: 560px;
    margin: 0 auto;
}

.gradient-text {
    background: linear-gradient(135deg, #10B981, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Buttons ────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn--block { width: 100%; justify-content: center; }

.btn--primary {
    background: #10B981;
    color: #fff;
    border-color: #10B981;
}
.btn--primary:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.3);
}

.btn--outline {
    background: transparent;
    color: #10B981;
    border-color: #10B981;
}
.btn--outline:hover {
    background: rgba(16, 185, 129, 0.08);
}

.btn--ghost {
    background: transparent;
    color: #475569;
    border-color: #e2e8f0;
}
.btn--ghost:hover {
    border-color: #10B981;
    color: #10B981;
}

.btn--white {
    background: #fff;
    color: #10B981;
    border-color: #fff;
}
.btn--white:hover {
    background: #f0fdf4;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--ghost-white {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn--ghost-white:hover {
    border-color: #fff;
    background: rgba(255,255,255,0.1);
}

/* ─── Navigation ─────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow 0.3s;
}

.nav--scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 20px;
    color: #1e293b;
}

.nav__logo-icon { font-size: 24px; }

.nav__links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav__links a {
    font-size: 14px;
    font-weight: 500;
    color: #64748b;
    transition: color 0.2s;
}

.nav__links a:hover { color: #10B981; }

.nav__mobile {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}

.nav__mobile span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    transition: 0.3s;
}

/* ─── Hero ───────────────────────────────────────────────────── */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero__title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-size: 18px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.hero__note {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 60px;
}

/* Hero Browser Mockup */
.hero__visual {
    max-width: 900px;
    margin: 0 auto;
}

.hero__browser {
    background: #1e293b;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
}

.hero__browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: #0f172a;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dot--red    { background: #ef4444; }
.dot--yellow { background: #f59e0b; }
.dot--green  { background: #10B981; }

.hero__browser-url {
    margin-left: 12px;
    font-size: 12px;
    color: #64748b;
    background: rgba(255,255,255,0.06);
    padding: 4px 12px;
    border-radius: 4px;
    flex: 1;
    max-width: 300px;
}

.hero__browser-body {
    padding: 24px;
    position: relative;
    min-height: 340px;
}

.hero__site-mock { opacity: 0.3; }

.mock-bar {
    height: 24px;
    background: #334155;
    border-radius: 6px;
    margin-bottom: 16px;
    width: 60%;
}

.mock-content {
    height: 80px;
    background: #334155;
    border-radius: 6px;
    margin-bottom: 12px;
}

.mock-content--short { height: 40px; width: 80%; }

/* Chat widget inside browser */
.hero__widget {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 300px;
}

.widget-window {
    background: #1a1f2e;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.08);
}

.widget-header {
    background: #10B981;
    padding: 14px 16px;
    color: white;
}

.widget-header strong { display: block; font-size: 14px; }
.widget-header span { font-size: 11px; opacity: 0.8; }

.widget-messages { padding: 16px; }

.widget-msg {
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
    max-width: 90%;
}

.widget-msg--bot {
    background: rgba(255,255,255,0.06);
    color: #e2e8f0;
    border-radius: 12px 12px 12px 4px;
}

.widget-msg--user {
    background: #10B981;
    color: white;
    margin-left: auto;
    border-radius: 12px 12px 4px 12px;
}

.widget-source {
    margin-top: 8px;
    font-size: 10px;
    color: #10B981;
    background: rgba(16,185,129,0.1);
    padding: 3px 8px;
    border-radius: 4px;
    display: inline-block;
}

.widget-input {
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    color: #64748b;
    font-size: 13px;
}

/* ─── Social Proof ───────────────────────────────────────────── */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
}

.social-proof__text {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.social-proof__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.social-proof__stat {
    text-align: center;
}

.social-proof__stat strong {
    display: block;
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
}

.social-proof__stat span {
    font-size: 13px;
    color: #64748b;
}

/* ─── Problem / Solution ─────────────────────────────────────── */
.problem {
    padding: 80px 0;
    background: #f8fafc;
}

.problem__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.problem__card {
    padding: 32px;
    border-radius: 12px;
}

.problem__card--bad {
    background: #fff;
    border: 1px solid #fecaca;
}

.problem__card--good {
    background: #f0fdf4;
    border: 1px solid #86efac;
}

.problem__icon { font-size: 28px; margin-bottom: 12px; }

.problem__card h3 {
    font-size: 18px;
    margin-bottom: 16px;
}

.problem__card li {
    padding: 6px 0;
    font-size: 14px;
    color: #475569;
    padding-left: 8px;
}

/* ─── Features ───────────────────────────────────────────────── */
.features {
    padding: 100px 0;
}

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

.feature-card {
    padding: 28px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: all 0.2s;
    position: relative;
}

.feature-card:hover {
    border-color: #10B981;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.08);
    transform: translateY(-2px);
}

.feature-card__icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

.feature-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: #fff;
    letter-spacing: 0.5px;
}

/* ─── How It Works ───────────────────────────────────────────── */
.how-it-works {
    padding: 100px 0;
    background: #0f172a;
    color: #fff;
}

.how-it-works .section-header h2 { color: #fff; }
.how-it-works .section-header p { color: #94a3b8; }

.steps {
    max-width: 700px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    margin-bottom: 36px;
    align-items: flex-start;
}

.step__number {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    background: #10B981;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 20px;
}

.step__content h3 {
    font-size: 18px;
    margin-bottom: 6px;
    color: #fff;
}

.step__content p {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ─── Loop Diagram ───────────────────────────────────────────── */
.loop-section {
    padding: 60px 0;
    background: #f8fafc;
}

.loop {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
}

.loop__item {
    text-align: center;
    padding: 20px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    min-width: 140px;
}

.loop__icon { font-size: 28px; margin-bottom: 6px; }
.loop__item strong { display: block; font-size: 14px; }
.loop__item span { font-size: 11px; color: #64748b; }

.loop__arrow {
    font-size: 24px;
    color: #10B981;
    font-weight: 700;
}

.loop__arrow--return {
    font-size: 32px;
    color: #10B981;
}

.loop__caption {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #64748b;
}

/* ─── Pricing ────────────────────────────────────────────────── */
.pricing {
    padding: 100px 0;
}

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

.pricing__card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    position: relative;
    background: #fff;
}

.pricing__card--featured {
    border-color: #10B981;
    box-shadow: 0 12px 40px rgba(16, 185, 129, 0.12);
    transform: scale(1.03);
}

.pricing__popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #10B981;
    color: #fff;
    padding: 4px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.pricing__plan {
    font-size: 16px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
}

.pricing__price {
    margin-bottom: 8px;
}

.pricing__amount {
    font-size: 48px;
    font-weight: 800;
    color: #1e293b;
}

.pricing__period {
    font-size: 16px;
    color: #94a3b8;
}

.pricing__desc {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px;
}

.pricing__features {
    margin-bottom: 28px;
}

.pricing__feature {
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
    padding-left: 28px;
    position: relative;
}

.pricing__feature::before {
    position: absolute;
    left: 0;
    font-size: 14px;
}

.pricing__feature--yes::before { content: "\2713"; color: #10B981; font-weight: 700; }
.pricing__feature--no::before  { content: "\2717"; color: #cbd5e1; }
.pricing__feature--no { color: #94a3b8; }

.pricing__note {
    text-align: center;
    margin-top: 40px;
    padding: 20px 28px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 14px;
    color: #475569;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.pricing__note a { color: #10B981; font-weight: 600; }

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq {
    padding: 100px 0;
    background: #f8fafc;
}

.faq__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq__item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.faq__item summary {
    padding: 18px 24px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    list-style: none;
    transition: background 0.2s;
}

.faq__item summary::-webkit-details-marker { display: none; }

.faq__item summary::after {
    content: "+";
    font-size: 20px;
    font-weight: 400;
    color: #94a3b8;
    transition: transform 0.2s;
}

.faq__item[open] summary::after {
    content: "\2212";
}

.faq__item summary:hover { background: #fafafa; }

.faq__item p {
    padding: 0 24px 18px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
}

.faq__item a { color: #10B981; font-weight: 500; }

/* ─── CTA ────────────────────────────────────────────────────── */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #10B981, #059669);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: clamp(28px, 4vw, 40px);
    margin-bottom: 12px;
}

.cta p {
    font-size: 18px;
    opacity: 0.9;
    margin-bottom: 32px;
}

.cta__buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
    padding: 64px 0 32px;
    background: #0f172a;
    color: #94a3b8;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer__brand p {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.footer__brand .nav__logo { color: #fff; }

.footer__col h4 {
    color: #fff;
    font-size: 14px;
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 13px;
    color: #94a3b8;
    padding: 4px 0;
    transition: color 0.2s;
}

.footer__col a:hover { color: #10B981; }

.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 24px;
    font-size: 12px;
    text-align: center;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 960px) {
    .features__grid { grid-template-columns: repeat(2, 1fr); }
    .pricing__grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
    .pricing__card--featured { transform: none; }
    .problem__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav__links { display: none; }
    .nav__links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 24px;
        border-bottom: 1px solid #e2e8f0;
        box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    }
    .nav__mobile { display: flex; }

    .hero { padding: 120px 0 60px; }
    .hero__title { font-size: 36px; }
    .hero__widget { width: 250px; }

    .features__grid { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; gap: 24px; }

    .loop { flex-direction: column; }
    .loop__arrow { transform: rotate(90deg); }
    .loop__arrow--return { transform: none; }

    .social-proof__stats { gap: 24px; }
}
