/* ============================================
   V2Bot Landing - Hero Section (Light Theme)
   Version: 2.0 - Jarvis Awakening Update
   ============================================ */

/* ============================================
   HEADER
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: var(--z-header);
    background: transparent;
    transition: all var(--transition-slow);
}

.header--scrolled {
    background: var(--surface-overlay);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    position: relative;
}

/* Right side actions group */
.header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Login link */
.header__login {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all var(--transition-fast);
}

.header__login:hover {
    color: var(--gold-primary);
    background: rgba(212, 168, 83, 0.08);
}

/* Logo */
.header__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* New SVG icon logo */
.header__logo-icon {
    width: 40px;
    height: 40px;
    transition: opacity var(--transition-fast);
}

.header__logo-icon--light {
    display: block;
}

.header__logo-icon--dark {
    display: none;
}

/* Switch icons on scroll */
.header--scrolled .header__logo-icon--light {
    display: none;
}

.header--scrolled .header__logo-icon--dark {
    display: block;
}

/* Fallback for old jpeg logo */
.header__logo-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.header__logo-text {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Navigation */
.header__nav {
    display: flex;
    gap: var(--space-xl);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.header__nav-link {
    font-size: var(--fs-small);
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.header__nav-link:hover {
    color: var(--gold-primary);
}

/* Header CTA - hidden by default, shown when hero CTA scrolls out */
.header__cta {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
    pointer-events: none;
    transition: all var(--transition-slow);
}

.header__cta--visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Mobile Menu Toggle */
.header__menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header__menu-icon {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: background var(--transition-fast);
}

.header__menu-icon::before,
.header__menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: transform var(--transition-fast);
}

.header__menu-icon::before { top: -7px; }
.header__menu-icon::after { bottom: -7px; }

/* Mobile Menu Open State */
.header__menu-toggle--open .header__menu-icon {
    background: transparent;
}

.header__menu-toggle--open .header__menu-icon::before {
    transform: rotate(45deg) translate(5px, 5px);
}

.header__menu-toggle--open .header__menu-icon::after {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============================================
   LANGUAGE SWITCHER
   ============================================ */
.lang-switcher {
    position: relative;
    z-index: 100;
}

.lang-switcher__toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 10px;
    min-width: 62px; /* Fixed width to prevent jumping */
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    transition: all var(--transition-fast, 0.2s);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #64748b);
}

.lang-switcher__toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--gold-primary, #D4A853);
    color: var(--text-primary, #1e293b);
}

.lang-switcher__globe {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.lang-switcher__toggle:hover .lang-switcher__globe {
    opacity: 1;
    stroke: var(--gold-primary, #D4A853);
}

.lang-switcher__code {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Dropdown */
.lang-switcher__dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 140px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-light, rgba(0, 0, 0, 0.08));
    border-radius: var(--radius-md, 12px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.2s ease;
}

.lang-switcher--open .lang-switcher__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-switcher__option {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 12px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm, 8px);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary, #64748b);
    transition: all 0.15s ease;
    text-align: left;
}

.lang-switcher__option:hover {
    background: rgba(212, 168, 83, 0.1);
    color: var(--text-primary, #1e293b);
}

.lang-switcher__option--active {
    background: rgba(212, 168, 83, 0.15);
    color: var(--gold-dark, #B8860B);
    font-weight: 500;
}

.lang-switcher__flag {
    font-size: 16px;
    line-height: 1;
}

/* Scrolled state - more visible background */
.header--scrolled .lang-switcher__toggle {
    background: rgba(255, 255, 255, 0.95);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-bottom: var(--space-xl);
    position: relative;
    overflow: hidden;
}

/* Particle Canvas (Three.js) */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

/* Jarvis Container (Right Side) */
.hero__jarvis {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px;
}

/* ============================================
   HERO CONTENT (Left Side)
   ============================================ */
.hero__content {
    max-width: 560px;
}

.hero__title {
    font-size: var(--fs-hero);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.hero__title-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: var(--fs-body-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.7;
}

.hero__cta {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.hero__micro {
    font-size: var(--fs-small);
    color: var(--text-muted);
}

.hero__micro-separator {
    margin: 0 var(--space-sm);
    color: var(--border-default);
}

/* ============================================
   FOUNDER QUOTE (Hero Section)
   ============================================ */
.hero__founder-quote {
    margin-top: var(--space-md);
    max-width: 280px;
}

.founder-quote {
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(212, 168, 83, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-md);
}

.founder-quote__text {
    font-size: 14px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: var(--space-sm);
    text-align: left;
}

.founder-quote__text::before {
    content: '«';
    color: var(--gold-primary);
    font-weight: 400;
    opacity: 0.7;
}

.founder-quote__text::after {
    content: '»';
    color: var(--gold-primary);
    font-weight: 400;
    opacity: 0.7;
}

.founder-quote__highlight {
    /* no special styling */
}

.founder-quote__author {
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    gap: var(--space-sm);
}

.founder-quote__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--gold-primary);
    box-shadow: 0 2px 6px rgba(212, 168, 83, 0.25);
    transform: scaleX(-1);
}

.founder-quote__info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
}

.founder-quote__name {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-secondary);
}

.founder-quote__role {
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   DEMO MESSENGER (Right Side)
   ============================================ */
.hero__demo {
    display: flex;
    justify-content: center;
}

.demo-messenger {
    width: 100%;
    max-width: 420px;
    background: var(--surface-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg), var(--shadow-glow-gold);
    overflow: hidden;
}

/* Messenger Header */
.demo-messenger__header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(180deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 100%);
    border-bottom: 1px solid var(--border-card);
}

.demo-messenger__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--gold-primary);
    overflow: hidden;
    flex-shrink: 0;
}

.demo-messenger__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.demo-messenger__info {
    display: flex;
    flex-direction: column;
}

.demo-messenger__name {
    font-weight: 600;
    color: var(--text-primary);
}

.demo-messenger__status {
    font-size: var(--fs-caption);
    color: var(--success);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.demo-messenger__status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
}

/* Messenger Chat Area */
.demo-messenger__chat {
    padding: var(--space-lg);
    min-height: 280px;
    position: relative;
    overflow: hidden;
}

/* Slides Container */
.demo-messenger__slides {
    position: relative;
}

.demo-messenger__slide {
    display: none;
    opacity: 0;
    transform: translateX(20px);
    transition: all var(--transition-slow);
}

.demo-messenger__slide--active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

/* Messages */
.demo-message {
    max-width: 85%;
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
    animation: messageAppear 0.4s ease-out;
}

.demo-message:last-child {
    margin-bottom: 0;
}

.demo-message--user {
    background: var(--gold-gradient);
    color: var(--text-on-gold);
    margin-left: auto;
    border-bottom-right-radius: var(--radius-sm);
}

.demo-message--bot {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-left: 3px solid var(--cyan-primary);
    border-bottom-left-radius: var(--radius-sm);
}

.demo-message__text {
    font-size: var(--fs-small);
    line-height: 1.5;
}

.demo-message__list {
    margin: var(--space-sm) 0;
    padding-left: var(--space-md);
}

.demo-message__list li {
    font-size: var(--fs-small);
    margin-bottom: var(--space-xs);
    position: relative;
}

.demo-message__list li::before {
    content: '•';
    position: absolute;
    left: calc(-1 * var(--space-md));
    color: var(--cyan-primary);
}

.demo-message__link {
    color: var(--cyan-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Typing Indicator */
.demo-message--typing .demo-message__text::after {
    content: '';
    display: inline-block;
    width: 4px;
    height: 14px;
    background: var(--cyan-primary);
    margin-left: 4px;
    animation: blink 0.8s infinite;
    vertical-align: middle;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

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

/* Slide Dots */
.demo-messenger__dots {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--border-card);
}

.demo-messenger__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-card);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-messenger__dot:hover {
    background: var(--gold-light);
}

.demo-messenger__dot--active {
    background: var(--gold-primary);
    transform: scale(1.25);
}

/* ============================================
   ENERGY VEINS BACKGROUND
   ============================================ */
.hero__bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

/* Base Gradient */
.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-hero-bg);
}

