:root {
    --bg-gradient-start: hsl(240, 24%, 6%);
    --bg-gradient-end: hsl(250, 30%, 4%);
    --primary-color: hsl(75, 90%, 45%);
    --primary-glow: hsla(75, 90%, 45%, 0.4);
    --secondary-color: hsl(205, 90%, 55%);
    --secondary-glow: hsla(205, 90%, 55%, 0.3);
    --accent-color: hsl(330, 95%, 60%);
    --success-color: hsl(145, 85%, 45%);
    --success-glow: hsla(145, 85%, 45%, 0.3);
    --warning-color: hsl(35, 100%, 55%);
    --danger-color: hsl(355, 85%, 55%);
    
    --text-primary: hsl(0, 0%, 96%);
    --text-muted: hsl(240, 5%, 70%);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-bg-hover: rgba(255, 255, 255, 0.06);
    --glass-card: rgba(12, 12, 20, 0.5);
    
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Theme-specific custom properties */
    --sidebar-bg: rgba(8, 8, 12, 0.4);
    --user-badge-bg: rgba(255, 255, 255, 0.02);
    --chat-input-wrapper-bg: rgba(8, 8, 12, 0.6);
    --threejs-gradient-start: rgba(8, 8, 15, 0.8);
    --threejs-gradient-end: rgba(4, 4, 8, 0.9);
    --no-model-overlay-bg: rgba(5, 5, 8, 0.4);
    --auth-overlay-bg: rgba(4, 4, 8, 0.85);
    --macro-drawer-bg: rgba(10, 10, 16, 0.95);
    --macro-code-color: #38bdf8; /* Technical light blue */
    --modal-bg: rgba(5, 5, 8, 0.7);
    --input-row-focus-bg: rgba(255, 255, 255, 0.05);
    --msg-system-bg: rgba(255, 255, 255, 0.02);
    --msg-assistant-bg: rgba(255, 255, 255, 0.04);
    --scrollbar-thumb: rgba(255, 255, 255, 0.08);
    --btn-view-bg: rgba(15, 15, 25, 0.7);
    --btn-view-text: hsl(240, 5%, 70%);
    --btn-view-hover-bg: rgba(255, 255, 255, 0.08);
    --btn-view-hover-text: #fff;
}

html[data-theme="light"] {
    --bg-gradient-start: hsl(220, 30%, 96%);
    --bg-gradient-end: hsl(220, 25%, 90%);
    --primary-color: hsl(75, 90%, 45%);
    --primary-glow: hsla(75, 90%, 45%, 0.2);
    --secondary-color: hsl(205, 90%, 45%);
    --secondary-glow: hsla(205, 90%, 45%, 0.15);
    --accent-color: hsl(330, 95%, 50%);
    --success-color: hsl(145, 85%, 35%);
    --success-glow: hsla(145, 85%, 35%, 0.1);
    --warning-color: hsl(35, 100%, 40%);
    --danger-color: hsl(355, 85%, 45%);

    --text-primary: hsl(220, 40%, 15%);
    --text-muted: hsl(220, 15%, 45%);
    --glass-bg: rgba(0, 0, 0, 0.03);
    --glass-border: rgba(0, 0, 0, 0.08);
    --glass-bg-hover: rgba(0, 0, 0, 0.06);
    --glass-card: rgba(255, 255, 255, 0.7);

    --sidebar-bg: rgba(255, 255, 255, 0.45);
    --user-badge-bg: rgba(0, 0, 0, 0.02);
    --chat-input-wrapper-bg: rgba(255, 255, 255, 0.6);
    --threejs-gradient-start: rgba(240, 240, 245, 0.8);
    --threejs-gradient-end: rgba(230, 230, 235, 0.9);
    --no-model-overlay-bg: rgba(245, 245, 250, 0.4);
    --auth-overlay-bg: rgba(240, 240, 245, 0.7);
    --macro-drawer-bg: rgba(255, 255, 255, 0.95);
    --macro-code-color: #0b8a00; /* technical readable dark green */
    --modal-bg: rgba(255, 255, 255, 0.85);
    --input-row-focus-bg: rgba(0, 0, 0, 0.02);
    --msg-system-bg: rgba(0, 0, 0, 0.02);
    --msg-assistant-bg: rgba(0, 0, 0, 0.03);
    --scrollbar-thumb: rgba(0, 0, 0, 0.12);
    --btn-view-bg: rgba(255, 255, 255, 0.85);
    --btn-view-text: hsl(220, 40%, 15%);
    --btn-view-hover-bg: rgba(0, 0, 0, 0.05);
    --btn-view-hover-text: hsl(255, 85%, 55%);
}

