@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
    --bg-base: #080B11;
    --bg-surface: #0E131F;
    --bg-panel: #131926;
    --bg-panel-elevated: #182030;
    --border-subtle: #1F2738;
    --border-active: #323E56;
    --border-highlight: rgba(212, 175, 55, 0.4);
    
    --gold: #D4AF37;
    --gold-light: #F3E5AB;
    --cyan: #38BDF8;
    --emerald: #10B981;
    --amber: #F59E0B;
    --rose: #F43F5E;
    
    --text-main: #F1F5F9;
    --text-muted: #94A3B8;
    --text-dim: #64748B;
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

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

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Subtle Technical Grid Blueprint */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}

.app-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top App Bar */
.topbar {
    background: rgba(11, 15, 23, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar-inner {
    max-width: 1360px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.brand-logo-img {
    height: 32px;
    width: auto;
}

.brand-title {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
}

.brand-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
    border: 1px solid rgba(212, 175, 55, 0.3);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    text-transform: uppercase;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.engine-pill {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
}

.engine-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 8px var(--emerald);
}

.topbar-btn {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.topbar-btn:hover {
    color: var(--text-main);
    border-color: var(--border-active);
    background: var(--bg-panel-elevated);
}

.topbar-btn.primary {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.35);
    color: var(--gold);
}

.topbar-btn.primary:hover {
    background: rgba(212, 175, 55, 0.2);
    color: #fff;
}

/* Subheader / Workspaces Bar */
.workspace-bar {
    max-width: 1360px;
    width: 100%;
    margin: 1.25rem auto 0;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.workspace-tabs {
    display: flex;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    gap: 0.25rem;
}

.tab-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.55rem 1rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.tab-nav-btn i {
    font-size: 0.9rem;
}

.tab-nav-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
}

.tab-nav-btn.active {
    background: var(--bg-panel-elevated);
    color: #fff;
    border: 1px solid var(--border-active);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tab-nav-btn.active i {
    color: var(--gold);
}

.workspace-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    display: flex;
    gap: 1rem;
}

/* Main Workspace */
.workspace-content {
    max-width: 1360px;
    width: 100%;
    margin: 1.25rem auto 3rem;
    padding: 0 1.5rem;
    flex: 1;
}

.tool-view {
    display: none;
}

.tool-view.active {
    display: block;
}

/* Two-column layout */
.studio-grid {
    display: grid;
    grid-template-columns: 460px 1fr;
    gap: 1.25rem;
}

@media (max-width: 1024px) {
    .studio-grid { grid-template-columns: 1fr; }
    .workspace-bar { flex-direction: column; align-items: stretch; }
    .workspace-tabs { overflow-x: auto; }
}

/* Panel Box */
.panel-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.panel-head {
    padding: 1rem 1.25rem;
    background: var(--bg-panel);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.panel-head h3 {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
}

.panel-tag {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    background: var(--bg-base);
    padding: 0.2rem 0.45rem;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
}

.panel-body {
    padding: 1.25rem;
    flex: 1;
}

/* Technical Uploader */
.tech-dropzone {
    border: 1px dashed var(--border-active);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.tech-dropzone:hover, .tech-dropzone.dragover {
    border-color: var(--gold);
    background: rgba(212, 175, 55, 0.03);
}

.dropzone-file-input {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
}

.tech-dropzone i {
    font-size: 2.2rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
}

.tech-dropzone h4 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tech-dropzone p {
    font-size: 0.78rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* Image Inspection Stage (with crosshair / technical grid) */
.stage-preview {
    display: none;
    position: relative;
    background: #000;
    border: 1px solid var(--border-active);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1rem;
}

.stage-preview img {
    width: 100%;
    height: 260px;
    object-fit: contain;
    display: block;
}

/* Technical Overlay Guides */
.stage-crosshair {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    border: 1px solid rgba(56, 189, 248, 0.25);
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 40px 40px;
}

.stage-bleed-boundary {
    position: absolute;
    top: 15px; left: 15px; right: 15px; bottom: 15px;
    border: 1px dashed rgba(245, 158, 11, 0.6);
    pointer-events: none;
}

.stage-badge-bleed {
    position: absolute;
    bottom: 6px;
    left: 8px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--amber);
    background: rgba(0, 0, 0, 0.7);
    padding: 0.15rem 0.4rem;
    border-radius: 3px;
    pointer-events: none;
}

.btn-stage-clear {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(244, 63, 94, 0.85);
    color: #fff;
    border: none;
    width: 26px;
    height: 26px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

/* Form Controls */
.field-group {
    margin-bottom: 1rem;
}

.field-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.field-hint {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.field-input, .field-select, .field-textarea {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.15s;
}

.field-input:focus, .field-select:focus, .field-textarea:focus {
    border-color: var(--border-active);
    box-shadow: 0 0 0 1px var(--gold);
}

.field-textarea {
    resize: vertical;
    min-height: 80px;
}

/* Action Buttons */
.btn-action-primary {
    width: 100%;
    background: var(--gold);
    color: #080B11;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.85rem 1.25rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-action-primary:hover:not(:disabled) {
    background: var(--gold-light);
}

.btn-action-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Technical Audit Display */
.preflight-scoreboard {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.25rem;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.score-metric-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem 0.5rem;
}

.metric-val {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: var(--gold);
}

.metric-lbl {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-top: 0.35rem;
}

.score-details h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.35rem;
}

.score-details p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.audit-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.25rem;
    font-size: 0.82rem;
}

.audit-table th {
    background: var(--bg-panel);
    padding: 0.6rem 0.85rem;
    text-align: left;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-subtle);
}

.audit-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-main);
}

.audit-status {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}

.audit-status.pass {
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.audit-status.warning {
    background: rgba(245, 158, 11, 0.15);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Regulatory Label Blueprint Box */
.regulatory-label-mockup {
    background: #000;
    border: 1px solid var(--border-active);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    font-family: var(--font-sans);
    margin-bottom: 1rem;
}

.label-mockup-header {
    border-bottom: 2px solid #fff;
    padding-bottom: 0.65rem;
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.label-mockup-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.label-mockup-netto {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
}

.label-composition-box {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #CBD5E1;
    margin-bottom: 0.85rem;
}

.label-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    font-size: 0.78rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 0.75rem;
    color: var(--text-muted);
}

/* Chat Terminal */
.chat-terminal {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    height: 600px;
}

.chat-terminal-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-terminal-bubble {
    display: flex;
    gap: 0.75rem;
    max-width: 85%;
}

.chat-terminal-bubble.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.chat-terminal-bubble.assistant {
    align-self: flex-start;
}

.terminal-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
    color: var(--gold);
}

.terminal-body {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    line-height: 1.6;
}

.chat-terminal-bubble.user .terminal-body {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.3);
    color: #fff;
}

.terminal-input-bar {
    padding: 0.75rem 1.25rem;
    background: var(--bg-panel);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.75rem;
}

.terminal-input {
    flex: 1;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.85rem;
    color: #fff;
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
}

.terminal-input:focus {
    border-color: var(--border-active);
}

.btn-terminal-send {
    background: var(--gold);
    color: #080B11;
    border: none;
    border-radius: var(--radius-sm);
    padding: 0 1rem;
    font-weight: 700;
    cursor: pointer;
}

.chips-row {
    padding: 0.5rem 1.25rem;
    background: var(--bg-base);
    border-top: 1px solid var(--border-subtle);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
}

.terminal-chip {
    background: var(--bg-panel);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.74rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    white-space: nowrap;
    cursor: pointer;
}

.terminal-chip:hover {
    color: #fff;
    border-color: var(--border-active);
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 1.5rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-surface);
    border: 1px solid var(--border-active);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 520px;
    padding: 1.75rem;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
}

