/* ============================================================
   AceClass — Landing Page
   Cyber-Minimalist Design System
   ============================================================ */

/* ----------------------------------------
   0. FONT & RESET
   ---------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

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

/* ----------------------------------------
   1. CSS VARIABLES
   ---------------------------------------- */
:root {
    /* Background */
    --bg-deep:    #030303;
    --bg-surface: #0a0a0a;
    --bg-card:    #0f0f0f;
    --bg-hover:   #161616;

    /* Text */
    --white:      #ffffff;
    --gray-100:   #f5f5f5;
    --gray-200:   #e5e5e5;
    --gray-300:   #d4d4d4;
    --gray-400:   #a3a3a3;
    --gray-500:   #737373;
    --gray-600:   #525252;
    --gray-700:   #404040;
    --gray-800:   #262626;
    --gray-900:   #171717;

    /* Accent */
    --accent:     #6366f1;
    --accent-dim: rgba(99, 102, 241, 0.15);
    --accent-glow:rgba(99, 102, 241, 0.4);

    /* Gradient */
    --gradient-text: linear-gradient(135deg, #e0e7ff 0%, #6366f1 25%, #a78bfa 50%, #6366f1 75%, #e0e7ff 100%);
    --gradient-border: linear-gradient(135deg, rgba(99,102,241,0.5), rgba(167,139,250,0.2), rgba(99,102,241,0.05));
    --gradient-card-border: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.02));

    /* Spacing */
    --section-py: clamp(80px, 10vw, 140px);
    --container-max: 1200px;
    --container-px: clamp(20px, 5vw, 40px);

    /* Radius */
    --radius-sm:  8px;
    --radius-md:  12px;
    --radius-lg:  20px;
    --radius-xl:  24px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: 0.2s var(--ease-out);
    --transition-med:  0.4s var(--ease-out);
    --transition-slow: 0.7s var(--ease-out);

    /* Typography */
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--gray-300);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

/* ----------------------------------------
   2. CONTAINER
   ---------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ----------------------------------------
   3. TYPOGRAPHY UTILITIES
   ---------------------------------------- */
.gradient-text {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}

.section-header {
    text-align: center;
    margin-bottom: clamp(48px, 6vw, 80px);
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: var(--accent-dim);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.section-tag i {
    font-size: 1rem;
    opacity: 0.8;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--gray-400);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ----------------------------------------
   4. BUTTONS
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    white-space: nowrap;
}

.btn--primary {
    background: var(--accent);
    color: var(--white);
}

