/* ============================================================
   In-Odyssey Website CSS
   Palette: #AD4FE3 (purple) · #358F80 (teal) · #000 · #fff
   ============================================================ */

/* 1. ROOT DESIGN TOKENS
   ---------------------------------------------------------- */
:root {
    --io-purple:       #AD4FE3;
    --io-purple-dark:  #8B3DC0;
    --io-purple-light: #C97AF0;
    --io-teal:         #358F80;
    --io-teal-dark:    #2A7065;
    --io-teal-light:   #4DB5A4;
    --io-black:        #0A0A0A;
    --io-dark:         #111118;
    --io-dark-2:       #1A1A24;
    --io-white:        #FFFFFF;
    --io-light:        #F7F7FB;
    --io-muted:        #6B7280;
    --io-border:       rgba(173, 79, 227, 0.18);

    --font-heading: 'Montserrat', sans-serif;
    --font-body:    'Montserrat', sans-serif;

    --radius-sm:   8px;
    --radius-md:   16px;
    --radius-lg:   28px;
    --radius-full: 9999px;

    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-lift: 0 16px 48px rgba(0, 0, 0, 0.16);
    --shadow-glow: 0 0 40px rgba(173, 79, 227, 0.25);

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--io-white);
    color: var(--io-black);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    padding-top: 72px;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* 3. PAGE LOADER
   ---------------------------------------------------------- */
#loader-wrapper {
    position: fixed;
    inset: 0;
    background: var(--io-black);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}
#loader-wrapper.hidden { opacity: 0; visibility: hidden; }

.loader-circle {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(173, 79, 227, 0.2);
    border-top-color: var(--io-purple);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* 4. NAVIGATION
   ---------------------------------------------------------- */
.glass-nav {
    background: #ffffff !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
    padding: 12px 0;
    box-shadow: 0 1px 16px rgba(0, 0, 0, 0.05);
}

.glass-nav.scrolled {
    padding: 8px 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
}

.navbar-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-brand-logo svg {
    width: 36px;
    height: 36px;
}

.navbar-brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--io-black);
    letter-spacing: 0.5px;
}

.nav-pill {
    color: rgba(10, 10, 10, 0.7) !important;
    border: 1px solid rgba(173, 79, 227, 0.25);
    border-radius: var(--radius-full);
    padding: 6px 20px !important;
    margin: 0 4px;
    font-weight: 500;
    font-size: 0.82rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

.nav-pill:hover,
.nav-pill.active {
    background: var(--io-purple);
    border-color: var(--io-purple);
    color: var(--io-white) !important;
    box-shadow: 0 4px 16px rgba(173, 79, 227, 0.3);
}

.nav-cta {
    background: var(--io-purple);
    color: var(--io-white) !important;
    border: none;
    padding: 8px 24px !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.82rem;
    transition: var(--transition);
}

.nav-cta:hover {
    background: var(--io-purple-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(173, 79, 227, 0.4);
}

.header-socials a {
    color: rgba(10, 10, 10, 0.45);
    font-size: 1.1rem;
    transition: var(--transition);
}
.header-socials a:hover { color: var(--io-teal); }

.navbar-toggler .mdi { color: var(--io-black) !important; }

/* 5. HERO SECTION
   ---------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    background: var(--io-black);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Orbital grid background */
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(173, 79, 227, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(173, 79, 227, 0.04) 1px, transparent 1px);
    background-size: 64px 64px;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(173, 79, 227, 0.5) 0%, transparent 55%),
        radial-gradient(circle at 65% 60%, rgba(53, 143, 128, 0.35) 0%, transparent 50%);
    filter: blur(80px);
    pointer-events: none;
    animation: glow-pulse 8s ease-in-out infinite;
    z-index: 0;
}

@keyframes glow-pulse {
    0%, 100% { transform: scale(1) translateY(0); opacity: 0.8; }
    50%       { transform: scale(1.1) translateY(-20px); opacity: 1; }
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 0 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(173, 79, 227, 0.12);
    border: 1px solid rgba(173, 79, 227, 0.3);
    color: var(--io-purple-light);
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--io-purple);
    border-radius: 50%;
    animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

.hero-headline {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    color: var(--io-white);
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
}

