/* Softtrix Solutions — custom styles (used alongside Tailwind CDN utilities) */

/* Base */
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body { overflow-x: hidden; }

/* Custom scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #eef1f7; }
::-webkit-scrollbar-thumb { background: #cbd3e1; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: #aab6cc; }

:focus-visible { outline: 2px solid #DC2626; outline-offset: 2px; border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn-primary {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(to right, #DC2626, #B91C1C);
    padding: 0.625rem 1.25rem; font-weight: 500; color: #fff;
    box-shadow: 0 0 60px -12px rgba(220,38,38,0.45);
    transition: all 0.3s;
}
.btn-primary:hover { box-shadow: 0 10px 40px -10px rgba(220,38,38,0.6); filter: brightness(1.1); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border-radius: 0.75rem; border: 1px solid #e2e8f0; background: #fff;
    padding: 0.625rem 1.25rem; font-weight: 500; color: #334155;
    transition: all 0.3s;
}
.btn-ghost:hover { border-color: #cbd5e1; background: #f8fafc; color: #0f172a; }

.btn-outline-glow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    border-radius: 0.75rem; border: 1px solid #FCA5A5; background: #FEF2F2;
    padding: 0.625rem 1.25rem; font-weight: 500; color: #991B1B;
    transition: all 0.3s;
}
.btn-outline-glow:hover { border-color: #EF4444; background: #FEE2E2; color: #7F1D1D; }

/* ---------- Nav ---------- */
.nav-link {
    border-radius: 0.5rem; padding: 0.5rem 0.75rem;
    color: #475569; transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link-active { background: #f1f5f9; color: #0f172a; }

.footer-link { color: #64748b; transition: color 0.2s ease; }
.footer-link:hover { color: #DC2626; }

.social-icon {
    width: 2.25rem; height: 2.25rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #475569;
    transition: all .2s ease;
}
.social-icon:hover { background: #DC2626; color: #fff; transform: translateY(-2px); }

/* ---------- Glass Cards ---------- */
.glass-card {
    position: relative; border-radius: 1rem; border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15,23,42,0.04), 0 12px 32px -18px rgba(15,23,42,0.18);
}
.glass-card-hover { transition: all 0.5s; }
.glass-card-hover:hover {
    transform: translateY(-0.25rem);
    border-color: #FCA5A5;
    box-shadow: 0 10px 40px -14px rgba(220,38,38,0.28);
}

.gradient-border {
    position: relative;
    background: linear-gradient(#fff,#fff) padding-box,
                linear-gradient(135deg, rgba(220,38,38,0.7), rgba(239,68,68,0.35), transparent 62%) border-box;
    border: 1.5px solid transparent; border-radius: 1rem;
}

/* ---------- Typography ---------- */
.headline { font-family: 'Space Grotesk', system-ui, sans-serif; font-weight: 700; letter-spacing: -0.025em; color: #0f172a; }

.text-gradient {
    background: linear-gradient(to right, #B91C1C, #DC2626, #EF4444);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

.eyebrow {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-family: 'JetBrains Mono', monospace; font-size: 0.75rem;
    font-weight: 500; text-transform: uppercase; letter-spacing: 0.2em; color: #DC2626;
}
.eyebrow::before {
    content: ''; height: 1px; width: 1.5rem;
    background: linear-gradient(to right, #DC2626, transparent);
}
.eyebrow-light { color: #fca5a5; }
.eyebrow-light::before { background: linear-gradient(to right, #fca5a5, transparent); }

/* ---------- Layout ---------- */
.section { position: relative; padding: 5rem 0; }
@media (min-width: 640px) { .section { padding: 7rem 0; } }
.section-wrap { margin: 0 auto; max-width: 80rem; padding: 0 1rem; }
@media (min-width: 640px) { .section-wrap { padding: 0 1.5rem; } }

/* ---------- Badges ---------- */
.badge {
    display: inline-flex; align-items: center; gap: 0.375rem;
    border-radius: 9999px; border: 1px solid #e2e8f0; background: #f1f5f9;
    padding: 0.25rem 0.75rem; font-size: 0.75rem; font-weight: 500; color: #475569;
}
.badge-brand { border-color: #FECACA; background: #FEF2F2; color: #991B1B; }

/* ---------- Forms ---------- */
.input {
    width: 100%; border-radius: 0.75rem; border: 1px solid #cbd5e1;
    background: #fff; padding: 0.625rem 1rem; color: #0f172a; transition: all 0.2s;
}
.input::placeholder { color: #94a3b8; }
.input:focus { border-color: #DC2626; outline: none; box-shadow: 0 0 0 2px rgba(220,38,38,0.2); }

.shadow-glow { box-shadow: 0 0 60px -12px rgba(220,38,38,0.45); }

.glow-orb { pointer-events: none; position: absolute; border-radius: 9999px; filter: blur(64px); }

/* ---------- Animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.animate-float { animation: float 7s ease-in-out infinite; }

@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.animate-marquee { animation: marquee 30s linear infinite; }
.animate-marquee:hover { animation-play-state: paused; }

@keyframes pulse-glow { 0%, 100% { opacity: 0.6; } 50% { opacity: 1; } }
.animate-pulse-glow { animation: pulse-glow 4s ease-in-out infinite; }

.mask-fade-x { -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }

/* ---------- Scroll Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* ---------- Accordion ---------- */
[data-accordion-panel] { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.accordion-open [data-accordion-panel] { max-height: 500px; }
[data-accordion-item] [data-accordion-icon] { transition: transform 0.3s ease; }
.accordion-open [data-accordion-icon] { transform: rotate(180deg); }

/* ---------- Hero radial background ---------- */
.hero-radial {
    background:
        radial-gradient(circle at 15% 20%, rgba(220,38,38,0.14), transparent 45%),
        radial-gradient(circle at 85% 0%, rgba(34,211,238,0.12), transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(220,38,38,0.08), transparent 50%),
        #f7f8fc;
}

/* ---------- Timeline ---------- */
.timeline-line { background: linear-gradient(to bottom, transparent, #FCA5A5, transparent); }

/* ---------- Stat counters ---------- */
.stat-number { font-variant-numeric: tabular-nums; }