.btn--primary:hover {
    background: #5558e6;
    transform: translateY(-1px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn--ghost {
    background: transparent;
    color: var(--gray-300);
    border: 1px solid var(--gray-700);
}

.btn--ghost:hover {
    border-color: var(--gray-500);
    color: var(--white);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn--outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

.btn--lg {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.btn--glow {
    box-shadow: 0 0 40px var(--accent-glow), 0 0 80px rgba(99,102,241,0.15);
}

.btn--glow:hover {
    box-shadow: 0 0 50px var(--accent-glow), 0 0 100px rgba(99,102,241,0.25);
}

/* ----------------------------------------
   5. NAVBAR
   ---------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-med);
}

.navbar.scrolled {
    background: rgba(3, 3, 3, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 10px 0;
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
}

.navbar__logo-svg {
    width: 80px;
    height: 80px;
    color: var(--white);
}

.navbar__links {
    display: flex;
    gap: 36px;
}

.navbar__link {
    font-size: 1rem;
    font-weight: 500;
    color: var(--gray-400);
    transition: color var(--transition-fast);
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.navbar__link i {
    font-size: 1.1rem;
    opacity: 0.7;
}

.navbar__link--soon {
    opacity: 0.5;
    cursor: default;
}

.navbar__link--soon:hover {
    color: var(--gray-400);
}

.navbar__link--soon::after {
    display: none;
}

.soon-badge {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--accent-light);
    background: var(--accent-dim);
    padding: 2px 7px;
    border-radius: 100px;
    vertical-align: middle;
}

.navbar__link:hover {
    color: var(--white);
}

.navbar__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--transition-fast);
}

.navbar__link:hover::after {
    width: 100%;
}

.navbar__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.navbar__toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ----------------------------------------
   6. HERO
   ---------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 120px 0 80px;
}

/* Background GIF Layer */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('hero-background.gif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    pointer-events: none;
}

/* Dark Overlay com Gradient */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at center, rgba(3,3,3,0.3) 0%, rgba(3,3,3,0.7) 50%, rgba(3,3,3,0.9) 100%),
        linear-gradient(180deg, rgba(3,3,3,0.4) 0%, rgba(3,3,3,0.6) 50%, rgba(3,3,3,0.95) 100%);
    z-index: 1;
    pointer-events: none;
    mix-blend-mode: multiply;
}

.hero__ambient {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0.4;
    z-index: 1;
    mix-blend-mode: screen;
}

.hero__grid-svg {
    width: 100%;
    max-width: 900px;
    height: auto;
}

.hero__dot {
    animation: dotPulse 4s ease-in-out infinite alternate;
}

@keyframes dotPulse {
    0%   { opacity: 0.3; }
    50%  { opacity: 1; }
    100% { opacity: 0.3; }
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-dim);
    border: 1px solid rgba(99,102,241,0.2);
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s var(--ease-out) both;
}

.hero__title {
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 900;
    color: var(--white);
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero__title--gradient {
    background: var(--gradient-text);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

.hero__subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--gray-400);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

.hero__ctas {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero__fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    background: linear-gradient(to top, var(--bg-deep), transparent);
    pointer-events: none;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ----------------------------------------
   7. STATS / SOCIAL PROOF
   ---------------------------------------- */
.stats {
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background: var(--bg-surface);
}

.stats__inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stats__item {
    padding: 16px;
}

.stats__value {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.stats__label {
    font-size: 0.85rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ----------------------------------------
   8. FEATURES — BENTO GRID
   ---------------------------------------- */
.features {
    padding: var(--section-py) 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.bento-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3vw, 40px);
    overflow: hidden;
    transition: all var(--transition-med);
    border: 1px solid rgba(255,255,255,0.05);
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: var(--gradient-border);
    -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;
    opacity: 0;
    transition: opacity var(--transition-med);
}

.bento-card:hover::before {
    opacity: 1;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.08);
    background: var(--bg-hover);
}

.bento-card--wide {
    grid-column: span 2;
}

.bento-card--tall {
    grid-row: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bento-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--accent-dim);
    color: var(--accent);
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.bento-card__title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.bento-card__desc {
    font-size: 0.92rem;
    color: var(--gray-400);
    line-height: 1.65;
}

.bento-card__glow {
    position: absolute;
    top: -40%;
    right: -40%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.bento-card:hover .bento-card__glow {
    opacity: 1;
}

/* ----------------------------------------
   9. DASHBOARD PREVIEW
   ---------------------------------------- */
.preview {
    padding: var(--section-py) 0;
}

.preview__browser {
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--bg-card);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 20px 60px rgba(0,0,0,0.5),
        0 0 120px var(--accent-dim);
    animation: floatPreview 6s ease-in-out infinite;
}

@keyframes floatPreview {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.preview__browser-bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: var(--bg-surface);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.preview__browser-dots {
    display: flex;
    gap: 8px;
}

.preview__browser-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--gray-800);
}

.preview__browser-dots span:first-child { background: #ef4444; }
.preview__browser-dots span:nth-child(2) { background: #eab308; }
.preview__browser-dots span:last-child { background: #22c55e; }

.preview__browser-url {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-deep);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.preview__browser-content {
    padding: 0;
}

/* Mock Dashboard */
.mock-dashboard {
    display: flex;
    height: 400px;
}

.mock-sidebar {
    width: 60px;
    background: #080810;
    border-right: 1px solid rgba(255,255,255,0.05);
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.mock-sidebar__logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--accent);
    margin-bottom: 12px;
}

.mock-sidebar__item {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: var(--gray-800);
    transition: background var(--transition-fast);
}

.mock-sidebar__item.active {
    background: var(--accent-dim);
    border: 1px solid rgba(99,102,241,0.3);
}

.mock-main {
    flex: 1;
    padding: 24px 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mock-header__title {
    width: 180px;
    height: 20px;
    border-radius: 4px;
    background: var(--gray-800);
}

.mock-header__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
}

.mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.mock-card {
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-deep);
    border: 1px solid rgba(255,255,255,0.05);
}

.mock-card--accent {
    border-color: rgba(99,102,241,0.2);
}

.mock-card__label {
    width: 60%;
    height: 10px;
    border-radius: 3px;
    background: var(--gray-800);
    margin-bottom: 12px;
}

.mock-card__value {
    width: 40%;
    height: 18px;
    border-radius: 4px;
    background: var(--gray-700);
    margin-bottom: 16px;
}

.mock-card--accent .mock-card__value {
    background: var(--accent-dim);
}

.mock-card__bar {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--gray-800);
    overflow: hidden;
}

.mock-card__bar-fill {
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent), #818cf8);
    animation: barGrow 2s var(--ease-out) both;
}

@keyframes barGrow {
    from { width: 0 !important; }
}

.mock-chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    border-radius: var(--radius-md);
    background: var(--bg-deep);
    border: 1px solid rgba(255,255,255,0.05);
}

