/* ============================================================
   ABISHAR TECHNOLOGIES — DESIGN SYSTEM v4
   Modern · Gradient · Blue/Violet · Inspired by brand logo
   ============================================================ */

:root {
    /* Brand gradient palette (from logo discs + wordmark) */
    --blue:        #2563eb;   /* electric blue   */
    --blue-bright: #2f6bff;
    --blue-deep:   #1d4ed8;
    --indigo:      #1e3a8a;   /* deep wordmark   */
    --violet:      #7c3aed;   /* purple disc     */
    --violet-soft: #8b5cf6;
    --cyan:        #22d3ee;   /* light-blue disc */
    --sky:         #38bdf8;

    /* Surfaces */
    --ink:         #0a1330;   /* near-black navy */
    --ink-2:       #0f1c44;
    --text-dark:   #0b1220;
    --text-mid:    #475569;
    --text-soft:   #94a3b8;
    --border:      #e7ecf5;
    --bg:          #ffffff;
    --bg-soft:     #f6f8fd;
    --bg-tint:     #eef3ff;

    --grad-brand:  linear-gradient(120deg, #22d3ee 0%, #2563eb 42%, #7c3aed 100%);
    --grad-blue:   linear-gradient(135deg, #2f6bff 0%, #1e3a8a 100%);
    --grad-deep:   linear-gradient(150deg, #0f1c44 0%, #1e3a8a 55%, #4c1d95 100%);

    --shadow-sm:   0 4px 14px rgba(16, 32, 80, 0.06);
    --shadow-md:   0 14px 40px rgba(16, 32, 80, 0.10);
    --shadow-lg:   0 28px 70px rgba(16, 32, 80, 0.16);
    --shadow-glow: 0 16px 40px rgba(37, 99, 235, 0.30);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    color: var(--text-dark);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5 {
    font-family: 'Sora', sans-serif;
    letter-spacing: -0.02em;
}

::selection { background: rgba(124, 58, 237, 0.18); }

/* Scrollbar */
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #eef2fb; }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--violet)); border-radius: 10px; }

/* ============================================================
   UTILITY: gradient text + brand wordmark
   ============================================================ */
.grad-text {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
}
.brand-logo {
    position: relative;
    width: 40px; height: 40px;
    flex-shrink: 0;
}
.brand-disc {
    position: absolute;
    width: 26px; height: 34px;
    border-radius: 50%;
    top: 3px;
    transform: rotate(-22deg);
}
.brand-disc.d1 { left: 0;  background: linear-gradient(160deg, var(--cyan), var(--sky)); opacity: .92; }
.brand-disc.d2 { left: 9px; background: linear-gradient(160deg, var(--violet-soft), var(--violet)); box-shadow: -3px 0 8px rgba(124,58,237,.35); }
.brand-word {
    font-family: 'Sora', sans-serif;
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.04em;
    background: var(--grad-blue);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}
.brand-word.on-dark {
    background: linear-gradient(120deg, #93c5fd, #c4b5fd);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.topbar {
    background: var(--grad-deep);
    color: #cbd5e1;
}

#site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,0.72);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid rgba(231, 236, 245, 0.9);
    transition: box-shadow .3s ease, background .3s ease;
}
#site-header.scrolled {
    background: rgba(255,255,255,0.92);
    box-shadow: 0 8px 30px rgba(16, 32, 80, 0.08);
}

.nav-link {
    position: relative;
    font-size: 0.9rem; font-weight: 600;
    color: #475569;
    padding: 9px 16px; border-radius: 10px;
    transition: color .2s, background .2s;
    text-decoration: none;
}
.nav-link::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: 4px;
    height: 2px; border-radius: 2px;
    background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.nav-link:hover { color: var(--blue-deep); }
.nav-link:hover::after { transform: scaleX(1); }
.nav-link.active { color: var(--blue-deep); background: var(--bg-tint); }
.nav-link.active::after { transform: scaleX(1); }

.mobile-nav-link {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; border-radius: 12px;
    font-size: 0.9rem; font-weight: 600; color: #475569;
    text-decoration: none; transition: all .2s;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    background: var(--bg-tint); color: var(--blue-deep);
}

.ham-line { display: block; height: 2px; background: #1e293b; border-radius: 2px; transition: all .3s ease; }
#hamburger-btn.open .ham-line:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger-btn.open .ham-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
#hamburger-btn.open .ham-line:nth-child(3) { transform: translateY(-7px) rotate(-45deg); width: 24px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-grad {
    display: inline-flex; align-items: center; gap: 9px;
    background: var(--grad-blue);
    color: #fff; font-weight: 700; font-size: 0.9rem;
    padding: 14px 28px; border-radius: 12px;
    text-decoration: none; border: none; cursor: pointer;
    box-shadow: var(--shadow-glow);
    position: relative; overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}
.btn-grad::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-brand); opacity: 0;
    transition: opacity .3s ease;
}
.btn-grad span, .btn-grad i { position: relative; z-index: 1; }
.btn-grad:hover { transform: translateY(-3px); box-shadow: 0 22px 50px rgba(37,99,235,.42); }
.btn-grad:hover::before { opacity: 1; }

.btn-outline {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; color: var(--text-dark);
    font-weight: 700; font-size: 0.9rem;
    padding: 13px 27px; border-radius: 12px;
    text-decoration: none; border: 1.5px solid var(--border);
    transition: all .25s ease;
}
.btn-outline:hover {
    border-color: transparent; color: var(--blue-deep);
    background: var(--bg-tint); transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.btn-white {
    display: inline-flex; align-items: center; gap: 9px;
    background: #fff; color: var(--blue-deep);
    font-weight: 700; font-size: 0.9rem;
    padding: 14px 28px; border-radius: 12px;
    text-decoration: none; border: none;
    transition: all .25s ease; box-shadow: 0 10px 30px rgba(0,0,0,.18);
}
.btn-white:hover { transform: translateY(-3px); box-shadow: 0 18px 44px rgba(0,0,0,.26); }

.btn-ghost-white {
    display: inline-flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.08); color: #fff;
    font-weight: 700; font-size: 0.9rem;
    padding: 14px 28px; border-radius: 12px; text-decoration: none;
    border: 1.5px solid rgba(255,255,255,.25); transition: all .25s;
}
.btn-ghost-white:hover { background: rgba(255,255,255,.16); transform: translateY(-3px); }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-tint);
    color: var(--blue-deep);
    font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.12em; text-transform: uppercase;
    padding: 7px 15px; border-radius: 100px;
    margin-bottom: 18px;
    border: 1px solid rgba(37,99,235,.12);
}
.section-badge::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    background: var(--grad-brand);
}
.badge-on-dark {
    background: rgba(255,255,255,.08);
    color: #c7d2fe;
    border: 1px solid rgba(255,255,255,.14);
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */
.section-title {
    font-size: 2.6rem; font-weight: 800;
    color: var(--text-dark); line-height: 1.12;
}
.section-divider {
    width: 64px; height: 5px; border-radius: 5px;
    background: var(--grad-brand); margin-top: 18px;
}

/* ============================================================
   CARDS
   ============================================================ */
.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 22px;
    transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease, border-color .35s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(124,58,237,.25);
}

