/* ========================================
   Surfbotics — Complete Self-Contained CSS
   No CDN dependency — always works
   ======================================== */

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

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

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #f8fafc;
    color: #0f172a;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea { font: inherit; }
ul, ol { list-style: none; }

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

.font-light { font-weight: 300; }
.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.tracking-tight { letter-spacing: -0.025em; }
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }

.uppercase { text-transform: uppercase; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: 1.5; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

/* --- Colors --- */
.text-white { color: #fff; }
.text-slate-50 { color: #f8fafc; }
.text-slate-100 { color: #f1f5f9; }
.text-slate-200 { color: #e2e8f0; }
.text-slate-300 { color: #cbd5e1; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-blue-100 { color: #dbeafe; }
.text-blue-300 { color: #93c5fd; }
.text-blue-400 { color: #60a5fa; }
.text-blue-500 { color: #3b82f6; }
.text-blue-600 { color: #2563eb; }
.text-blue-700 { color: #1d4ed8; }
.text-indigo-100 { color: #e0e7ff; }
.text-indigo-300 { color: #a5b4fc; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-cyan-300 { color: #67e8f9; }
.text-green-100 { color: #dcfce7; }
.text-green-600 { color: #16a34a; }
.text-green-700 { color: #15803d; }
.text-emerald-50 { color: #ecfdf5; }
.text-emerald-600 { color: #059669; }
.text-emerald-700 { color: #047857; }
.text-amber-600 { color: #d97706; }
.text-amber-700 { color: #b45309; }
.text-rose-50 { color: #fff1f2; }
.text-rose-600 { color: #e11d48; }

/* --- Backgrounds --- */
.bg-white { background: #fff; }
.bg-slate-50 { background: #f8fafc; }
.bg-slate-100 { background: #f1f5f9; }
.bg-slate-900 { background: #0f172a; }
.bg-slate-950 { background: #020617; }
.bg-blue-50 { background: #eff6ff; }
.bg-blue-600 { background: #2563eb; }
.bg-indigo-50 { background: #eef2ff; }
.bg-indigo-600 { background: #4f46e5; }
.bg-cyan-50 { background: #ecfeff; }
.bg-green-600 { background: #16a34a; }
.bg-rose-50 { background: #fff1f2; }
.bg-emerald-50 { background: #ecfdf5; }
.bg-emerald-600 { background: #059669; }

.bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.bg-gradient-to-br { background-image: linear-gradient(to bottom right, var(--tw-gradient-from), var(--tw-gradient-to)); }
.from-blue-400 { --tw-gradient-from: #60a5fa; }
.via-indigo-300 { --tw-via: #a5b4fc; }
.to-blue-500 { --tw-gradient-to: #3b82f6; }
.from-blue-600 { --tw-gradient-from: #2563eb; }
.to-indigo-600 { --tw-gradient-to: #4f46e5; }
.from-blue-500 { --tw-gradient-from: #3b82f6; }
.to-blue-600 { --tw-gradient-to: #2563eb; }
.from-indigo-500 { --tw-gradient-from: #6366f1; }
.to-indigo-600 { --tw-gradient-to: #4f46e5; }
.from-purple-500 { --tw-gradient-from: #a855f7; }
.to-purple-600 { --tw-gradient-to: #9333ea; }
.from-cyan-500 { --tw-gradient-from: #06b6d4; }
.to-cyan-600 { --tw-gradient-to: #0891b2; }

.bg-clip-text { -webkit-background-clip: text; background-clip: text; }
.text-transparent { color: transparent; }

/* --- Opacity & Blur --- */
.opacity-0 { opacity: 0; }
.opacity-30 { opacity: 0.3; }
.opacity-40 { opacity: 0.4; }
.opacity-50 { opacity: 0.5; }
.opacity-70 { opacity: 0.7; }
.opacity-100 { opacity: 1; }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pointer-events-none { pointer-events: none; }

/* --- Spacing --- */
.p-3 { padding: 0.75rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.p-7 { padding: 1.75rem; }
.p-8 { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.p-16 { padding: 4rem; }
.p-20 { padding: 5rem; }
.p-24 { padding: 6rem; }

.px-4 { padding-left: 1rem; padding-right: 1rem; }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.px-7 { padding-left: 1.75rem; padding-right: 1.75rem; }
.px-8 { padding-left: 2rem; padding-right: 2rem; }
.px-10 { padding-left: 2.5rem; padding-right: 2.5rem; }
.px-12 { padding-left: 3rem; padding-right: 3rem; }

.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-3\.5 { padding-top: 0.875rem; padding-bottom: 0.875rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

.pt-5 { padding-top: 1.25rem; }
.pt-12 { padding-top: 3rem; }
.pt-16 { padding-top: 4rem; }
.pt-20 { padding-top: 5rem; }
.pt-24 { padding-top: 6rem; }
.pt-28 { padding-top: 7rem; }

.pb-12 { padding-bottom: 3rem; }
.pb-16 { padding-bottom: 4rem; }
.pb-20 { padding-bottom: 5rem; }

.pl-4 { padding-left: 1rem; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-5 { margin-top: 1.25rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mt-16 { margin-top: 4rem; }
.mt-20 { margin-top: 5rem; }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: 3rem; }
.mb-16 { margin-bottom: 4rem; }

.ml-auto { margin-left: auto; }
.mr-4 { margin-right: 1rem; }

.mx-auto { margin-left: auto; margin-right: auto; }

.-mt-1 { margin-top: -0.25rem; }

.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-5 > * + * { margin-top: 1.25rem; }
.space-x-10 > * + * { margin-left: 2.5rem; }

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

/* --- Layout --- */
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }

.flex-col { flex-direction: column; }
.flex-row { flex-direction: row; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }

.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }

.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }

.self-start { align-self: flex-start; }

.flex-wrap { flex-wrap: wrap; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.top-0 { top: 0; }
.top-1\/2 { top: 50%; }
.top-5 { top: 1.25rem; }
.top-\[5px\] { top: 5px; }
.top-\[28px\] { top: 28px; }
.right-0 { right: 0; }
.right-4 { right: 1rem; }
.right-5 { right: 1.25rem; }
.right-\[20px\] { right: 20px; }
.right-\[30px\] { right: 30px; }
.bottom-0 { bottom: 0; }
.bottom-5 { bottom: 1.25rem; }
.bottom-16 { bottom: 4rem; }
.bottom-\[10px\] { bottom: 10px; }
.bottom-\[28px\] { bottom: 28px; }
.bottom-\[40px\] { bottom: 40px; }
.left-0 { left: 0; }
.left-1\/2 { left: 50%; }
.left-\[5px\] { left: 5px; }
.-top-16 { top: -4rem; }
.-left-16 { left: -4rem; }
.-bottom-16 { bottom: -4rem; }
.-right-16 { right: -4rem; }
.-left-5 { left: -1.25rem; }
.-right-5 { right: -1.25rem; }

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

.z-10 { z-index: 10; }
.z-50 { z-index: 50; }
.z-\[60\] { z-index: 60; }

.w-full { width: 100%; }
.w-4 { width: 1rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-7 { width: 1.75rem; }
.w-8 { width: 2rem; }
.w-10 { width: 2.5rem; }
.w-12 { width: 3rem; }
.w-14 { width: 3.5rem; }
.w-20 { width: 5rem; }
.w-80 { width: 20rem; }
.w-96 { width: 24rem; }

.h-full { height: 100%; }
.h-4 { height: 1rem; }
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-7 { height: 1.75rem; }
.h-8 { height: 2rem; }
.h-10 { height: 2.5rem; }
.h-12 { height: 3rem; }
.h-14 { height: 3.5rem; }
.h-20 { height: 5rem; }

.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-7xl { max-width: 80rem; }

.min-h-\[85vh\] { min-height: 85vh; }

.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }

.object-contain { object-fit: contain; }

/* --- Border & Radius --- */
.rounded { border-radius: 0.25rem; }
.rounded-full { border-radius: 9999px; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-3xl { border-radius: 1.5rem; }
.rounded-\[40px\] { border-radius: 40px; }

/* --- Shadows --- */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); }
.shadow-2xl { box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25); }
.shadow-3xl { box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3); }
.shadow-blue-600\/20 { box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.2); }
.shadow-blue-600\/30 { box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.3); }
.shadow-blue-600\/40 { box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4); }
.shadow-slate-900\/10 { box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1); }
.shadow-slate-200\/60 { box-shadow: 0 25px 50px -12px rgba(226, 232, 240, 0.6); }
.shadow-green-600\/20 { box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.2); }

/* --- Transitions --- */
.transition { transition: all 0.15s ease; }
.transition-all { transition: all 0.3s ease; }
.transition-colors { transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease; }
.duration-300 { transition-duration: 300ms; }
.duration-500 { transition-duration: 500ms; }
.duration-700 { transition-duration: 700ms; }

/* --- Misc --- */
.outline-none { outline: none; }
.cursor-pointer { cursor: pointer; }
.whitespace-nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* --- Responsive Grid --- */
@media (min-width: 640px) {
    .sm\:flex-row { flex-direction: row; }
    .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

@media (min-width: 768px) {
    .md\:hidden { display: none; }
    .md\:flex { display: flex; }
    .md\:flex-row { flex-direction: row; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
    .md\:text-5xl { font-size: 3rem; line-height: 1; }
    .md\:text-left { text-align: left; }
    .md\:h-\[320px\] { height: 320px; }
    .md\:h-\[550px\] { height: 550px; }
    .md\:w-96 { width: 24rem; }
    .md\:max-w-md { max-width: 28rem; }
    .md\:max-w-none { max-width: none; }
    .md\:p-12 { padding: 3rem; }
    
    .carousel-inner {
        flex-direction: row !important;
        padding: 3rem !important;
    }
}

@media (min-width: 1024px) {
    .lg\:hidden { display: none; }
    .lg\:flex { display: flex; }
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
    .lg\:gap-12 { gap: 3rem; }
    .lg\:gap-16 { gap: 4rem; }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

/* ========================================
   COMPONENT STYLES
   ======================================== */

/* --- Navbar --- */
#navbar {
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* --- Hero Glows --- */
.hero-glow {
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}

.hero-glow--blue { background: rgba(59, 130, 246, 0.18); }
.hero-glow--indigo { background: rgba(99, 102, 241, 0.14); }

/* ========================================
   PREMIUM ORBITAL SYSTEM — Enterprise Grade
   Apple Vision Pro / OpenAI / Tesla Level
   ======================================== */

/* --- 1. Root Container & Background Effects --- */
.orbit-system-root {
    position: relative;
    width: 340px;
    height: 340px;
    flex-shrink: 0;
}

/* Subtle dot grid background */
.orbit-system-root::before {
    content: '';
    position: absolute;
    inset: -60px;
    background-image: radial-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: orbitFadeIn 1.5s ease-out 0.3s forwards;
}

/* Tech cross lines */
.orbit-system-root::after {
    content: '';
    position: absolute;
    inset: 10px;
    background:
        linear-gradient(0deg, transparent 49.5%, rgba(99,102,241,0.035) 49.5%, rgba(99,102,241,0.035) 50.5%, transparent 50.5%),
        linear-gradient(90deg, transparent 49.5%, rgba(99,102,241,0.035) 49.5%, rgba(99,102,241,0.035) 50.5%, transparent 50.5%),
        linear-gradient(45deg, transparent 49.5%, rgba(99,102,241,0.02) 49.5%, rgba(99,102,241,0.02) 50.5%, transparent 50.5%),
        linear-gradient(-45deg, transparent 49.5%, rgba(99,102,241,0.02) 49.5%, rgba(99,102,241,0.02) 50.5%, transparent 50.5%);
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    animation: orbitFadeIn 1.5s ease-out 0.6s forwards;
}

@keyframes orbitFadeIn {
    to { opacity: 1; }
}

/* --- 2. SVG Ring Tracks --- */
.orbit-ring-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Dashed track with scrolling animation */
.orbit-ring-track {
    stroke-dasharray: 4 10;
    will-change: stroke-dashoffset;
}

.orbit-ring-track--outer {
    animation: dashScroll 40s linear infinite;
}
.orbit-ring-track--mid {
    animation: dashScroll 30s linear infinite;
}
.orbit-ring-track--inner {
    animation: dashScroll 20s linear infinite;
}

@keyframes dashScroll {
    to { stroke-dashoffset: -100; }
}

/* Glow ring with draw + pulse animation */
.orbit-ring-glow {
    will-change: stroke-dashoffset, stroke-opacity;
}

.orbit-ring-glow--outer {
    animation: ringDrawOuter 2.5s cubic-bezier(0.4, 0, 0.2, 1) forwards,
               ringPulseOuter 5s ease-in-out 2.5s infinite;
}
.orbit-ring-glow--mid {
    animation: ringDrawMid 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards,
               ringPulseMid 5s ease-in-out 2.65s infinite;
}
.orbit-ring-glow--inner {
    animation: ringDrawInner 2.5s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards,
               ringPulseInner 5s ease-in-out 2.8s infinite;
}

@keyframes ringDrawOuter { from { stroke-dashoffset: 974; } to { stroke-dashoffset: 0; } }
@keyframes ringDrawMid { from { stroke-dashoffset: 754; } to { stroke-dashoffset: 0; } }
@keyframes ringDrawInner { from { stroke-dashoffset: 534; } to { stroke-dashoffset: 0; } }

@keyframes ringPulseOuter {
    0%, 100% { stroke-opacity: 0.4; filter: drop-shadow(0 0 2px rgba(129,140,248,0.2)); }
    50% { stroke-opacity: 0.9; filter: drop-shadow(0 0 8px rgba(129,140,248,0.5)); }
}
@keyframes ringPulseMid {
    0%, 100% { stroke-opacity: 0.4; filter: drop-shadow(0 0 2px rgba(96,165,250,0.2)); }
    50% { stroke-opacity: 0.9; filter: drop-shadow(0 0 8px rgba(96,165,250,0.5)); }
}
@keyframes ringPulseInner {
    0%, 100% { stroke-opacity: 0.4; filter: drop-shadow(0 0 2px rgba(34,211,238,0.2)); }
    50% { stroke-opacity: 0.9; filter: drop-shadow(0 0 8px rgba(34,211,238,0.5)); }
}

/* --- 3. Decorative Orbit Dots --- */
.orbit-decor {
    position: absolute;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    pointer-events: none;
    z-index: 2;
    will-change: transform;
}

.orbit-decor::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: inherit;
    filter: blur(6px);
    opacity: 0.5;
}

.orbit-decor--outer-a {
    width: 5px; height: 5px;
    background: #818cf8;
    box-shadow: 0 0 12px #818cf8;
    margin: -2.5px 0 0 -152.5px;
    transform-origin: 152.5px 2.5px;
    animation: orbitSpinCW 18s linear infinite;
}

.orbit-decor--outer-b {
    width: 5px; height: 5px;
    background: #6366f1;
    box-shadow: 0 0 12px #6366f1;
    margin: -2.5px 0 0 -152.5px;
    transform-origin: 152.5px 2.5px;
    animation: orbitSpinCCW 18s linear infinite;
    animation-delay: -9s;
}

.orbit-decor--mid-a {
    width: 4px; height: 4px;
    background: #60a5fa;
    box-shadow: 0 0 12px #60a5fa;
    margin: -2px 0 0 -118px;
    transform-origin: 118px 2px;
    animation: orbitSpinCCW 14s linear infinite;
}

.orbit-decor--mid-b {
    width: 4px; height: 4px;
    background: #3b82f6;
    box-shadow: 0 0 12px #3b82f6;
    margin: -2px 0 0 -118px;
    transform-origin: 118px 2px;
    animation: orbitSpinCW 14s linear infinite;
    animation-delay: -7s;
}

.orbit-decor--inner-a {
    width: 3px; height: 3px;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee;
    margin: -1.5px 0 0 -83.5px;
    transform-origin: 83.5px 1.5px;
    animation: orbitSpinCW 10s linear infinite;
}

@keyframes orbitSpinCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes orbitSpinCCW {
    from { transform: rotate(0deg); }
    to { transform: rotate(-360deg); }
}

/* --- 4. Center Icon (The Sun) --- */
.orbit-center-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.3);
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.5),
                0 0 60px rgba(99, 102, 241, 0.2),
                0 0 100px rgba(37, 99, 235, 0.1);
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    will-change: transform, opacity;
    animation: sunEnter 1s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s forwards,
               sunBreathe 5s ease-in-out 1.3s infinite;
    transition: box-shadow 0.4s ease, scale 0.4s ease;
}

@keyframes sunEnter {
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes sunBreathe {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.05); }
}

.orbit-center-icon:hover {
    scale: 1.08;
    box-shadow: 0 0 40px rgba(37, 99, 235, 0.7),
                0 0 80px rgba(99, 102, 241, 0.35),
                0 0 130px rgba(37, 99, 235, 0.15);
}

.orbit-center-icon:active {
    scale: 0.95;
    transition-duration: 0.1s;
}

.orbit-center-icon svg {
    width: 34px;
    height: 34px;
    color: white;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.orbit-center-icon:hover svg {
    transform: rotate(180deg);
}

/* --- 5. Orbit Anchors (Planet Containers) --- */
.orbit-anchor {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    pointer-events: auto;
    text-decoration: none;
    z-index: 5;
}

/* --- 6. Orbit Tags (Planet Pills) --- */
.orbit-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fff;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    z-index: 6;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3),
                0 0 40px rgba(0, 0, 0, 0.1);
}

/* --- 7. Comet Trails --- */
.orbit-tag::before,
.orbit-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 100%;
    border-radius: 2px;
    transform: translateY(-50%) scaleX(0.5);
    transform-origin: right center;
    pointer-events: none;
    animation: trailPulse 3s ease-in-out infinite;
}

.orbit-tag::before {
    width: 50px;
    height: 2px;
    opacity: 0.5;
    filter: blur(1px);
}

.orbit-tag::after {
    width: 30px;
    height: 3px;
    opacity: 0.25;
    filter: blur(3px);
    animation-delay: 0.5s;
}

@keyframes trailPulse {
    0%, 100% { opacity: 0.2; transform: translateY(-50%) scaleX(0.5); }
    50% { opacity: 0.6; transform: translateY(-50%) scaleX(1); }
}

/* RPA trails */
.orbit-tag--rpa::before { background: linear-gradient(to left, rgba(129,140,248,0.7), transparent); }
.orbit-tag--rpa::after { background: linear-gradient(to left, rgba(165,180,252,0.5), transparent); }

/* ML trails */
.orbit-tag--ml::before { background: linear-gradient(to left, rgba(96,165,250,0.7), transparent); }
.orbit-tag--ml::after { background: linear-gradient(to left, rgba(147,197,253,0.5), transparent); }

/* IA trails */
.orbit-tag--ia::before { background: linear-gradient(to left, rgba(34,211,238,0.7), transparent); }
.orbit-tag--ia::after { background: linear-gradient(to left, rgba(103,232,249,0.5), transparent); }

/* --- 8. Glow Effects --- */
.orbit-tag-glow {
    position: absolute;
    inset: -10px;
    border-radius: inherit;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    animation: planetGlow 4s ease-in-out infinite;
}

.orbit-tag-glow--rpa { background: radial-gradient(ellipse at center, rgba(129,140,248,0.3), transparent 70%); }
.orbit-tag-glow--ml { background: radial-gradient(ellipse at center, rgba(96,165,250,0.3), transparent 70%); }
.orbit-tag-glow--ia { background: radial-gradient(ellipse at center, rgba(34,211,238,0.3), transparent 70%); }

@keyframes planetGlow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.5); }
}

/* --- 9. Dot Indicators --- */
.orbit-tag-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
    animation: dotPulse 2s ease-in-out infinite;
}

.orbit-tag-dot::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    filter: blur(4px);
    opacity: 0.5;
}

.orbit-tag--rpa .orbit-tag-dot { background: #a5b4fc; box-shadow: 0 0 8px #a5b4fc; }
.orbit-tag--ml .orbit-tag-dot { background: #93c5fd; box-shadow: 0 0 8px #93c5fd; }
.orbit-tag--ia .orbit-tag-dot { background: #67e8f9; box-shadow: 0 0 8px #67e8f9; }

@keyframes dotPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.6); opacity: 0.5; }
}

/* --- 10. Tag Color Variants --- */
.orbit-tag--rpa {
    color: #c7d2fe;
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(129,140,248,0.1));
    border: 1px solid rgba(165,180,252,0.3);
}
.orbit-tag--rpa:hover {
    background: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(129,140,248,0.2));
    border-color: rgba(165,180,252,0.7);
    box-shadow: 0 8px 35px rgba(99,102,241,0.5), 0 0 60px rgba(129,140,248,0.25);
    color: #e0e7ff;
}

.orbit-tag--ml {
    color: #bfdbfe;
    background: linear-gradient(135deg, rgba(59,130,246,0.3), rgba(96,165,250,0.1));
    border: 1px solid rgba(147,197,253,0.3);
}
.orbit-tag--ml:hover {
    background: linear-gradient(135deg, rgba(59,130,246,0.5), rgba(96,165,250,0.2));
    border-color: rgba(147,197,253,0.7);
    box-shadow: 0 8px 35px rgba(59,130,246,0.5), 0 0 60px rgba(96,165,250,0.25);
    color: #dbeafe;
}

.orbit-tag--ia {
    color: #a5f3fc;
    background: linear-gradient(135deg, rgba(6,182,212,0.3), rgba(34,211,238,0.1));
    border: 1px solid rgba(103,232,249,0.3);
}
.orbit-tag--ia:hover {
    background: linear-gradient(135deg, rgba(6,182,212,0.5), rgba(34,211,238,0.2));
    border-color: rgba(103,232,249,0.7);
    box-shadow: 0 8px 35px rgba(6,182,212,0.5), 0 0 60px rgba(34,211,238,0.25);
    color: #cffafe;
}

/* --- 11. Luminous Particles --- */
.orbit-particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 3;
}

.orbit-particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--size, 3px);
    height: var(--size, 3px);
    border-radius: 50%;
    background: var(--color, #fff);
    box-shadow: 0 0 6px var(--color, #fff);
    will-change: transform, opacity;
    animation: particleOrbit var(--speed) linear infinite,
               particleFade var(--fade) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
}

@keyframes particleOrbit {
    from { transform: rotate(0deg) translateX(var(--r, 100px)) rotate(0deg); }
    to { transform: rotate(360deg) translateX(var(--r, 100px)) rotate(-360deg); }
}

@keyframes particleFade {
    0%, 100% { opacity: 0; }
    15%, 85% { opacity: var(--opacity, 0.5); }
}

/* --- 13. Responsive --- */
@media (max-width: 1280px) {
    .orbit-system-root { transform: scale(0.82); }
}
@media (max-width: 1024px) {
    .orbit-system-root { transform: scale(0.65); }
}

/* --- Stat Card --- */
.stat-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* --- Carousel --- */
.carousel-slide {
    border-radius: 1.5rem;
    overflow: hidden;
}

.carousel-indicator {
    transition: all 0.3s ease;
}

/* --- Chat Button --- */
#chatButton {
    animation: chatPulse 2s ease-in-out infinite;
}

/* --- Mobile Menu --- */
#mobileMenu {
    transition: all 0.2s ease;
}

/* --- Reveal Animation --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* --- Hover Lift --- */
.hover-lift {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
}

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

@keyframes chatPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.animate-float { animation: float 4s ease-in-out infinite; }
.animate-fade-in { animation: fadeInUp 0.5s ease-out both; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f8fafc; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* --- Mobile Chat --- */
@media (max-width: 768px) {
    #chatWindow {
        width: 100vw;
        height: 100vh;
        bottom: 0;
        right: 0;
        border-radius: 0;
        position: fixed;
    }
}

/* --- Focus Visible --- */
*:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

*:focus:not(:focus-visible) {
    outline: none;
}

/* --- Logo Rotation --- */
@keyframes rotate360 {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.logo-rotate {
    display: inline-block !important;
}

.logo-rotate:hover {
    animation: rotate360 0.8s ease-in-out !important;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