.mock-chart__bars {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    width: 100%;
    height: 100%;
}

.mock-chart__bar {
    flex: 1;
    height: var(--h);
    border-radius: 4px 4px 0 0;
    background: linear-gradient(to top, rgba(99,102,241,0.3), var(--accent));
    animation: chartBarGrow 1.5s var(--ease-out) both;
    animation-delay: calc(var(--h, 0) * 0.01s);
}

@keyframes chartBarGrow {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ----------------------------------------
   10. TESTIMONIALS
   ---------------------------------------- */
.testimonials {
    padding: var(--section-py) 0;
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.testimonial-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-lg);
    padding: clamp(28px, 3vw, 36px);
    transition: all var(--transition-med);
}

.testimonial-card:hover {
    border-color: rgba(255,255,255,0.1);
    transform: translateY(-4px);
}

.testimonial-card__quote {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.5;
}

.testimonial-card__text {
    font-size: 0.95rem;
    color: var(--gray-300);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-card__avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #a78bfa);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    flex-shrink: 0;
}

.testimonial-card__name {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--white);
}

.testimonial-card__uni {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* ----------------------------------------
   11. CTA SECTION
   ---------------------------------------- */
.cta-section {
    padding: var(--section-py) 0;
}

.cta-section__inner {
    text-align: center;
    padding: clamp(60px, 8vw, 100px) clamp(24px, 5vw, 60px);
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}

.cta-section__inner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-dim) 0%, transparent 60%);
    pointer-events: none;
}

.cta-section__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
    position: relative;
}

.cta-section__desc {
    font-size: 1.05rem;
    color: var(--gray-400);
    margin-bottom: 32px;
    position: relative;
}

/* ----------------------------------------
   12. FOOTER
   ---------------------------------------- */
.footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 60px 0 30px;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer__brand {
    max-width: 280px;
}

.footer__logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    display: block;
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.6;
}

