/* ============================================
   ROOT VARIABLES & CUSTOM PROPERTIES
   ============================================ */
:root {
    --primary-green: #10b981;
    --primary-blue: #3b82f6;
    --primary-indigo: #6366f1;
    --card-bg: rgba(251, 252, 253, 0.95);
    --card-grad1: rgba(255, 255, 255, 0.9);
    --card-grad2: rgba(248, 250, 252, 0.9);
    --card-border: rgba(226, 232, 240, 0.8);
    --card-shadow: rgba(15, 23, 42, 0.08);
    --card-shadow-hover: rgba(30, 58, 138, 0.12);
    --card-accent: rgba(29, 78, 216, 0.08);
}

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
    background: #fff;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
}

h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 600;
}

.subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
    line-height: 1;
}

.logo img {
    height: 55px !important;
    width: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

.nav-breadcrumb a {
    color: #15803d;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: all 0.2s ease;
}

.nav-breadcrumb a:hover {
    color: #2563eb;
    text-decoration-thickness: 2px;
}

.separator {
    color: #999;
    font-size: 1.1rem;
}

.current {
    color: #333;
    font-weight: 600;
}

/* ============================================
   MOBILE MENU
   ============================================ */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 22px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-left: 0.25rem;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2.5px;
    background: linear-gradient(90deg, #475569 0, #64748b 100%);
    border-radius: 2px;
    transition: all .3s ease-in-out;
    transform-origin: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.menu-toggle:hover span {
    background: linear-gradient(135deg, #065f46, #10b981);
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.menu-toggle.active {
    opacity: 0;
    pointer-events: none;
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -380px;
    width: 360px;
    height: 100vh;
    background: linear-gradient(180deg, #f5f7fa 0, #f8fafc 40%, #f2f4f8 100%);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
    transition: right .3s ease-in-out;
    z-index: 1000;
    overflow-y: auto;
}

.mobile-menu.active {
    right: 0;
}

.menu-header {
    padding: 2rem 2rem 1rem;
    background: linear-gradient(180deg, #fff 0, #f8fafc 100%);
    border-bottom: 2px solid rgba(16, 185, 129, 0.1);
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.menu-header h2 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #065f46, #0b8f63);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    margin: 0;
}

.menu-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.menu-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #374151;
}

.menu-content {
    padding: 0 2rem 2rem;
}

.menu-section {
    margin-bottom: 2rem;
    position: relative;
}

.menu-section h3 {
    font-size: 1rem;
    color: #000;
    margin-bottom: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.menu-section h3::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, rgba(148, 163, 184, 0.3) 0, transparent 100%);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;
    color: #374151;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    position: relative;
    border-radius: 8px;
    background: transparent;
}

.menu-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: linear-gradient(180deg, #10b981, #47e73c);
    border-radius: 2px;
    transition: width 0.3s ease;
}

.menu-item:hover {
    box-shadow: 0 2px 8px rgba(11, 80, 160, 0.1);
    color: #000;
    transform: translateX(4px);
}

.menu-item.active {
    color: #000;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(11, 80, 160, 0.1);
}

.menu-item.active::before {
    width: 3px;
}

.menu-item.main-link:hover {
    background: linear-gradient(135deg, #f0fdf4 0, #eff6ff 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transform: translateX(0) scale(1.02);
}

.menu-item.launch-special {
    background: linear-gradient(45deg, #22c55e, #34d399, #10b981, #059669);
    border: 1px solid #059669;
    color: #fff;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    text-align: center;
    justify-content: center;
}

.menu-item.launch-special:hover {
    transform: translateX(4px) scale(1.02);
    box-shadow: 0 6px 20px rgba(4, 26, 99, 0.3);
}

.menu-item.signin {
    margin-top: 2rem;
    background: transparent;
    border: 1px solid #059669;
    color: #000;
    text-align: center;
    justify-content: center;
}

.menu-item.signin:hover {
    background: rgba(16, 185, 129, 0.05);
}

.menu-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(148, 163, 184, 0.2), transparent);
    margin: 1.5rem 0;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(4px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    margin-top: 80px;
    padding: 80px 0 60px;
    text-align: center;
    background: #1a1a2e;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 80%, #22c55e 0, transparent 50%),
        radial-gradient(circle at 80% 20%, #14b8a6 0, transparent 50%),
        radial-gradient(circle at 40% 40%, #0ea5e9 0, transparent 50%),
        radial-gradient(circle at 90% 90%, #6366f1 0, transparent 50%);
    animation: gradientShift 20s ease infinite;
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.1) 35px, rgba(255, 255, 255, 0.1) 70px),
        repeating-linear-gradient(-45deg, transparent, transparent 35px, rgba(255, 255, 255, 0.05) 35px, rgba(255, 255, 255, 0.05) 70px);
    pointer-events: none;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    color: #fff;
    text-shadow: 
        0 2px 20px rgba(0, 0, 0, 0.3),
        0 4px 40px rgba(52, 152, 219, 0.2);
}

.hero .subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    margin-top: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CTA BUTTON
   ============================================ */
.cta-button {
    background: linear-gradient(45deg, #22c55e, #34d399, #10b981, #059669);
    color: #fff !important;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
    z-index: 1;
}

.cta-button:visited {
    color: #fff !important;
}

.cta-button span {
    position: relative;
    z-index: 10;
    color: #fff !important;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(34, 197, 94, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.cta-button:hover::before {
    opacity: 0;
}

.hero .cta-button::after,
.hero .cta-button::before {
    z-index: -1 !important;
}

.cta-button::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #10b981 0, #047857 100%);
    border-radius: 8px;
    opacity: 0.7;
    z-index: -1;
    transition: opacity 0.3s ease;
    filter: blur(10px);
    animation: glowRotate 12s linear infinite;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.cta-button:hover::after {
    opacity: 0;
}

.cta-large {
    font-size: 1.2rem;
    padding: 16px 40px;
    margin: 2rem 0;
}

/* ============================================
   TALENT COMPACT DEMO SECTION
   ============================================ */
.talent-compact-demo {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    border: 1px solid #10b981;
    border-radius: 20px;
    border-bottom: 2px solid transparent;
    background-image: 
        linear-gradient(white, #fff),
        linear-gradient(90deg, #10b981, #3b82f6, #10b981);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.demo-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.demo-header h2 {
    font-size: 32px;
    background: linear-gradient(135deg, #065f46, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 2rem 0 1rem 0;
    font-weight: 700;
}

.demo-header p {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 600;
}

/* ============================================
   LIST HEADER & TOGGLE
   ============================================ */
.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.view-toggle {
    display: inline-flex;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 4px;
    border-radius: 12px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.08),
        inset 0 1px 2px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

.toggle-btn {
    padding: 10px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    transition: all 0.3s;
    position: relative;
}

.toggle-btn:hover:not(.active) {
    color: #475569;
}

.toggle-btn.active {
    background: #fff;
    color: #065f46;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: scale(1.02);
}

.toggle-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    border-radius: 2px;
}

.action-btn {
    padding: 10px 24px;
    background: #fff;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.action-btn:hover {
    background: var(--primary-green);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

/* ============================================
   CANDIDATE CARDS
   ============================================ */
.candidate-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3rem;
}

.candidate-card {
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 16px;
    padding: 1.5rem 1.25rem;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 420px;
    box-shadow: 
        0 4px 6px rgba(0, 0, 0, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.candidate-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    background: rgba(255, 255, 255, 0.95);
}

.candidate-card.highlighted {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(16, 185, 129, 0.3);
    box-shadow: 
        0 8px 16px rgba(16, 185, 129, 0.1),
        0 0 0 1px rgba(16, 185, 129, 0.1) inset;
}

.candidate-card.highlighted:hover {
    box-shadow: 
        0 12px 24px rgba(16, 185, 129, 0.15),
        0 0 0 1px rgba(16, 185, 129, 0.2) inset;
}

.project-match-badge {
    position: absolute;
    top: -10px;
    left: 16px;
    z-index: 2;
}

.match-type {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.match-type.exact {
    background: var(--primary-green);
    color: #fff;
}

.match-type.related {
    background: #dfa510;
    color: #fff;
}

.candidate-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 0.5rem;
}

.candidate-info h4 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.profile-attributes {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid rgba(226, 232, 240, 0.5);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
}

.attribute-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 10px;
    border: 1px solid rgba(226, 232, 240, 0.3);
    transition: all 0.2s;
    font-size: 13px;
}

.attribute-row:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.attribute-label {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
}

.attribute-value {
    color: #1e293b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.status-indicator.available {
    background: #10b981;
    animation: pulse 2s infinite;
}

.status-indicator.soon {
    background: #f59e0b;
}

/* ============================================
   AIVIA SCORES
   ============================================ */
.aivia-scores {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    margin: 8px 0;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05), rgba(59, 130, 246, 0.05));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.score-item:first-child {
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(16, 185, 129, 0.1);
}

.score-label {
    font-size: 12px;
    color: #475569;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.score-value {
    font-size: 16px;
    color: #065f46;
    font-weight: 700;
}

.score-value.level {
    background: linear-gradient(135deg, #10b981, #3b82f6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   CARD ACTIONS
   ============================================ */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
    padding-top: 12px;
}

.card-btn {
    width: 100%;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.view-report-btn {
    background: var(--primary-green);
    color: #fff;
    padding: 12px 16px;
    font-size: 14px;
}

.view-report-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.secondary-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.secondary-btn {
    flex: 1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #fff;
    border: 1px solid #e5e7eb;
    color: #6b7280;
}

.secondary-btn:hover {
    border-color: var(--primary-indigo);
    color: var(--primary-indigo);
    background: #f8f9ff;
}

.secondary-btn svg {
    width: 12px;
    height: 12px;
}

.more-candidates {
    grid-column: 1 / -1;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(135deg, #f9fafb 0, #f3f4f6 100%);
    border: 2px dashed #10b981;
    border-radius: 12px;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}

.more-candidates::before {
    content: '+';
    position: absolute;
    left: 50%;
    top: -12px;
    transform: translateX(-50%);
    background: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   PRESCREENING DEMO
   ============================================ */
.prescreening-demo {
    max-width: 1200px;
    margin: 2rem auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #10b981;
    border-bottom: 2px solid transparent;
    background-image: 
        linear-gradient(white, #fff),
        linear-gradient(90deg, #10b981, #3b82f6, #10b981);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.prescreening-content {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.categories-panel {
    background: #fff;
    border: 1px solid #e7eaf0;
    border-radius: 14px;
    padding: 16px;
    box-shadow: 0 2px 10px rgba(20, 26, 40, 0.04);
}

.categories-panel h4 {
    margin: 4px 0 14px;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5b6472;
    font-weight: 700;
}

.category-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-list li {
    position: relative;
    display: block;
    padding: 12px 14px;
    margin: 0 0 10px;
    border: 1px solid #e7eaf0;
    border-radius: 10px;
    background: #fff;
    color: #344054;
    font-size: 14px;
    line-height: 1.25;
    transition: 
        border-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.15s ease,
        background-color 0.15s ease;
}

.category-list li:hover {
    background: #fafbfc;
    border-color: #dfe3ea;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(20, 26, 40, 0.05);
}

.category-list li.active {
    background: #f6fffb;
    border-color: #16a34a;
    box-shadow: 
        0 0 0 3px rgba(22, 163, 74, 0.1),
        0 6px 16px rgba(20, 26, 40, 0.06);
    font-weight: 700;
    color: #1f2937;
}

.category-list li:last-child {
    margin-bottom: 0;
}

/* ============================================
   RUBRIC EDITOR
   ============================================ */
.rubric-editor {
    flex: 1;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.editor-header {
    margin-bottom: 2rem;
}

.project-name {
    color: #008b8b;
    font-weight: 600;
}

.rubric-content {
    background: #f9f9f9;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
}

.rubric-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.existing-rubrics {
    margin-bottom: 1.5rem;
}

.rubric-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #f0fdf4 0, #eff6ff 100%);
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

.rubric-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(180deg, #10b981, #3b82f6);
    border-radius: 6px 0 0 6px;
}

.rubric-item:hover::before {
    transform: scaleY(1);
}

.rubric-item:hover {
    background: linear-gradient(135deg, #e5f3e9 0, #dee6f0 100%);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.1);
}

.rubric-number {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.rubric-text {
    flex: 1;
    color: #374151;
}

.remove-rubric {
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 1.5rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.remove-rubric:hover {
    background: rgba(239, 68, 68, 0.1);
    opacity: 1;
}

.add-rubric-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rubric-dropdown {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.2s;
}

.rubric-dropdown:focus {
    outline: none;
    border-color: var(--primary-green);
}

.add-btn {
    padding: 12px 24px;
    background: var(--primary-green);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.add-btn:hover {
    background: var(--dark-green);
    transform: translateY(-1px);
}

/* ============================================
   AI PREVIEW BOX
   ============================================ */
.ai-preview-box {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #1e293b 0, #334155 100%);
    border: 1px solid #334155;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: #fff;
}

.ai-preview-box h5 {
    color: #fff;
    font-weight: 600;
    margin: 0 0 12px 0;
    font-size: 14px;
}

.rubric-preview {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.preview-section {
    color: #fff;
}

.preview-section strong {
    color: #fff;
    display: block;
    margin-bottom: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.preview-list {
    margin: 0;
    padding-left: 20px;
    list-style: none;
}

.preview-list li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
    line-height: 1.4;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.9);
}

.preview-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #fbbf24;
}

.preview-tags {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preview-tags li {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0, rgba(139, 92, 246, 0.15) 100%);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #c4b5fd;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
    font-size: 12px;
}

.preview-tags li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.save-changes-btn {
    margin-top: 24px;
    padding: 14px 28px;
    background: linear-gradient(135deg, #10b981 0, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    display: block;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
}

.save-changes-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.save-changes-btn:hover::before {
    width: 300px;
    height: 300px;
}

.save-changes-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

.save-changes-btn.saving {
    background: #fbbf24;
}

.save-changes-btn.saved {
    background: var(--primary-green);
}

/* ============================================
   MODAL STYLES
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.3s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal.active {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 20px 0;
}

.modal-content {
    background: #f5f5f5;
    width: 90%;
    max-width: 800px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
    position: relative;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #fff;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    color: #2c3e50;
    font-size: 1.5rem;
    margin: 0;
}

.close-modal,
.close-btn {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: #666;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.close-modal:hover,
.close-btn:hover {
    background: #e2e8f0;
    color: #333;
}

.modal-tabs {
    background: #fff;
    padding: 0 1.5rem;
    display: flex;
    gap: 2rem;
    border-bottom: 2px solid #e2e8f0;
    flex-shrink: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    padding: 1rem 0;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

.tab-btn.active {
    color: #3498db;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: #3498db;
}

.modal-body {
    background: #fff;
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.tab-content {
    display: none;
    overflow-y: auto;
    max-height: 100%;
    padding: 1rem;
}

.tab-content.active {
    display: block;
}

.feedback-item {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    color: #333;
}

.feedback-item strong {
    color: #2c3e50;
}

.conversation-detail {
    color: #666;
    font-style: italic;
    margin-bottom: 10px;
}

.modal-footer {
    background: #f9f9f9;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    flex-shrink: 0;
    border-radius: 0 0 12px 12px;
}

.cta-box {
    background: rgba(99, 102, 241, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
}

.cta-box h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.cta-box p {
    color: #666;
    margin-bottom: 1rem;
}

.cta-features {
    margin: 1.5rem 0;
}

.cta-features h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.cta-features ul {
    list-style: none;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.cta-features li {
    padding: 0.5rem 0;
    color: #333;
}

.modal-cta-btn {
    background: #3498db;
    color: #fff;
    border: none;
    padding: 12px 32px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-cta-btn:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

/* ============================================
   FEEDBACK CARDS
   ============================================ */
.feedback-card {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.feedback-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: #334155;
    margin: 0 0 0.5rem;
    letter-spacing: 0.02em;
}

.feedback-card ul {
    margin: 0.25rem 0 0 1rem;
    padding: 0;
    list-style: disc;
}

.feedback-card p {
    color: #333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.feedback-card li {
    color: #555;
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.ai-badge {
    background: linear-gradient(135deg, #3498db 0, #2c3e50 100%);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge {
    display: inline-block;
    background: #f9fafb;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 0.25rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #0ea5e9;
}

.integration-tags,
.project-tags {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.integration-tags {
    justify-content: center;
    gap: 1rem;
}

/* ============================================
   STEPS
   ============================================ */
.step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    align-items: flex-start;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb 0, #3b82f6 100%);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.6;
}

/* ============================================
   FILTER TABS
   ============================================ */
.filter-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.filter-tab {
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 1rem;
    color: #718096;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.filter-tab.active {
    color: #3182ce;
    border-bottom-color: #3182ce;
}

.filter-tab:hover {
    color: #2d3748;
}

/* ============================================
   SECTIONS
   ============================================ */
.why-choose {
    padding: 5rem 0;
    background: #fff;
    margin-top: 1rem;
}

.platform-features {
    padding: 5rem 0;
    background: #fff;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-top: 0;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    max-width: 900px;
    margin: 0 auto;
}

.custom-prescreening-section,
.talent-discovery-section {
    padding: 1.5rem 0;
    background: #fff;
}

/* ============================================
   GRIDS
   ============================================ */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* ============================================
   BENEFIT CARDS
   ============================================ */
.benefit-card {
    background: linear-gradient(180deg, var(--card-grad1), var(--card-grad2));
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(29, 78, 216, 0.1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px var(--card-shadow);
    transform: translateZ(0);
    transition: 
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease;
}

@supports (backdrop-filter: blur(10px)) {
    .benefit-card {
        backdrop-filter: blur(8px);
    }
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: radial-gradient(1200px 300px at -10% -10%, rgba(255, 255, 255, 0.35), transparent 60%);
    pointer-events: none;
}

.benefit-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #1e3a8a, transparent);
    opacity: 0.7;
}

.benefit-card:hover,
.benefit-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px var(--card-shadow-hover);
    border-color: rgba(29, 78, 216, 0.4);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.9));
}

.benefit-card:hover::after {
    animation: pulse 0.3s ease;
}

.benefit-card h3,
.benefit-card p {
    position: relative;
    z-index: 1;
}

.benefit-card p {
    color: #666;
    font-size: 0.95rem;
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3498db 0, #2c3e50 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.benefit-icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
    transition: all 0.3s ease;
}

.benefit-card:hover .benefit-icon svg {
    transform: scale(1.1) rotate(5deg);
}

.benefit-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(52, 152, 219, 0.4);
    transform: translate(-50%, -50%) scale(0);
    animation: iconPulse 3s ease-out infinite;
}

/* ============================================
   FEATURE SECTIONS
   ============================================ */
.feature-section {
    background: rgba(249, 249, 249, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.05);
    transition: all 0.3s ease;
}

.feature-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
}

.feature-section h3 {
    color: #15803d;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-align: center;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '✓';
    color: #10b981;
    font-weight: 700;
    margin-top: 2px;
}

/* ============================================
   COMPARISON SECTION
   ============================================ */
.comparison {
    background: #1e1e1e;
    padding: 5rem 0;
    position: relative;
}

.comparison::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(255, 255, 255, 0.03) 2px,
        rgba(255, 255, 255, 0.03) 4px
    );
    pointer-events: none;
}

.comparison h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-bottom: 1rem;
    font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
}

.comparison .subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #94a3b8;
    margin-bottom: 3rem;
    font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    max-width: 1000px;
    margin: 0 auto;
    background: #282c34;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.comparison-side {
    padding: 2rem;
    position: relative;
}

.traditional {
    background: rgba(254, 202, 202, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.aivia-side {
    background: rgba(167, 243, 208, 0.05);
}

.comparison-side h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: #e2e8f0;
    text-align: left;
    font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.traditional h3 {
    color: #ef4444;
}

.aivia-side h3 {
    color: #10b981;
}

.comparison-list {
    list-style: none;
}

.comparison-list li {
    padding: 0.75rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    color: #e2e8f0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-list li:last-child {
    border-bottom: none;
}

.comparison-list li::before {
    content: attr(data-line);
    color: #64748b;
    margin-right: 1rem;
    font-size: 0.8rem;
    min-width: 20px;
    display: inline-block;
}

.diff-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    font-family: Monaco, Menlo, 'Ubuntu Mono', monospace;
}

.diff-removed {
    color: #ef4444;
}

.diff-added {
    color: #10b981;
}

.traditional .comparison-list li {
    background: rgba(239, 68, 68, 0.1);
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
}

.aivia-side .comparison-list li {
    background: rgba(16, 185, 129, 0.1);
    padding-left: 1rem;
    margin-left: -1rem;
    margin-right: -1rem;
    padding-right: 1rem;
}

/* ============================================
   PRICING SECTION
   ============================================ */
.pricing {
    text-align: center;
    background: linear-gradient(135deg, #1e293b 0, #334155 100%);
    color: #fff;
    padding: 4rem 2rem;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.pricing-header {
    margin-bottom: 2rem;
}

.price-display {
    margin: 2rem 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 1rem;
}

.current-price {
    font-size: 3rem;
    font-weight: 800;
    color: #86efac;
}

.features-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0.5rem;
    margin: 2rem auto;
    max-width: 600px;
    justify-content: center;
    display: grid;
    font-size: 1.2rem;
}

.features-box h3 {
    color: #fff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.trust-section {
    margin: 2rem auto;
    max-width: 700px;
}

.credentials {
    font-size: 0.9rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

.features-list {
    max-width: 600px;
    margin: 2rem;
    text-align: left;
    list-style: none;
}

.features-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer-minimal {
    background: rgba(44, 62, 80, 0.05);
    border-top: 1px solid rgba(52, 152, 219, 0.1);
    padding: 1.5rem 0;
}

.footer-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-nav a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-nav a:hover {
    color: #10b981;
}

.footer-nav .divider {
    color: #10b981;
    font-size: 0.75rem;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateX(-20px);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

@keyframes gradientShift {
    0%, 100% {
        transform: rotate(0) scale(1);
        filter: blur(40px);
    }
    25% {
        transform: rotate(90deg) scale(1.1);
        filter: blur(60px);
    }
    50% {
        transform: rotate(180deg) scale(1);
        filter: blur(50px);
    }
    75% {
        transform: rotate(270deg) scale(0.9);
        filter: blur(70px);
    }
}

@keyframes gradientText {
    0% {
        background-position: 0 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0 50%;
    }
}

@keyframes glowRotate {
    0% {
        filter: blur(10px) hue-rotate(0);
    }
    100% {
        filter: blur(10px) hue-rotate(60deg);
    }
}

@keyframes patternFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(-20px, -20px) scale(1.1);
    }
    66% {
        transform: translate(20px, -10px) scale(0.95);
    }
}

@keyframes iconPulse {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2);
        opacity: 0;
    }
}

@keyframes pulse-ring {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   NEW ITEM ANIMATION
   ============================================ */
.new-item {
    animation: slideIn 0.4s;
    border: 2px solid var(--primary-green) !important;
    background: var(--light-green) !important;
}

/* ============================================
   MEDIA QUERIES - TABLET & MOBILE
   ============================================ */
@media (max-width: 768px) {
    /* Logo */
    .logo img {
        height: 40px !important;
    }
    
    /* Hero */
    .hero h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero .subtitle {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    /* Typography */
    h2 {
        font-size: 1.8rem;
    }
    
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Grids */
    .analytics-grid,
    .comparison-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Talent Demo */
    .talent-compact-demo {
        padding: 1rem;
        border-radius: 16px;
        margin: 0.5rem;
    }
    
    .demo-header h2 {
        font-size: 24px;
        line-height: 1.3;
    }
    
    .demo-header p {
        font-size: 13px;
    }
    
    .candidate-cards {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .candidate-card {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid rgba(226, 232, 240, 0.8);
        box-shadow: 
            0 8px 16px rgba(0, 0, 0, 0.12),
            0 0 0 1px rgba(255, 255, 255, 0.5) inset;
        margin: 1rem 0.5rem;
        transform: scale(1);
        transition: all 0.3s ease;
    }
    
    .candidate-card.highlighted {
        border: 2px solid rgba(16, 185, 129, 0.5);
        box-shadow: 
            0 12px 24px rgba(16, 185, 129, 0.15),
            0 0 0 1px rgba(16, 185, 129, 0.2) inset;
        background: rgba(255, 255, 255, 1);
    }
    
    .candidate-card:not(:last-child)::after {
        content: '';
        position: absolute;
        bottom: -1rem;
        left: 20%;
        right: 20%;
        height: 1px;
        background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    }
    
    .list-header {
        display: none;
    }
    
    .view-toggle {
        width: 100%;
        padding: 3px;
        background: transparent;
        border: 1px solid #e2e8f0;
        padding: 2px;
    }
    
    .toggle-btn {
        flex: 1;
        padding: 12px 8px;
        font-size: 13px;
        padding: 6px 12px;
        margin-bottom: 10px;
        font-size: 11px;
    }
    
    .action-btn {
        width: 100%;
        padding: 12px;
        display: none;
    }
    
    .profile-attributes {
        gap: 8px;
        padding: 10px 0;
    }
    
    .attribute-row {
        padding: 10px;
        font-size: 14px;
    }
    
    .aivia-scores {
        margin: 12px 0;
        padding: 14px;
        border: 2px solid rgba(16, 185, 129, 0.25);
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.08));
    }
    
    .score-item {
        padding: 8px 0;
    }
    
    .score-label {
        font-size: 11px;
    }
    
    .score-value {
        font-size: 15px;
        font-weight: 700;
    }
    
    .card-actions {
        gap: 10px;
        padding-top: 14px;
    }
    
    .view-report-btn {
        padding: 14px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 4px 8px rgba(16, 185, 129, 0.2);
    }
    
    .secondary-actions {
        gap: 10px;
        margin-top: 10px;
    }
    
    .secondary-btn {
        padding: 10px;
        font-size: 12px;
        border: 1.5px solid #e5e7eb;
        background: rgba(255, 255, 255, 0.9);
    }
    
    .project-match-badge {
        top: -12px;
        left: 12px;
    }
    
    .match-type {
        font-size: 9px;
        padding: 6px 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }
    
    /* Prescreening Demo */
    .prescreening-demo {
        padding: 1rem;
        gap: 1rem;
    }
    
    .prescreening-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    #step3-content .categories-panel {
        display: none !important;
    }
    
    #step3-content .prescreening-demo {
        display: block !important;
        grid-template-columns: unset !important;
    }
    
    #step3-content .rubric-editor {
        width: 100% !important;
    }
    
    #step3-content .add-rubric-section {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
    
    #step3-content .rubric-input {
        width: 100%;
    }
    
    #step3-content .add-btn,
    #step3-content .save-changes-btn {
        width: 100%;
    }
    
    .categories-panel {
        padding: 1rem;
    }
    
    .categories-panel h4 {
        font-size: 11px;
        text-transform: uppercase;
        color: #6b7280;
        margin-bottom: 8px;
    }
    
    .category-list li {
        padding: 10px 12px;
        font-size: 14px;
        display: none;
    }
    
    .category-list li.active,
    .category-list li:first-child {
        display: block !important;
        background: linear-gradient(135deg, #3498db 0, #2c3e50 100%);
        color: #fff;
        padding: 12px 40px 12px 16px;
        border-radius: 8px;
        margin: 0;
        position: relative;
        cursor: pointer;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }
    
    .category-list li.active::after,
    .category-list li:first-child::after {
        content: '▼';
        position: absolute;
        right: 16px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 12px;
    }
    
    .category-list li.active ~ li:first-child {
        display: none !important;
    }
    
    .rubric-editor {
        padding: 1rem;
    }
    
    .rubric-content {
        padding: 1rem;
    }
    
    .rubric-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .rubric-text {
        width: 100%;
    }
    
    .remove-rubric {
        align-self: flex-end;
        margin-top: -2rem;
    }
    
    .add-rubric-section {
        flex-direction: column;
    }
    
    .rubric-dropdown {
        width: 100%;
    }
    
    .add-btn {
        width: 100%;
    }
    
    .save-changes-btn {
        width: 100%;
    }
    
    .ai-preview-box {
        padding: 12px;
    }
    
    .preview-list li {
        font-size: 12px;
    }
    
    .preview-tags {
        gap: 6px;
    }
    
    .preview-tags li {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    /* Steps */
    .step {
        flex-direction: column;
        text-align: center;
    }
    
    /* Comparison */
    .traditional {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    /* Breadcrumb */
    .nav-breadcrumb {
        font-size: 0.85rem;
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .nav-breadcrumb a {
        max-width: 200px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Bulk Actions */
    .bulk-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        margin: 2.5vh auto;
        max-height: 95vh;
    }
    
    .modal.active {
        padding: 10px;
        align-items: flex-start;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-tabs {
        padding: 0 1rem;
        gap: 1rem;
    }
    
    .tab-btn {
        font-size: 0.9rem;
        padding: 0.75rem 0;
    }
    
    .modal-body {
        padding: 0;
    }
    
    .tab-content {
        padding: 1rem;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .feedback-card {
        padding: 1rem;
    }
    
    .feedback-card h4 {
        font-size: 1rem;
    }
    
    .feedback-card p,
    .feedback-card li {
        font-size: 0.9rem;
    }
    
    .close-modal {
        width: 35px;
        height: 35px;
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 85vh;
    }
}

/* ============================================
   MEDIA QUERIES - SMALL MOBILE
   ============================================ */
@media (max-width: 640px) {
    .mobile-menu {
        width: 100%;
        right: -100%;
    }
    
    .nav-breadcrumb {
        font-size: 0.875rem;
        padding: 0.4rem 0.8rem;
    }
    
    .footer-nav .divider {
        display: none;
    }
    
    .footer-nav {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .candidate-cards {
        gap: 3rem;
    }
    
    .talent-compact-demo {
        padding: 0.75rem;
        border: 1px solid rgba(16, 185, 129, 0.3);
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
    }
    
    .candidate-card {
        border-radius: 14px;
        padding: 1.25rem 1rem;
        position: relative;
        background: #fff;
        border: 2px solid #10b981;
        margin: 1rem 0.25rem;
    }
    
    .candidate-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(16, 185, 129, 0.02), rgba(59, 130, 246, 0.02));
        border-radius: 14px;
        pointer-events: none;
    }
    
    .demo-header h2 {
        font-size: 20px;
        margin: 2rem 0 1rem 0;
        font-size: 1.5rem;
    }
    
    .demo-header p {
        font-size: 12px;
        line-height: 1.5;
        padding: 0 0.5rem;
        font-size: 14px;
    }
    
    .candidate-info h4 {
        font-size: 22px;
        margin-bottom: 12px;
    }
    
    .more-candidates {
        margin: 0 0.25rem;
        padding: 1.5rem;
        background: linear-gradient(135deg, #f8fafc, #f1f5f9);
        border: 2px dashed #10b981;
        font-weight: 600;
    }
    
    .toggle-btn {
        padding: 6px 12px;
        font-size: 14px;
    }
    
    /* Modal on small mobile */
    .modal-content {
        width: 100%;
        border-radius: 12px 12px 0 0;
        margin: 0;
        max-height: 100vh;
    }
    
    .modal.active {
        padding: 0;
        align-items: flex-end;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .close-btn,
    .close-modal {
        font-size: 1.5rem;
        width: 35px;
        height: 35px;
    }
}

/* ============================================
   REDUCED MOTION PREFERENCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .benefit-card {
        transition: none;
    }
    
    .benefit-card:hover::after {
        animation: none;
    }
}
