/* ============================================
   EDHANA AI — Global Styles
   ============================================ */

/* ============================================
   Preloader
   ============================================ */

.preloader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #06060a;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
}

.preloader-icon {
    animation: preloader-pulse 1.8s ease-in-out infinite;
}

@keyframes preloader-pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; }
}

.preloader-bars {
    display: flex;
    gap: 5px;
    align-items: center;
    height: 32px;
}

.preloader-bars span {
    width: 4px;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(180deg, #7c3aed, #06b6d4);
    animation: preloader-bar 1s ease-in-out infinite;
}

.preloader-bars span:nth-child(1) { animation-delay: 0s; }
.preloader-bars span:nth-child(2) { animation-delay: 0.1s; }
.preloader-bars span:nth-child(3) { animation-delay: 0.2s; }
.preloader-bars span:nth-child(4) { animation-delay: 0.3s; }
.preloader-bars span:nth-child(5) { animation-delay: 0.4s; }

@keyframes preloader-bar {
    0%, 100% { height: 8px; opacity: 0.4; }
    50% { height: 28px; opacity: 1; }
}

/* ============================================
   Cursor Glow
   ============================================ */

.cursor-glow {
    position: fixed;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.07) 0%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
    opacity: 0;
}

.cursor-glow.visible {
    opacity: 1;
}

@media (max-width: 768px) {
    .cursor-glow { display: none; }
}

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

html {
    scroll-behavior: smooth;
}

:root {
    --bg-primary: #06060a;
    --bg-secondary: #0c0c14;
    --bg-card: rgba(14, 14, 24, 0.7);
    --bg-card-hover: rgba(20, 20, 35, 0.85);
    --border-color: rgba(124, 58, 237, 0.12);
    --border-hover: rgba(124, 58, 237, 0.3);
    --text-primary: #f0f0f5;
    --text-secondary: #9090a8;
    --text-tertiary: #5a5a72;
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-pink: #ec4899;
    --gradient-primary: linear-gradient(135deg, #7c3aed 0%, #06b6d4 100%);
    --gradient-glow: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.15) 0%, transparent 70%);
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: var(--font-main);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

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

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

/* ============================================
   Reveal Animations
   ============================================ */

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    backdrop-filter: blur(0px);
}

.navbar.scrolled {
    padding: 10px 0;
    background: rgba(6, 6, 10, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-icon {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.logo-dot {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--text-primary);
}

.nav-link-cta {
    background: var(--gradient-primary);
    color: white !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-link-cta::after {
    display: none;
}

.nav-link-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    border-radius: 50px;
    font-family: var(--font-main);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.45);
}

.btn-secondary {
    background: rgba(124, 58, 237, 0.1);
    color: var(--text-primary);
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.btn-secondary:hover {
    background: rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.45);
    transform: translateY(-2px);
}

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

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    text-align: center;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.12) 0%, rgba(6, 182, 212, 0.05) 40%, transparent 70%);
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent-cyan);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-subtitle strong {
    color: var(--accent-cyan);
    font-weight: 600;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* Interactive Demo Player */
.hero-demo-player {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: rgba(10, 10, 20, 0.7);
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.hero-demo-player::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--radius-lg);
    padding: 1px;
    background: linear-gradient(135deg, rgba(124,58,237,0.3), rgba(6,182,212,0.1), rgba(124,58,237,0.3));
    background-size: 200% 200%;
    animation: border-glow 4s ease-in-out infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}

.hero-demo-player.playing::before {
    background: linear-gradient(135deg, rgba(124,58,237,0.6), rgba(6,182,212,0.4), rgba(124,58,237,0.6));
    background-size: 200% 200%;
    animation: border-glow 2s ease-in-out infinite;
}

@keyframes border-glow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-demo-player:hover {
    border-color: var(--border-hover);
}

/* Waveform wrapper & overlay */
.waveform-wrapper {
    position: relative;
    cursor: pointer;
}

.waveform-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: rgba(6, 6, 10, 0.5);
    backdrop-filter: blur(2px);
    z-index: 2;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    cursor: pointer;
}

.waveform-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.overlay-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4);
    transition: var(--transition);
    animation: overlay-pulse 2s ease-in-out infinite;
}

.overlay-play-btn svg {
    margin-left: 3px;
}

