/* ================================================================
   COMPASS+ — STYLESHEET
   1. Font Faces
   2. CSS Variables / Design Tokens
   3. Reset & Base
   4. Layout Utilities
   5. Header & Navigation
   6. Hero Section
   7. Services / How-It-Works Section
   8. Animation Card (Data Input)
      8a. Keyframe Assignments
      8b. Keyframe Logic (Flawless 24s Loop)
   9. Benefits Section
   10. Footer
   11. Scroll Animations & Media Queries
================================================================ */

/* ================================================================
   1. FONT FACES
================================================================ */
@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-Light.ttf') format('truetype');
    font-weight: 300;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-Regular.ttf') format('truetype');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-Medium.ttf') format('truetype');
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-Bold.ttf') format('truetype');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: 'Lexend';
    src: url('../assets/font/lexend/Lexend-Black.ttf') format('truetype');
    font-weight: 900;
    font-display: swap;
}

/* ================================================================
   2. CSS VARIABLES / DESIGN TOKENS
================================================================ */
:root {
    --bg-body: #f1f0f5;
    --bg-section-alt: #ffffff;
    --bg-card: rgba(255, 255, 255, 0.85);
    --bg-card-hover: rgba(255, 255, 255, 1);
    --bg-footer: #e2e0eb;

    --border: rgba(2, 132, 199, 0.1);
    --border-subtle: rgba(2, 132, 199, 0.05);

    --text-primary: #2f3847;
    --text-secondary: #6a737b;

    --accent-blue: #0284c7;
    --accent-blue-dim: rgba(2, 132, 199, 0.15);
    --accent-hover: #0ea5e9;
    --accent-green: #10b981;
    --accent-gradient: linear-gradient(135deg, #0284c7, #0ea5e9);
}

/* ================================================================
   3. RESET & BASE
================================================================ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Buttons don't inherit font-family by default — force site font */
button,
input,
select,
textarea {
    font-family: 'Lexend', sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    font-family: 'Lexend', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ================================================================
   4. LAYOUT UTILITIES
================================================================ */
.container {
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 5%;
}

/* ================================================================
   5. HEADER & NAVIGATION
================================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 2rem;
    right: 2rem;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    margin-top: 1.5rem;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 50px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 800;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}







/* ================================================================
   6. HERO SECTION
================================================================ */
.hero {
    min-height: 110vh;
    padding-top: 100px;
    padding-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: radial-gradient(circle at center top, #e2e0eb 0%, var(--bg-body) 50%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0 0 30% 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg width='160' height='160' viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2338bdf8' stroke-width='2' stroke-opacity='0.15' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M30 30l-10 10 10 10m20-20l10 10-10 10m-5-24l-10 28'/%3E%3Cpath d='M100 50v-20h20m-20 20l10-10 5 5 10-15'/%3E%3Ccircle cx='30' cy='110' r='3'/%3E%3Ccircle cx='50' cy='100' r='3'/%3E%3Ccircle cx='45' cy='125' r='3'/%3E%3Cpath d='M30 110l20-10-5 25z'/%3E%3Crect x='100' y='105' width='28' height='18' rx='9'/%3E%3Cpath d='M106 114h6m-3-3v6'/%3E%3Ccircle cx='118' cy='111' r='1.5'/%3E%3Ccircle cx='122' cy='115' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 160px 160px;
    z-index: 0;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

/* Abstract Background Elements */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: 0;
    opacity: 0.25;
    pointer-events: none;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: var(--accent-blue);
    animation: float 20s ease-in-out infinite alternate;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    width: 40vw;
    height: 40vw;
    background: #a855f7;
    animation: float 15s ease-in-out infinite alternate-reverse;
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(5%, 5%);
    }
}

/* Decorative Hero Gamified Shapes */
.hero-glass-shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.06), rgba(2, 132, 199, 0.01));
    border: 1px solid rgba(2, 132, 199, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 0;
    pointer-events: none;
    box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.1), inset 0 2px 10px rgba(2, 132, 199, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shape-icon {
    font-size: 3.5rem;
    opacity: 0.7;
    filter: drop-shadow(0 0 20px rgba(56, 189, 248, 0.6));
}

.h-shape-1 {
    width: 140px;
    height: 140px;
    left: 15%;
    top: 25%;
    transform: rotate(-15deg);
    border-radius: 30px;
    animation: floatShape1 10s infinite alternate ease-in-out;
}

.h-shape-2 {
    width: 160px;
    height: 160px;
    right: 15%;
    top: 40%;
    transform: rotate(10deg);
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(2, 132, 199, 0.02));
    border: 1px solid rgba(56, 189, 248, 0.25);
    animation: floatShape2 12s infinite alternate-reverse ease-in-out;
}

.h-shape-3 {
    width: 110px;
    height: 110px;
    left: 45%;
    top: 12%;
    transform: rotate(25deg);
    border-radius: 25px;
    animation: floatShape3 8s infinite alternate ease-in-out;
}

@keyframes floatShape1 {
    0% {
        transform: translateY(0) rotate(-15deg);
    }

    100% {
        transform: translateY(-30px) rotate(-5deg);
    }
}

@keyframes floatShape2 {
    0% {
        transform: translateY(0) rotate(10deg);
    }

    100% {
        transform: translateY(-40px) rotate(25deg);
    }
}

