/**
 * Plusky IT Solutions - Main Stylesheet
 * Updated to match Figma design — v4.1
 * ─────────────────────────────────────
 */

/* ==================== CSS Variables ==================== */
:root {
    /* Primary Colors */
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-200: #bfdbfe;
    --primary-300: #93c5fd;
    --primary-400: #60a5fa;
    --primary-500: #3b82f6;
    --primary-600: #2563eb;
    --primary-700: #1d4ed8;
    --primary-800: #1e40af;
    --primary-900: #1e3a8a;

    /* Gray Colors */
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Dark shades (for dark-bg sections) */
    --dark-bg: #1F2933;
    --dark-surface: #2D3A45;

    /* Semantic Colors */
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    --info: #5086FF;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;
    --space-24: 96px;
    --space-32: 128px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Signika', var(--font-sans);

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 3px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.04);
    --shadow-card-hover: 0 4px 12px rgba(37,99,235,.12), 0 16px 40px rgba(0,0,0,.08);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
}

/* ==================== Base Styles ==================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-600);
    text-decoration: none;
    transition: color var(--duration-fast) ease;
}

a:hover {
    color: var(--primary-700);
}

ul, ol {
    list-style: none;
}

/* ==================== Typography ==================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(36px, 5vw, 52px); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
h5 { font-size: 18px; }
h6 { font-size: 16px; }

p { margin-bottom: 16px; }

.text-sm  { font-size: 14px; }
.text-lg  { font-size: 18px; }
.text-xl  { font-size: 20px; }
.text-2xl { font-size: 24px; }
.text-gray    { color: var(--gray-600); }
.text-primary { color: var(--primary-600); }
.text-center  { text-align: center; }
.text-white   { color: #fff; }

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

.container-sm { max-width: 800px; }
.container-lg { max-width: 1400px; }

.section     { padding: 80px 0; }
.section-sm  { padding: 48px 0; }
.section-lg  { padding: 120px 0; }

/* ==================== Buttons ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
    background: var(--primary-600);
    color: #fff;
    border-color: var(--primary-600);
}
.btn-primary:hover {
    background: var(--primary-700);
    border-color: var(--primary-700);
    color: #fff;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-700);
    border-color: var(--gray-100);
}
.btn-secondary:hover {
    background: var(--gray-200);
    border-color: var(--gray-200);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary-600);
    color: var(--primary-600);
}
.btn-outline:hover {
    background: var(--primary-600);
    color: #fff;
}

.btn-white {
    background: #fff;
    color: var(--primary-600);
    border-color: #fff;
}
.btn-white:hover {
    background: var(--gray-100);
    border-color: var(--gray-100);
}

.btn-ghost {
    background: transparent;
    color: var(--gray-700);
    border-color: var(--gray-300);
}
.btn-ghost:hover {
    border-color: var(--gray-400);
    background: var(--gray-50);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 10px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn i,
.btn svg {
    transition: transform var(--duration-fast) ease;
}
.btn:hover i,
.btn:hover svg {
    transform: translateX(3px);
}

/* ==================== Cards ==================== */
.card {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 32px;
    box-shadow: var(--shadow-card);
    transition: box-shadow var(--duration-normal) var(--ease-out),
                transform var(--duration-normal) var(--ease-out);
}

.card-bordered {
    border: 1px solid var(--gray-200);
    box-shadow: none;
}

.card-hover:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

/* ==================== Badges ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.02em;
}

.badge-primary {
    background: var(--primary-100);
    color: var(--primary-700);
}

.badge-gray {
    background: var(--gray-100);
    color: var(--gray-700);
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

.badge-dark {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

/* ==================== Section Headers ==================== */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.section-header .badge {
    margin-bottom: 16px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    color: var(--gray-600);
    font-size: 18px;
    line-height: 1.7;
}

/* ==================== Logo Marquee ==================== */
.logo-marquee {
    overflow: hidden;
    padding: 12px 0;
    position: relative;
}