.modal-header h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-size: 1.4rem;
    cursor: pointer;
}

.footer {
    border-top: 1px solid var(--border-subtle);
    padding: 1.25rem 1.5rem;
    background: var(--bg-surface);
    font-size: 0.78rem;
    color: var(--text-dim);
    text-align: center;
}

.footer a {
    color: var(--text-muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--gold);
}

/* ==========================================================================
   2026 UI/UX UPGRADE: 3D HOLOGRAPHIC HERO SCANNER & BORDER-BEAM CTA
   ========================================================================== */

/* --- Hero Section & Ambient Lighting --- */
.ai-hero-section {
    position: relative;
    padding: 3.5rem 1.5rem 2.5rem;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(20, 27, 45, 0.6) 0%, var(--bg-base) 75%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-ambient-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    z-index: 0;
    opacity: 0.18;
}

.glow-gold {
    top: -120px;
    right: 5%;
    background: radial-gradient(circle, #D4AF37 0%, rgba(245, 158, 11, 0.4) 60%, transparent 80%);
}

.glow-cyan {
    top: -80px;
    left: 5%;
    background: radial-gradient(circle, #38BDF8 0%, rgba(14, 165, 233, 0.3) 60%, transparent 80%);
}

.ai-hero-inner {
    max-width: 1360px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    gap: 3.5rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Hero Left: Typography & Actions --- */
.hero-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 9999px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--emerald);
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}

.live-dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
    animation: pulseGreen 1.8s infinite;
}