/* Theme Toggle Button */
.theme-toggle-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 100;
}

.theme-toggle-btn:hover {
    background: var(--glass-bg-hover);
    color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    transform: scale(1.05);
}

.theme-toggle-btn i {
    font-size: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) transparent;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.15);
}

body {
    font-family: var(--font-sans);
    background: radial-gradient(circle at 50% 50%, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

#app-container {
    width: 100%;
    max-width: 1400px;
    height: calc(100vh - 40px);
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    display: grid;
    grid-template-columns: minmax(320px, 420px) 1fr;
    overflow: hidden;
    min-width: 0;
}

/* Sidebar Layout */
#sidebar-panel {
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--sidebar-bg);
    overflow: hidden;
}

.app-header {
    padding: 24px;
    border-bottom: 1px solid var(--glass-border);
    position: relative;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 26px;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
}

.logo-group h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.5px;
    background: none;
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--text-primary);
}

.tagline {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Chat Section */
#chat-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 0;
    border-radius: 0;
    border: none;
    min-height: 0;
}

.inner-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.card-header {
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.01);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.card-header h2 {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.flex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Badges */
.badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-offline {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255,255,255,0.08);
}

.badge-online {
    background: rgba(23, 201, 100, 0.1);
    color: var(--success-color);
    border: 1px solid rgba(23, 201, 100, 0.2);
    box-shadow: 0 0 10px rgba(23, 201, 100, 0.1);
}

/* Messages container */
#chat-messages-container {
    height: calc(100% - 130px);
    overflow-y: auto;
    overflow-x: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

.message {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 14px;
    font-size: 13.5px;
    line-height: 1.5;
    position: relative;
    animation: slideUp 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.message p {
    margin: 0;
    padding: 0;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

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

.system-message {
    background: var(--msg-system-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    align-self: center;
    max-width: 95%;
    border-radius: 10px;
    text-align: center;
    font-size: 12.5px;
}

.user-message {
    background: var(--primary-color);
    color: #111;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    box-shadow: 0 4px 15px rgba(100, 50, 255, 0.2);
}

.assistant-message {
    background: var(--msg-assistant-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Uploaded Image inside Chat */
.chat-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 8px;
    margin-top: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Chat Input wrappers */
#chat-input-wrapper {
    padding: 16px 20px;
    background: var(--chat-input-wrapper-bg);
    border-top: 1px solid var(--glass-border);
}

#image-preview-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    margin-bottom: 12px;
}

#image-preview-bar img {
    height: 40px;
    width: 40px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.1);
}

#btn-remove-image {
    background: none;
    border: none;
    color: var(--danger-color);
    cursor: pointer;
    font-size: 14px;
    padding: 4px;
    margin-left: auto;
}

.input-row {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 16px; /* Enlarged padding */
    align-items: center;
    gap: 12px;
    transition: var(--transition-smooth);
}

.input-row:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
    background: var(--input-row-focus-bg);
}

#chat-text-input {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-primary);
    resize: none;
    font-family: var(--font-sans);
    font-size: 14.5px; /* Slightly larger text */
    padding: 2px 0;
    min-height: 48px; /* Taller typing space */
    max-height: 120px;
    outline: none;
}

/* Microphones & Buttons */
.action-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.action-btn:hover {
    color: var(--text-primary);
    background: var(--glass-bg-hover);
}

#btn-voice-dictate.recording {
    color: var(--accent-color);
    background: rgba(255, 0, 128, 0.1);
    animation: pulseMic 1.5s infinite;
}

@keyframes pulseMic {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 128, 0.4); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(255, 0, 128, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 0, 128, 0); }
}