@keyframes floatShape3 {
    0% {
        transform: translateY(0) rotate(25deg);
    }

    100% {
        transform: translateY(-20px) rotate(15deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-bottom: 50px;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.btn-prediction {
    display: inline-block;
    padding: 18px 36px;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 25px -8px rgba(56, 189, 248, 0.6);
    position: relative;
    overflow: hidden;
}

.btn-prediction::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(2, 132, 199, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-prediction:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(56, 189, 248, 0.8);
    color: #ffffff;
}

.btn-prediction:hover::after {
    left: 100%;
}

.hero-visuals {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1000px;
    width: 100%;
    padding: 0 5%;
}

.hero-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 240, 245, 0.95));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-top: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 15px 35px rgba(2, 132, 199, 0.1), inset 0 2px 15px rgba(56, 189, 248, 0.05);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(2, 132, 199, 0.1), inset 0 2px 20px rgba(56, 189, 248, 0.1);
    border-color: rgba(56, 189, 248, 0.3);
    border-top-color: rgba(56, 189, 248, 0.7);
}

.hc-icon {
    font-size: 1.6rem;
    color: #ffffff;
    background: var(--accent-gradient);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, 0.05);
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
}

.hc-text {
    display: flex;
    flex-direction: column;
}

.hc-title {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 4px;
    font-weight: 600;
}

.hc-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-shadow: 0 0 10px rgba(2, 132, 199, 0.2);
}

/* Hero card — when no data is available yet */
.hc-value--unavailable {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    background: rgba(148, 163, 184, 0.12);
    border: 1px dashed rgba(148, 163, 184, 0.4);
    border-radius: 6px;
    padding: 3px 8px;
    letter-spacing: 0.3px;
    text-shadow: none;
    display: inline-block;
}

/* ================================================================
   7. SERVICES / HOW-IT-WORKS SECTION
================================================================ */
.services-section {
    padding: 120px 5% 80px;
    background-color: var(--bg-section-alt);
}

.services-header {
    text-align: center;
    max-width: 700px;
    margin-inline: auto;
    margin-bottom: 60px;
}

.services-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.services-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin-inline: auto;
}

.service-card {
    position: relative;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.6), rgba(241, 240, 245, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-top: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 24px;
    padding: 40px 30px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    height: 380px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(2, 132, 199, 0.1), inset 0 2px 10px rgba(56, 189, 248, 0.05);
}

.service-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(241, 240, 245, 0.95));
    border-color: rgba(56, 189, 248, 0.4);
    border-top-color: rgba(56, 189, 248, 0.7);
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(2, 132, 199, 0.1), inset 0 2px 20px rgba(56, 189, 248, 0.15);
}

.sc-icon {
    width: 44px;
    height: 44px;
    color: #ffffff;
    background: var(--accent-gradient);
    padding: 10px;
    border-radius: 12px;
    border: 1px solid rgba(2, 132, 199, 0.05);
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.3);
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.4));
}