/* Gradient top-accent that reveals on hover */
.card-accent::after {
    content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 3px;
    border-radius: 0 0 4px 4px; background: var(--grad-brand);
    transform: scaleX(0); transform-origin: left; transition: transform .4s ease;
}
.card-accent:hover::after { transform: scaleX(1); }

.icon-box {
    width: 62px; height: 62px; border-radius: 18px;
    background: var(--bg-tint);
    display: flex; align-items: center; justify-content: center;
    transition: background .35s, transform .35s; flex-shrink: 0;
}
.icon-box i { font-size: 1.45rem; transition: color .35s;
    background: var(--grad-blue); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; }
.card:hover .icon-box { background: var(--grad-blue); transform: rotate(-6deg); }
.card:hover .icon-box i { -webkit-text-fill-color: #fff; color: #fff; }

/* Gradient-filled icon tile (static) */
.icon-grad {
    width: 56px; height: 56px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-blue); color: #fff;
    box-shadow: 0 10px 24px rgba(37,99,235,.28);
    flex-shrink: 0;
}
.icon-grad.violet { background: linear-gradient(150deg, var(--violet-soft), var(--violet)); box-shadow: 0 10px 24px rgba(124,58,237,.28); }
.icon-grad.cyan   { background: linear-gradient(150deg, var(--cyan), var(--blue)); box-shadow: 0 10px 24px rgba(34,211,238,.28); }