@keyframes overlay-pulse {
    0%, 100% { box-shadow: 0 4px 24px rgba(124, 58, 237, 0.4); transform: scale(1); }
    50% { box-shadow: 0 6px 36px rgba(124, 58, 237, 0.6); transform: scale(1.05); }
}

.waveform-overlay span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.01em;
}

.waveform-overlay:hover .overlay-play-btn {
    transform: scale(1.1);
    box-shadow: 0 8px 40px rgba(124, 58, 237, 0.6);
}

.player-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
}

.player-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-weight: 500;
}

.player-header-right {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

#waveform-canvas {
    width: 100%;
    height: 100px;
    display: block;
    cursor: pointer;
}

.player-controls {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--gradient-primary);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.play-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 30px rgba(124, 58, 237, 0.45);
}

.play-btn .play-icon {
    margin-left: 2px;
}

.player-progress-wrap {
    flex: 1;
    cursor: pointer;
    padding: 8px 0;
}

.player-progress-bar {
    position: relative;
    height: 5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: visible;
}

.player-progress-fill {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 0.1s linear;
}

.player-progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.player-progress-wrap:hover .player-progress-handle {
    opacity: 1;
}

.volume-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 4px;
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.volume-btn:hover {
    color: var(--text-primary);
}

.volume-btn.muted {
    color: var(--accent-pink);
}

/* Transcript */
.player-transcript {
    max-height: 220px;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(124, 58, 237, 0.2) transparent;
}

.player-transcript::-webkit-scrollbar {
    width: 4px;
}

.player-transcript::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.2);
    border-radius: 4px;
}

.transcript-line {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    opacity: 0.4;
    transition: opacity 0.4s ease;
    max-width: 90%;
}

.transcript-line.active {
    opacity: 1;
}

.transcript-line.agent {
    align-self: flex-start;
}

.transcript-line.user-line {
    align-self: flex-end;
}

.transcript-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.agent-avatar {
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.user-avatar {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan);
}

.transcript-bubble {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    flex: 1;
}

.transcript-line.agent .transcript-bubble {
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.1);
}

.transcript-line.agent.active .transcript-bubble {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.25);
}

.transcript-line.user-line .transcript-bubble {
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.08);
}

.transcript-line.user-line.active .transcript-bubble {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

.transcript-speaker {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
}

.agent-speaker {
    color: var(--accent-purple);
}

.user-speaker {
    color: var(--accent-cyan);
}

.transcript-line p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.transcript-line.active p {
    color: var(--text-primary);
}

.transcript-action {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.75rem;
    color: #10b981;
    font-weight: 600;
    padding: 4px 10px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

.player-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

.waveform-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: pulse-dot 1.5s infinite;
}

@media (max-width: 768px) {
    .player-transcript {
        max-height: 180px;
    }
    .transcript-line {
        max-width: 95%;
    }
}

/* ============================================
   Stats Bar
   ============================================ */

.stats-bar {
    position: relative;
    z-index: 2;
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(10, 10, 18, 0.5);
    backdrop-filter: blur(10px);
}

.stats-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    min-width: 160px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 4px;
}

.stat-desc {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    margin-top: 2px;
}

.stat-divider {
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

/* ============================================
   Section Headers
   ============================================ */

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    font-family: var(--font-mono);
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Trusted By Section
   ============================================ */

.trusted-by {
    position: relative;
    z-index: 2;
    padding: 40px 0 20px;
    border-bottom: 1px solid var(--border-color);
}

.trusted-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 28px;
}

.trusted-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    opacity: 0.6;
    transition: opacity 0.4s ease;
}

.trusted-logos:hover {
    opacity: 0.85;
}

.trusted-logo {
    transition: var(--transition);
    filter: grayscale(0.5);
}

.trusted-logo:hover {
    filter: grayscale(0);
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .trusted-logos {
        gap: 28px;
    }
}

/* ============================================
   Features Section
   ============================================ */

.features {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(124, 58, 237, 0.4), transparent);
    opacity: 0;
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
}

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

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

.feature-icon {
    width: 52px;
    height: 52px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-purple);
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 24px;
}

/* Feature Visuals */
.feature-visual {
    margin-top: auto;
}