.service-card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.sc-arrow {
    position: absolute;
    top: 30px;
    right: 30px;
    color: var(--text-secondary);
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

.service-card:hover .sc-arrow {
    opacity: 1;
    transform: translate(3px, -3px);
    color: var(--accent-blue);
}

/* ================================================================
   8. ANIMATION CARD — 5 PHASE CINEMATIC SEQUENCE
================================================================ */
.animation-card {
    overflow: hidden;
    height: 380px;
    box-shadow: inset 0 0 0 1px var(--border-subtle), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card-idle {
    position: relative;
    z-index: 1;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.sc-icon-wrapper {
    position: relative;
    z-index: 2;
    display: inline-block;
    margin-bottom: 25px;
}

.idle-features {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.feat-tag {
    font-size: 0.75rem;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.2);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.hover-prompt {
    margin-top: auto;
    padding-top: 20px;
    text-align: left;
}

.hover-text-dim {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
    opacity: 0.4;
}

.anim-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    background: rgba(241, 240, 245, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ph {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 30px;
    text-align: center;
}

/* Text Phases */
.ph-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.ph-desc strong {
    color: var(--text-primary);
    font-weight: 700;
    color: var(--accent-blue);
}

/* Drag Phase */
.anim-dropzone {
    width: 85%;
    height: 90px;
    border: 2px dashed rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(56, 189, 248, 0.02);
}

.anim-drop-text {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.file-drag-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    color: var(--text-primary);
    filter: drop-shadow(0 10px 10px rgba(2, 132, 199, 0.1));
    opacity: 0;
}

/* Manual Input Phase */
.ph-4-manual {
    gap: 15px;
}

.manual-table-wrapper {
    width: 90%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transform-origin: center;
}

.anim-row {
    display: flex;
    gap: 10px;
    width: 100%;
}

.anim-input {
    flex: 1;
    background: rgba(241, 240, 245, 0.8);
    border: 1px solid rgba(2, 132, 199, 0.08);
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.subj-badge {
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.b-blue {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
}

.b-purple {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
}

.b-orange {
    background: rgba(249, 115, 22, 0.15);
    color: #fb923c;
}

.b-green {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.anim-dropdown {
    width: 60px;
    background: rgba(241, 240, 245, 0.9);
    border: 1px solid rgba(2, 132, 199, 0.15);
    border-radius: 8px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    z-index: 5;
}

.val-empty {
    position: absolute;
    color: var(--text-secondary);
}

.val-new {
    position: absolute;
    opacity: 0;
    color: var(--accent-blue);
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.6);
}

.dropdown-list {
    position: absolute;
    top: 110%;
    left: -5px;
    right: -5px;
    background: var(--bg-section-alt);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 20;
    height: 0;
    opacity: 0;
    box-shadow: 0 10px 25px rgba(2, 132, 199, 0.1);
}

.dl-item {
    padding: 6px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-align: center;
    border-bottom: 1px solid rgba(2, 132, 199, 0.05);
}

.dl-item:last-child {
    border-bottom: none;
}

.hl-item {
    position: relative;
    z-index: 1;
}

.hl-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-blue);
    opacity: 0;
    z-index: -1;
}

.anim-btn {
    width: 90%;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    opacity: 0;
}

/* Modern Loading Phase */
.ph-loading {
    gap: 15px;
}

.modern-loader {
    width: 70%;
    height: 4px;
    background: rgba(2, 132, 199, 0.08);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.loader-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.loader-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

/* Result Phase */
.result-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.result-number {
    font-size: 4rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 5px;
    text-shadow: 0 0 30px var(--accent-green), 0 0 10px rgba(2, 132, 199, 0.3);
}

.result-tag {
    font-size: 0.85rem;
    color: var(--accent-green);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 700;
}


/* ── Hover Triggers (32s Cinematic Loop) ── */
.animation-card {
    --dur: 20s;
}

.animation-card:hover .anim-overlay {
    opacity: 1;
}

.animation-card:hover .sc-arrow {
    opacity: 0 !important;
}

.animation-card:hover .card-idle {
    animation: idleFade var(--dur) ease infinite;
}

/* Phases Visibility */
.animation-card:hover .ph-1-text {
    animation: phText var(--dur) ease infinite 0s;
}

.animation-card:hover .ph-2-drag {
    animation: phDrag var(--dur) ease infinite;
}

.animation-card:hover .ph-3-text {
    animation: phText var(--dur) ease infinite 5.4s;
}

.animation-card:hover .ph-4-manual {
    animation: phManual var(--dur) ease infinite;
}

.animation-card:hover .ph-loading {
    animation: phLoad var(--dur) ease infinite;
}

.animation-card:hover .ph-result {
    animation: phResult var(--dur) ease infinite;
}

/* Phase 2 details */
.animation-card:hover .file-drag-icon {
    animation: dragMove var(--dur) ease infinite;
}

.animation-card:hover .anim-dropzone {
    animation: dropGlow var(--dur) ease infinite;
}

/* Phase 4 details */
.animation-card:hover .manual-table-wrapper {
    animation: tableZoom var(--dur) cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.animation-card:hover .r2,
.animation-card:hover .r3,
.animation-card:hover .r4 {
    animation: hideOtherRows var(--dur) ease infinite;
}

.animation-card:hover .dl1 {
    animation: listOpen var(--dur) ease infinite;
}

.animation-card:hover .hl-item::before {
    animation: itemHover var(--dur) ease infinite;
}

.animation-card:hover .hl-item {
    animation: itemColor var(--dur) ease infinite;
}

.animation-card:hover .ve1 {
    animation: vOld1 var(--dur) ease infinite;
}

.animation-card:hover .vn1 {
    animation: vNew1 var(--dur) ease infinite;
}

.animation-card:hover .ve2,
.animation-card:hover .ve3,
.animation-card:hover .ve4 {
    animation: vOldRest var(--dur) ease infinite;
}

.animation-card:hover .vn2,
.animation-card:hover .vn3,
.animation-card:hover .vn4 {
    animation: vNewRest var(--dur) ease infinite;
}

.animation-card:hover .anim-btn {
    animation: btnClick var(--dur) ease infinite;
}

/* Phase 5 & 6 details */
.animation-card:hover .loader-bar {
    animation: loadBar var(--dur) cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.animation-card:hover .result-glow {
    animation: resGlow var(--dur) ease infinite;
}


/* ── Keyframes Sequence (0% to 100%) ── */
@keyframes idleFade {

    0%,
    2% {
        opacity: 1;
        filter: blur(0);
    }

    4%,
    96% {
        opacity: 0;
        filter: blur(5px);
    }

    98%,
    100% {
        opacity: 1;
        filter: blur(0);
    }
}

/* Phase 1 & 3: Text Reveals */
@keyframes phText {

    0%,
    3% {
        opacity: 0;
        transform: translateY(10px);
    }

    5%,
    13% {
        opacity: 1;
        transform: translateY(0);
    }

    15%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Phase 2: File Drag */
@keyframes phDrag {

    0%,
    15% {
        opacity: 0;
    }

    16%,
    28% {
        opacity: 1;
    }

    29%,
    100% {
        opacity: 0;
    }
}

@keyframes dragMove {

    0%,
    16% {
        transform: translate(60px, -60px) scale(1.2);
        opacity: 0;
    }

    18% {
        opacity: 1;
    }

    22% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }

    24%,
    100% {
        transform: translate(0, 0) scale(0);
        opacity: 0;
    }
}

@keyframes dropGlow {

    0%,
    22% {
        background: rgba(56, 189, 248, 0.02);
        border-color: rgba(56, 189, 248, 0.3);
    }

    23%,
    26% {
        background: rgba(56, 189, 248, 0.15);
        border-color: rgba(56, 189, 248, 1);
    }

    27%,
    100% {
        background: rgba(56, 189, 248, 0.02);
        border-color: rgba(56, 189, 248, 0.3);
    }
}

/* Phase 4: Manual Input & Zoom */
@keyframes phManual {

    0%,
    41% {
        opacity: 0;
    }

    42%,
    67% {
        opacity: 1;
    }

    69%,
    100% {
        opacity: 0;
    }
}

@keyframes tableZoom {

    0%,
    43% {
        transform: scale(1) translate(0, 0);
    }

    /* Zoom in and pan right/down to center the dropdown box */
    46%,
    55% {
        transform: scale(1.7) translate(-150px, 20px);
    }

    58%,
    100% {
        transform: scale(1) translate(0, 0);
    }
}

@keyframes hideOtherRows {

    0%,
    43% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }

    45%,
    56% {
        opacity: 0;
        filter: blur(5px);
        transform: translateX(-10px);
    }

    58%,
    100% {
        opacity: 1;
        filter: blur(0);
        transform: translateX(0);
    }
}

@keyframes listOpen {

    0%,
    46% {
        height: 0;
        opacity: 0;
    }

    47%,
    53% {
        height: 138px;
        opacity: 1;
    }

    54%,
    100% {
        height: 0;
        opacity: 0;
    }
}

@keyframes itemHover {

    0%,
    49% {
        opacity: 0;
    }

    50%,
    53% {
        opacity: 1;
    }

    54%,
    100% {
        opacity: 0;
    }
}

@keyframes itemColor {

    0%,
    49% {
        color: var(--text-secondary);
    }

    50%,
    53% {
        color: #ffffff;
    }

    54%,
    100% {
        color: var(--text-secondary);
    }
}

/* Grades Update Logic */
@keyframes vOld1 {

    0%,
    53% {
        opacity: 1;
    }

    54%,
    100% {
        opacity: 0;
    }
}

@keyframes vNew1 {

    0%,
    53% {
        opacity: 0;
    }

    54%,
    100% {
        opacity: 1;
    }
}

@keyframes vOldRest {

    0%,
    57% {
        opacity: 1;
    }

    58%,
    100% {
        opacity: 0;
    }
}

@keyframes vNewRest {

    0%,
    57% {
        opacity: 0;
    }

    58%,
    100% {
        opacity: 1;
    }
}

@keyframes btnClick {

    0%,
    60% {
        opacity: 0;
        transform: translateY(10px);
    }

    62%,
    63% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    64% {
        transform: scale(0.95);
        background: #1e40af;
    }

    65%,
    68% {
        opacity: 1;
        transform: scale(1);
        background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    }

    70%,
    100% {
        opacity: 0;
    }
}

/* Phase 5: Circular Loading Phase */
.ph-loading {
    gap: 15px;
}

.circle-loader {
    width: 45px;
    height: 45px;
    border: 4px solid rgba(2, 132, 199, 0.08);
    border-top-color: var(--accent-blue);
    border-right-color: rgba(56, 189, 248, 0.5);
    /* Adds a nice glowing trail effect */
    border-radius: 50%;
    position: relative;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.loader-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
}

@keyframes phLoad {

    0%,
    69% {
        opacity: 0;
        transform: scale(0.95);
    }

    71%,
    82% {
        opacity: 1;
        transform: scale(1);
    }

    84%,
    100% {
        opacity: 0;
        transform: scale(1);
    }
}

/* Phase 6: Result */
@keyframes phResult {

    0%,
    83% {
        opacity: 0;
        transform: scale(0.9);
    }

    85%,
    96% {
        opacity: 1;
        transform: scale(1);
    }

    98%,
    100% {
        opacity: 0;
        transform: scale(1.05);
    }
}

@keyframes resGlow {

    0%,
    84% {
        opacity: 0;
    }

    86%,
    92% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.1);
    }

    96%,
    100% {
        opacity: 0;
    }
}


/* Make sure this is in the Hover Triggers section */
.animation-card:hover .circle-loader {
    animation: spinCircle 0.8s linear infinite;
}

/* Make sure this is at the VERY BOTTOM of your CSS file with the other keyframes */
@keyframes spinCircle {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   9. BENEFITS SECTION
================================================================ */
.benefits-section {
    min-height: 100vh;
    padding: 100px 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-body);
}

.benefits-container {
    display: flex;
    align-items: center;
    gap: 60px;
    max-width: 1200px;
    margin-inline: auto;
    width: 100%;
}

/* Left Mockup Window */
.benefits-visual {
    flex: 1;
}

.mockup-window {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 240, 245, 0.96));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-top: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(2, 132, 199, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mockup-header {
    background-color: rgba(241, 240, 245, 0.7);
    border-bottom: 1px solid var(--border);
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mockup-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot--red {
    background-color: #ef4444;
    box-shadow: 0 0 6px rgba(239, 68, 68, 0.35);
}

.dot--yellow {
    background-color: #f59e0b;
    box-shadow: 0 0 6px rgba(245, 158, 11, 0.35);
}

.dot--green {
    background-color: #10b981;
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.35);
}

.mockup-header-tag {
    font-size: 0.68rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    color: var(--accent-blue);
    letter-spacing: 0.8px;
    opacity: 0.85;
}

.mockup-body {
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mockup-line {
    height: 8px;
    background: linear-gradient(90deg, rgba(2, 132, 199, 0.12), rgba(2, 132, 199, 0.03));
    border-radius: 4px;
}

.mockup-line--50 {
    width: 50%;
}

.mockup-line--75 {
    width: 75%;
}

.mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 85px;
    margin-top: 6px;
}

.bar {
    flex: 1;
    background: linear-gradient(180deg, rgba(56, 189, 248, 0.2), rgba(2, 132, 199, 0.06));
    border-radius: 6px 6px 0 0;
    transition: height 0.4s ease;
}

.bar--60 {
    height: 60%;
}

.bar--80 {
    height: 80%;
}

.bar--40 {
    height: 40%;
}

.bar--100 {
    height: 100%;
}

.bar--70 {
    height: 70%;
}

.bar--highlight {
    background: linear-gradient(180deg, #38bdf8 0%, #0284c7 100%) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.mockup-card {
    background: var(--accent-gradient);
    border-radius: 14px;
    padding: 16px 18px;
    color: #ffffff;
    margin-top: 6px;
    box-shadow: 0 8px 24px -4px rgba(2, 132, 199, 0.38);
}

.mockup-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mockup-card span {
    font-size: 0.82rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 600;
    opacity: 0.95;
}

.mockup-live-badge {
    font-size: 0.62rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 2px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mockup-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    display: inline-block;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.mockup-card h2 {
    font-size: 1.85rem;
    font-family: 'JetBrains Mono', monospace;
    margin-top: 4px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.mockup-subtext {
    font-size: 0.78rem;
    opacity: 0.88;
    margin-top: 2px;
}

/* Right Text List */
.benefits-content {
    flex: 1;
}

.benefits-content h2 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 14px;
    font-weight: 700;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 38px;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.benefits-list__item {
    display: flex;
    gap: 20px;
}

.bl-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background-color: var(--accent-blue-dim);
    color: var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: bold;
}

.bl-text strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 6px;
    font-weight: 600;
}

.bl-text p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ================================================================
   10. FOOTER
================================================================ */
.site-footer {
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 80px 5% 30px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    box-shadow: inset 0 20px 40px -20px rgba(56, 189, 248, 0.05);
    position: relative;
    overflow: hidden;
}



.footer-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand .logo {
    margin-bottom: 15px;
}

.logo-icon--small {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.footer-brand p {
    color: var(--text-secondary);
    max-width: 350px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
    flex-wrap: wrap;
}

.footer-column h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
    font-weight: 500;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: var(--text-primary);
}

.footer-column__admin a {
    color: var(--accent-blue) !important;
    font-weight: 600;
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ================================================================
   8B. ANIMATION CARD 2 — GAMIFIED READINESS
================================================================ */
.animation-card-2,
.animation-card-3,
.animation-card-4 {
    overflow: hidden;
    height: 380px;
    box-shadow: inset 0 0 0 1px var(--border-subtle), 0 10px 30px rgba(0, 0, 0, 0.2);
    --dur: 20s;
}

.animation-card-2:hover .anim-overlay-2 {
    opacity: 1;
}

.animation-card-2:hover .sc-arrow {
    opacity: 0 !important;
}

.animation-card-2:hover .card-idle {
    animation: idleFade var(--dur) ease infinite;
}

.anim-overlay-2 {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, var(--bg-card) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.ph-c2 {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    padding: 30px;
    text-align: center;
}

/* Question Layout */
.anim-progress {
    width: 90%;
    height: 4px;
    background: rgba(2, 132, 199, 0.1);
    border-radius: 2px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
}

.anim-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.p-bar-1 {
    width: 50%;
}

.p-bar-2 {
    width: 100%;
}

.anim-question {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.anim-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
}

.anim-opt-visual {
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(2, 132, 199, 0.15);
    padding: 10px 5px;
    border-radius: 12px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.anim-opt-visual .opt-icon {
    font-size: 1.8rem;
}

.anim-opt-visual .opt-text {
    font-size: 0.75rem;
    font-weight: 600;
}

.anim-options-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.anim-opt-text {
    background: var(--bg-card);
    border: 1px solid rgba(2, 132, 199, 0.15);
    padding: 12px 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    text-align: left;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.anim-opt-text .opt-label {
    font-family: 'JetBrains Mono', monospace;
    font-weight: 700;
    margin-right: 15px;
    color: var(--accent-blue);
    background: rgba(56, 189, 248, 0.15);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
}

.click-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60px;
    height: 60px;
    margin-top: -30px;
    margin-left: -30px;
    background: rgba(2, 132, 199, 0.4);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.anim-btn-2 {
    width: 90%;
    background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    color: #ffffff;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.result-glow-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.anim-btn-container {
    width: 100%;
    margin-top: 15px;
    opacity: 0;
}

.ph-c2-text {
    padding: 40px;
    font-size: 1.05rem;
    line-height: 1.6;
    font-weight: 500;
    color: var(--text-primary);
}

/* Animations Scheduling */
.animation-card-2:hover .ph-c2-text {
    animation: phC2Text var(--dur) ease infinite;
}

.animation-card-2:hover .ph-c2-q1 {
    animation: phC2Q1 var(--dur) ease infinite;
}

.animation-card-2:hover .ph-c2-q2 {
    animation: phC2Q2 var(--dur) ease infinite;
}

.animation-card-2:hover .c2-btn-container {
    animation: btnAppear var(--dur) ease infinite;
}

.animation-card-2:hover .ph-c2-loading {
    animation: phC2Load var(--dur) ease infinite;
}

.animation-card-2:hover .ph-c2-result {
    animation: phResult var(--dur) ease infinite;
}

.animation-card-2:hover .circle-loader {
    animation: spinCircle 0.8s linear infinite;
}

.animation-card-2:hover .result-glow-2 {
    animation: resGlow var(--dur) ease infinite;
}

/* Click effects */
.animation-card-2:hover .cr1 {
    animation: cr1Click var(--dur) ease infinite;
}

.animation-card-2:hover .c-opt-1 {
    animation: opt1Select var(--dur) ease infinite;
}

.animation-card-2:hover .cr2 {
    animation: cr2Click var(--dur) ease infinite;
}

.animation-card-2:hover .c-opt-2 {
    animation: opt2Select var(--dur) ease infinite;
}

.animation-card-2:hover .cr3 {
    animation: cr3Click var(--dur) ease infinite;
}

.animation-card-2:hover .anim-btn-2 {
    animation: btnClick2 var(--dur) ease infinite;
}

/* Phase Keyframes */
@keyframes phC2Text {

    0%,
    2% {
        opacity: 0;
        transform: translateY(10px);
    }

    4%,
    12% {
        opacity: 1;
        transform: translateY(0);
    }

    14%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes phC2Q1 {

    0%,
    15% {
        opacity: 0;
        transform: translateY(10px);
    }

    17%,
    36% {
        opacity: 1;
        transform: translateY(0);
    }

    38%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes cr1Click {

    0%,
    29% {
        transform: scale(0);
        opacity: 0.5;
    }

    30% {
        transform: scale(1.5);
        opacity: 0;
    }

    31%,
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes opt1Select {

    0%,
    29% {
        background: rgba(255, 255, 255, 0.5);
        border-color: rgba(2, 132, 199, 0.15);
        box-shadow: none;
    }

    30%,
    38% {
        background: rgba(16, 185, 129, 0.1);
        border-color: var(--accent-green);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    }

    39%,
    100% {
        background: rgba(255, 255, 255, 0.5);
        border-color: rgba(2, 132, 199, 0.15);
        box-shadow: none;
    }
}

@keyframes phC2Q2 {

    0%,
    39% {
        opacity: 0;
        transform: translateY(10px);
    }

    41%,
    64% {
        opacity: 1;
        transform: translateY(0);
    }

    66%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes cr2Click {

    0%,
    51% {
        transform: scale(0);
        opacity: 0.5;
    }

    52% {
        transform: scale(1.5);
        opacity: 0;
    }

    53%,
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes opt2Select {

    0%,
    51% {
        background: var(--bg-card);
        border-color: rgba(2, 132, 199, 0.15);
        box-shadow: none;
    }

    52%,
    66% {
        background: rgba(16, 185, 129, 0.1);
        border-color: var(--accent-green);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.2);
    }

    67%,
    100% {
        background: var(--bg-card);
        border-color: rgba(2, 132, 199, 0.15);
        box-shadow: none;
    }
}

@keyframes btnAppear {

    0%,
    54% {
        opacity: 0;
        transform: translateY(10px);
    }

    56%,
    66% {
        opacity: 1;
        transform: translateY(0);
    }

    68%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes cr3Click {

    0%,
    61% {
        transform: scale(0);
        opacity: 0.5;
    }

    62% {
        transform: scale(2.5);
        opacity: 0;
    }

    63%,
    100% {
        transform: scale(0);
        opacity: 0;
    }
}

@keyframes btnClick2 {

    0%,
    61% {
        transform: scale(1);
        background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    }

    62% {
        transform: scale(0.95);
        background: #1e40af;
    }

    64%,
    66% {
        transform: scale(1);
        background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    }

    68%,
    100% {
        transform: scale(1);
        background: linear-gradient(135deg, var(--accent-blue), #2563eb);
    }
}

@keyframes phC2Load {

    0%,
    67% {
        opacity: 0;
        transform: scale(0.95);
    }

    69%,
    82% {
        opacity: 1;
        transform: scale(1);
    }

    84%,
    100% {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* ================================================================
   8C. CARD 3 ANIMATIONS (SURVIVAL VERDICT)
================================================================ */
.anim-overlay-3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    overflow: hidden;
}

.animation-card-3:hover .anim-overlay-3 {
    opacity: 1;
    pointer-events: auto;
}

.animation-card-3:hover .card-idle {
    opacity: 0;
    transition: 0.3s;
}

.ph-c3 {
    position: absolute;
    width: 100%;
    padding: 30px;
    text-align: center;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Radar */
.radar-scan-wrapper {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px solid rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 70%);
}

.radar-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(56, 189, 248, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.radar-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 50%;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.8));
    transform-origin: bottom left;
}

/* Match Phase */
.match-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.match-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* Verdict Phase */
.verdict-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.verdict-tag {
    font-size: 0.85rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.verdict-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.verdict-prob {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    color: var(--accent-green);
    font-weight: 700;
    background: rgba(16, 185, 129, 0.1);
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid var(--accent-green);
}

/* Card 3 Scheduling */
.animation-card-3:hover .ph-c3-processing {
    animation: phC3Proc var(--dur) ease infinite;
}

.animation-card-3:hover .ph-c3-match {
    animation: phC3Match var(--dur) ease infinite;
}

.animation-card-3:hover .ph-c3-verdict {
    animation: phC3Verdict var(--dur) ease infinite;
}

.animation-card-3:hover .radar-line {
    animation: radarSpin 2s linear infinite;
}

@keyframes phC3Proc {

    0%,
    2% {
        opacity: 0;
        transform: translateY(10px);
    }

    4%,
    40% {
        opacity: 1;
        transform: translateY(0);
    }

    42%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes phC3Match {

    0%,
    42% {
        opacity: 0;
        transform: scale(0.9);
    }

    44%,
    60% {
        opacity: 1;
        transform: scale(1);
    }

    62%,
    100% {
        opacity: 0;
        transform: scale(1.1);
    }
}

@keyframes phC3Verdict {

    0%,
    62% {
        opacity: 0;
        transform: translateY(10px);
    }

    64%,
    98% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes radarSpin {
    100% {
        transform: rotate(360deg);
    }
}

/* ================================================================
   8D. CARD 4 ANIMATIONS (TRANSPARENT XAI)
================================================================ */
.anim-overlay-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border-radius: 16px;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    overflow: hidden;
}

.animation-card-4:hover .anim-overlay-4 {
    opacity: 1;
    pointer-events: auto;
}

.animation-card-4:hover .card-idle {
    opacity: 0;
    transition: 0.3s;
}

.ph-c4 {
    position: absolute;
    width: calc(100% - 60px);
    text-align: center;
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* XAI Chart */
.xai-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.xai-chart {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.xai-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 10px;
}

.xai-label {
    font-size: 0.8rem;
    color: #cbd5e1;
    width: 35%;
    text-align: left;
}

.xai-bar-wrap {
    flex: 1;
    height: 8px;
    background: rgba(2, 132, 199, 0.05);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.xai-bar {
    height: 100%;
    position: absolute;
    top: 0;
    border-radius: 4px;
    width: 0;
}

.xai-pos {
    left: 0;
    background: var(--accent-blue);
    box-shadow: 0 0 8px var(--accent-blue);
}

.xai-neg {
    right: 0;
    background: var(--accent-red);
    box-shadow: 0 0 8px var(--accent-red);
}

.xai-val {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    width: 15%;
    text-align: right;
}

.v-pos {
    color: var(--accent-blue);
}

.v-neg {
    color: var(--accent-red);
}

/* Confidence */
.conf-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 180px;
    height: 180px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.conf-number {
    font-size: 3rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-primary);
    margin-bottom: 5px;
}

.conf-tag {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 20px;
}

.conf-badge {
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Card 4 Scheduling */
.animation-card-4:hover .ph-c4-loading {
    animation: phC4Load var(--dur) ease infinite;
}

.animation-card-4:hover .ph-c4-chart {
    animation: phC4Chart var(--dur) ease infinite;
}

.animation-card-4:hover .ph-c4-confidence {
    animation: phC4Conf var(--dur) ease infinite;
}

.animation-card-4:hover .b-pos-1 {
    animation: fillBar1 var(--dur) ease infinite;
}

.animation-card-4:hover .b-pos-2 {
    animation: fillBar2 var(--dur) ease infinite;
}

.animation-card-4:hover .b-neg-1 {
    animation: fillBar3 var(--dur) ease infinite;
}

@keyframes phC4Load {

    0%,
    2% {
        opacity: 0;
        transform: translateY(10px);
    }

    4%,
    18% {
        opacity: 1;
        transform: translateY(0);
    }

    20%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes phC4Chart {

    0%,
    20% {
        opacity: 0;
        transform: translateY(10px);
    }

    22%,
    68% {
        opacity: 1;
        transform: translateY(0);
    }

    70%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes phC4Conf {

    0%,
    70% {
        opacity: 0;
        transform: translateY(10px);
    }

    72%,
    98% {
        opacity: 1;
        transform: translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateY(-10px);
    }
}

@keyframes fillBar1 {

    0%,
    25% {
        width: 0;
    }

    30%,
    100% {
        width: 80%;
    }
}

@keyframes fillBar2 {

    0%,
    35% {
        width: 0;
    }

    40%,
    100% {
        width: 60%;
    }
}

@keyframes fillBar3 {

    0%,
    45% {
        width: 0;
    }

    50%,
    100% {
        width: 10%;
    }
}

/* ================================================================
   11. SCROLL ANIMATIONS & MEDIA QUERIES
================================================================ */
.scroll-animate {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .benefits-section {
        padding: 80px 16px 60px;
    }

    .benefits-container {
        flex-direction: column;
        gap: 36px;
    }

    .benefits-content {
        order: 1;
        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .benefits-visual {
        order: 2;
        width: 100%;
        max-width: 380px;
        margin: 0 auto;
    }

    .hero-visuals {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        width: 100%;
        max-width: 460px;
        margin: 0 auto;
        padding: 0 12px;
    }

    .hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 8px;
        border-radius: 16px;
        gap: 8px;
        min-width: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .site-header {
        padding: 14px 16px;
    }

    .hero {
        padding: 95px 16px 36px;
    }

    .hero-glass-shape {
        display: none;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 1.8rem;
    }

    .hero-actions {
        width: 100%;
    }

    .btn-prediction {
        width: 100%;
        max-width: 340px;
        padding: 16px 24px;
        font-size: 1rem;
    }

    /* Hero Stat Cards Mobile */
    .hero-visuals {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        width: 100%;
        max-width: 440px;
        margin: 0 auto;
        padding: 0 8px;
    }

    .hero-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 6px;
        border-radius: 14px;
        gap: 6px;
        min-width: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.85);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(56, 189, 248, 0.22);
        box-shadow: 0 4px 18px rgba(2, 132, 199, 0.08);
    }

    .hc-icon {
        width: 34px;
        height: 34px;
        font-size: 1.15rem;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 10px;
        margin-bottom: 2px;
    }

    .hc-text {
        align-items: center;
        width: 100%;
        min-width: 0;
    }

    .hc-title {
        font-size: 0.62rem;
        letter-spacing: 0.6px;
        margin-bottom: 2px;
        text-transform: uppercase;
        color: var(--text-secondary);
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .hc-value {
        font-size: 0.98rem;
        font-weight: 700;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .hc-value--unavailable {
        font-size: 0.62rem;
        padding: 2px 4px;
    }

    .services-section {
        padding: 70px 16px 50px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .service-card {
        height: auto;
        min-height: 320px;
        padding: 30px 22px;
    }

    .footer-links {
        gap: 30px;
        flex-direction: column;
    }

    .services-header h2 {
        font-size: 1.8rem;
    }

    .services-header p {
        font-size: 0.95rem;
    }

    /* Benefits Section Mobile */
    .benefits-section {
        padding: 60px 16px 50px;
    }

    .benefits-container {
        flex-direction: column;
        gap: 30px;
    }

    .benefits-content {
        order: 1;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
    }

    .benefits-content h2 {
        font-size: 1.7rem;
        line-height: 1.25;
        margin-bottom: 8px;
    }

    .subtitle {
        font-size: 0.92rem;
        margin-bottom: 24px;
    }

    .benefits-list {
        gap: 18px;
    }

    .benefits-list__item {
        gap: 14px;
    }

    .bl-text strong {
        font-size: 0.98rem;
    }

    .bl-text p {
        font-size: 0.88rem;
        line-height: 1.5;
    }

    .benefits-visual {
        order: 2;
        width: 100%;
        max-width: 360px;
        margin: 0 auto;
    }

    .mockup-window {
        border-radius: 18px;
        box-shadow: 0 16px 36px -8px rgba(2, 132, 199, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .mockup-header {
        padding: 10px 14px;
    }

    .mockup-body {
        padding: 18px 16px;
        gap: 12px;
    }

    .mockup-chart {
        height: 70px;
        gap: 8px;
    }

    .mockup-card {
        padding: 14px 16px;
        border-radius: 12px;
    }

    .mockup-card span {
        font-size: 0.76rem;
    }

    .mockup-card h2 {
        font-size: 1.65rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-visuals {
        gap: 6px;
        padding: 0 4px;
    }

    .hero-card {
        padding: 11px 4px;
        border-radius: 12px;
        gap: 5px;
    }

    .hc-icon {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .hc-title {
        font-size: 0.58rem;
        letter-spacing: 0.4px;
    }

    .hc-value {
        font-size: 0.88rem;
    }

    .mockup-window {
        max-width: 330px;
        margin: 0 auto;
    }

    .mockup-body {
        padding: 15px 12px;
        gap: 10px;
    }

    .mockup-chart {
        height: 60px;
        gap: 6px;
    }

    .mockup-card {
        padding: 12px 14px;
    }

    .mockup-card h2 {
        font-size: 1.5rem;
    }
}



/* ================================================================
   ML NOT READY MODAL
================================================================ */

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(226, 224, 235, 0.55);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.modal-backdrop.modal-visible {
    opacity: 1;
}

.modal-backdrop.modal-visible .modal-box {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Glass Card */
.modal-box {
    position: relative;
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.94) 0%,
        rgba(241, 240, 245, 0.90) 55%,
        rgba(226, 224, 235, 0.82) 100%
    );
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.92);
    border-top: 1.5px solid rgba(255, 255, 255, 1);
    border-radius: 28px;
    padding: 48px 44px 40px;
    max-width: 490px;
    width: 100%;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 4px 6px -1px rgba(2, 132, 199, 0.06),
        0 20px 50px -10px rgba(2, 132, 199, 0.18),
        0 50px 100px -20px rgba(168, 85, 247, 0.12),
        inset 0 2px 0 rgba(255, 255, 255, 1),
        inset 0 -1px 0 rgba(2, 132, 199, 0.06);
    transform: translateY(28px) scale(0.96);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

/* Top shimmer accent line */
.modal-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(56, 189, 248, 0.85),
        rgba(168, 85, 247, 0.65),
        transparent
    );
}

/* Inner glow blob */
.modal-box::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(2, 132, 199, 0.07) 0%, transparent 70%);
    pointer-events: none;
    border-radius: 50%;
}

/* Icon Badge */
.modal-icon-wrap {
    margin-bottom: 22px;
    position: relative;
    z-index: 1;
}

.modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    font-size: 2.2rem;
    background: linear-gradient(
        145deg,
        rgba(2, 132, 199, 0.14) 0%,
        rgba(14, 165, 233, 0.10) 40%,
        rgba(168, 85, 247, 0.09) 100%
    );
    border: 1.5px solid rgba(255, 255, 255, 0.92);
    border-bottom: 1.5px solid rgba(2, 132, 199, 0.18);
    border-radius: 22px;
    box-shadow:
        0 8px 28px rgba(2, 132, 199, 0.16),
        0 2px 8px rgba(168, 85, 247, 0.10),
        inset 0 2px 4px rgba(255, 255, 255, 0.95),
        inset 0 -1px 2px rgba(2, 132, 199, 0.06);
}

/* Typography */
.modal-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 12px;
    letter-spacing: -0.5px;
    position: relative;
    z-index: 1;
}

.modal-body {
    font-size: 0.94rem;
    color: var(--text-secondary);
    line-height: 1.68;
    margin: 0 0 26px;
    position: relative;
    z-index: 1;
}

/* Status Meta Panel */
.modal-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(241, 240, 245, 0.62));
    border: 1px solid rgba(2, 132, 199, 0.11);
    border-top: 1px solid rgba(255, 255, 255, 0.95);
    border-radius: 14px;
    padding: 16px 20px;
    margin-bottom: 18px;
    text-align: left;
    position: relative;
    z-index: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 2px 8px rgba(2, 132, 199, 0.05);
}

.modal-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.modal-meta-item strong {
    color: var(--text-primary);
    font-weight: 700;
}

.modal-meta-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.dot-red {
    background: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15), 0 0 8px rgba(239, 68, 68, 0.4);
}

.dot-orange {
    background: #f97316;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15), 0 0 8px rgba(249, 115, 22, 0.35);
}

/* Hint Text */
.modal-hint {
    font-size: 0.80rem;
    color: #9ca3af;
    margin: 0 0 28px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

/* Close Button */
.modal-close-btn {
    position: relative;
    overflow: hidden;
    display: block;
    width: 100%;
    padding: 15px 32px;
    background: var(--accent-gradient);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    font-size: 0.96rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.2px;
    z-index: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 6px -1px rgba(2, 132, 199, 0.28),
        0 10px 28px -6px rgba(2, 132, 199, 0.42),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Shimmer sweep on hover */
.modal-close-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.modal-close-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 6px 10px -2px rgba(2, 132, 199, 0.32),
        0 16px 36px -6px rgba(2, 132, 199, 0.52),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.modal-close-btn:hover::before {
    left: 140%;
}

.modal-close-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.22), inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

@media (max-width: 480px) {
    .modal-box {
        padding: 36px 24px 30px;
        border-radius: 22px;
    }
    .modal-title {
        font-size: 1.3rem;
    }
}