/* ============================================================
   HERO / DECORATIONS
   ============================================================ */
.mesh-bg {
    position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.mesh-blob {
    position: absolute; border-radius: 50%;
    filter: blur(70px); opacity: .55;
    animation: floatBlob 14s ease-in-out infinite;
}
.mesh-blob.b1 { width: 520px; height: 520px; background: radial-gradient(circle, #bfdbfe, transparent 70%); top: -160px; right: -120px; }
.mesh-blob.b2 { width: 420px; height: 420px; background: radial-gradient(circle, #ddd6fe, transparent 70%); bottom: -140px; left: -100px; animation-delay: -5s; }
.mesh-blob.b3 { width: 300px; height: 300px; background: radial-gradient(circle, #a5f3fc, transparent 70%); top: 40%; left: 45%; opacity: .4; animation-delay: -9s; }

@keyframes floatBlob {
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(28px,-32px) scale(1.08); }
}

.grid-overlay {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* Floating glass stat card */
.glass-card {
    background: rgba(255,255,255,.75);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.6);
    border-radius: 18px; padding: 18px 22px;
    box-shadow: var(--shadow-md);
}
.stat-number {
    font-family: 'Sora', sans-serif; font-size: 2.2rem; font-weight: 800;
    line-height: 1;
    background: var(--grad-blue); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label { font-size: .72rem; font-weight: 700; color: var(--text-soft);
    text-transform: uppercase; letter-spacing: .08em; margin-top: 5px; }

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.step-number {
    width: 50px; height: 50px; border-radius: 15px;
    background: var(--grad-blue); color: #fff;
    font-family: 'Sora', sans-serif; font-size: 1rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    box-shadow: 0 10px 22px rgba(37,99,235,.25);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-input {
    width: 100%; padding: 14px 16px;
    background: var(--bg-soft); border: 1.5px solid #e2e8f0;
    border-radius: 12px; font-size: 0.9rem; color: var(--text-dark);
    outline: none; transition: border .2s, background .2s, box-shadow .2s;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.form-input:focus {
    border-color: var(--blue); background: #fff;
    box-shadow: 0 0 0 4px rgba(37,99,235,.12);
}
.form-label { display: block; font-size: .82rem; font-weight: 700; color: #334155; margin-bottom: 7px; }

/* ============================================================
   SECTION BACKGROUNDS
   ============================================================ */
.bg-soft   { background: var(--bg-soft); }
.bg-tinted { background: var(--bg-tint); }
.bg-deep   { background: var(--grad-deep); }

.cta-band {
    background: var(--grad-deep);
    position: relative; overflow: hidden;
}
.cta-band::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(600px circle at 15% 20%, rgba(34,211,238,.18), transparent 55%),
        radial-gradient(600px circle at 85% 90%, rgba(124,58,237,.30), transparent 55%);
}

/* ============================================================
   SCROLL ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }
.reveal-delay-4 { transition-delay: .32s; }

.counter-el { font-family: 'Sora', sans-serif; font-weight: 800; }

/* Pointer-follow spotlight (dark cards) */
[data-spotlight] { position: relative; overflow: hidden; }
[data-spotlight]::before {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(124,58,237,.28), transparent 60%);
    opacity: 0; transition: opacity .3s ease;
}
[data-spotlight]:hover::before { opacity: 1; }

/* Marquee logo strip */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: scrollX 28s linear infinite; }
@keyframes scrollX { to { transform: translateX(-50%); } }

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer { background: var(--grad-deep); color: #fff; position: relative; overflow: hidden; }
#site-footer::before {
    content: ''; position: absolute; top: -120px; right: -80px; width: 360px; height: 360px;
    background: radial-gradient(circle, rgba(124,58,237,.35), transparent 70%); filter: blur(40px);
}
#site-footer a { transition: color .2s; }
#site-footer a:hover { color: #a5b4fc; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
    .section-title { font-size: 2rem; }
    .btn-grad, .btn-outline { padding: 12px 22px; }
    .mesh-blob.b1, .mesh-blob.b2 { width: 320px; height: 320px; }
}

@media (prefers-reduced-motion: reduce) {
    .mesh-blob, .marquee-track { animation: none; }
    .reveal { transition: none; opacity: 1; transform: none; }
}

@media print {
    #site-header, #ratan-fab, #ratan-modal-overlay { display: none !important; }
}
