@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* Hide Alpine elements until Alpine initialises — prevents flash of hidden modals/menus */
[x-cloak] { display: none !important; }

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #5B3F9A;
    border-radius: 3px;
}

/* Utility: gradient text */
.gradient-text {
    background: linear-gradient(135deg, #F59E0B 0%, #FCD34D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #7B5FBA 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Hero Slider ── */
.hero-slider {
    width: 100%;
    height: 100%;
    background: #1e0a4e;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
}

/* Slide 1 — visible immediately, fades out at 33% of cycle */
.hero-slide:nth-child(1) {
    opacity: 1;
    animation: heroFadeOut 15s infinite;
    animation-delay: 0s;
    animation-fill-mode: forwards;
}

/* Slides 2 & 3 — fade in after their turn */
.hero-slide:nth-child(2) {
    animation: heroFadeIn 15s infinite;
    animation-delay: 5s;
    animation-fill-mode: both;
}

.hero-slide:nth-child(3) {
    animation: heroFadeIn 15s infinite;
    animation-delay: 10s;
    animation-fill-mode: both;
}

@keyframes heroFadeOut {
    0%   { opacity: 1; }
    30%  { opacity: 1; }
    38%  { opacity: 0; }
    95%  { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes heroFadeIn {
    0%   { opacity: 0; }
    5%   { opacity: 1; }
    30%  { opacity: 1; }
    38%  { opacity: 0; }
    100% { opacity: 0; }
}

.hero-bg {
    background: linear-gradient(135deg, #1e0a4e 0%, #2D1B69 25%, #4C1D95 60%, #5B21B6 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    pointer-events: none;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

/* Primary button */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 4px 4px 4px 24px;
    background: #D5A545;
    color: #fff;
    border: none;
    border-radius: 16px;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(241, 95, 37, 0.25);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #D5A545;
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(213, 165, 69, 0.35);
}

.btn-primary:focus {
    outline: none;
}

.btn-primary span:first-child {
    padding-right: 16px;
}

.btn-primary-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: 0.3s;
}

.btn-primary-icon svg {
    width: 20px;
    height: 20px;
    color: #000;
    transition: transform 0.35s cubic-bezier(0.7, 0, 0.3, 1);
}

.btn-primary:hover .btn-primary-icon svg {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .btn-primary {
        padding: 4px 4px 4px 16px;
        font-size: 13px;
        border-radius: 12px;
    }

    .btn-primary-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .btn-primary-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Scroll reveal animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-100 {
    transition-delay: 0.1s;
}

.reveal-delay-200 {
    transition-delay: 0.2s;
}

.reveal-delay-300 {
    transition-delay: 0.3s;
}

.reveal-delay-400 {
    transition-delay: 0.4s;
}

/* Floating animation */
@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-12px);
    }
}

.float-anim {
    animation: float 4s ease-in-out infinite;
}

/* Sticky navbar */
.navbar-sticky {
    transition: all 0.3s ease;
}

.navbar-sticky.scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

/* ── Legal Pages ── */
.legal-content .legal-section-heading {
    font-size: 1.25rem;
    font-weight: 700;
    color: #47227F;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    scroll-margin-top: 7rem;
}

.legal-content .legal-section-heading:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content .legal-section-heading .section-num {
    width: 1.75rem;
    height: 1.75rem;
    background: #47227F;
    color: #fff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 800;
    flex-shrink: 0;
}

.legal-content p {
    color: #4b5563;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
    space-y: 0.5rem;
}

.legal-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: #4b5563;
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 0.5rem;
}

.legal-content ul li::before {
    content: '';
    width: 0.375rem;
    height: 0.375rem;
    background: #009EB5;
    border-radius: 50%;
    margin-top: 0.55rem;
    flex-shrink: 0;
}

.legal-content .legal-highlight {
    background: #f5f0ff;
    border-left: 3px solid #47227F;
    border-radius: 0 0.75rem 0.75rem 0;
    padding: 1rem 1.25rem;
    margin: 1.25rem 0;
    font-size: 0.875rem;
    color: #3b1f6e;
    line-height: 1.7;
}

.legal-content .legal-highlight.teal {
    background: #f0fbfc;
    border-left-color: #009EB5;
    color: #0e5f6e;
}

.legal-content .legal-highlight.gold {
    background: #fdf8ee;
    border-left-color: #D5A545;
    color: #7a5a1a;
}

.legal-content .legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin: 1.25rem 0;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.legal-content .legal-table th {
    background: #47227F;
    color: #fff;
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-content .legal-table td {
    padding: 0.75rem 1rem;
    color: #4b5563;
    border-bottom: 1px solid #f3f4f6;
    vertical-align: top;
    line-height: 1.6;
}

.legal-content .legal-table tr:last-child td {
    border-bottom: none;
}

.legal-content .legal-table tr:nth-child(even) td {
    background: #fafafa;
}

/* ── Anchor scroll offset (accounts for sticky navbar) ── */
h2[id], h3[id] {
    scroll-margin-top: 7rem;
}

/* ── Typography ── */
.heading-2,
.heading-2-white,
.heading-2-dark {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.025em;
    font-size: 2.25rem;
    /* 36px */
}

.heading-2 {
    color: #47227F;
}

.heading-2-dark {
    color: #000000;
}

.heading-2-white {
    color: #ffffff;
}

@media (min-width: 640px) {
    .heading-2,
    .heading-2-white,

    .heading-2-dark {
        font-size: 44px;
    }
}

@media (min-width: 1024px) {
    .heading-2,
    .heading-2-white,

    .heading-2-dark {
        font-size: 60px;
    }
}


/* ── Filament Sidebar Nav Item Hover Fix ── */
.fi-sidebar-item-button:hover .menu-title,
.fi-sidebar-item-button:hover span.menu-title {
    color: inherit !important;
}

/* ── Filament RTL Overrides ── */
html[dir="rtl"] .fi-sidebar {
    left: auto !important;
    right: 0 !important;
}

html[dir="rtl"] .fi-main-ctn {
    padding-left: 0 !important;
    padding-right: var(--sidebar-width, 16rem) !important;
}

html[dir="rtl"] .fi-topbar {
    direction: rtl;
}

html[dir="rtl"] .fi-topbar-nav {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fi-sidebar-nav {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .fi-sidebar-item-label {
    text-align: right;
}

html[dir="rtl"] .fi-sidebar-group-label {
    text-align: right;
}

html[dir="rtl"] .fi-breadcrumbs {
    direction: rtl;
}

html[dir="rtl"] .fi-header {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .fi-ta-ctn,
html[dir="rtl"] .fi-fo-ctn,
html[dir="rtl"] .fi-wi-ctn {
    direction: rtl;
}

html[dir="rtl"] .fi-ta-header-cell,
html[dir="rtl"] .fi-ta-cell {
    text-align: right;
}

html[dir="rtl"] .fi-fo-field-wrp {
    text-align: right;
}

html[dir="rtl"] .fi-input-wrp {
    direction: rtl;
}

html[dir="rtl"] .fi-ac-actions {
    flex-direction: row-reverse;
}

html[dir="rtl"] .fi-page-header-actions {
    flex-direction: row-reverse;
}