.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    align-items: center;
}

/* Voice Dictation Waves */
#voice-waves-visualizer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 12px 0 4px 0;
    padding: 8px 12px;
    background: rgba(255, 0, 128, 0.03);
    border: 1px solid rgba(255, 0, 128, 0.1);
    border-radius: 8px;
}

.wave-bar {
    width: 3px;
    height: 15px;
    background: var(--accent-color);
    border-radius: 2px;
    animation: bounce 0.8s ease-in-out infinite alternate;
}

.bar-1 { animation-delay: 0.1s; }
.bar-2 { animation-delay: 0.3s; }
.bar-3 { animation-delay: 0.2s; }
.bar-4 { animation-delay: 0.4s; }

@keyframes bounce {
    from { height: 4px; }
    to { height: 20px; }
}

.voice-status-text {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-left: 6px;
}

/* Main Viewport Panel */
#main-content-panel {
    display: grid;
    grid-template-rows: 1fr;
    height: 100%;
    overflow: hidden;
}

#cad-viewer-section {
    border-radius: 0;
    border-top: none;
    border-right: none;
    border-left: none;
    height: 100%;
    display: flex;
    flex-direction: column;
}

#threejs-container-wrapper {
    flex: 1;
    position: relative;
    background: linear-gradient(180deg, var(--threejs-gradient-start), var(--threejs-gradient-end));
    overflow: hidden;
}

#canvas-overlay-controls {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 10;
    display: flex;
    gap: 8px;
}

.view-btn {
    background: var(--btn-view-bg);
    border: 1px solid var(--glass-border);
    color: var(--btn-view-text);
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.view-btn:hover {
    color: var(--btn-view-hover-text);
    background: var(--btn-view-hover-bg);
}

.view-btn.active {
    color: #fff;
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-glow);
}

#no-model-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--no-model-overlay-bg);
    z-index: 5;
    text-align: center;
    padding: 20px;
}

.prompt-instruction {
    max-width: 320px;
}

.prompt-instruction p {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.5;
}

.magic-animate {
    font-size: 32px;
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--secondary-glow);
    margin-bottom: 16px;
    display: inline-block;
    animation: rotateSpark 3s linear infinite;
}

@keyframes rotateSpark {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.15); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Action Bars */
#cad-export-bar {
    padding: 16px 24px;
    background: var(--chat-input-wrapper-bg);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Macro Code Drawer */
#macro-code-drawer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70%;
    background: var(--macro-drawer-bg);
    border-top: 1px solid var(--glass-border);
    z-index: 20;
    backdrop-filter: blur(25px);
    display: flex;
    flex-direction: column;
    animation: slideDown 0.3s reverse cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.drawer-header h3 {
    font-size: 14px;
    color: var(--secondary-color);
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 22px;
    cursor: pointer;
}

#macro-code-drawer pre {
    flex: 1;
    overflow: auto;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    margin: 0;
}

#macro-code-block {
    font-family: 'Courier New', Courier, monospace;
    font-size: 12px;
    color: #4af626; /* Matrix green */
    line-height: 1.6;
}

/* Printer Dashboard Section */
#printer-dashboard-section {
    border-radius: 0;
    border: none;
    height: 100%;
    background: rgba(5, 5, 8, 0.6);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 16px;
    padding: 16px 20px;
    height: calc(100% - 50px);
}

.telemetry-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Progress telemtry radial */
.print-progress-box {
    justify-content: center;
}

.progress-radial-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
}

.progress-ring__circle-bg, .progress-ring__circle {
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    transition: stroke-dashoffset 0.35s;
}

.progress-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    display: flex;
    flex-direction: column;
}

#progress-percentage-label {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
}

.progress-text-overlay .sub-text {
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.telemetry-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.state-label, .time-label {
    font-size: 12px;
    color: var(--text-muted);
}

.state-label strong, .time-label strong {
    color: var(--text-primary);
}

/* Temps panel */
.temps-box {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
}

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

.gauge-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.gauge-title i {
    color: var(--warning-color);
}

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

.gauge-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--warning-color), var(--danger-color));
    border-radius: 3px;
    transition: width 0.5s ease-out;
}

