/* Main Design Tokens & Utilities */
:root {
    --ink: #0B0B0F;
    --paper: #F4F1EB;
    --accent: #1A1AFF;
    --accent-2: #FF3B00;
    --muted: #8C8982;
    --border: #D8D4CC;
    --surface: #EDEAE2;
    --white: #FAFAF8;

    --primary: var(--accent);
    --secondary: var(--accent-2);
    --dark: var(--ink);
    --background-dark: var(--ink);
    --background-light: var(--paper);
}

body {
    background: var(--paper);
    color: var(--ink);
}

/* removing mesh and inserting hero-grid */
.mesh-gradient {
    position: relative;
    background-color: var(--paper);
}

.mesh-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}

.mesh-gradient>* {
    position: relative;
    z-index: 10;
}

.bg-mesh-section {
    position: relative;
    background-color: var(--surface);
}

.bg-mesh-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.2;
    pointer-events: none;
    z-index: 0;
}

.bg-mesh-section>* {
    position: relative;
    z-index: 10;
}

/* Glassmorphism Effect -> Solid Border / Paper look */
.glass {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 2px !important;
}

/* Premium Text Gradient -> Solid Action color */
.text-gradient {
    background: none;
    -webkit-text-fill-color: initial;
    color: var(--accent);
}

/* Subtle Glows -> No glows, just flat */
.glow-purple {
    box-shadow: none;
}

.shadow-glow {
    box-shadow: none;
    border: 1px solid var(--accent);
}

.shadow-card-hover {
    box-shadow: 4px 4px 0px 0px rgba(11, 11, 15, 0.1);
}

/* Scroll Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

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

::-webkit-scrollbar-track {
    background: var(--surface);
}

::-webkit-scrollbar-thumb {
    background: var(--muted);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ink);
}

/* Typography Overrides for Material Symbols */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Tab Button Active State */
.tab-btn {
    border-radius: 2px !important;
}

.tab-btn.active {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
    box-shadow: none;
}

.tab-pane {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.tab-pane.hidden {
    display: none;
}

summary::-webkit-details-marker {
    display: none;
}

details summary {
    list-style: none;
}

@media (max-width: 768px) {
    .comparison-table-wrapper {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}

.slot-text-anim {
    display: inline-block;
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.5s ease;
    color: var(--accent);
}

#slot-text {
    display: inline-block;
    color: var(--accent);
}

.slot-enter {
    animation: slotEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.slot-exit {
    animation: slotExit 0.6s cubic-bezier(0.36, 0, 0.66, -0.56) forwards;
}

@keyframes slotEnter {
    from {
        transform: translateY(100%);
        opacity: 0;
    }

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

@keyframes slotExit {
    from {
        transform: translateY(0);
        opacity: 1;
    }

    to {
        transform: translateY(-120%);
        opacity: 0;
    }
}

#typewriter-text {
    border-right: 4px solid var(--accent);
    padding-right: 4px;
    animation: blinkCursor 0.75s step-end infinite;
    color: var(--accent);
}

@keyframes blinkCursor {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: var(--accent)
    }
}

.arrow-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(3px);
    }

    60% {
        transform: translateY(1.5px);
    }
}

.font-script {
    font-family: 'DM Serif Display', serif;
    font-style: italic;
}