/* Modern Reset & CSS Variables */
        :root {
            --bg-base: #0f172a;
            --bg-surface: #1e293b;
            --accent: #f97316; /* Heavy construction orange */
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --border-color: rgba(255, 255, 255, 0.08);
            --radius: 16px;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body {
            font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background-color: var(--bg-base);
            color: var(--text-main);
        }

        /* --- STYLES THAT APPLY TO BOTH MOBILE & DESKTOP --- */
        .app-header {
            height: 70px;
            background: var(--bg-surface);
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0 2rem;
            z-index: 10;
        }

        .logo { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.05em; color: var(--text-main); }
        .logo span { color: var(--accent); }

        .hero-card {
            background: rgba(30, 41, 59, 0.5);
            backdrop-filter: blur(12px);
            border: 1px solid var(--border-color);
            padding: 2.5rem;
            border-radius: var(--radius);
        }

        .hero-card h1 { font-size: 2.5rem; margin-bottom: 0.5rem; font-weight: 800; }
        .hero-card h2 { font-size: 1.4rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; }
        .hero-card p { color: var(--text-muted); font-size: 1.1rem; }

        .interactive-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 1.5rem;
        }

        .matrix-card {
            background: var(--bg-surface);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            padding: 1.5rem;
            transition: transform 0.2s, border-color 0.2s;
        }
        .matrix-card:hover {
            transform: translateY(-2px);
            border-color: rgba(249, 115, 22, 0.4);
        }

        .dock-header {
            padding: 1.25rem;
            border-bottom: 1px solid var(--border-color);
            background: rgba(15, 23, 42, 0.2);
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }
        .dock-status-dot {
            width: 8px; height: 8px; background: #22c55e; border-radius: 50%;
            box-shadow: 0 0 8px #22c55e;
        }

        .msg { max-width: 85%; padding: 0.85rem 1.1rem; border-radius: 12px; font-size: 0.95rem; line-height: 1.4; }
        .msg.bot { background: rgba(255,255,255,0.05); color: var(--text-main); align-self: flex-start; border-bottom-left-radius: 4px; }
        .msg.user { background: var(--accent); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }

        .chat-input-container {
            padding: 1.25rem;
            border-top: 1px solid var(--border-color);
            background: rgba(15, 23, 42, 0.4);
            display: flex;
            gap: 0.5rem;
        }
        .chat-input-container input {
            flex: 1; background: var(--bg-base); border: 1px solid var(--border-color);
            border-radius: 8px; padding: 0.75rem 1rem; color: white; font-size: 0.95rem;
        }
        .chat-input-container input:focus { outline: 1px solid var(--accent); }
        .chat-input-container button {
            background: var(--accent); color: white; border: none; padding: 0 1.25rem;
            border-radius: 8px; font-weight: 600; cursor: pointer;
        }
         
         /* --- RESPONSIVE TABLE UTILITIES --- */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: 1.25rem;
    border-radius: 8px;
    border: 1px solid var(--border-color, #2a2e35);
}

.matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: center;
    color: #e2e8f0;
    background-color: rgba(20, 24, 33, 0.6);
}

.matrix-table th, 
.matrix-table td {
    padding: 0.6rem 0.5rem;
    border: 1px solid var(--border-color, #2a2e35);
    white-space: nowrap;
}

.matrix-table th {
    background-color: rgba(30, 41, 59, 0.9);
    color: #f8fafc;
    font-weight: 600;
}

/* Light highlight on alternating row layers to help readability */
.matrix-table tbody tr:nth-child(even) {
    background-color: rgba(255, 255, 255, 0.02);
}

/* Highlight the key dimension headers */
.matrix-table td:first-child {
    background-color: rgba(30, 41, 59, 0.4);
    font-weight: bold;
    color: #f1f5f9;
}

/* Smooth hover tracking across grid matrix items */
.matrix-table tbody tr:hover {
    background-color: rgba(249, 115, 22, 0.08);
}
.big-glow-button {
  /* Crucial: Makes the link behave like a block/button so size applies */
  display: inline-block; 
  text-decoration: none;
  
  /* HUGE Size & Spacing */
  padding: 25px 60px;
  font-size: 1.8rem;
  font-weight: bold;
  font-family: sans-serif;
  
  /* Styling */
  color: #ffffff;
  background-color: #00adb5;
  border-radius: 12px;
  cursor: pointer;
  
  /* Smooth transition for the hover glow */
  transition: all 0.3s ease-in-out;
  
  /* A massive, visible initial glow */
  box-shadow: 0 0 30px rgba(0, 173, 181, 0.6);
}

/* Hover Effect: Super intense neon glow */
.big-glow-button:hover {
  background-color: #00f5ff;
  
  /* Layered shadows to make the glow incredibly bright and wide */
  box-shadow: 0 0 20px rgba(0, 173, 181, 1), 
              0 0 50px rgba(0, 173, 181, 0.8),
              0 0 80px rgba(0, 173, 181, 0.4);
  
  /* Makes it physically bigger on hover */
  transform: scale(1.08); 
}

/* Click Effect */
.big-glow-button:active {
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(0, 173, 181, 0.8);
}

/* Base style for both buttons (Half-size dimensions) */
.glow-btn {
  display: inline-block;
  text-decoration: none;
  
  /* Half-size scaling */
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 6px;
  color: #ffffff;
  
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

/* ==================== RED BUTTON ==================== */
.btn-red {
  background-color: #e50914;
  /* Subtle initial red glow */
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.4);
}

.btn-red:hover {
  background-color: #ff1e27;
  /* Layered intense red glow */
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.9), 
              0 0 30px rgba(229, 9, 20, 0.5);
  transform: scale(1.05);
}