.footer__links {
    display: flex;
    gap: 60px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__col h4 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-300);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.footer__col a {
    font-size: 0.88rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.footer__col a:hover {
    color: var(--white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer__bottom p {
    font-size: 0.82rem;
    color: var(--gray-600);
}

.footer__social {
    display: flex;
    gap: 16px;
}

.footer__social a {
    font-size: 1.2rem;
    color: var(--gray-600);
    transition: color var(--transition-fast);
}

.footer__social a:hover {
    color: var(--white);
}

/* ----------------------------------------
   13. REVEAL ANIMATIONS
   ---------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.7s var(--ease-out),
        transform 0.7s var(--ease-out);
    transition-delay: var(--delay, 0s);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ----------------------------------------
   14. RESPONSIVE
   ---------------------------------------- */
@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card--wide {
        grid-column: span 2;
    }

    .bento-card--tall {
        grid-row: span 1;
    }

    .testimonials__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .mock-dashboard {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .navbar__links {
        position: fixed;
        top: 0;
        right: 0;
        width: 280px;
        height: 100vh;
        flex-direction: column;
        background: rgba(3, 3, 3, 0.95);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        padding: 80px 32px 32px;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-med);
        border-left: 1px solid rgba(255,255,255,0.05);
        z-index: 999;
    }

    .navbar__links.open {
        transform: translateX(0);
    }

    .navbar__actions {
        display: none;
    }

    .navbar__toggle {
        display: flex;
        z-index: 1001;
    }

    .navbar__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .navbar__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .navbar__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .stats__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--wide,
    .bento-card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .testimonials__grid {
        grid-template-columns: 1fr;
    }

    .mock-dashboard {
        height: 240px;
    }

    .mock-cards {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .mock-main {
        padding: 16px;
    }

    .footer__top {
        flex-direction: column;
        gap: 40px;
    }

    .footer__links {
        flex-wrap: wrap;
        gap: 32px;
    }

    .footer__bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .hero__title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }
}

@media (max-width: 480px) {
    .stats__inner {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }

    .hero__ctas {
        flex-direction: column;
        align-items: center;
    }

    .hero__ctas .btn {
        width: 100%;
        justify-content: center;
    }
}

.hero::before {
    background-image: url('hero-background.gif');
}

/* ----------------------------------------
   10. ACE CARDS INTERACTION
   ---------------------------------------- */
.ace-section {
    padding: var(--section-py) 0;
    overflow: hidden;
}

.ace-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    perspective: 1000px;
}

@media (max-width: 1024px) {
    .ace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ace-grid {
        grid-template-columns: 1fr;
        max-width: 320px;
        margin: 0 auto;
    }
}

@keyframes floatWrapper {
    0% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
    100% { transform: translateY(0); }
}

.ace-card-wrapper.visible {
    animation: floatWrapper 4s ease-in-out infinite;
    /* Delay set via inline style or nth-child below to respect initial reveal */
}

.ace-card-wrapper:nth-child(1) { animation-delay: 1s; }
.ace-card-wrapper:nth-child(2) { animation-delay: 1.5s; }
.ace-card-wrapper:nth-child(3) { animation-delay: 1.2s; }
.ace-card-wrapper:nth-child(4) { animation-delay: 1.7s; }

.ace-card-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 2.5 / 3.5; /* Standard card ratio */
    cursor: crosshair; /* Target cursor */
}

.ace-card {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* FLIP STATE */
.ace-card.flipped {
    transform: rotateY(180deg);
}

.ace-card__face {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* FRONT DESIGN */
.ace-card__face--front {
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    /* overflow: visible removed to fix Android rendering artifact */
}

@media (max-width: 600px) {
    .ace-card-wrapper {
        aspect-ratio: 3 / 3.5; /* Slightly shorter on mobile */
    }
}

.ace-card__face--front::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-lg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 30px var(--accent-glow);
    opacity: 0;
    z-index: -1;
    animation: rippleBorder 2s infinite ease-out;
}

@keyframes rippleBorder {
    0% {
        transform: scale(0.92);
        opacity: 0.8;
        border-width: 3px;
    }
    100% {
        transform: scale(1.02);
        opacity: 0;
        border-width: 0px;
    }
}

.ace-card-wrapper:nth-child(1) .ace-card__face--front::after { animation-delay: 0s; }
.ace-card-wrapper:nth-child(2) .ace-card__face--front::after { animation-delay: 0.5s; }
.ace-card-wrapper:nth-child(3) .ace-card__face--front::after { animation-delay: 1s; }
.ace-card-wrapper:nth-child(4) .ace-card__face--front::after { animation-delay: 1.5s; }

.ace-card__face--front::before {
    content: '';
    position: absolute;
    inset: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    pointer-events: none;
}

/* Hover effect on front only */
.ace-card-wrapper:hover .ace-card__face--front {
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.1);
}

.ace-card__corner {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    font-family: 'Inter', serif; /* Use serif if available or stick to sans */
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
    gap: 4px;
    padding: 16px;
}

.ace-card__corner--top { top: 0; left: 0; }
.ace-card__corner--bottom { bottom: 0; right: 0; transform: rotate(180deg); }