.bed-fill {
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
}

.gauge-values {
    font-size: 11px;
    text-align: right;
    color: var(--text-muted);
}

/* Bed visualizer path */
.bed-visualizer-box {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 4px;
}

.box-title {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

#bed-canvas-container {
    flex: 1;
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#printer-bed-canvas {
    display: block;
}

/* Buttons */
.btn {
    font-family: var(--font-sans);
    font-weight: 550;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: var(--primary-color);
    color: #111;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: var(--glass-bg-hover);
}

.btn-mini {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
}

.btn-large {
    padding: 12px 24px;
    font-size: 15px;
    border-radius: 12px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Screen Readers Only helper */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Loading Modal */
#loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.spinner-card {
    padding: 30px 40px;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.spinner-icon {
    font-size: 40px;
    color: var(--primary-color);
    text-shadow: 0 0 15px var(--primary-glow);
    margin-bottom: 8px;
}

.spinner-card p {
    font-size: 12px;
    color: var(--text-muted);
}

/* Helper Class to Toggle Visibility */
.hidden {
    display: none !important;
}

/* CAD Export Center Premium Styling */
.export-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    transition: var(--transition-smooth);
}

.export-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.15);
    transform: translateY(-2px);
}

.export-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.color-stl {
    background: linear-gradient(135deg, hsl(25, 100%, 55%), hsl(5, 95%, 55%));
    box-shadow: 0 4px 12px hsla(20, 100%, 55%, 0.3);
}

.color-step {
    background: linear-gradient(135deg, hsl(190, 100%, 50%), hsl(220, 95%, 55%));
    box-shadow: 0 4px 12px hsla(205, 100%, 50%, 0.3);
}

.color-dxf {
    background: linear-gradient(135deg, hsl(320, 100%, 55%), hsl(265, 95%, 55%));
    box-shadow: 0 4px 12px hsla(290, 100%, 55%, 0.3);
}

.export-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.export-info h3 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

.export-info p {
    font-size: 11px;
    color: var(--text-muted);
}

.export-info .btn-mini {
    margin-top: 6px;
    align-self: flex-start;
}

.success-alert-text {
    font-size: 13px;
    font-weight: 550;
    color: var(--success-color);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-shadow: 0 0 10px var(--success-glow);
}

/* Roadmap Modal Overlay */
#roadmap-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--auth-overlay-bg);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
    transition: var(--transition-smooth);
}

.roadmap-card {
    width: 90%;
    max-width: 750px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(79, 70, 229, 0.1);
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.roadmap-intro {
    font-size: 13.5px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.roadmap-grid-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.roadmap-item {
    background: var(--user-badge-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    gap: 14px;
    align-items: flex-start;
    transition: var(--transition-smooth);
}

.roadmap-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 204, 255, 0.1);
}

.roadmap-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
    flex-shrink: 0;
}

.roadmap-details h4 {
    font-family: var(--font-heading);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 4px;
}

.roadmap-details p {
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.5;
}

.btn-roadmap {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.1), rgba(79, 70, 229, 0.1)) !important;
    border: 1px solid rgba(0, 204, 255, 0.3) !important;
    color: var(--secondary-color) !important;
    margin-right: 12px;
}

.btn-roadmap:hover {
    background: linear-gradient(135deg, rgba(0, 204, 255, 0.2), rgba(79, 70, 229, 0.2)) !important;
    border-color: var(--secondary-color) !important;
    box-shadow: 0 0 10px rgba(0, 204, 255, 0.2);
}

.flex-status-group {
    display: flex;
    align-items: center;
    gap: 0;
}

/* User Profile Badge */
#user-profile-badge {
    margin-top: 14px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.avatar-icon {
    font-size: 24px;
    color: var(--secondary-color);
}

.user-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#user-display-name {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

.role-badge {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    background: rgba(0, 204, 255, 0.1);
    color: var(--secondary-color);
    border-radius: 4px;
    align-self: flex-start;
    font-weight: 700;
}

.profile-actions {
    display: flex;
    gap: 6px;
}