@keyframes pulseGreen {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ai-hero-title {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.18;
    color: #ffffff;
    letter-spacing: -0.03em;
    margin-bottom: 1.15rem;
}

.ai-hero-title span {
    display: block;
}

.ai-gradient-text {
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #38bdf8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(212, 175, 55, 0.2);
}

.ai-hero-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 2rem;
    max-width: 620px;
}

.ai-hero-actions {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    margin-bottom: 2.25rem;
}

/* Primary Laser Button */
.btn-ai-hero-primary {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1.65rem;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 60%, #d97706 100%);
    color: #080B11 !important;
    font-weight: 800;
    font-size: 0.92rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.45);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.btn-ai-hero-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 32px rgba(245, 158, 11, 0.6);
    color: #000000 !important;
}

.btn-ai-hero-primary .btn-icon-subtle {
    font-size: 0.8rem;
    transition: transform 0.25s ease;
}

.btn-ai-hero-primary:hover .btn-icon-subtle {
    transform: translateY(3px);
}

/* Laser perimeter beam on button */
.btn-laser-beam {
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: conic-gradient(from 0deg, transparent 0deg, transparent 70deg, #fff 90deg, #ffd700 110deg, transparent 130deg, transparent 360deg);
    opacity: 0.55;
    animation: rotateLaserBeam 4s linear infinite;
    pointer-events: none;
}

@keyframes rotateLaserBeam {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Secondary & Order Buttons */
.btn-ai-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.45rem;
    background: rgba(14, 165, 233, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 50px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.25s ease;
}

.btn-ai-hero-secondary:hover {
    background: rgba(14, 165, 233, 0.22);
    border-color: #38bdf8;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.25);
}

.btn-ai-hero-order {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.35rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-active);
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-ai-hero-order:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--gold);
    color: var(--gold);
    transform: translateY(-2px);
}

/* Metric Counters Strip */
.ai-hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-subtle);
}

.metric-item {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.metric-item i {
    font-size: 1.1rem;
    margin-top: 2px;
}

.metric-item strong {
    display: block;
    font-size: 0.84rem;
    font-weight: 700;
    color: #ffffff;
}

.metric-item span {
    font-size: 0.72rem;
    color: var(--text-dim);
}

/* --- Hero Right: 3D Holographic Scanner Stage --- */
.ai-hero-stage-wrapper {
    perspective: 1400px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ai-scanner-stage {
    position: relative;
    width: 100%;
    max-width: 480px;
    border-radius: 24px;
    background: #090e18;
    border: 1.5px solid rgba(212, 175, 55, 0.35);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 35px rgba(212, 175, 55, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    overflow: hidden;
    transform-style: preserve-3d;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
    animation: stageHoverFloat 6s ease-in-out infinite;
}

@keyframes stageHoverFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(0.4deg); }
}

.scanner-card-mockup {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.scanner-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 22px;
}

/* Animated Laser Inspection Scanner Beam */
.scanner-laser-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #38bdf8 20%, #ffd700 50%, #38bdf8 80%, transparent 100%);
    box-shadow: 0 0 18px 4px rgba(56, 189, 248, 0.75), 0 0 30px 6px rgba(212, 175, 55, 0.45);
    z-index: 5;
    pointer-events: none;
    animation: laserScanSweep 3.6s ease-in-out infinite alternate;
}

@keyframes laserScanSweep {
    0% { top: 6%; opacity: 0.9; }
    50% { opacity: 1; }
    100% { top: 88%; opacity: 0.85; }
}

/* Technical holographic inspection grid */
.scanner-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 2;
}

