@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;700&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-primary: #F7F5F3;
    --text-primary: #37322F;
    --text-secondary: rgba(55, 50, 47, 0.8);
    --border-subtle: rgba(55, 50, 47, 0.12);
    --border-very-subtle: rgba(55, 50, 47, 0.06);
    --accent-dark: #37322F;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

/* Vertical lines */
.vertical-line {
    width: 1px;
    height: 100%;
    position: absolute;
    top: 0;
    background-color: var(--border-subtle);
    box-shadow: 1px 0px 0px white;
    z-index: 0;
}

.line-left {
    left: 0;
}

.line-right {
    right: 0;
}

/* Glassmorphism Navbar */
.nav-glass {
    background: #F7F5F3;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0px 0px 0px 2px white, 0px 1px 2px rgba(55, 50, 47, 0.12);
}

/* Badge Styling */
.badge {
    padding: 6px 14px;
    background: white;
    border: 1px solid rgba(2, 6, 23, 0.08);
    border-radius: 90px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0px 0px 0px 4px rgba(55, 50, 47, 0.05), 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Dashboard Image Transitions */
.dashboard-img {
    transition: all 0.5s ease-in-out;
}

.dashboard-img.active {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.dashboard-img.inactive {
    opacity: 0;
    transform: scale(0.95);
    filter: blur(4px);
}

/* Feature Card Styling */
.feature-card {
    transition: all 0.3s ease;
    border-color: rgba(224, 222, 219, 0.8);
}

.feature-card.active {
    background: white;
    box-shadow: inset 0px 0px 0px 0.75px #E0DEDB;
}

.progress-bar {
    height: 2px;
    background-color: rgba(50, 45, 43, 0.08);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
}

.progress-fill {
    height: 100%;
    background-color: #322D2B;
    width: 0%;
    transition: width 0.1s linear;
}

/* Decorative grid patterns */
.pattern-bg {
    background-image: radial-gradient(var(--border-subtle) 0.5px, transparent 0.5px);
    background-size: 20px 20px;
}

/* Premium Button Overlay */
.btn-overlay {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.10));
    mix-blend-mode: multiply;
}

/* Uiverse Button Styles */
.uiverse-button {
    --h-button: 48px;
    --w-button: 102px;
    --round: 9999px;
    /* Changed to match rounded-full theme */
    cursor: pointer;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: all 0.25s ease;
    background: radial-gradient(65.28% 65.28% at 50% 100%,
            rgba(223, 113, 255, 0.8) 0%,
            rgba(223, 113, 255, 0) 100%),
        linear-gradient(0deg, #7a5af8, #7a5af8);
    border-radius: var(--round);
    border: none;
    outline: none;
    padding: 12px 48px;
    /* Increased padding for the text */
    text-decoration: none;
}

.uiverse-button::before,
.uiverse-button::after {
    content: "";
    position: absolute;
    inset: var(--space);
    transition: all 0.5s ease-in-out;
    border-radius: var(--round);
    z-index: 0;
}

.uiverse-button::before {
    --space: 1px;
    background: linear-gradient(177.95deg,
            rgba(255, 255, 255, 0.19) 0%,
            rgba(255, 255, 255, 0) 100%);
}

.uiverse-button::after {
    --space: 2px;
    background: radial-gradient(65.28% 65.28% at 50% 100%,
            rgba(223, 113, 255, 0.8) 0%,
            rgba(223, 113, 255, 0) 100%),
        linear-gradient(0deg, #7a5af8, #7a5af8);
}

.uiverse-button:active {
    transform: scale(0.95);
}

.fold {
    z-index: 1;
    position: absolute;
    top: 0;
    right: 0;
    height: 1rem;
    width: 1rem;
    display: inline-block;
    transition: all 0.5s ease-in-out;
    background: radial-gradient(100% 75% at 55%,
            rgba(223, 113, 255, 0.8) 0%,
            rgba(223, 113, 255, 0) 100%);
    box-shadow: 0 0 3px black;
    border-bottom-left-radius: 0.5rem;
    border-top-right-radius: var(--round);
}

.fold::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 150%;
    height: 150%;
    transform: rotate(45deg) translateX(0%) translateY(-18px);
    background-color: #e8e8e8;
    pointer-events: none;
}

.uiverse-button:hover .fold {
    margin-top: -1rem;
    margin-right: -1rem;
}

.points_wrapper {
    overflow: hidden;
    width: 100%;
    height: 100%;
    pointer-events: none;
    position: absolute;
    z-index: 1;
}

.points_wrapper .point {
    bottom: -10px;
    position: absolute;
    animation: floating-points infinite ease-in-out;
    pointer-events: none;
    width: 2px;
    height: 2px;
    background-color: #fff;
    border-radius: 9999px;
}

@keyframes floating-points {
    0% {
        transform: translateY(0);
    }

    85% {
        opacity: 0;
    }

    100% {
        transform: translateY(-55px);
        opacity: 0;
    }
}

.points_wrapper .point:nth-child(1) {
    left: 10%;
    opacity: 1;
    animation-duration: 2.35s;
    animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(2) {
    left: 30%;
    opacity: 0.7;
    animation-duration: 2.5s;
    animation-delay: 0.5s;
}

.points_wrapper .point:nth-child(3) {
    left: 25%;
    opacity: 0.8;
    animation-duration: 2.2s;
    animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(4) {
    left: 44%;
    opacity: 0.6;
    animation-duration: 2.05s;
}

.points_wrapper .point:nth-child(5) {
    left: 50%;
    opacity: 1;
    animation-duration: 1.9s;
}

.points_wrapper .point:nth-child(6) {
    left: 75%;
    opacity: 0.5;
    animation-duration: 1.5s;
    animation-delay: 1.5s;
}

.points_wrapper .point:nth-child(7) {
    left: 88%;
    opacity: 0.9;
    animation-duration: 2.2s;
    animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(8) {
    left: 58%;
    opacity: 0.8;
    animation-duration: 2.25s;
    animation-delay: 0.2s;
}

.points_wrapper .point:nth-child(9) {
    left: 98%;
    opacity: 0.6;
    animation-duration: 2.6s;
    animation-delay: 0.1s;
}

.points_wrapper .point:nth-child(10) {
    left: 65%;
    opacity: 1;
    animation-duration: 2.5s;
    animation-delay: 0.2s;
}

.inner {
    z-index: 2;
    gap: 6px;
    position: relative;
    width: 100%;
    color: white;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease-in-out;
}

.inner svg.icon {
    width: 18px;
    height: 18px;
    transition: fill 0.1s linear;
}

.uiverse-button:focus svg.icon {
    fill: white;
}

.uiverse-button:hover svg.icon {
    fill: transparent;
    animation:
        dasharray 1s linear forwards,
        filled 0.1s linear forwards 0.95s;
}

@keyframes dasharray {
    from {
        stroke-dasharray: 0 0 0 0;
    }

    to {
        stroke-dasharray: 68 68 0 0;
    }
}

@keyframes filled {
    to {
        fill: white;
    }
}


/* Live Indicator Animation */
.live-dot {
    width: 6px;
    height: 6px;
    background-color: #EF4444;
    border-radius: 50%;
    position: relative;
}

.live-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background-color: #EF4444;
    opacity: 0.4;
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

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

    50% {
        transform: scale(2.5);
        opacity: 0;
    }
}