/* Saved sessions section and list */
#sessions-section {
    flex: 1;
    min-height: 180px;
    max-height: 250px;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--glass-border);
    border-radius: 0;
    background: transparent;
    padding: 12px 20px;
    overflow: hidden;
}

#sessions-list-container {
    flex: 1;
    overflow-y: auto;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.no-sessions-placeholder {
    font-size: 11px;
    color: var(--text-muted);
    text-align: center;
    padding: 16px 0;
}

.session-item {
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.session-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateX(2px);
}

.session-item.active {
    background: rgba(79, 70, 229, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

.session-title-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    flex: 1;
}

.session-icon {
    font-size: 13px;
    color: var(--text-muted);
}

.session-item.active .session-icon {
    color: var(--primary-color);
}

.session-title {
    font-size: 12px;
    font-weight: 550;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-delete-session {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    font-size: 11px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    opacity: 0;
}

.session-item:hover .btn-delete-session {
    opacity: 1;
}

.btn-delete-session:hover {
    color: var(--danger-color);
    background: rgba(255, 0, 128, 0.1);
}

/* Auth Portal Overlay */
#auth-overlay, #approval-pending-overlay, #change-password-overlay, #mobile-capture-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--auth-overlay-bg);
    backdrop-filter: blur(25px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.auth-card {
    width: 90%;
    max-width: 420px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 50px rgba(79, 70, 229, 0.15);
    animation: zoomIn 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.auth-header {
    text-align: center;
    margin-bottom: 24px;
}

.auth-header h2 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-top: 10px;
    margin-bottom: 6px;
}

.auth-header p {
    font-size: 13px;
    color: var(--text-muted);
}

.logo-glow {
    font-size: 40px;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-glow);
}

/* Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.form-group label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper input {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 14px 10px 38px;
    font-size: 13px;
    color: var(--text-primary);
    font-family: var(--font-sans);
    transition: var(--transition-smooth);
}

.input-icon-wrapper input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 0 12px rgba(79, 70, 229, 0.2);
}

.input-icon-wrapper .input-icon {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 13px;
}

.btn-toggle-password {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 13px;
    padding: 4px;
}

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

.btn-full {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
}

.auth-switch {
    font-size: 12px;
    color: var(--text-muted);
    text-align: center;
    margin-top: 18px;
}

.auth-switch a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.error-alert {
    background: rgba(255, 0, 128, 0.08);
    border: 1px solid rgba(255, 0, 128, 0.2);
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 12px;
    color: var(--danger-color);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    animation: shake 0.3s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-4px); }
    75% { transform: translateX(4px); }
}

/* Pending Screen */
.approval-shield-icon {
    font-size: 48px;
    color: var(--secondary-color);
    text-shadow: 0 0 20px var(--secondary-glow);
    margin-bottom: 16px;
    display: inline-block;
}

.approval-desc {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 8px;
}

.approval-subdesc {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.pending-buttons-row {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* Admin Dashboard Panel */
#admin-panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--auth-overlay-bg);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 150;
}

.admin-card {
    width: 90%;
    max-width: 800px;
    background: var(--glass-card);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 24px 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6), 0 0 40px rgba(0, 204, 255, 0.1);
    animation: zoomIn 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    max-height: 85vh;
}

.gear-glow {
    color: var(--secondary-color);
    text-shadow: 0 0 15px var(--secondary-glow);
}

.admin-panel-content {
    flex: 1;
    overflow-y: auto;
    margin-top: 18px;
}

.table-card {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    overflow: hidden;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.admin-table th, .admin-table td {
    padding: 14px 18px;
    font-size: 13px;
    border-bottom: 1px solid var(--glass-border);
}

.admin-table th {
    background: rgba(255, 255, 255, 0.02);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.admin-table td {
    color: var(--text-primary);
}

.admin-table tr:last-child td {
    border-bottom: none;
}

.admin-table tr:hover td {
    background: rgba(255, 255, 255, 0.01);
}

.admin-actions-cell {
    display: flex;
    gap: 8px;
    align-items: center;
}

.status-authorized {
    color: var(--success-color);
    font-weight: 600;
}

.status-pending {
    color: var(--warning-color);
    font-weight: 600;
}

.role-super {
    background: rgba(255, 0, 128, 0.1);
    color: var(--danger-color);
    border: 1px solid rgba(255, 0, 128, 0.2);
}

.role-admin {
    background: rgba(0, 204, 255, 0.1);
    color: var(--secondary-color);
    border: 1px solid rgba(0, 204, 255, 0.2);
}

.role-user {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    border: 1px solid var(--glass-border);
}

/* ==========================================
   SIDEBAR TABS SYSTEM
   ========================================== */
.sidebar-tabs {
    display: flex;
    background: rgba(10, 10, 15, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 3px;
    margin: 8px 16px 16px 16px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: var(--transition-smooth);
}

.tab-btn i {
    font-size: 13px;
}

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

.tab-btn.active {
    background: rgba(79, 70, 229, 0.25);
    color: var(--primary-color);
    border: 1px solid rgba(79, 70, 229, 0.4);
    box-shadow: 0 0 10px rgba(79, 70, 229, 0.2);
}

/* ==========================================
   PREMIUM EXPORTER DROPDOWN
   ========================================== */
.export-dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.export-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 250px;
    background: var(--macro-drawer-bg);
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 15px rgba(79, 70, 229, 0.15);
    backdrop-filter: blur(15px);
    padding: 8px 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    animation: fadeInDropdown 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 12.5px;
    font-weight: 500;
    padding: 10px 16px;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition-smooth);
    width: 100%;
}

.dropdown-item:hover:not([disabled]) {
    background: rgba(79, 70, 229, 0.15);
    color: var(--primary-color);
}

.dropdown-item[disabled] {
    opacity: 0.4;
    cursor: not-allowed;
    color: var(--text-muted);
}

.dropdown-divider {
    border: none;
    border-top: 1px solid var(--glass-border);
    margin: 6px 0;
}

/* Color codes for items inside dropdown */
.color-stl-text { color: #facc15; }
.color-step-text { color: #00ccff; }
.color-dxf-text { color: #f43f5e; }

/* ==========================================
   FLOATING DIMENSION MEASURE BADGE
   ========================================== */
.measure-badge {
    position: absolute;
    z-index: 20;
    transform: translate(-50%, -100%); /* Center horizontally, float above midpoint */
    background: rgba(10, 10, 18, 0.9);
    border: 1px solid #00f3ff; /* Neon cyan glowing border */
    border-radius: 20px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 243, 255, 0.3), 0 5px 15px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    pointer-events: auto; /* allow clicking reset cross button */
    margin-top: -15px; /* Offset upward slightly from midpoint */
}

.measure-badge i {
    color: #00f3ff;
}

#btn-clear-measure {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 15px;
    cursor: pointer;
    padding: 0 0 0 4px;
    line-height: 1;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
}

#btn-clear-measure:hover {
    color: #f43f5e;
}

/* Highlight state for active measure button */
.view-btn.active#btn-measure {
    background: rgba(0, 243, 255, 0.2) !important;
    border-color: #00f3ff !important;
    color: #fff !important;
    box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
}

/* ==========================================
   FLOATING CAD MACRO DRAWER OVERRIDES
   ========================================== */
#macro-code-drawer {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 380px;
    z-index: 50;
    background: var(--macro-drawer-bg);
    border-left: 1px solid rgba(79, 70, 229, 0.4);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    animation: slideInDrawer 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideInDrawer {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

#macro-code-drawer pre {
    flex: 1;
    margin: 0;
    padding: 16px;
    overflow: auto;
    font-size: 11.5px;
    background: rgba(5, 5, 8, 0.5);
    border-radius: 0;
}

#macro-code-drawer pre code {
    color: var(--macro-code-color); /* technical themed python */
}
/* =========================================
   RESPONSIVE LAYOUT - Mobile & Narrow Windows
   ========================================= */

/* Mid-size: collapse 3D panel to hide if too narrow */
@media (max-width: 900px) {
    body {
        padding: 0;
        align-items: flex-start;
        overflow-y: auto;
        overflow-x: hidden;
    }

    #app-container {
        grid-template-columns: 1fr;
        grid-template-rows: 100vh;
        height: 100vh;
        border-radius: 0;
        max-width: 100%;
    }

    /* Hide 3D viewport on narrow screens, show only chat panel */
    #main-content-panel {
        display: none;
    }

    #sidebar-panel {
        border-right: none;
        width: 100%;
    }
}

