@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

/* =========================================================================
   1. CSS VARIABLES
   ========================================================================= */
   :root {
    --primary: #0284c7;        /* Sky Blue 600 - Match the blue server/error screen from images */
    --primary-dark: #0369a1;   /* Sky Blue 700 */
    --accent: #fb923c;         /* Orange 400 - Match the warning triangle */
    --accent-hover: #f97316;   /* Orange 500 */
    --highlight: #ef4444;      /* Red 500 - Bug/Error highlight */
    
    --bg-main: #ffffff;
    --bg-secondary: #f8fafc;   /* Slate 50 */
    
    --text-dark: #0f172a;      /* Slate 900 */
    --text-muted: #64748b;     /* Slate 500 */
    
    --border-color: #f1f5f9;   /* Slate 100 */

    --shadow-soft: 0 10px 40px -10px rgba(0,0,0,0.08);
    --shadow-primary: 0 10px 40px -10px rgba(2, 132, 199, 0.3);
    --shadow-accent: 0 10px 25px -5px rgba(251, 146, 60, 0.4);
}

/* =========================================================================
   2. BASE RESET & UTILITIES
   ========================================================================= */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-main);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

.gradient-text1 {
    background: linear-gradient(135deg, var(--primary), #38bdf8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text2 {
    background: linear-gradient(135deg, var(--accent), #fcd34d);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text3 {
    background: linear-gradient(135deg, var(--highlight), #f87171);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.shadow-premium {
    box-shadow: var(--shadow-soft);
}

.shadow-primary {
    box-shadow: var(--shadow-primary);
}

.shadow-accent {
    box-shadow: var(--shadow-accent);
}

.gradient-hero {
    background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.08), transparent 40%),
                radial-gradient(circle at bottom left, rgba(251, 146, 60, 0.05), transparent 40%);
}

/* =========================================================================
   3. ANIMATIONS
   ========================================================================= */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes float-delayed {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float-delayed {
    animation: float-delayed 5s ease-in-out infinite 2s;
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Delay classes for staggered animations */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Typed Cursor Animation */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.typed-cursor {
    animation: blink 1s step-end infinite;
}

/* =========================================================================
   4. NAVBAR STYLES
   ========================================================================= */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 20px -10px rgba(0,0,0,0.1);
}

/* =========================================================================
   5. COMPARISON TABLE
   ========================================================================= */
.comp-table th {
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
}

.comp-table tr {
    transition: all 0.2s ease;
}

.comp-table tbody tr:hover td {
    background-color: #f8fafc;
}

/* =========================================================================
   6. TESTIMONIAL CAROUSEL
   ========================================================================= */
#testimonial-viewport {
    cursor: grab;
}

#testimonial-viewport:active {
    cursor: grabbing;
}

#testimonial-track {
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

#slider-dots button {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: all 0.3s ease;
}

#slider-dots button.active {
    background-color: var(--primary);
    transform: scale(1.3);
}

/* =========================================================================
   7. FAQ ACCORDION
   ========================================================================= */
details > summary {
    list-style: none;
}
details > summary::-webkit-details-marker {
    display: none;
}

details[open] summary ~ * {
    animation: sweep .3s ease-in-out;
}

@keyframes sweep {
    0%    {opacity: 0; margin-top: -10px}
    100%  {opacity: 1; margin-top: 0px}
}

details .faq-icon {
    transition: transform 0.3s ease;
}

details[open] .faq-icon {
    transform: rotate(45deg);
}
