/* ============================================
   MINDLOOPIA — Base Styles
   ============================================ */

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    font-weight: var(--font-weight-normal);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-deep);
    overflow-x: hidden;
}

/* ── Selection ── */
::selection {
    background: var(--color-orange);
    color: #fff;
}

/* ── Headings ── */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-primary);
}

h1 {
    font-size: var(--text-4xl);
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-2xl);
}

h4 {
    font-size: var(--text-xl);
}

/* ── Paragraphs ── */
p {
    color: var(--color-text-secondary);
    max-width: 65ch;
}

/* ── Links ── */
a {
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover {
    color: var(--color-orange);
}

/* ── Focus Visible ── */
:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

/* ── Container ── */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--container-padding);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

/* ── Section Spacing ── */
.section {
    padding-block: var(--space-section);
    position: relative;
}

/* ── Gradient Text (rainbow like logo) ── */
.gradient-text {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ── IA highlight (orange like logo) ── */
.text-ia {
    color: var(--color-orange);
    -webkit-text-fill-color: var(--color-orange);
}

/* ── Badge ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    font-size: var(--text-xs);
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-orange);
    background: rgba(255, 140, 0, 0.08);
    border: 1px solid rgba(255, 140, 0, 0.2);
    border-radius: var(--radius-full);
}

.badge__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--color-orange);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* ── Scrollbar ── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--color-navy);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-purple-dark);
}

/* ── Decorative Orbit Ring (reusable) ── */
.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid;
    pointer-events: none;
}

.orbit-ring--sm {
    width: 200px;
    height: 200px;
    border-color: rgba(107, 79, 160, 0.08);
}

.orbit-ring--md {
    width: 400px;
    height: 400px;
    border-color: rgba(42, 54, 128, 0.06);
}

.orbit-ring--lg {
    width: 650px;
    height: 650px;
    border-color: rgba(107, 79, 160, 0.04);
}

.orbit-ring--xl {
    width: 900px;
    height: 900px;
    border-color: rgba(42, 54, 128, 0.03);
}

/* ── Floating Dot (decorative) ── */
.floating-dot {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    animation: float-dot 6s ease-in-out infinite;
}

@keyframes float-dot {

    0%,
    100% {
        transform: translate(0, 0);
    }

    33% {
        transform: translate(8px, -12px);
    }

    66% {
        transform: translate(-6px, 8px);
    }
}