/* Large desktop: ensure sidebar doesn't collapse */
@media (min-width: 901px) and (max-width: 1100px) {
    #app-container {
        grid-template-columns: 320px 1fr;
    }
}

/* Prevent message text overflow in chat feed */
#chat-messages-container p,
#chat-messages-container em,
#chat-messages-container strong {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

/* Ensure user messages don't bleed past container */
.user-message {
    max-width: 85%;
    overflow: visible;
}

/* ==========================================
   LANDING PAGE SaaS PRESENTATION SYSTEM
   ========================================== */

#landing-page {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
    color: var(--text-primary);
    font-family: var(--font-sans);
    display: flex;
    flex-direction: column;
    scroll-behavior: smooth;
    padding: 0;
}

/* Landing Navigation Header */
.landing-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg-gradient-start), 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
}

.landing-nav {
    display: flex;
    gap: 2rem;
}

.landing-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.landing-nav a:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-glow);
}

.landing-cta-group {
    display: flex;
    gap: 1rem;
}

/* Hero Section */
.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    padding: 5rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    min-height: calc(100vh - 80px);
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-badge {
    align-self: flex-start;
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: var(--primary-glow);
    border: 1px solid var(--primary-color);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1.15;
    font-weight: 700;
    margin: 0;
}

.gradient-text {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: var(--text-primary);
}