.hero-headline .highlight-purple {
    background: linear-gradient(135deg, var(--io-purple) 0%, var(--io-purple-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-headline .highlight-teal {
    background: linear-gradient(135deg, var(--io-teal) 0%, var(--io-teal-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.65);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-io-primary {
    background: var(--io-purple);
    color: var(--io-white);
    border: none;
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-io-primary:hover {
    background: var(--io-purple-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(173, 79, 227, 0.4);
    color: var(--io-white);
}

.btn-io-outline {
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-io-outline:hover {
    border-color: var(--io-teal);
    color: var(--io-teal);
    background: rgba(53, 143, 128, 0.08);
}

/* Hero stats bar */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.hero-stat-item { text-align: center; }
.hero-stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--io-white);
    line-height: 1;
    margin-bottom: 4px;
}
.hero-stat-number span { color: var(--io-purple); }
.hero-stat-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 6. SECTION UTILITIES
   ---------------------------------------------------------- */
.section-light  { background: var(--io-white); }
.section-soft   { background: var(--io-light); }
.section-dark   { background: var(--io-dark); color: var(--io-white); }
.section-darker { background: var(--io-dark-2); color: var(--io-white); }

.section-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--io-purple);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.5px;
    margin-bottom: 1rem;
}

.section-title .text-purple { color: var(--io-purple); }
.section-title .text-teal   { color: var(--io-teal); }

.section-desc {
    font-size: 1.05rem;
    color: var(--io-muted);
    max-width: 580px;
    margin: 0 auto;
    line-height: 1.8;
}

.section-dark .section-desc,
.section-darker .section-desc { color: rgba(255,255,255,0.6); }

.io-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--io-purple), var(--io-teal));
    border: none;
    border-radius: var(--radius-full);
    margin: 1rem auto 0;
}

/* 7. FEATURE CARDS
   ---------------------------------------------------------- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--io-white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--io-purple), var(--io-teal));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lift);
    border-color: rgba(173, 79, 227, 0.15);
}

.feature-card:hover::before { transform: scaleX(1); }

.feature-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
}

.icon-purple { background: rgba(173, 79, 227, 0.1); color: var(--io-purple); }
.icon-teal   { background: rgba(53, 143, 128, 0.1); color: var(--io-teal); }
.icon-dark   { background: rgba(10, 10, 10, 0.08);  color: var(--io-black); }

.feature-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--io-black);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--io-muted);
    line-height: 1.7;
    margin: 0;
}

/* 8. PERSONA SHOWCASE
   ---------------------------------------------------------- */
.persona-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.persona-track::-webkit-scrollbar { display: none; }

.persona-chip {
    flex-shrink: 0;
    scroll-snap-align: start;
    background: var(--io-white);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    min-width: 200px;
    transition: var(--transition);
    cursor: default;
    box-shadow: var(--shadow-card);
}

.persona-chip:hover {
    border-color: var(--io-purple);
    box-shadow: var(--shadow-glow);
    transform: translateY(-4px);
}

.persona-chip-category {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--io-purple);
    margin-bottom: 6px;
}

.persona-chip-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--io-black);
    margin-bottom: 4px;
}

.persona-chip-label {
    font-size: 0.78rem;
    color: var(--io-muted);
}

/* 9. HOW IT WORKS
   ---------------------------------------------------------- */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0;
    position: relative;
}

.steps-grid::before {
    content: "";
    position: absolute;
    top: 32px;
    left: 16.67%;
    right: 16.67%;
    height: 2px;
    background: linear-gradient(90deg, var(--io-purple), var(--io-teal));
    z-index: 0;
}

.step-item {
    text-align: center;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--io-dark);
    border: 3px solid var(--io-purple);
    color: var(--io-white);
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.step-item:hover .step-number {
    background: var(--io-purple);
    box-shadow: 0 0 24px rgba(173, 79, 227, 0.5);
    transform: scale(1.1);
}

.step-item h5 {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 8px;
}

.step-item p {
    font-size: 0.85rem;
    color: var(--io-muted);
    margin: 0;
}

/* 10. SHELF LIFE BADGE (used on career pages)
   ---------------------------------------------------------- */
