/* ============================================================
   SECaaS.tech – Landing Page CSS (Light Theme)
   ============================================================ */

:root {
    --bg:       #ffffff;
    --bg2:      #f8fafc;
    --bg3:      #f1f5f9;
    --border:   #e2e8f0;
    --text:     #0f172a;
    --muted:    #64748b;
    --accent:   #2563eb;
    --accent2:  #1d4ed8;
    --cyan:     #0891b2;
    --green:    #059669;
    --radius:   .85rem;
    --shadow:   0 4px 16px rgba(0,0,0,.08);
    --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; overflow-x: hidden; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; overflow-x: hidden; }

/* ── Navigation ──────────────────────────────────────────── */
.landing-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    padding: .75rem 0;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,.04);
    transition: box-shadow .25s;
}
.landing-nav.scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
}

.landing-brand {
    font-size: 1.3rem; font-weight: 800;
    color: #0f172a; text-decoration: none;
    display: flex; align-items: center; gap: .5rem;
    letter-spacing: -.3px;
}
.landing-brand i { color: var(--accent); font-size: 1.4rem; }
.landing-brand .brand-dot { color: var(--accent); }

.landing-nav-links a {
    color: var(--muted); text-decoration: none;
    font-size: .9rem; font-weight: 500;
    transition: color .15s;
}
.landing-nav-links a:hover { color: var(--text); }