.hero-desc {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

.hero-buttons {
    display: flex;
    gap: 1.25rem;
    margin-top: 1rem;
}

/* Hero Visual / ThreeJS Wrapper */
.hero-visual {
    width: 100%;
    display: flex;
    justify-content: center;
}

.visual-canvas-card {
    width: 100%;
    max-width: 480px;
    height: 400px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

#landing-canvas-container {
    width: 100%;
    height: 100%;
}

.canvas-visual-overlay {
    position: absolute;
    bottom: 1.25rem;
    left: 1.25rem;
    pointer-events: none;
    z-index: 10;
}

/* Pitch & Vision Section */
.landing-vision {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 3rem auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.section-badge {
    padding: 0.4rem 1rem;
    border-radius: 100px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--secondary-color);
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2.25rem;
    margin: 0;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin: 0.5rem 0 2.5rem 0;
}

.vision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.vision-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.vision-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(79, 70, 229, 0.15);
}

.vision-icon {
    font-size: 2rem;
    margin-bottom: 1.25rem;
}

.icon-blue { color: var(--secondary-color); }
.icon-purple { color: var(--primary-color); }
.icon-teal { color: hsl(175, 80%, 45%); }

.vision-card h3 {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-heading);
    font-size: 1.3rem;
}

.vision-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* Capabilities Grid */
.landing-capabilities {
    padding: 5rem 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.cap-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.cap-card:hover {
    background: var(--glass-bg-hover);
    transform: scale(1.02);
}

.cap-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cap-icon {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.cap-card h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.cap-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
}

/* Roadmap Section */
.landing-roadmap {
    padding: 5rem 2.5rem;
    max-width: 1100px;
    margin: 3rem auto;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.roadmap-timeline {
    display: flex;
    justify-content: space-between;
    gap: 2.5rem;
    position: relative;
    margin-top: 1rem;
}

.roadmap-node {
    flex: 1;
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
}

.roadmap-date {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--secondary-glow);
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.roadmap-node h3 {
    margin: 0 0 0.75rem 0;
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.roadmap-node p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer styling */
.landing-footer {
    border-top: 1px solid var(--glass-border);
    padding: 2rem 2.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsive Landing Page */
@media (max-width: 850px) {
    .landing-hero {
        grid-template-columns: 1fr;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
    .landing-header {
        padding: 1rem 1.5rem;
    }
    .landing-nav {
        display: none;
    }
    .vision-grid, .capabilities-grid, .roadmap-timeline {
        grid-template-columns: 1fr;
        flex-direction: column;
    }
    .hero-content h1 {
        font-size: 2.75rem;
    }
}

