/* 
  BROQINSTA - PREMIUM PRODUCTION STYLESHEET 
  Design System: Professional, Trustworthy, Modern
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono&display=swap');

:root {
    /* Color System */
    --primary: #7C3AED;
    --secondary: #EC4899;
    --accent: #F59E0B;
    --success: #10B981;
    --error: #EF4444;
    --background: #FAFBFC;
    --surface: #FFFFFF;
    --text-primary: #1F2937;
    --text-secondary: #6B7280;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-12: 48px;
    --sp-16: 64px;
    --sp-24: 96px;

    /* Shadows */
    --shadow-soft: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.15);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* --- ANIMATIONS --- */

.animate-on-scroll {
    opacity: 1;
    /* Changed from 0 to 1 - content visible by default */
    transform: translateY(0);
    /* Start in final position */
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Optional enhancement when observer triggers */
.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInUp {
    from {
        opacity: 1;
        /* Changed from 0 - start visible */
        transform: translateY(0);
        /* Changed from 30px - start in place */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-in>* {
    opacity: 1;
    /* Changed from 0 - visible by default */
    /* Removed animation - content shows immediately */
}

/* Optional: Keep animation delays for future use */
.stagger-in.animated>*:nth-child(1) {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.1s;
}

.stagger-in.animated>*:nth-child(2) {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.2s;
}

.stagger-in.animated>*:nth-child(3) {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.3s;
}

.stagger-in.animated>*:nth-child(4) {
    animation: fadeInUp 0.6s ease-out;
    animation-delay: 0.4s;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 100, 200;
        stroke-dashoffset: -35;
    }

    100% {
        stroke-dasharray: 100, 200;
        stroke-dashoffset: -125;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

@keyframes drawCheck {
    to {
        stroke-dashoffset: 0;
    }
}

/* --- COMPONENTS --- */

.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: var(--shadow-md);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: var(--shadow-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    padding: 18px 32px;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.input-field {
    width: 100%;
    padding: 20px 24px;
    background: white;
    border: 2px solid transparent;
    border-radius: 16px;
    font-size: 16px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-soft);
}

.input-field:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    transform: scale(1.01);
}

/* Background Effects */
.hero-background {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background: #FAFBFC;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    top: -10%;
    left: -10%;
    background: linear-gradient(135deg, #7C3AED, #EC4899);
}

.orb-2 {
    width: 500px;
    height: 500px;
    top: 40%;
    right: -10%;
    background: linear-gradient(135deg, #EC4899, #F59E0B);
    animation-delay: 5s;
}

.orb-3 {
    width: 700px;
    height: 700px;
    bottom: -20%;
    left: 30%;
    background: linear-gradient(135deg, #10B981, #7C3AED);
    animation-delay: 10s;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #7C3AED, #EC4899);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #6D28D9, #DB2777);
}

/* Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    /* Standard property */
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 0%, #e0e0e0 20%, #f0f0f0 40%, #f0f0f0 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Tooltip */
[data-tooltip] {
    position: relative;
}

[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 8px 12px;
    background: #1F2937;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    z-index: 100;
}

[data-tooltip]:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(-12px);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    h1 {
        font-size: 36px !important;
    }

    .btn-primary {
        width: 100%;
    }
}