/* Latency Visual */
.latency-visual {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.latency-bar {
    height: 32px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    overflow: hidden;
}

.latency-fill {
    height: 100%;
    border-radius: 6px;
    display: flex;
    align-items: center;
    padding: 0 12px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.edhana-bar {
    background: var(--gradient-primary);
}

.competitor-bar {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-tertiary);
}

/* Action Visual */
.action-flow {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.action-node {
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-family: var(--font-mono);
}

.action-node.active {
    background: rgba(124, 58, 237, 0.2);
    border-color: var(--accent-purple);
    color: var(--accent-cyan);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.action-arrow {
    color: var(--text-tertiary);
    flex-shrink: 0;
}

/* Quality Visual */
.quality-visual {
    display: flex;
    justify-content: center;
}

.quality-meter {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.quality-ring {
    width: 100px;
    height: 100px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.quality-ring svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.quality-value {
    font-size: 1.4rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.quality-label {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
}

/* Language Visual */
.lang-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.lang-bubble {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    animation: float-bubble 3s ease-in-out infinite;
    animation-delay: var(--delay);
    font-family: var(--font-mono);
}

.lang-bubble:last-child {
    background: rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.3);
    color: var(--accent-cyan);
    width: auto;
    padding: 0 14px;
    border-radius: 20px;
}

@keyframes float-bubble {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Pricing Visual */
.feature-wide-content {
    display: flex;
    align-items: center;
    gap: 60px;
}

.feature-wide-content > div:first-child {
    flex: 1;
}

.pricing-comparison {
    display: flex;
    gap: 32px;
    align-items: flex-end;
    height: 180px;
    flex-shrink: 0;
}

.price-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.price-label {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    font-weight: 500;
    white-space: nowrap;
}

.price-bars {
    width: 60px;
    height: 120px;
    display: flex;
    align-items: flex-end;
}

.price-bar {
    width: 100%;
    border-radius: 8px 8px 4px 4px;
    transition: height 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.competitor .price-bar {
    background: rgba(255, 255, 255, 0.1);
}

.edhana .price-bar {
    background: var(--gradient-primary);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.3);
}

.price-amount {
    font-size: 1.1rem;
    font-weight: 700;
    font-family: var(--font-mono);
}

.price-amount small {
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.edhana .price-amount {
    color: var(--accent-cyan);
}

/* ============================================
   Technology Section
   ============================================ */

.technology {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tech-stack {
    max-width: 900px;
    margin: 0 auto 80px;
}

.tech-layer {
    display: flex;
    align-items: center;
    gap: 24px;
}

.tech-layer-label {
    width: 160px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-align: right;
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
}

.tech-layer-bar {
    flex: 1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-node {
    padding: 12px 20px;
    background: rgba(124, 58, 237, 0.06);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: default;
}

.tech-node:hover {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.35);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.tech-connector {
    display: flex;
    justify-content: center;
    padding-left: 184px;
}

/* Eval Section */
.eval-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 48px;
}

.eval-icon {
    margin-bottom: 16px;
}

.eval-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.eval-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.eval-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eval-metric-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.eval-metric-fill {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.eval-metric-fill.animated {
    width: var(--width);
}

.eval-metric-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-top: 6px;
}

.eval-metric-info span:first-child {
    color: var(--text-secondary);
}

.eval-metric-info span:last-child {
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--accent-cyan);
}

/* ============================================
   Case Studies Section
   ============================================ */

.case-studies {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.case-study-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 40px;
    transition: var(--transition);
}

.case-study-card:hover {
    border-color: var(--border-hover);
}

.case-study-header {
    padding: 32px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.case-study-badge {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-purple);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.healthcare-badge {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.case-study-company {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
}

.case-study-company h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.case-study-company span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.case-study-body {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 0;
}

.case-study-content {
    padding: 40px;
    border-right: 1px solid var(--border-color);
}

.case-study-content h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 12px;
    font-family: var(--font-mono);
}

.case-study-content h4:not(:first-child) {
    margin-top: 28px;
}

.case-study-content > p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.solution-flow {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 16px;
}

.solution-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--accent-purple);
    font-family: var(--font-mono);
    flex-shrink: 0;
    width: 28px;
    padding-top: 2px;
}

.step-content strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.case-study-results {
    padding: 40px;
}

.case-study-results h4 {
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-cyan);
    margin-bottom: 24px;
    font-family: var(--font-mono);
}

.result-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.result-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.result-value {
    font-size: 2rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
}

.result-label {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

/* ============================================
   Global Section
   ============================================ */

.global {
    position: relative;
    z-index: 2;
    padding: 120px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.global-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.global-text .section-tag {
    text-align: left;
}

.global-text .section-title,
.global-text .section-desc {
    text-align: left;
}

.global-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 32px;
}

.global-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.globe-container {
    aspect-ratio: 1;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

#globe-canvas {
    width: 100%;
    height: 100%;
    display: block;
}

/* ============================================
   Demo Section
   ============================================ */

.demo-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.demo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    overflow: hidden;
}

.demo-content h2 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}

.demo-content p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.demo-phone {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.demo-phone-screen {
    padding: 24px;
    max-height: 420px;
    overflow: hidden;
}

.demo-chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.demo-msg {
    max-width: 85%;
    padding: 14px 18px;
    border-radius: 16px;
    font-size: 0.88rem;
    line-height: 1.55;
    animation: fadeInMsg 0.6s ease-out backwards;
}

.demo-msg:nth-child(1) { animation-delay: 0.3s; }
.demo-msg:nth-child(2) { animation-delay: 0.8s; }
.demo-msg:nth-child(3) { animation-delay: 1.3s; }
.demo-msg:nth-child(4) { animation-delay: 1.8s; }
.demo-msg:nth-child(5) { animation-delay: 2.3s; }

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

.demo-msg.agent {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.15);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.demo-msg.user {
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.15);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.msg-sender {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--accent-purple);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.msg-action {
    display: block;
    margin-top: 10px;
    font-size: 0.78rem;
    color: #10b981;
    font-weight: 600;
    padding: 6px 12px;
    background: rgba(16, 185, 129, 0.08);
    border-radius: 6px;
    border: 1px solid rgba(16, 185, 129, 0.15);
}

/* ============================================
   CTA Section
   ============================================ */

.cta-section {
    position: relative;
    z-index: 2;
    padding: 120px 0;
}

.cta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 60px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(124, 58, 237, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    position: relative;
}

.cta-card p {
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    line-height: 1.7;
}

.cta-form {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-input {
    flex: 1;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.92rem;
    transition: var(--transition);
    outline: none;
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus {
    border-color: var(--accent-purple);
    background: rgba(124, 58, 237, 0.05);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

select.form-input {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%235a5a72' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

select.form-input option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    position: relative;
    z-index: 2;
    padding: 60px 0 40px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-top: 16px;
    line-height: 1.6;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--text-secondary);
}

.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--text-tertiary);
    padding: 6px 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.footer-socials {
    display: flex;
    gap: 16px;
}

.footer-socials a {
    color: var(--text-tertiary);
    transition: var(--transition);
    display: flex;
    align-items: center;
}

.footer-socials a:hover {
    color: var(--accent-cyan);
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card-wide {
        grid-column: span 1;
    }
    
    .feature-wide-content {
        flex-direction: column;
        gap: 32px;
    }
    
    .eval-section {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .case-study-body {
        grid-template-columns: 1fr;
    }
    
    .case-study-content {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .global-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .demo-card {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 40px;
    }
    
    .tech-layer {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .tech-layer-label {
        width: auto;
        text-align: center;
    }
    
    .tech-layer-bar {
        justify-content: center;
    }
    
    .tech-connector {
        padding-left: 0;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: rgba(6, 6, 10, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 32px 32px;
        gap: 24px;
        border-left: 1px solid var(--border-color);
        transition: var(--transition-slow);
    }
    
    .nav-links.open {
        right: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
    
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 32px;
    }
    
    .stat-divider {
        width: 60px;
        height: 1px;
    }
    
    .case-study-header {
        padding: 24px;
    }
    
    .case-study-content,
    .case-study-results {
        padding: 24px;
    }
    
    .result-metrics {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
    
    .cta-card {
        padding: 40px 24px;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .demo-phone-screen {
        padding: 16px;
    }
    
    .demo-msg {
        max-width: 95%;
    }
}

/* ============================================
   Smooth scroll offset for fixed nav
   ============================================ */

[id] {
    scroll-margin-top: 80px;
}

/* ============================================
   Selection color
   ============================================ */

::selection {
    background: rgba(124, 58, 237, 0.35);
    color: white;
}

/* ============================================
   Scrollbar styling
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(124, 58, 237, 0.5);
}