/* ==================== GREEN BUTTON ==================== */
.btn-green {
  background-color: #00b050;
  /* Subtle initial green glow */
  box-shadow: 0 0 15px rgba(0, 176, 80, 0.4);
}

.btn-green:hover {
  background-color: #00e668;
  /* Layered intense green glow */
  box-shadow: 0 0 15px rgba(0, 176, 80, 0.9), 
              0 0 30px rgba(0, 176, 80, 0.5);
  transform: scale(1.05);
}

/* Active click state for both */
.glow-btn:active {
  transform: scale(0.98);
}
/* ==================== BLUE BUTTON ==================== */
.btn-blue {
  background-color: #0066ff;
  /* Subtle initial blue glow */
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.4);
}

.btn-blue:hover {
  background-color: #3385ff; /* Slightly brighter blue on hover */
  /* Layered intense blue glow */
  box-shadow: 0 0 15px rgba(0, 102, 255, 0.9), 
              0 0 30px rgba(0, 102, 255, 0.5);
  transform: scale(1.05);
}

/* Target the first letter of the paragraph */
.story-paragraph::first-letter {
  font-size: 3.5rem; /* Makes it huge */
  font-weight: bold;
  float: left;       /* Floats it so the rest of the text wraps beautifully around it */
  margin-right: 10px;
  line-height: 1;    /* Keeps the spacing tight so it doesn't push down the second line */
  
  /* Styling to match your glowing vibe */
  color: #00adb5;    /* Electric cyan */
  text-shadow: 0 0 10px rgba(0, 173, 181, 0.6); /* Text glow! */
}

        /* --- SPECIFIC RULES FOR DESKTOP ONLY --- */
        @media (min-width: 901px) {
            body {
                height: 100vh;
                overflow: hidden;
                display: flex;
                flex-direction: column;
            }
            .app-workspace {
                 display: grid;
                 grid-template-columns: 1fr 400px;
                 height: calc(100vh - 70px);
                 width: 100%;
            }
            .main-showcase {
                padding: 2rem;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                gap: 2rem;
                background: linear-gradient(135deg, #0f172a 0%, #111827 100%);
                height: 100%;
            }
            .assistant-dock {
                background: var(--bg-surface);
                border-left: 1px solid var(--border-color);
                display: flex;
                flex-direction: column;
                height: 100%;
                overflow: hidden;
            }
            .chat-messages-container {
                padding: 1.25rem;
                overflow-y: auto;
                overflow-x: hidden;
                display: flex;
                flex-direction: column;
                gap: 1rem;
                height: calc(100vh - 70px - 53px - 69px); /* Perfect mathematical cutoff */
            }
            .interactive-grid {
                align-items: start;
            }
        }

        /* --- SPECIFIC RULES FOR MOBILE ONLY --- */
        @media (max-width: 900px) {
            body { overflow: auto; height: auto; }
            .app-workspace {
                display: flex;
                flex-direction: column;
                height: auto;
            }
            .main-showcase {
                padding: 1.5rem;
            }
            .assistant-dock {
                border-top: 1px solid var(--border-color);
                height: 550px;
                display: flex;
                flex-direction: column;
            }
            .chat-messages-container {
                padding: 1.25rem;
                overflow-y: auto;
                display: flex;
                flex-direction: column;
                gap: 1rem;
                flex-grow: 1;
            }
        }