/* HUD Overlay on bottom of Scanner */
.scanner-hud-bottom {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    background: rgba(8, 11, 17, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 8px 12px;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    z-index: 4;
}

.hud-stat-pill {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hud-stat-pill strong {
    color: #ffffff;
}

.hud-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.hud-dot.ok {
    background: var(--emerald);
    box-shadow: 0 0 6px var(--emerald);
}

/* 3D Floating Spatial Badges */
.stage-float-badge {
    position: absolute;
    z-index: 6;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(14, 19, 31, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
    font-size: 0.78rem;
    color: #ffffff;
    pointer-events: none;
    transform: translateZ(35px);
    transition: transform 0.25s ease;
}

.stage-float-badge strong {
    display: block;
    font-size: 0.82rem;
    color: #ffffff;
    line-height: 1.2;
}

.stage-float-badge span {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.stage-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.stage-badge-icon.cyan-halo {
    background: rgba(14, 165, 233, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    color: #38bdf8;
}

.stage-badge-icon.gold-halo {
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid rgba(212, 175, 55, 0.4);
    color: #ffd700;
}

.stage-badge-icon.green-halo {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.float-top-left {
    top: 14px;
    left: -20px;
    animation: floatBadge1 4.5s ease-in-out infinite;
}

.float-top-right {
    top: 18px;
    right: -20px;
    animation: floatBadge2 5s ease-in-out infinite 0.7s;
}

.float-bottom-right {
    bottom: 55px;
    right: -24px;
    animation: floatBadge3 5.4s ease-in-out infinite 1.4s;
}

@keyframes floatBadge1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes floatBadge2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}
@keyframes floatBadge3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Substrate Mode Selector Dock below stage */
.stage-substrate-dock {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding: 5px 10px;
    background: rgba(14, 19, 31, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 5;
    position: relative;
}

.dock-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-right: 2px;
}

.dock-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.dock-pill:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.dock-pill.active {
    background: rgba(212, 175, 55, 0.2);
    border-color: rgba(212, 175, 55, 0.45);
    color: #ffd700;
    box-shadow: 0 2px 10px rgba(212, 175, 55, 0.25);
}

/* --- Dropzone Demo Sample Button --- */
.dropzone-sample-bar {
    margin-top: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px dashed var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.78rem;
    color: var(--text-dim);
}

.btn-sample-demo {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.15);
    border: 1px solid rgba(212, 175, 55, 0.35);
    color: #ffd700;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.btn-sample-demo:hover {
    background: rgba(212, 175, 55, 0.3);
    border-color: #ffd700;
    transform: translateY(-1px);
}

/* --- 2026 BORDER-BEAM CTA SECTION --- */
@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

.ai-cta-section {
    position: relative;
    padding: 4rem 1.5rem 3rem;
    background: linear-gradient(180deg, var(--bg-base) 0%, #060910 100%);
    overflow: hidden;
}

.cta-ambient-glow {
    position: absolute;
    width: 600px;
    height: 400px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(212, 175, 55, 0.12) 0%, rgba(56, 189, 248, 0.08) 50%, transparent 80%);
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.ai-cta-box {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    background: rgba(14, 19, 31, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 28px;
    padding: 3.5rem 4rem;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

/* Laser revolving perimeter */
.border-beam-tracer {
    position: absolute;
    inset: 0;
    border-radius: 28px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.95;
    padding: 2px;
    background: conic-gradient(from var(--border-angle, 0deg), transparent 0deg, transparent 75deg, #ffd700 95deg, #38bdf8 115deg, transparent 135deg, transparent 360deg);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: rotateBorderBeam 6s linear infinite;
}

@keyframes rotateBorderBeam {
    0% { --border-angle: 0deg; }
    100% { --border-angle: 360deg; }
}

.cta-inner-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.25fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
}

.cta-pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--emerald);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.cta-pulse-green {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--emerald);
    box-shadow: 0 0 6px var(--emerald);
}

.cta-left-text h2 {
    font-size: 2.1rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.cta-left-text p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.cta-benefits-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-main);
}

.cta-benefits-row span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cta-benefits-row i {
    color: var(--gold);
}

/* CTA Right Action Group */
.cta-right-actions {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.btn-cta-gold-magnetic {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.75rem;
    background: linear-gradient(135deg, #ffd700 0%, #f59e0b 50%, #d97706 100%);
    color: #080B11 !important;
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.45);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    overflow: hidden;
}

.btn-cta-gold-magnetic:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 40px rgba(245, 158, 11, 0.6);
    color: #000000 !important;
}

.btn-cta-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.9rem 1.75rem;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981 !important;
    font-weight: 700;
    font-size: 0.92rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-wa:hover {
    background: rgba(16, 185, 129, 0.25);
    border-color: #10b981;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.btn-cta-portal {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 1.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted) !important;
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-cta-portal:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-active);
    color: #ffffff !important;
    transform: translateY(-2px);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
    .ai-hero-inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .cta-inner-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .ai-cta-box {
        padding: 2.5rem 2rem;
    }
}

@media (max-width: 768px) {
    .ai-hero-title {
        font-size: 2.1rem;
    }
    .ai-hero-metrics {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
    .stage-float-badge {
        position: static;
        margin-top: 8px;
        transform: none;
        animation: none;
    }
    .stage-substrate-dock {
        flex-wrap: wrap;
        border-radius: 16px;
    }
}

