:root {
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-card: 'Space Grotesk', sans-serif;
    --font-nav: 'DM Sans', sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #030303;
    color: #a3a3a3;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* Glassmorphism Utilities */
.glass-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Light Torch Effect for Feature Cards */
.light-torch {
    position: absolute;
    width: 492px;
    height: 492px;
    border-radius: 50%;
    background: radial-gradient(circle,
            rgba(255, 255, 255, 0.12) 0%,
            rgba(255, 255, 255, 0.064) 30%,
            rgba(255, 255, 255, 0.024) 50%,
            transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: overlay;
    z-index: 1;
}

.glass-panel:hover .light-torch {
    opacity: 1;
}

.glass-nav {
    box-sizing: border-box;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, rgba(212, 212, 212, 0.0405263) 34.13%, rgba(153, 153, 153, 0) 54.81%, rgba(212, 212, 212, 0.0405263) 77.4%, rgba(255, 255, 255, 0.07) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 69px;
    /* Ensure pseudo-element positions correctly */
    position: fixed;
}

/* Gradient Border Pseudo-element */
.glass-nav::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 69px;
    padding: 1px;
    background: linear-gradient(170deg, rgba(128, 128, 128, 0.6) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(128, 128, 128, 0.6) 100%);
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Refined Glass Button Style */
.glass-button {
    background: linear-gradient(136.19deg, rgba(77, 77, 77, 0.11) 20.93%, rgba(68, 68, 68, 0.07) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 69px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    border: none;
    cursor: pointer;
}

.glass-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 69px;
    padding: 1.5px;
    background: linear-gradient(170deg, rgba(128, 128, 128, 0.6) 0%, rgba(0, 0, 0, 0) 40%, rgba(0, 0, 0, 0) 60%, rgba(128, 128, 128, 0.6) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.glass-button:hover {
    background: linear-gradient(136.19deg, rgba(10, 10, 10, 0.6) 47.93%, rgba(40, 40, 40, 0.4) 100%);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.05);
}

/* Dark Zone - Central column that blocks grid torch under content */
.dark-zone {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 72rem;
    /* max-w-6xl */
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0.7) 20%,
            #000000 50%,
            rgba(0, 0, 0, 0.7) 70%,
            rgba(0, 0, 0, 0.2) 100%);
    /* box-shadow removed to let gradient control opacity */
    pointer-events: none;
    z-index: 2;
    /* Above grid-torch (z-1) */
}

/* Ensure content sits above the dark zone */
section,
footer,
header {
    position: relative;
    z-index: 10;
}

/* Grid Torch Effect - Static cyan grid revealed by moving mask */
/* Grid Torch Effect - Static cyan grid revealed by moving mask */
#grid-torch {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;

    /* Shared Gradient Variable */
    --grid-gradient:
        linear-gradient(to right, rgba(200, 196, 196, 0.15) 1.5px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 202, 202, 0.15) 1.5px, transparent 1px);
}

/* Blurred Layer (Background Glow) */
#grid-torch::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grid-gradient);
    background-size: 60px 60px;
    filter: blur(3px);
    opacity: 0.7;

    mask-image: radial-gradient(1456px 1040px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            transparent 80%);
    -webkit-mask-image: radial-gradient(1456px 1040px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            transparent 80%);
}

/* Sharp Layer (Core Focus) */
#grid-torch::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: var(--grid-gradient);
    background-size: 60px 60px;

    mask-image: radial-gradient(1456px 1040px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            transparent 40%);
    -webkit-mask-image: radial-gradient(1456px 1040px at var(--mouse-x, 50%) var(--mouse-y, 50%),
            black 0%,
            transparent 40%);
}

/* Animations */
@keyframes fadeUpBlur {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
        filter: blur(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

.reveal-element {
    opacity: 0;
}

.reveal-element.is-visible {
    animation: fadeUpBlur 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Marquee Animation */
@keyframes marqueeScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.marquee-container {
    mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 10%,
            black 90%,
            transparent);
}

.marquee-track {
    animation: marqueeScroll 25s linear infinite;
}

.marquee-track-right {
    animation: marqueeScroll 40s linear infinite reverse;
}

/* Grid Background */
.grid-bg {
    background-size: 40px 40px;
    background-image: linear-gradient(to right,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px),
        linear-gradient(to bottom,
            rgba(255, 255, 255, 0.02) 1px,
            transparent 1px);
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(to bottom right, #ffffff, #a5a5a5);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-sub {
    background: linear-gradient(to bottom right, #9ca3af, #4b5563);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Custom UI Elements */
.toggle-switch {
    appearance: none;
    width: 40px;
    height: 22px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s;
}

.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle-switch:checked {
    background: rgba(99, 102, 241, 0.5);
}

.toggle-switch:checked::after {
    transform: translateX(18px);
}

.content-card .card-text,
.content-card .card-vignette {
    transition: opacity 0.3s ease;
}

.content-card .add-to-board-btn {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.font-nav {
    font-family: var(--font-nav);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


@media (min-width: 768px) {
    .md\:max-w-\[1000px\] {
        max-width: 1000px !important;
    }
}

.text-xs {
    font-size: 0.9rem !important;
    line-height: 1rem !important;
}

@property --border-angle {
    syntax: '<angle>';
    initial-value: 170deg;
    inherits: true;
}

.glass-button-interactive {
    position: relative;
    --border-angle: 120deg;
    /* Subtle easing for smooth hover movement */
    transition: --border-angle 0.15s ease-out, transform 0.2s ease-out;
    transform: scale(1);
}

.glass-button-interactive:hover {
    transform: scale(1.03);
}

.glass-button-interactive.returning {
    /* Slower transition when returning to default */
    transition: --border-angle 0.4s ease-in-out, transform 0.3s ease-out;
}

.glass-button-interactive::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 69px;
    padding: 1.5px;
    /* Two-peak conic gradient to match navbar button's dual shimmer */
    background: conic-gradient(from var(--border-angle),
            rgba(128, 128, 128, 0.6) 0deg,
            transparent 40deg,
            transparent 140deg,
            rgba(128, 128, 128, 0.6) 180deg,
            transparent 220deg,
            transparent 320deg,
            rgba(128, 128, 128, 0.6) 360deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* Pricing month text line-height */
.pricing-month {
    line-height: 0.8rem !important;
    font-size: 1rem !important;
}

/* Waitlist Success Animations */
@keyframes fadeInZoom {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }

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

@keyframes slideInRight {
    0% {
        opacity: 0;
        transform: translateX(20px);
    }

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

@keyframes shake {

    10%,
    90% {
        transform: translate3d(-1px, 0, 0);
    }

    20%,
    80% {
        transform: translate3d(2px, 0, 0);
    }

    30%,
    50%,
    70% {
        transform: translate3d(-4px, 0, 0);
    }

    40%,
    60% {
        transform: translate3d(4px, 0, 0);
    }
}

.animate-in.fade-in.zoom-in {
    animation: fadeInZoom 0.3s ease-out forwards;
}

.animate-in.slide-in-from-right-4 {
    opacity: 0;
    /* Ensure hidden initially */
    animation: slideInRight 0.5s ease-out 0.1s forwards;
}

.animate-shake {
    animation: shake 0.5s cubic-bezier(.36, .07, .19, .97) both;
}