/* ==========================================================================
   AI RAG Assistant Pro — Landing Page Styles
   ========================================================================== */

/* ── Reset ──────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #1e293b;
    background: #f8fafc;
    line-height: 1.6;
}

a { text-decoration: none; color: inherit; }

/* ── Header ─────────────────────────────────────────────────────────────── */
.hdr {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.hdr-in {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo span { color: #2563eb; }

.logo img {
    max-height: 24px;
}
    
.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s;
}

.nav a:hover { color: #2563eb; }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-align: center;
}

.btn-p  { background: #2563eb; color: #fff; }
.btn-p:hover { background: #1d4ed8; transform: translateY(-1px); }

.btn-o  { border: 2px solid #2563eb; color: #2563eb; background: transparent; }
.btn-o:hover { background: #eff6ff; }

.btn-w  { background: #fff; color: #2563eb; font-weight: 700; }
.btn-w:hover { background: #f0f6fc; }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, #1e40af 0%, #4f46e5 50%, #7c3aed 100%);
    padding: 100px 24px 80px;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.3) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 20%, rgba(124,58,237,0.3) 0%, transparent 60%);
    pointer-events: none;
}

.hero-in {
    max-width: 820px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 24px;
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 28px;
    backdrop-filter: blur(8px);
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

.hero h1 em {
    font-style: normal;
    color: #93c5fd;
}

.hero p {
    font-size: 18px;
    opacity: 0.88;
    margin-bottom: 36px;
    line-height: 1.75;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.hero-ctas {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.hero-stats {
    display: flex;
    gap: 0;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    max-width: 600px;
    margin: 0 auto;
}

.hero-stat {
    flex: 1;
    padding: 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.hero-stat:last-child { border-right: none; }

.sv {
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 4px;
}

.sl {
    font-size: 12px;
    opacity: 0.7;
}

/* ── Container ──────────────────────────────────────────────────────────── */
.wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Section ────────────────────────────────────────────────────────────── */
.sec     { padding: 80px 0; }
.sec-dk  { background: #0f172a; color: #f1f5f9; }
.sec-dk .sec-head p { color: #94a3b8; }
.sec-gr  { background: #f1f5f9; }

.sec-head {
    text-align: center;
    margin-bottom: 52px;
}

.sec-head h2 {
    font-size: 34px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.sec-head p {
    color: #64748b;
    font-size: 16px;
    max-width: 560px;
    margin: 0 auto;
}

/* ── Features Grid ──────────────────────────────────────────────────────── */
.fg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.fc {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 28px;
    transition: all 0.2s;
}

.fc:hover {
    border-color: #2563eb;
    box-shadow: 0 6px 24px rgba(37,99,235,0.1);
    transform: translateY(-2px);
}

.fi {
    font-size: 32px;
    margin-bottom: 14px;
    display: block;
}

.fc h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #0f172a;
}

.fc p {
    font-size: 13px;
    color: #64748b;
    line-height: 1.6;
}

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    padding: 0 8px;
}

.sn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 800;
    margin: 0 auto 16px;
    box-shadow: 0 6px 20px rgba(37,99,235,0.3);
}

.step h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #f1f5f9;
}

.step p {
    font-size: 13px;
    color: #94a3b8;
    line-height: 1.6;
}

/* ── Providers ──────────────────────────────────────────────────────────── */
.provs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.prov {
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 12px;
    text-align: center;
    transition: all 0.2s;
}

.prov:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 16px rgba(37,99,235,0.1);
}

.prov .ico { font-size: 28px; margin-bottom: 6px; }
.prov .nm  { font-size: 12px; font-weight: 700; margin-bottom: 4px; }

.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
}

.tag-f { background: #dcfce7; color: #166534; }
.tag-p { background: #fef3c7; color: #92400e; }
.tag-l { background: #e0f2fe; color: #0369a1; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.plans {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: start;
}

.plan {
    background: #1e293b;
    border: 2px solid #334155;
    border-radius: 16px;
    padding: 32px 24px;
    text-align: center;
    position: relative;
    transition: all 0.2s;
}

.plan:hover {
    border-color: #475569;
    transform: translateY(-2px);
}

.plan.hot {
    border-color: #2563eb;
    background: linear-gradient(180deg, #1e3a8a 0%, #1e293b 100%);
    box-shadow: 0 0 40px rgba(37,99,235,0.2);
}

.hot-tag {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    padding: 4px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.plan h3  { font-size: 18px; font-weight: 700; color: #f1f5f9; margin-bottom: 4px; }
.pd       { font-size: 12px; color: #64748b; margin-bottom: 20px; }
.pp       { font-size: 44px; font-weight: 900; color: #f1f5f9; line-height: 1; margin-bottom: 4px; }
.pp sup   { font-size: 24px; vertical-align: top; margin-top: 8px; }
.pp sub   { font-size: 16px; color: #64748b; font-weight: 500; }
.pp-free  { font-size: 44px; font-weight: 900; color: #4ade80; line-height: 1; margin-bottom: 4px; }
.po       { font-size: 12px; color: #64748b; margin-bottom: 24px; }

.pf {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pf li {
    padding: 7px 0;
    font-size: 13px;
    color: #cbd5e1;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pf .y     { color: #4ade80; font-weight: 700; flex-shrink: 0; }
.pf .n     { color: #374151; flex-shrink: 0; }
.pf .limit { color: #fbbf24; flex-shrink: 0; }

.plan .btn { width: 100%; }

/* ── Reviews ────────────────────────────────────────────────────────────── */
.revs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.rev {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.stars { color: #fbbf24; font-size: 14px; margin-bottom: 12px; }
.rt    { font-size: 14px; color: #475569; line-height: 1.7; margin-bottom: 16px; }
.ra    { font-size: 13px; font-weight: 700; color: #1e293b; }
.rr    { font-size: 12px; color: #94a3b8; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-item {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 12px;
    transition: border-color 0.2s;
}

.faq-item:hover { border-color: #cbd5e1; }

.faq-item.open { border-color: #2563eb; }

.faq-q {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    user-select: none;
}

.faq-q .arrow {
    transition: transform 0.2s;
    font-size: 12px;
    color: #94a3b8;
    flex-shrink: 0;
}

.faq-item.open .faq-q .arrow { transform: rotate(180deg); }

.faq-a {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
    margin-top: 0;
}

.faq-item.open .faq-a {
    max-height: 500px;
    margin-top: 12px;
}

/* ── CTA ────────────────────────────────────────────────────────────────── */
.cta {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    border-radius: 20px;
    padding: 64px 40px;
    text-align: center;
    color: #fff;
    margin: 0 0 80px;
}

.cta h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.cta p  { font-size: 16px; opacity: 0.9; margin-bottom: 28px; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
    background: #020617;
    color: #475569;
    padding: 48px 24px;
    text-align: center;
    font-size: 13px;
}

.fl {
    display: flex;
    gap: 28px;
    justify-content: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.fl a { color: #60a5fa; }
.fl a:hover { color: #93c5fd; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
    .hero h1          { font-size: 36px; }
    .fg               { grid-template-columns: repeat(2, 1fr); }
    .plans            { grid-template-columns: repeat(2, 1fr); }
    .provs            { grid-template-columns: repeat(3, 1fr); }
    .steps            { grid-template-columns: repeat(2, 1fr); }
    .revs             { grid-template-columns: 1fr; }
    .hero-stats       { flex-wrap: wrap; }
}

@media (max-width: 600px) {
    .hero h1          { font-size: 28px; }
    .hero p           { font-size: 15px; }
    .fg, .plans       { grid-template-columns: 1fr; }
    .provs            { grid-template-columns: repeat(2, 1fr); }
    .steps            { grid-template-columns: 1fr; }
    .plan.hot         { transform: none; }
    .nav              { display: none; }
    .cta              { padding: 40px 20px; }
    .cta h2           { font-size: 24px; }
}