/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #0f0f0f;
    background: #fafbfc;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.header {
    background: rgba(250, 251, 252, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e6e8eb;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 32px;
    height: 32px;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: #0f0f0f;
}

.coming-soon {
    background: #e0f2fe;
    color: #0369a1;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Powered by Polymatics in Header */
.powered-by {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f8fafc;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #e2e8f0;
}

.powered-by:hover {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.powered-by span {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

.polymatics-logo {
    width: 16px;
    height: 16px;
}

.polymatics-text {
    font-size: 12px;
    color: #0f0f0f !important;
    font-weight: 600 !important;
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link:hover {
    background: #e2e8f0;
    color: #475569;
}

.request-access-btn {
    background: #6366f1;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.request-access-btn:hover {
    background: #5855eb;
}

/* Hero Demo Section */
.hero-demo {
    padding: 80px 0;
    background: #fafbfc;
}

.hero-demo-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}

/* Hero Text */
.hero-text {
    padding-top: 40px;
}

.hero-badge {
    display: inline-block;
    background: #ede9fe;
    color: #7c3aed;
    font-size: 14px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.1;
    color: #0f0f0f;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.gradient-text {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 18px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 32px;
    max-width: 480px;
}

.hero-stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #0f0f0f;
    line-height: 1;
}

.stat-label {
    font-size: 14px;
    color: #64748b;
    margin-top: 4px;
}

.cta-button {
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.cta-button:hover {
    background: #5855eb;
    transform: translateY(-1px);
}

/* Demo Panel */
.demo-panel {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

/* Event info */
.demo-event {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

.event-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.event-label {
    font-size: 14px;
    color: #64748b;
}

.event-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #dc2626;
    flex-shrink: 0;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Transcription Area */
.transcription-area {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.transcription-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.transcription-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
}

.word-count {
    font-size: 12px;
    color: #64748b;
}

.transcription-content {
    background: #f8fafc;
    border-radius: 8px;
    padding: 16px;
    min-height: 140px;
    max-height: 200px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.6;
}

.transcription-line {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.speaker {
    font-weight: 600;
    color: #6366f1;
    min-width: 100px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-top: 2px;
    flex-shrink: 0;
}

.words-container {
    flex: 1;
    min-width: 0;
}

.words {
    color: #374151;
    display: block;
    word-wrap: break-word;
    hyphens: auto;
}

.word {
    display: inline;
    margin-right: 4px;
    padding: 1px 2px;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.word.highlight {
    background: #fef3c7;
    color: #92400e;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 3px;
}

.word.typing {
    background: #dbeafe;
    animation: typing 0.5s ease;
}

@keyframes typing {
    0% { 
        opacity: 0;
        transform: translateY(2px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tracking Section */
.tracking-section {
    padding: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.keywords-section,
.speakers-section {
    margin-bottom: 20px;
}

.keywords-section:last-child,
.speakers-section:last-child {
    margin-bottom: 0;
}

.keywords-section h4,
.speakers-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 12px;
}

.keywords-grid,
.speakers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-pill {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.keyword-pill.highlighted {
    background: #6366f1;
    color: white;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.3);
}

.keyword-pill:hover {
    background: #e2e8f0;
}

.speaker-pill {
    background: #f1f5f9;
    color: #64748b;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.speaker-pill.active {
    background: #22c55e;
    color: white;
    border-color: #16a34a;
}

.speaker-pill.inactive {
    background: #f1f5f9;
    color: #9ca3af;
    cursor: default;
}

/* Alert Section */
.alert-section {
    padding: 24px;
}

.alert-section h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 12px;
}

.current-alert {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.no-alert {
    color: #9ca3af;
    font-size: 12px;
    text-align: center;
    padding: 20px;
    font-style: italic;
    width: 100%;
}

.alert-item {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    width: 100%;
    animation: alertSlide 0.5s ease;
}

.alert-time {
    font-size: 10px;
    color: #6b7280;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.alert-text {
    font-size: 12px;
    color: #dc2626;
    font-weight: 600;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Features Section */
.features {
    padding: 80px 0;
    background: white;
}

.features h2 {
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.feature-item {
    text-align: center;
    padding: 32px 24px;
}

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
    display: block;
}

.feature-item h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0f0f0f;
    margin-bottom: 8px;
}

.feature-item p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
}

/* ========================================
   BTC CHART DEMO SECTION - FIXED HEIGHT
   ======================================== */

.chart-demo-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 16px;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.chart-demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.chart-wrapper {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    position: relative;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.chart-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pair-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f0f0f;
}

.chart-timeframe {
    font-size: 12px;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.chart-price {
    font-size: 24px;
    font-weight: 700;
    color: #6366f1;
    transition: color 0.3s ease;
}

.chart-canvas-wrapper {
    position: relative;
    width: 100%;
}

#btcChart {
    width: 100%;
    height: 300px;
    border-radius: 8px;
}

.chart-direction-indicator {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    animation: indicatorPulse 0.6s ease;
    z-index: 10;
}

.chart-direction-indicator.up {
    background: rgba(34, 197, 94, 0.9);
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.4);
}

.chart-direction-indicator.down {
    background: rgba(239, 68, 68, 0.9);
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.chart-direction-indicator.down .direction-arrow {
    transform: rotate(180deg);
}

.direction-arrow {
    color: white;
    animation: arrowBounce 0.8s ease infinite;
}

@keyframes indicatorPulse {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes arrowBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

.chart-direction-indicator.down .direction-arrow {
    animation: arrowBounceDown 0.8s ease infinite;
}

@keyframes arrowBounceDown {
    0%, 100% {
        transform: translateY(0) rotate(180deg);
    }
    50% {
        transform: translateY(3px) rotate(180deg);
    }
}

.chart-event-display {
    margin-top: 20px;
    min-height: 80px;
    height: 80px;
    display: flex;
    align-items: center;
}

.chart-event-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    animation: eventAppear 0.4s ease;
    width: 100%;
}

.chart-event-item.appearing {
    animation: eventPulse 0.5s ease;
}

.chart-event-speaker {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 8px;
}

.chart-event-keyword {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    background: #fef2f2;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
    animation: keywordAlert 0.6s ease;
}

@keyframes eventAppear {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes eventPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.02);
    }
}

@keyframes keywordAlert {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   BLOOMBERG LLM DEMO SECTION - FIXED HEIGHT
   ======================================== */

.llm-demo-section {
    padding: 80px 0;
    background: #f8fafc;
}

.llm-demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.llm-event-info {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.llm-event-label {
    font-size: 13px;
    color: #64748b;
    margin-right: 8px;
}

.llm-event-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
}

.llm-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fef2f2;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #dc2626;
}

.llm-live-dot {
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.llm-console-container {
    min-height: 520px;
    height: 520px;
    transition: opacity 0.5s ease;
}

/* Console Window Styles */
.console-window {
    background: #1e293b;
    border-radius: 12px;
    margin-bottom: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: consoleAppear 0.4s ease;
}

.console-window.appearing {
    animation: consoleAppear 0.4s ease;
}

@keyframes consoleAppear {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.console-header {
    background: #0f172a;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.console-title {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.console-buttons {
    display: flex;
    gap: 6px;
}

.console-btn {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #334155;
}

.console-body {
    padding: 16px;
    max-height: 200px;
    overflow-y: auto;
}

.console-text {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.7;
    color: #e2e8f0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.xml-content {
    color: #cbd5e1;
}

.xml-tag {
    color: #f472b6;
}

.xml-value {
    color: #a78bfa;
    font-weight: 600;
}

.xml-description {
    color: #94a3b8;
}

.console-footer {
    padding: 8px 16px;
    background: #0f172a;
    border-top: 1px solid #334155;
}

.console-time {
    font-size: 10px;
    color: #64748b;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
}

.llm-info-box {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
    padding: 20px 24px;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: white;
}

.llm-info-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.llm-info-text {
    font-size: 14px;
    line-height: 1.5;
}

.llm-info-text strong {
    font-weight: 700;
}

/* ========================================
   MACRO NEWS DEMO SECTION - FIXED HEIGHT
   ======================================== */

.macro-demo-section {
    padding: 80px 0;
    background: white;
}

.macro-demo-container {
    max-width: 900px;
    margin: 0 auto;
}

.macro-event-info {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.macro-event-label {
    font-size: 13px;
    color: #64748b;
    margin-right: 8px;
}

.macro-event-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f0f0f;
}

.macro-live-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #dcfce7;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #16a34a;
}

.macro-live-dot {
    width: 6px;
    height: 6px;
    background: #16a34a;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.macro-console-container {
    min-height: 460px;
    height: 460px;
    transition: opacity 0.5s ease;
}

.macro-info-box {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin-top: 24px;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.use-case-item {
    text-align: center;
    padding: 16px 12px;
    background: #f8fafc;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.use-case-item:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.use-case-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.use-case-name {
    font-size: 12px;
    font-weight: 600;
    color: #0f0f0f;
}

.use-cases-description {
    text-align: center;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8fafc;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: 32px;
    font-weight: 700;
    color: #0f0f0f;
    margin-bottom: 16px;
}

.contact-info p {
    color: #64748b;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-link {
    display: inline-flex;
    align-items: center;
    padding: 12px 20px;
    background: #6366f1;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: center;
    justify-content: center;
}

.contact-link:hover {
    background: #5855eb;
    transform: translateY(-1px);
}

.contact-link.secondary {
    background: white;
    color: #6366f1;
    border: 1px solid #e2e8f0;
}

.contact-link.secondary:hover {
    background: #f8fafc;
}

/* Form Styles */
.contact-form {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-submit {
    width: 100%;
    background: #6366f1;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.form-submit:hover {
    background: #5855eb;
    transform: translateY(-1px);
}

/* Footer */
.footer {
    padding: 48px 0;
    background: #0f0f0f;
    color: white;
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
}

.footer-logo span {
    font-size: 18px;
    font-weight: 600;
}

.footer-content p {
    color: #9ca3af;
    margin-bottom: 16px;
}

/* Powered by Polymatics in Footer */
.footer-powered {
    margin-bottom: 24px;
}

.footer-polymatics {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #1f1f1f;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid #2f2f2f;
}

.footer-polymatics:hover {
    background: #2a2a2a;
    transform: translateY(-1px);
}

.footer-polymatics span {
    font-size: 13px;
    color: #9ca3af;
}

.footer-polymatics-logo {
    width: 18px;
    height: 18px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: #d1d5db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Custom Scrollbar */
.transcription-content::-webkit-scrollbar,
.console-body::-webkit-scrollbar {
    width: 6px;
}

.transcription-content::-webkit-scrollbar-track,
.console-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.transcription-content::-webkit-scrollbar-thumb,
.console-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.transcription-content::-webkit-scrollbar-thumb:hover,
.console-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.console-body::-webkit-scrollbar-track {
    background: #1e293b;
}

.console-body::-webkit-scrollbar-thumb {
    background: #334155;
}

.console-body::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Utility classes for better text wrapping */
.words {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Improved focus states for accessibility */
.keyword-pill:focus,
.speaker-pill:focus,
.social-link:focus,
.request-access-btn:focus,
.cta-button:focus,
.contact-link:focus,
.form-submit:focus {
    outline: 2px solid #6366f1;
    outline-offset: 2px;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .hero-demo-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-text {
        padding-top: 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    /* Center CTA button on tablet/mobile */
    .cta-button {
        margin: 0 auto;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-demo {
        padding: 48px 0;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-description {
        font-size: 16px;
    }
    
    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Center CTA button */
    .cta-button {
        margin: 0 auto;
    }
    
    .demo-panel {
        margin-top: 24px;
    }
    
    .demo-event {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 20px;
    }
    
    .event-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .transcription-area {
        padding: 20px;
    }
    
    .transcription-content {
        min-height: 120px;
        max-height: 180px;
    }
    
    .transcription-line {
        flex-direction: column;
        gap: 4px;
        margin-bottom: 16px;
    }
    
    .speaker {
        min-width: auto;
        align-self: flex-start;
    }
    
    .tracking-section {
        padding: 20px;
    }
    
    .alert-section {
        padding: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .nav-right {
        gap: 8px;
    }
    
    /* Show Powered by on mobile but smaller */
    .powered-by {
        padding: 4px 8px;
        gap: 4px;
    }
    
    .powered-by span:first-child {
        display: none;
    }
    
    .polymatics-logo {
        width: 14px;
        height: 14px;
    }
    
    .polymatics-text {
        font-size: 11px;
    }
    
    .request-access-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .features h2,
    .section-header h2 {
        font-size: 28px;
    }
    
    .section-header p {
        font-size: 14px;
    }
    
    .contact-info h2 {
        font-size: 28px;
    }
    
    .features-grid {
        gap: 24px;
    }
    
    .chart-demo-section,
    .llm-demo-section,
    .macro-demo-section {
        padding: 60px 0;
    }
    
    .chart-wrapper {
        padding: 16px;
    }
    
    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    #btcChart {
        height: 240px;
    }
    
    .chart-event-display {
        min-height: 70px;
        height: 70px;
    }
    
    .chart-direction-indicator {
        width: 40px;
        height: 40px;
        top: 12px;
        right: 12px;
    }
    
    .direction-arrow {
        width: 20px;
        height: 20px;
    }
    
    .console-text {
        font-size: 12px;
    }
    
    .console-body {
        max-height: 180px;
    }
    
    .llm-info-box {
        flex-direction: column;
        text-align: center;
    }
    
    .llm-console-container {
        min-height: 480px;
        height: 480px;
    }
    
    .macro-console-container {
        min-height: 420px;
        height: 420px;
    }
    
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .use-case-item {
        padding: 12px 8px;
    }
    
    .use-case-icon {
        font-size: 20px;
    }
    
    .llm-event-info,
    .macro-event-info {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    /* Center CTA button */
    .cta-button {
        margin: 0 auto;
    }
    
    .demo-panel {
        border-radius: 12px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 16px;
    }
    
    .coming-soon {
        display: none;
    }
    
    .logo-text {
        font-size: 16px;
    }
    
    .social-links {
        gap: 6px;
    }
    
    .social-link {
        width: 28px;
        height: 28px;
    }
    
    .request-access-btn {
        display: none;
    }
    
    .keywords-grid,
    .speakers-grid {
        gap: 6px;
    }
    
    .keyword-pill,
    .speaker-pill {
        padding: 5px 10px;
        font-size: 11px;
    }
    
    .chart-price {
        font-size: 20px;
    }
    
    .pair-name {
        font-size: 16px;
    }
    
    #btcChart {
        height: 200px;
    }
    
    .chart-event-display {
        min-height: 60px;
        height: 60px;
    }
    
    .chart-direction-indicator {
        width: 36px;
        height: 36px;
    }
    
    .direction-arrow {
        width: 18px;
        height: 18px;
    }
    
    .console-window {
        border-radius: 8px;
    }
    
    .console-header {
        padding: 10px 12px;
    }
    
    .console-body {
        padding: 12px;
        max-height: 160px;
    }
    
    .console-text {
        font-size: 11px;
    }
    
    .llm-console-container {
        min-height: 440px;
        height: 440px;
    }
    
    .macro-console-container {
        min-height: 380px;
        height: 380px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 24px;
    }
    
    .chart-event-item {
        padding: 12px;
    }
    
    .chart-event-speaker {
        font-size: 12px;
    }
    
    .chart-event-keyword {
        font-size: 13px;
        padding: 6px 10px;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 0 12px;
    }
    
    .hero-demo {
        padding: 32px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .demo-event {
        padding: 12px 16px;
    }
    
    .transcription-area,
    .tracking-section,
    .alert-section {
        padding: 16px;
    }
    
    .contact-form {
        padding: 24px;
    }
    
    .chart-wrapper {
        padding: 12px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    #btcChart {
        height: 180px;
    }
}