.shelf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shelf-future-proof { background: rgba(53, 143, 128, 0.12); color: #358F80; border: 1px solid rgba(53, 143, 128, 0.3); }
.shelf-resilient     { background: rgba(76, 175, 80, 0.12);  color: #2E7D32; border: 1px solid rgba(76, 175, 80, 0.3); }
.shelf-moderate      { background: rgba(173, 79, 227, 0.1);  color: var(--io-purple); border: 1px solid var(--io-border); }
.shelf-at-risk       { background: rgba(255, 152, 0, 0.12);  color: #E65100; border: 1px solid rgba(255, 152, 0, 0.3); }
.shelf-critical      { background: rgba(244, 67, 54, 0.1);   color: #C62828; border: 1px solid rgba(244, 67, 54, 0.25); }

/* 11. CTA BAND
   ---------------------------------------------------------- */
.cta-band {
    background: linear-gradient(135deg, var(--io-purple) 0%, var(--io-purple-dark) 50%, #1a0533 100%);
    position: relative;
    overflow: hidden;
    padding: 80px 0;
}

.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
}

.cta-band .cta-content { position: relative; z-index: 1; }

.cta-band h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--io-white);
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cta-band p { color: rgba(255, 255, 255, 0.75); font-size: 1.1rem; margin-bottom: 2rem; }

.btn-io-white {
    background: var(--io-white);
    color: var(--io-purple);
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.9rem;
    border: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-io-white:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
    color: var(--io-purple-dark);
}

.btn-io-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--io-white);
    padding: 14px 36px;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-io-ghost:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: var(--io-white);
}

/* 12. TESTIMONIAL / STAT CARDS
   ---------------------------------------------------------- */
.stat-card {
    background: var(--io-dark-2);
    border: 1px solid rgba(173, 79, 227, 0.15);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
}

.stat-card:hover {
    border-color: var(--io-purple);
    box-shadow: var(--shadow-glow);
}

.stat-card-number {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--io-white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-card-number span { color: var(--io-purple); }
.stat-card-label { font-size: 0.85rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* 13. MASCOT WIDGET (AI Help Button)
   ---------------------------------------------------------- */
.mascot-fab {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    overflow: visible;
}

.mascot-inner {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--io-purple);
    box-shadow: 0 8px 24px rgba(173, 79, 227, 0.35);
    transition: var(--transition);
}

.mascot-inner:hover {
    transform: scale(1.1);
    box-shadow: 0 12px 36px rgba(173, 79, 227, 0.55);
}

.mascot-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pulse-ring {
    position: absolute;
    inset: -8px;
    border-radius: 50%;
    border: 2px solid rgba(173, 79, 227, 0.4);
    animation: pulse-expand 2s ease-out infinite;
    pointer-events: none;
}

@keyframes pulse-expand {
    0%   { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.6); opacity: 0; }
}

/* 14. FOOTER
   ---------------------------------------------------------- */
.io-footer {
    background: var(--io-dark);
    border-top: 1px solid rgba(173, 79, 227, 0.15);
    padding: 64px 0 0;
    color: rgba(255, 255, 255, 0.7);
}

.io-footer-brand .brand-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--io-white);
    letter-spacing: 0.5px;
}

.io-footer-brand p {
    font-size: 0.88rem;
    line-height: 1.7;
    max-width: 300px;
    color: rgba(255,255,255,0.5);
    margin-top: 12px;
}

.io-footer-heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--io-white);
    margin-bottom: 20px;
}

.io-footer ul { list-style: none; padding: 0; margin: 0; }
.io-footer ul li { margin-bottom: 10px; }
.io-footer ul li a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: var(--transition);
}
.io-footer ul li a:hover { color: var(--io-purple); padding-left: 4px; }

.io-footer-contact p {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.io-footer-contact i { color: var(--io-teal); }

.io-footer-bottom {
    margin-top: 48px;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.io-footer-bottom small { font-size: 0.8rem; color: rgba(255,255,255,0.35); }

.footer-socials a {
    color: rgba(255,255,255,0.4);
    font-size: 1.15rem;
    margin: 0 8px;
    transition: var(--transition);
}
.footer-socials a:hover { color: var(--io-purple); }

/* 15. UTILITY CLASSES
   ---------------------------------------------------------- */
.text-purple  { color: var(--io-purple) !important; }
.text-teal    { color: var(--io-teal) !important; }
.text-io-muted { color: var(--io-muted) !important; }
.bg-io-dark   { background: var(--io-dark) !important; }
.bg-io-light  { background: var(--io-light) !important; }

.rounded-io   { border-radius: var(--radius-lg) !important; }
.rounded-pill-io { border-radius: var(--radius-full) !important; }

/* Backward-compat aliases kept from original CSS */
.accent-teal     { color: var(--io-teal); }
.nav-btn-outline { color: rgba(255,255,255,0.75); }

/* 16. RESPONSIVE
   ---------------------------------------------------------- */
@media (max-width: 992px) {
    .steps-grid::before { display: none; }
    body { padding-top: 64px; }
}

@media (max-width: 768px) {
    .hero-headline { letter-spacing: -0.5px; }
    .hero-stats { gap: 32px; }
    .hero-actions { flex-direction: column; align-items: center; }
    .feature-grid { grid-template-columns: 1fr; }
}