.logo-marquee::before,
.logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(90deg, #fff 0%, transparent 100%);
}
.logo-marquee::after {
    right: 0;
    background: linear-gradient(270deg, #fff 0%, transparent 100%);
}

.logo-marquee--dark::before {
    background: linear-gradient(90deg, var(--dark-bg) 0%, transparent 100%);
}
.logo-marquee--dark::after {
    background: linear-gradient(270deg, var(--dark-bg) 0%, transparent 100%);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 40s linear infinite;
}

.marquee-track--reverse {
    animation-direction: reverse;
}

.marquee-track img {
    height: 48px;
    flex-shrink: 0;
}

@keyframes marquee {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ==================== Grid System ==================== */
.grid     { display: grid; gap: 24px; }
.grid-2   { grid-template-columns: repeat(2, 1fr); }
.grid-3   { grid-template-columns: repeat(3, 1fr); }
.grid-4   { grid-template-columns: repeat(4, 1fr); }

/* ==================== SVG Icon Utility ==================== */
.icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.icon-wrap--sm  { width: 24px; height: 24px; }
.icon-wrap--md  { width: 40px; height: 40px; }
.icon-wrap--lg  { width: 56px; height: 56px; }
.icon-wrap--xl  { width: 72px; height: 72px; }

.icon-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.icon-circle {
    border-radius: 50%;
    background: var(--primary-100);
}

.icon-rounded {
    border-radius: var(--radius-lg);
    background: var(--primary-100);
    padding: 12px;
}

/* ==================== Stats (Figma style) ==================== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    padding: 56px 64px;
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-600) 100%);
    border-radius: var(--radius-2xl);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.stats-bar::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.stat-item {
    text-align: center;
}

.stat-value {
    font-size: clamp(36px, 4vw, 52px);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 14px;
    opacity: 0.85;
    font-weight: 500;
}

/* ==================== FAQ ==================== */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin-bottom: 12px;
    overflow: hidden;
    background: #fff;
    transition: border-color var(--duration-normal) ease,
                box-shadow var(--duration-normal) ease;
}

.faq-item:hover {
    border-color: var(--primary-200);
}

.faq-item.active {
    border-color: var(--primary-300);
    box-shadow: 0 0 0 3px rgba(37,99,235,.06);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    transition: background var(--duration-fast) ease;
    gap: 16px;
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question i,
.faq-question svg {
    color: var(--gray-400);
    transition: transform 0.3s var(--ease-out);
    flex-shrink: 0;
}

.faq-item.active .faq-question i,
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary-600);
}

.faq-answer {
    display: none;
    padding: 0 24px 20px;
    color: var(--gray-600);
    line-height: 1.7;
    font-size: 14px;
}

.faq-item.active .faq-answer {
    display: block;
}

/* ==================== CTA Section ==================== */
.cta-section {
    background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-700) 50%, var(--primary-600) 100%);
    padding: 80px 0;
    text-align: center;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -120px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section h2 {
    color: #fff;
    margin-bottom: 16px;
}

.cta-section p {
    opacity: 0.9;
    max-width: 500px;
    margin: 0 auto 32px;
    font-size: 18px;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ==================== Figma Checkmark List ==================== */
.check-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.check-list li:last-child {
    border-bottom: none;
}

.check-list li .check-icon {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-100);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.check-list li .check-icon img {
    width: 12px;
    height: 9px;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-24px); }
    to   { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: 40px 32px;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }

    .section { padding: 56px 0; }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .stats-bar {
        grid-template-columns: 1fr 1fr;
        padding: 32px 24px;
        gap: 24px;
    }

    .stat-value { font-size: 32px; }

    .cta-actions {
        flex-direction: column;
        align-items: center;
    }

    .logo-marquee::before,
    .logo-marquee::after {
        width: 40px;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .stats-bar {
        grid-template-columns: 1fr;
    }
}