/* ============================================
   OneShot Algo Theme - Main Stylesheet
   ============================================ */

/* ---- Base & Reset Additions ---- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #0a0e1a;
    color: #e2e8f0;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---- Font Families ---- */
.font-mono, .os-font-mono {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* ---- Utility Prefix System ---- */
/* We use os- prefix to avoid conflicts with WordPress/Tailwind */

/* ---- Background ---- */
.os-bg-dark { background-color: #0a0e1a; }
.os-bg-darker { background-color: #080b14; }
.os-bg-darkest { background-color: #060810; }

/* ---- Gradient Text ---- */
.os-gradient-text {
    background: linear-gradient(to right, #22d3ee, #60a5fa, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.os-gradient-text-alt {
    background: linear-gradient(to right, #22d3ee, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ---- Grid Background ---- */
.os-grid-bg {
    background-image: 
        linear-gradient(rgba(6,182,212,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(6,182,212,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* ---- Layout ---- */
.os-relative { position: relative; }
.os-absolute { position: absolute; }
.os-fixed { position: fixed; }
.os-top-0 { top: 0; }
.os-left-0 { left: 0; }
.os-right-0 { right: 0; }
.os-bottom-0 { bottom: 0; }
.os-inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.os-z-50 { z-index: 50; }

.os-max-w-7xl { max-width: 80rem; }
.os-max-w-4xl { max-width: 56rem; }
.os-max-w-3xl { max-width: 48rem; }
.os-max-w-2xl { max-width: 42rem; }
.os-max-w-xl { max-width: 36rem; }
.os-max-w-xs { max-width: 20rem; }

.os-mx-auto { margin-left: auto; margin-right: auto; }
.os-mt-1 { margin-top: 0.25rem; }
.os-mt-2 { margin-top: 0.5rem; }
.os-mt-3 { margin-top: 0.75rem; }
.os-mt-4 { margin-top: 1rem; }
.os-mt-6 { margin-top: 1.5rem; }
.os-mt-8 { margin-top: 2rem; }
.os-mt-10 { margin-top: 2.5rem; }
.os-mt-12 { margin-top: 3rem; }
.os-mb-2 { margin-bottom: 0.5rem; }
.os-mb-3 { margin-bottom: 0.75rem; }
.os-mb-4 { margin-bottom: 1rem; }
.os-mb-6 { margin-bottom: 1.5rem; }
.os-mb-8 { margin-bottom: 2rem; }
.os-mb-16 { margin-bottom: 4rem; }
.os-mb-20 { margin-bottom: 5rem; }
.os-ml-1 { margin-left: 0.25rem; }
.os-pr-4 { padding-right: 1rem; }

.os-px-4 { padding-left: 1rem; padding-right: 1rem; }
.os-px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.os-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.os-px-8 { padding-left: 2rem; padding-right: 2rem; }
.os-py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.os-py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.os-py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.os-py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.os-py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.os-py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.os-py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.os-py-24 { padding-top: 6rem; padding-bottom: 6rem; }
.os-py-32 { padding-top: 8rem; padding-bottom: 8rem; }
.os-pt-20 { padding-top: 5rem; }
.os-pt-32 { padding-top: 8rem; }
.os-pb-5 { padding-bottom: 1.25rem; }
.os-pb-12 { padding-bottom: 3rem; }
.os-pb-20 { padding-bottom: 5rem; }
.os-p-4 { padding: 1rem; }
.os-p-6 { padding: 1.5rem; }
.os-p-8 { padding: 2rem; }

.os-gap-1 { gap: 0.25rem; }
.os-gap-1\.5 { gap: 0.375rem; }
.os-gap-2 { gap: 0.5rem; }
.os-gap-3 { gap: 0.75rem; }
.os-gap-4 { gap: 1rem; }
.os-gap-6 { gap: 1.5rem; }
.os-gap-8 { gap: 2rem; }
.os-gap-12 { gap: 3rem; }

/* ---- Flexbox ---- */
.os-flex { display: flex; }
.os-inline-flex { display: inline-flex; }
.os-grid { display: grid; }
.os-items-center { align-items: center; }
.os-items-start { align-items: flex-start; }
.os-justify-center { justify-content: center; }
.os-justify-between { justify-content: space-between; }
.os-flex-wrap { flex-wrap: wrap; }
.os-flex-col { flex-direction: column; }
.os-shrink-0 { flex-shrink: 0; }

/* ---- Grid Columns ---- */
.os-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---- Sizing ---- */
.os-w-2 { width: 0.5rem; }
.os-w-3 { width: 0.75rem; }
.os-w-4 { width: 1rem; }
.os-w-5 { width: 1.25rem; }
.os-w-6 { width: 1.5rem; }
.os-w-8 { width: 2rem; }
.os-w-10 { width: 2.5rem; }
.os-w-12 { width: 3rem; }
.os-w-24 { width: 6rem; }
.os-w-32 { width: 8rem; }
.os-w-full { width: 100%; }
.os-h-1 { height: 0.25rem; }
.os-h-2 { height: 0.5rem; }
.os-h-3 { height: 0.75rem; }
.os-h-4 { height: 1rem; }
.os-h-5 { height: 1.25rem; }
.os-h-6 { height: 1.5rem; }
.os-h-8 { height: 2rem; }
.os-h-10 { height: 2.5rem; }
.os-h-12 { height: 3rem; }
.os-h-16 { height: 4rem; }
.os-h-20 { height: 5rem; }
.os-h-24 { height: 6rem; }
.os-h-32 { height: 8rem; }
.os-h-px { height: 1px; }
.os-h-auto { height: auto; }
.os-min-h-screen { min-height: 100vh; }

/* ---- Typography ---- */
.os-text-xs { font-size: 0.75rem; line-height: 1rem; }
.os-text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.os-text-base { font-size: 1rem; line-height: 1.5rem; }
.os-text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.os-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.os-text-2xl { font-size: 1.5rem; line-height: 2rem; }
.os-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.os-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.os-text-5xl { font-size: 3rem; line-height: 1; }
.os-text-6xl { font-size: 3.75rem; line-height: 1; }
.os-text-7xl { font-size: 4.5rem; line-height: 1; }
.os-text-8xl { font-size: 6rem; line-height: 1; }

.os-font-medium { font-weight: 500; }
.os-font-semibold { font-weight: 600; }
.os-font-bold { font-weight: 700; }
.os-font-extrabold { font-weight: 800; }

.os-tracking-tight { letter-spacing: -0.025em; }
.os-text-center { text-align: center; }
.os-text-left { text-align: left; }
.os-text-right { text-align: right; }
.os-leading-relaxed { line-height: 1.625; }
.os-leading-\[1\.1\] { line-height: 1.1; }

/* ---- Colors ---- */
.os-text-white { color: #ffffff; }
.os-text-gray-300 { color: #d1d5db; }
.os-text-gray-400 { color: #9ca3af; }
.os-text-gray-500 { color: #6b7280; }
.os-text-gray-600 { color: #4b5563; }
.os-text-gray-900 { color: #111827; }
.os-text-cyan-100 { color: #cffafe; }
.os-text-cyan-400 { color: #22d3ee; }
.os-text-emerald-400 { color: #34d399; }
.os-text-amber-400 { color: #fbbf24; }
.os-text-purple-400 { color: #c084fc; }
.os-text-blue-400 { color: #60a5fa; }
.os-text-rose-400 { color: #fb7185; }
.os-text-red-400 { color: #f87171; }

.os-bg-cyan-500 { background-color: #06b6d4; }
.os-bg-blue-500 { background-color: #3b82f6; }
.os-bg-emerald-500 { background-color: #10b981; }
.os-bg-purple-500 { background-color: #a855f7; }
.os-bg-amber-500 { background-color: #f59e0b; }
.os-bg-rose-500 { background-color: #f43f5e; }
.os-bg-indigo-500 { background-color: #6366f1; }
.os-bg-teal-500 { background-color: #14b8a6; }
.os-bg-red-500 { background-color: #ef4444; }
.os-bg-yellow-500 { background-color: #eab308; }
.os-bg-green-500 { background-color: #22c55e; }

/* ---- Color with opacity ---- */
.os-bg-cyan-500\/10 { background-color: rgba(6, 182, 212, 0.1); }
.os-bg-cyan-500\/5 { background-color: rgba(6, 182, 212, 0.05); }
.os-bg-cyan-500\/8 { background-color: rgba(6, 182, 212, 0.08); }
.os-bg-cyan-500\/3 { background-color: rgba(6, 182, 212, 0.03); }
.os-bg-cyan-500\/20 { background-color: rgba(6, 182, 212, 0.2); }
.os-bg-blue-500\/10 { background-color: rgba(59, 130, 246, 0.1); }
.os-bg-blue-600\/8 { background-color: rgba(37, 99, 235, 0.08); }
.os-bg-emerald-500\/10 { background-color: rgba(16, 185, 129, 0.1); }
.os-bg-emerald-500\/20 { background-color: rgba(16, 185, 129, 0.2); }
.os-bg-emerald-400 { background-color: #34d399; }
.os-bg-purple-500\/5 { background-color: rgba(168, 85, 247, 0.05); }
.os-bg-purple-500\/10 { background-color: rgba(168, 85, 247, 0.1); }
.os-bg-purple-500\/20 { background-color: rgba(168, 85, 247, 0.2); }
.os-bg-amber-500\/10 { background-color: rgba(245, 158, 11, 0.1); }
.os-bg-amber-500\/20 { background-color: rgba(245, 158, 11, 0.2); }
.os-bg-rose-500\/10 { background-color: rgba(244, 63, 94, 0.1); }
.os-bg-rose-500\/20 { background-color: rgba(244, 63, 94, 0.2); }
.os-bg-indigo-500\/10 { background-color: rgba(99, 102, 241, 0.1); }
.os-bg-indigo-500\/20 { background-color: rgba(99, 102, 241, 0.2); }
.os-bg-teal-500\/10 { background-color: rgba(20, 184, 166, 0.1); }
.os-bg-teal-500\/20 { background-color: rgba(20, 184, 166, 0.2); }
.os-bg-red-500\/10 { background-color: rgba(239, 68, 68, 0.1); }
.os-bg-red-500\/80 { background-color: rgba(239, 68, 68, 0.8); }
.os-bg-yellow-500\/80 { background-color: rgba(234, 179, 8, 0.8); }
.os-bg-green-500\/80 { background-color: rgba(34, 197, 94, 0.8); }

/* White opacity backgrounds */
.os-bg-white\/5 { background-color: rgba(255, 255, 255, 0.05); }
.os-bg-white\/\[0\.02\] { background-color: rgba(255, 255, 255, 0.02); }
.os-bg-white\/\[0\.01\] { background-color: rgba(255, 255, 255, 0.01); }
.os-bg-white\/\[0\.03\] { background-color: rgba(255, 255, 255, 0.03); }
.os-bg-white\/\[0\.04\] { background-color: rgba(255, 255, 255, 0.04); }
.os-bg-white\/\[0\.05\] { background-color: rgba(255, 255, 255, 0.05); }

/* ---- Borders ---- */
.os-border { border-width: 1px; border-style: solid; }
.os-border-2 { border-width: 2px; border-style: solid; }
.os-border-t { border-top-width: 1px; border-top-style: solid; }
.os-border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.os-border-white\/5 { border-color: rgba(255, 255, 255, 0.05); }
.os-border-white\/10 { border-color: rgba(255, 255, 255, 0.1); }
.os-border-white\/\[0\.04\] { border-color: rgba(255, 255, 255, 0.04); }
.os-border-white\/\[0\.06\] { border-color: rgba(255, 255, 255, 0.06); }
.os-border-cyan-500\/10 { border-color: rgba(6, 182, 212, 0.1); }
.os-border-cyan-500\/20 { border-color: rgba(6, 182, 212, 0.2); }
.os-border-cyan-500\/30 { border-color: rgba(6, 182, 212, 0.3); }
.os-border-cyan-500\/40 { border-color: rgba(6, 182, 212, 0.4); }
.os-border-blue-500\/20 { border-color: rgba(59, 130, 246, 0.2); }
.os-border-blue-500\/30 { border-color: rgba(59, 130, 246, 0.3); }
.os-border-emerald-500\/20 { border-color: rgba(16, 185, 129, 0.2); }
.os-border-emerald-500\/30 { border-color: rgba(16, 185, 129, 0.3); }
.os-border-purple-500\/20 { border-color: rgba(168, 85, 247, 0.2); }
.os-border-amber-500\/20 { border-color: rgba(245, 158, 11, 0.2); }
.os-border-rose-500\/20 { border-color: rgba(244, 63, 94, 0.2); }
.os-border-indigo-500\/20 { border-color: rgba(99, 102, 241, 0.2); }
.os-border-teal-500\/20 { border-color: rgba(20, 184, 166, 0.2); }

/* ---- Border Radius ---- */
.os-rounded-full { border-radius: 9999px; }
.os-rounded-xl { border-radius: 0.75rem; }
.os-rounded-2xl { border-radius: 1rem; }
.os-rounded-3xl { border-radius: 1.5rem; }

/* ---- Overflow ---- */
.os-overflow-hidden { overflow: hidden; }

/* ---- Effects ---- */
.os-blur-lg { filter: blur(16px); }
.os-blur-\[120px\] { filter: blur(120px); }
.os-blur-\[150px\] { filter: blur(150px); }
.os-blur-\[200px\] { filter: blur(200px); }
.os-blur-xl { filter: blur(24px); }
.os-backdrop-blur-sm { backdrop-filter: blur(4px); }
.os-backdrop-blur-xl { backdrop-filter: blur(24px); }

.os-shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); }
.os-shadow-xl { box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); }
.os-shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); }
.os-shadow-cyan-500\/5 { box-shadow: 0 0 15px rgba(6, 182, 212, 0.05); }
.os-shadow-cyan-500\/10 { box-shadow: 0 0 30px rgba(6, 182, 212, 0.1); }
.os-shadow-cyan-500\/20 { box-shadow: 0 0 40px rgba(6, 182, 212, 0.2); }
.os-shadow-cyan-500\/25 { box-shadow: 0 0 50px rgba(6, 182, 212, 0.25); }

/* ---- Gradients ---- */
.os-bg-gradient-to-r { background-image: linear-gradient(to right, var(--os-gradient-from), var(--os-gradient-to)); }
.os-from-cyan-500 { --os-gradient-from: #06b6d4; --os-gradient-to: #06b6d4; }
.os-from-cyan-600 { --os-gradient-from: #0891b2; --os-gradient-to: #0891b2; }
.os-from-cyan-400 { --os-gradient-from: #22d3ee; --os-gradient-to: #22d3ee; }
.os-from-emerald-500 { --os-gradient-from: #10b981; --os-gradient-to: #10b981; }
.os-from-blue-500 { --os-gradient-from: #3b82f6; --os-gradient-to: #3b82f6; }
.os-to-blue-600 { --os-gradient-to: #2563eb; }
.os-to-blue-700 { --os-gradient-to: #1d4ed8; }
.os-to-blue-500 { --os-gradient-to: #3b82f6; }
.os-to-transparent { --os-gradient-to: transparent; }
.os-to-emerald-400 { --os-gradient-to: #34d399; }

.os-via-cyan-500\/20 { }
.os-via-emerald-500\/20 { }
.os-via-purple-500\/20 { }

/* Gradient line helpers */
.os-bg-gradient-to-r.os-from-transparent { background-image: linear-gradient(to right, transparent, var(--os-gradient-to, transparent)); }

/* ---- Transitions ---- */
.os-transition-all { transition: all 150ms ease; }
.os-transition-colors { transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease; }
.os-transition-transform { transition: transform 150ms ease; }
.os-duration-300 { transition-duration: 300ms; }
.os-duration-500 { transition-duration: 500ms; }

/* ---- Hover States ---- */
.hover\:os-text-cyan-400:hover { color: #22d3ee; }
.hover\:os-bg-white\/5:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:os-bg-white\/10:hover { background-color: rgba(255, 255, 255, 0.1); }
.hover\:os-bg-white\/\[0\.02\]:hover { background-color: rgba(255, 255, 255, 0.02); }
.hover\:os-bg-white\/\[0\.04\]:hover { background-color: rgba(255, 255, 255, 0.04); }
.hover\:os-bg-white\/\[0\.05\]:hover { background-color: rgba(255, 255, 255, 0.05); }
.hover\:os-bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:os-border-cyan-500\/20:hover { border-color: rgba(6, 182, 212, 0.2); }
.hover\:os-border-cyan-500\/30:hover { border-color: rgba(6, 182, 212, 0.3); }
.hover\:os-border-purple-500\/20:hover { border-color: rgba(168, 85, 247, 0.2); }
.hover\:os-shadow-cyan-400\/40:hover { box-shadow: 0 0 50px rgba(6, 182, 212, 0.4); }
.hover\:os-scale-105:hover { transform: scale(1.05); }
.hover\:os-scale-\[1\.02\]:hover { transform: scale(1.02); }
.hover\:os-from-cyan-400:hover { --os-gradient-from: #22d3ee; }
.hover\:os-to-blue-500:hover { --os-gradient-to: #3b82f6; }
.hover\:os-text-white:hover { color: #ffffff; }

/* ---- Group hover ---- */
.group:hover .group-hover\:os-translate-x-1 { transform: translateX(0.25rem); }
.group:hover .group-hover\:os-bg-cyan-300\/40 { background-color: rgba(103, 232, 249, 0.4); }

/* ---- Animations ---- */
@keyframes os-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}
.os-animate-pulse { animation: os-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite; }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0e1a; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

::selection { background: rgba(6, 182, 212, 0.3); color: white; }

/* ---- Responsive Grid ---- */
@media (min-width: 640px) {
    .sm\:os-px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
    .sm\:os-px-12 { padding-left: 3rem; padding-right: 3rem; }
    .sm\:os-py-16 { padding-top: 4rem; padding-bottom: 4rem; }
    .sm\:os-py-32 { padding-top: 8rem; padding-bottom: 8rem; }
    .sm\:os-text-xl { font-size: 1.25rem; line-height: 1.75rem; }
    .sm\:os-text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .sm\:os-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .sm\:os-text-5xl { font-size: 3rem; line-height: 1; }
    .sm\:os-h-20 { height: 5rem; }
    .sm\:os-inline-flex { display: inline-flex; }
    .sm\:os-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:os-flex-row { flex-direction: row; }
    .sm\:os-text-right { text-align: right; }
    .sm\:os-gap-6 { gap: 1.5rem; }
}

@media (min-width: 768px) {
    .md\:os-flex { display: flex; }
    .md\:os-hidden { display: none; }
    .md\:os-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\:os-block { display: block; }
    .md\:os-scale-105 { transform: scale(1.05); }
}

@media (min-width: 1024px) {
    .lg\:os-px-8 { padding-left: 2rem; padding-right: 2rem; }
    .lg\:os-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:os-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:os-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
    .lg\:os-col-span-1 { grid-column: span 1; }
    .lg\:os-gap-12 { gap: 3rem; }
    .lg\:os-gap-16 { gap: 4rem; }
    .lg\:os-text-5xl { font-size: 3rem; line-height: 1; }
    .lg\:os-text-6xl { font-size: 3.75rem; line-height: 1; }
    .lg\:os-text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .lg\:os-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1280px) {
    .xl\:os-text-7xl { font-size: 4.5rem; line-height: 1; }
}

/* ---- Hidden utility ---- */
.os-hidden { display: none; }

/* ---- Space-y ---- */
.os-space-y-3 > * + * { margin-top: 0.75rem; }
.os-space-y-2\.5 > * + * { margin-top: 0.625rem; }

/* ---- Negative margins ---- */
.-os-mt-16 { margin-top: -4rem; }
.-os-top-2 { top: -0.5rem; }
.-os-top-4 { top: -1rem; }
.-os-right-2 { right: -0.5rem; }
.-os-right-4 { right: -1rem; }
.-os-bottom-4 { bottom: -1rem; }
.-os-left-4 { left: -1rem; }

/* ---- Translate ---- */
.-os-translate-x-1\/2 { transform: translateX(-50%); }
.-os-translate-y-1\/2 { transform: translateY(-50%); }

/* ---- Header scrolled state ---- */
.site-header-scrolled {
    background-color: rgba(10, 14, 26, 0.8) !important;
    backdrop-filter: blur(24px);
    border-bottom: 1px solid rgba(6, 182, 212, 0.1);
    box-shadow: 0 10px 15px rgba(6, 182, 212, 0.05);
}

/* ---- FAQ Accordion ---- */
.os-faq-item.active .os-faq-content {
    display: block;
}

.os-faq-item.active .os-faq-chevron {
    transform: rotate(180deg);
    color: #22d3ee;
}

/* ---- Fill for star SVGs ---- */
.os-fill-amber-400 { fill: #fbbf24; }

/* ---- Checked utility ---- */
.os-checked { }

/* ---- Gradient border line ---- */
.os-h-px { height: 1px; }
.os-opacity-30 { opacity: 0.3; }

/* ---- From/To gradient lines ---- */
.os-from-transparent { --os-gradient-from: transparent; }

/* ---- Transform ---- */
.hover\:os-translate-x-1:hover { transform: translateX(0.25rem); }