/* Energy Veins SVG Container */
.energy-veins {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.energy-veins svg {
    width: 100%;
    height: 100%;
}

/* Energy Vein Paths */
.energy-vein {
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: veinFlow 8s ease-in-out infinite;
}

.energy-vein--gold {
    stroke: url(#gradient-gold);
    animation-delay: 0s;
}

.energy-vein--cyan {
    stroke: url(#gradient-cyan);
    animation-delay: 2.5s;
}

.energy-vein--orange {
    stroke: url(#gradient-orange);
    animation-delay: 5s;
}

@keyframes veinFlow {
    0% {
        stroke-dashoffset: 1000;
        opacity: 0;
    }
    10% {
        opacity: 0.6;
    }
    50% {
        stroke-dashoffset: 0;
        opacity: 0.6;
    }
    90% {
        opacity: 0;
    }
    100% {
        stroke-dashoffset: -1000;
        opacity: 0;
    }
}

/* Energy Nodes (Glowing Points) */
.energy-node {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    animation: nodePulse 3s ease-in-out infinite;
}

.energy-node--gold {
    background: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.energy-node--cyan {
    background: var(--cyan-primary);
    box-shadow: 0 0 20px var(--cyan-glow);
    animation-delay: 1s;
}

.energy-node--orange {
    background: var(--orange-accent);
    box-shadow: 0 0 20px var(--orange-glow);
    animation-delay: 2s;
}

@keyframes nodePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.6;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
        order: 2;
    }

    .hero__jarvis {
        order: 1;
        min-height: 320px;
    }

    .hero__cta {
        justify-content: center;
    }

    .demo-messenger {
        max-width: 380px;
        margin: 0 auto;
    }
}

/* Tablet styles (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .header__nav {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: var(--header-height);
        padding-bottom: var(--space-md);
        min-height: auto;
    }

    .hero__jarvis {
        min-height: 280px;
    }

    /* Smaller logo on tablet */
    .jarvis-hologram--video {
        transform: scale(0.65);
        margin: -3rem 0;
    }

    .hero__title {
        font-size: 2.25rem;
        margin-bottom: 0.5rem;
    }

    .hero__subtitle {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }

    /* Hide founder quote on tablet */
    .hero__founder-quote {
        display: none;
    }

    /* CTA button - NOT full width on tablet */
    .hero__cta {
        width: auto !important;
        min-width: 240px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
        padding: 0.875rem 2rem;
    }

    a.hero__cta.btn {
        width: auto !important;
    }
}

@media (max-width: 767px) {
    .header__nav {
        display: none;
    }

    .header__menu-toggle {
        display: flex;
    }

    .hero {
        padding-top: calc(var(--header-height) + var(--space-md));
        padding-bottom: var(--space-md);
    }

    .hero__jarvis {
        min-height: 200px;
    }

    /* Smaller logo on mobile */
    .jarvis-hologram--video {
        transform: scale(0.7);
        margin: -2rem 0;
    }

    .hero__title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }

    /* Hide founder quote on mobile - prioritize core content */
    .hero__founder-quote {
        display: none;
    }

    /* CTA button - NOT full width on mobile */
    .hero__cta {
        width: auto;
        min-width: 240px;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    a.hero__cta.btn {
        width: auto;
    }

    .demo-messenger__chat {
        min-height: 240px;
    }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.mobile-menu {
    display: none; /* Hidden on desktop */
}

@media (max-width: 768px) {
    .mobile-menu {
        display: block;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--surface-overlay);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        z-index: calc(var(--z-header) - 1);
        padding: var(--space-xl);
        transform: translateX(100%);
        visibility: hidden;
        transition: transform var(--transition-slow), visibility 0s var(--transition-slow);
    }
}

.mobile-menu--open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--transition-slow), visibility 0s;
}

.mobile-menu__nav {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.mobile-menu__link {
    font-size: var(--fs-body-lg);
    font-weight: 500;
    color: var(--text-primary);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--border-card);

/* Mobile: hide login link in header - moved to mobile menu */
@media (max-width: 767px) {
    .header__login {
        display: none;
    }
}