.btn-ghost-light {
    background: transparent;
    border: 1.5px solid #cbd5e1;
    color: var(--text);
    border-radius: .5rem;
    padding: .45rem 1.1rem;
    font-size: .875rem; font-weight: 500;
    transition: border-color .15s, background .15s;
}
.btn-ghost-light:hover { border-color: #94a3b8; background: #f8fafc; color: var(--text); }

.landing-mobile-menu {
    display: flex; flex-direction: column; gap: .25rem;
    padding: .75rem 0; margin-top: .5rem;
    border-top: 1px solid var(--border);
}
.landing-mobile-menu a {
    display: block; padding: .55rem .75rem;
    color: var(--text); text-decoration: none;
    font-size: .9rem; font-weight: 500;
    border-radius: .4rem; transition: background .15s;
}
.landing-mobile-menu a:hover { background: var(--bg3); }

.btn-primary-glow {
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border: none; color: #fff; font-weight: 600;
    border-radius: .5rem;
    padding: .5rem 1.25rem; font-size: .875rem;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
    transition: opacity .2s, box-shadow .2s, transform .15s;
    display: inline-flex; align-items: center;
}
.btn-primary-glow:hover { opacity: .92; box-shadow: 0 6px 20px rgba(37,99,235,.45); transform: translateY(-1px); color: #fff; }
.btn-primary-glow.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

.btn-glass {
    background: rgba(255,255,255,.8);
    border: 1.5px solid #cbd5e1;
    color: var(--text); font-weight: 600;
    border-radius: .5rem;
    padding: .5rem 1.25rem; font-size: .875rem;
    transition: background .2s, border-color .2s;
    display: inline-flex; align-items: center;
    backdrop-filter: blur(8px);
}
.btn-glass:hover { background: #fff; border-color: #94a3b8; color: var(--text); }
.btn-glass.btn-lg { padding: .75rem 1.75rem; font-size: 1rem; }

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 9rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 60%);
}

.hero-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at 50% 0%, black 20%, transparent 70%);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .25;
    pointer-events: none;
}
.blob-1 { width: 500px; height: 500px; background: #bfdbfe; top: -120px; left: -150px; }
.blob-2 { width: 400px; height: 400px; background: #bae6fd; top: 0px; right: -100px; }
.blob-cta { width: 600px; height: 300px; background: #bfdbfe; top: 50%; left: 50%; transform: translate(-50%,-50%); filter: blur(100px); opacity: .4; }

.hero-badge {
    display: inline-flex; align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: .4rem 1rem;
    border-radius: 20px;
    font-size: .8rem; font-weight: 600;
}

.hero-headline {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: 1.25rem;
}
.hero-headline-sub {
    display: block;
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 600;
    color: var(--muted);
    letter-spacing: -.01em;
    margin-top: .25rem;
}

.gradient-text {
    background: linear-gradient(135deg, #2563eb, #0891b2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-motto {
    font-size: 1.15rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
    max-width: 640px;
    margin-left: auto; margin-right: auto;
}
.hero-motto strong { color: var(--text); }

.trust-bar {
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
    font-size: .85rem;
    color: var(--muted);
    flex-wrap: wrap;
    justify-content: center;
}
.trust-item { display: flex; align-items: center; gap: .4rem; }
.trust-separator { width: 1px; height: 16px; background: #cbd5e1; }

/* ── Dashboard Preview ───────────────────────────────────── */
.hero-preview { perspective: 1200px; }

.preview-window {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.12), 0 0 0 1px rgba(37,99,235,.08);
    transform: rotateX(4deg);
    max-width: 860px;
    margin: 0 auto;
}
.preview-bar {
    display: flex; align-items: center; gap: .5rem;
    padding: .75rem 1rem;
    background: #f1f5f9;
    border-bottom: 1px solid #e2e8f0;
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red    { background: #fca5a5; }
.dot-yellow { background: #fcd34d; }
.dot-green  { background: #6ee7b7; }
.preview-url { font-size: .75rem; color: #94a3b8; font-family: monospace; margin-left: .5rem; }

.preview-body { display: flex; }
.preview-sidebar {
    width: 50px;
    background: #ffffff;
    border-right: 1px solid #e2e8f0;
    display: flex; flex-direction: column;
    align-items: center; gap: .5rem;
    padding: 1rem .5rem;
}
.p-item {
    width: 34px; height: 34px;
    border-radius: .4rem;
    display: flex; align-items: center; justify-content: center;
    color: #94a3b8; font-size: .95rem; cursor: pointer;
}
.p-item.active { background: #eff6ff; color: #2563eb; }

.preview-content { flex: 1; padding: 1.25rem; background: #fff; }
.p-stat-row { display: flex; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.p-stat { text-align: center; flex: 1; }
.p-stat-val { font-size: 1.4rem; font-weight: 800; }
.p-stat-lbl { font-size: .7rem; color: #94a3b8; font-weight: 500; }

.p-alert-list { display: flex; flex-direction: column; gap: .4rem; }
.p-alert {
    display: flex; align-items: center; gap: .75rem;
    padding: .5rem .75rem;
    border-radius: .4rem;
    font-size: .78rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #374151;
}
.p-alert-danger  { border-left: 2px solid #ef4444; background: #fff5f5; }
.p-alert-warning { border-left: 2px solid #f59e0b; background: #fffbeb; }
.p-alert-info    { border-left: 2px solid #06b6d4; background: #f0fdff; }
.p-alert-muted   { border-left: 2px solid #cbd5e1; }

.p-badge {
    padding: .15rem .4rem;
    border-radius: 4px;
    font-size: .65rem; font-weight: 700;
    flex-shrink: 0;
}
.p-badge.danger  { background: #fee2e2; color: #dc2626; }
.p-badge.warning { background: #fef3c7; color: #d97706; }
.p-badge.info    { background: #cffafe; color: #0891b2; }
.p-badge.muted   { background: #f1f5f9; color: #64748b; }

.p-time { margin-left: auto; color: #94a3b8; font-size: .65rem; white-space: nowrap; }

/* ── Stats section ───────────────────────────────────────── */
.stats-section {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}
.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.stat-card { text-align: center; padding: 1rem 3rem; }
.stat-number { font-size: 2rem; font-weight: 900; color: var(--text); }
.stat-number span { color: var(--accent); }
.stat-label { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat-divider { width: 1px; height: 50px; background: var(--border); }

/* ── Sections ────────────────────────────────────────────── */
.section-dark   { background: var(--bg);  padding: 5rem 0; }
.section-darker { background: var(--bg2); padding: 5rem 0; }

.section-badge {
    display: inline-flex; align-items: center;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1d4ed8;
    padding: .35rem .9rem;
    border-radius: 20px;
    font-size: .8rem; font-weight: 600;
}
.section-title {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -.03em;
    color: var(--text);
    margin-bottom: .75rem;
    line-height: 1.2;
}
.section-sub { color: var(--muted); font-size: 1rem; max-width: 540px; margin: 0 auto; }

/* ── Feature cards ───────────────────────────────────────── */
.feature-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    height: 100%;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1rem 0 .5rem; }
.feature-card p  { color: var(--muted); font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }

.feature-icon-wrap {
    width: 48px; height: 48px;
    border-radius: .75rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
}
.icon-blue   { background: #dbeafe; color: #2563eb; }
.icon-cyan   { background: #cffafe; color: #0891b2; }
.icon-purple { background: #ede9fe; color: #7c3aed; }
.icon-green  { background: #d1fae5; color: #059669; }
.icon-amber  { background: #fef3c7; color: #d97706; }
.icon-red    { background: #fee2e2; color: #dc2626; }

.feature-list {
    list-style: none; padding: 0;
    display: flex; flex-direction: column; gap: .3rem;
}
.feature-list li {
    display: flex; align-items: center; gap: .5rem;
    font-size: .83rem; color: var(--muted);
}
.feature-list li i { color: var(--green); font-size: .85rem; }

/* ── How it works ────────────────────────────────────────── */
.step-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.75rem;
    text-align: center;
    height: 100%;
    position: relative;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
}
.step-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.step-card-featured {
    border-color: #bfdbfe;
    background: #eff6ff;
    box-shadow: 0 0 0 3px rgba(37,99,235,.08), var(--shadow);
}

.step-number {
    font-size: 3.5rem; font-weight: 900;
    color: rgba(37,99,235,.08);
    line-height: 1;
    position: absolute; top: 1rem; right: 1.25rem;
}
.step-icon {
    width: 56px; height: 56px;
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    border-radius: .85rem;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: #fff;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 12px rgba(37,99,235,.3);
}
.step-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--text); margin-bottom: .75rem; }
.step-card p  { color: var(--muted); font-size: .88rem; line-height: 1.6; }

.code-snippet {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: .5rem;
    padding: .5rem .75rem;
    margin-top: .75rem;
}
.code-snippet code { color: #86efac; font-size: .75rem; font-family: monospace; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex; flex-direction: column;
    position: relative;
    box-shadow: var(--shadow);
    transition: box-shadow .2s, transform .2s;
    height: 100%;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent), var(--shadow-lg);
    transform: scale(1.02);
}
.pricing-card-featured:hover { transform: scale(1.02) translateY(-4px); }

.pricing-popular-badge {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: linear-gradient(135deg, var(--accent), var(--accent2));
    color: #fff; font-size: .72rem; font-weight: 700;
    padding: .3rem .9rem; border-radius: 20px;
    white-space: nowrap; box-shadow: 0 2px 8px rgba(37,99,235,.35);
}
.pricing-header { text-align: center; margin-bottom: 1.5rem; }
.pricing-plan-icon {
    width: 52px; height: 52px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; color: var(--accent);
    margin: 0 auto .75rem;
}
.pricing-header h3 { font-size: 1.3rem; font-weight: 700; color: var(--text); margin: 0; }
.pricing-sub { color: var(--muted); font-size: .85rem; margin: .25rem 0 0; }

.pricing-price {
    text-align: center; margin-bottom: 1.75rem;
    display: flex; align-items: baseline; justify-content: center; gap: .25rem;
}
.price-amount   { font-size: 3rem; font-weight: 900; color: var(--text); line-height: 1; }
.price-currency { font-size: .85rem; font-weight: 700; color: var(--muted); }
.price-period   { font-size: .85rem; color: var(--muted); }

.pricing-features {
    list-style: none; padding: 0; margin-bottom: 2rem; flex: 1;
    display: flex; flex-direction: column; gap: .65rem;
}
.pricing-features li {
    display: flex; align-items: center; gap: .65rem;
    font-size: .875rem; color: var(--muted);
}
.pricing-features li i.bi-check-lg { color: var(--green); font-size: 1rem; }
.pricing-features li i.bi-x-lg     { color: #cbd5e1; }
.pricing-features li.text-muted { opacity: .6; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-item { border: none; background: transparent; margin-bottom: .75rem; }
.faq-btn {
    background: #fff !important;
    color: var(--text) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    font-size: .95rem; font-weight: 600;
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow) !important;
}
.faq-btn:not(.collapsed) {
    background: #eff6ff !important;
    border-color: #bfdbfe !important;
    color: var(--accent) !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    box-shadow: none !important;
}
.faq-body {
    background: #f8fafc;
    border: 1px solid #bfdbfe;
    border-top: none;
    color: var(--muted);
    font-size: .88rem;
    line-height: 1.7;
    padding: 1rem 1.25rem;
    border-radius: 0 0 var(--radius) var(--radius);
}

/* ── CTA section ─────────────────────────────────────────── */
.cta-section {
    position: relative;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 50%, #0369a1 100%);
    padding: 5rem 0;
    overflow: hidden;
    color: #fff;
}
.cta-icon { font-size: 3rem; color: #93c5fd; }
.cta-title { font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; margin-bottom: .75rem; color: #fff; }
.cta-sub   { color: rgba(255,255,255,.8); font-size: 1rem; line-height: 1.7; }
.cta-section .btn-glass {
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
    color: #fff;
}
.cta-section .btn-glass:hover { background: rgba(255,255,255,.25); color: #fff; }

/* ── Landing footer ──────────────────────────────────────── */
.landing-footer {
    background: #1e293b;
    border-top: 1px solid #334155;
    padding: 3rem 0 1.5rem;
    color: #cbd5e1;
}
.landing-footer .landing-brand { color: #f1f5f9; }
.landing-footer .landing-brand i,
.landing-footer .landing-brand .brand-dot { color: #60a5fa; }
.footer-heading { color: #f1f5f9; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .75rem; }
.footer-links { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .4rem; }
.footer-links li a { color: #94a3b8; text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-links li a:hover { color: #ffffff; }
.footer-divider { border-color: #334155; margin: 1.5rem 0 .5rem; }
.landing-footer .text-muted { color: #94a3b8 !important; }
.footer-badge-img { height: 50px; width: auto; opacity: .75; transition: opacity .2s; border-radius: 4px; background: #fff; padding: 4px 8px; }
.footer-badge-img:hover { opacity: 1; }

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* ── Responsive ──────────────────────────────────────────── */
/* ── Mobile (< 768px) ───────────────────────────────────── */
@media (max-width: 768px) {
    /* Nav */
    .landing-nav { padding: .5rem 0; }
    .landing-brand { font-size: 1.1rem; }

    /* Hero */
    .hero-section { padding: 5.5rem 0 2rem; }
    .hero-headline { font-size: 1.8rem !important; }
    .hero-headline-sub { font-size: 1.1rem !important; }
    .hero-motto { font-size: .85rem; }
    .hero-badge { font-size: .7rem; padding: .3rem .75rem; }
    .hero-cta .btn { font-size: .85rem; padding: .55rem 1rem; }

    /* Preview */
    .preview-window { transform: none; }
    .preview-sidebar { display: none; }

    /* Stats */
    .stat-card { padding: .75rem 1rem; }
    .stat-value { font-size: 1.4rem; }
    .stat-label { font-size: .7rem; }
    .stat-divider { display: none; }

    /* Sections */
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: .85rem; }

    /* Features */
    .feature-card { padding: 1.25rem; }
    .feature-icon { width: 40px; height: 40px; font-size: 1.1rem; }
    .feature-title { font-size: .95rem; }
    .feature-desc { font-size: .8rem; }

    /* How it works */
    .step-number { width: 36px; height: 36px; font-size: .85rem; }
    .step-title { font-size: 1rem; }
    .step-text { font-size: .8rem; }

    /* Pricing */
    .pricing-card { padding: 1.25rem; }
    .pricing-card-featured { transform: none; }
    .pricing-amount { font-size: 2rem; }
    .pricing-title { font-size: 1rem; }

    /* FAQ */
    .faq-question { font-size: .9rem; padding: .75rem 1rem; }
    .faq-answer { font-size: .82rem; padding: .75rem 1rem; }

    /* CTA */
    .cta-section { padding: 2.5rem 0; }
    .cta-title { font-size: 1.5rem !important; }
    .cta-sub { font-size: .85rem; }

    /* Footer */
    .landing-footer { padding: 2rem 0 1rem; }
    .landing-footer .landing-brand { font-size: 1.1rem !important; }
    .footer-heading { font-size: .75rem; }
    .footer-links li a { font-size: .8rem; }
    .footer-badge-img { height: 38px; }
}

/* ── Small mobile (< 480px) ─────────────────────────────── */
@media (max-width: 480px) {
    .hero-section { padding: 5rem 0 1.5rem; }
    .hero-headline { font-size: 1.5rem !important; }
    .hero-headline-sub { font-size: 1rem !important; }
    .hero-motto { font-size: .8rem; }
    .hero-cta { flex-direction: column; }
    .hero-cta .btn { width: 100%; }
    .section-title { font-size: 1.3rem; }
    .pricing-card { margin: 0; }
    .stat-card { min-width: auto; flex: 1; }
    .landing-nav-links { display: none; }
    .btn-ghost-light, .btn-primary-glow { font-size: .8rem; padding: .4rem .9rem; }
}