.ace-card__content {
    text-align: center;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ace-card__center-icon {
    font-size: 3rem;
    opacity: 0.2;
    margin-bottom: 8px;
}

.ace-card__problem {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.4;
}

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.ace-card__instruction {
    font-size: 0.75rem;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 8px;
    opacity: 0.6;
    transform: translateY(0);
    transition: all 0.3s ease;
    animation: pulseText 2s ease-in-out infinite;
}

.ace-card-wrapper:hover .ace-card__instruction {
    opacity: 1;
    color: var(--white);
    animation: none;
}

/* BACK DESIGN */
.ace-card__face--back {
    transform: rotateY(180deg);
    background: linear-gradient(135deg, #101018 0%, #050505 100%);
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(99, 102, 241, 0.15);
}

.ace-card__solution {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    padding: 0 20px;
    text-align: center;
}

.ace-card__desc {
    font-size: 0.9rem;
    color: var(--gray-400);
    text-align: center;
    padding: 0 24px;
    line-height: 1.6;
}

.ace-card__check {
    margin-top: 20px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 0 20px var(--accent-glow);
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s both;
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

/* GUNSHOT EFFECT */
.ace-card.shot {
    animation: shotShake 0.4s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shotShake {
    10%, 90% { transform: translate3d(-2px, 0, 0) rotateY(0); }
    20%, 80% { transform: translate3d(4px, 0, 0) rotateY(0); }
    30%, 50%, 70% { transform: translate3d(-8px, 0, 0) rotateY(0); }
    40%, 60% { transform: translate3d(8px, 0, 0) rotateY(0); }
    100% { transform: translate3d(0, 0, 0) rotateY(180deg); } /* Ends flipped */
}

/* Bullet Hole Visual in CSS */
.ace-card__hole-visual {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, transparent 20%, rgba(99, 102, 241, 0.1) 60%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    z-index: 10;
}

.ace-card.flipped .ace-card__hole-visual {
    animation: holeExpand 0.6s ease-out;
}

@keyframes holeExpand {
    0% { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(2); opacity: 0.5; }
    100% { transform: translate(-50%, -50%) scale(3); opacity: 0; }
}

/* Flash Effect */
.ace-card__flash {
    position: absolute;
    inset: 0;
    background: white;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
}

.ace-flash-anim {
    animation: flash 0.15s ease-out;
}

@keyframes flash {
    0% { opacity: 0.8; }
    100% { opacity: 0; }
}

/* ----------------------------------------
   11. INFINITE MARQUEE (Universities)
   ---------------------------------------- */
.marquee-section {
    padding: 30px 0;
    background: var(--bg-surface);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.marquee-section::before,
.marquee-section::after {
    content: '';
    position: absolute;
    top: 0;
    width: 150px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-section::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-surface), transparent);
}

.marquee-section::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-surface), transparent);
}

.marquee-tag {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    margin-right: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    white-space: nowrap;
    z-index: 3;
    background: var(--bg-surface);
    padding: 0 20px;
    height: 100%;
    display: flex;
    align-items: center;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    gap: 2rem;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee__content {
    flex-shrink: 0;
    display: flex;
    justify-content: space-around;
    gap: 4rem;
    min-width: 100%;
    animation: scroll 40s linear infinite;
}

.marquee__item {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--gray-600);
    white-space: nowrap;
    transition: color 0.3s ease;
    cursor: default;
    display: flex;
    align-items: center;
    gap: 10px;
}

.marquee__item i {
    color: var(--accent);
    opacity: 0.5;
}

.marquee__item:hover {
    color: var(--white);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-100% - 2rem)); }
}

/* ----------------------------------------
   12. FAQ ACCORDION
   ---------------------------------------- */
.faq-section {
    padding: var(--section-py) 0;
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.faq-item:first-child {
    border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 24px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s ease;
    font-family: var(--font);
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--gray-500);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s ease;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
    opacity: 0.5;
}

.faq-item.active .faq-answer {
    max-height: 300px; /* Adjust based on content */
    opacity: 1;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--gray-400);
    line-height: 1.7;
    font-size: 0.95rem;
}