/* 
   Totum Key ERP Landing Page Stylesheet
   Minimalist, professional, inspired by frappe.io design guidelines
*/

/* 1. Global Reset & Variables */
:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', sans-serif;
    
    /* Dark Theme Variables (Default) */
    --bg-primary: #0a0b10;
    --bg-secondary: #12141c;
    --bg-tertiary: #181b26;
    --bg-glass: rgba(18, 20, 28, 0.75);
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.16);
    
    --color-accent-blue: #0062ff;
    --color-accent-green: #0ce682;
    --color-accent-gradient: linear-gradient(135deg, #0062ff 0%, #0ce682 100%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
    --shadow-glow-blue: 0 0 20px rgba(0, 98, 255, 0.25);
    --shadow-glow-green: 0 0 20px rgba(12, 230, 130, 0.25);
    
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Light Theme Variables */
body.light-theme {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --bg-glass: rgba(255, 255, 255, 0.85);
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --border-color: rgba(15, 23, 42, 0.06);
    --border-hover: rgba(15, 23, 42, 0.12);
    
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.08);
    --shadow-glow-blue: 0 0 20px rgba(0, 98, 255, 0.12);
    --shadow-glow-green: 0 0 20px rgba(12, 230, 130, 0.12);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

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

/* 2. Utility Layout Elements */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid {
    display: grid;
    gap: 2rem;
}

.grid-2 {
    grid-template-columns: 1fr;
}

.grid-3 {
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.pulse-indicator {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-green);
    box-shadow: 0 0 8px var(--color-accent-green);
    display: inline-block;
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(12, 230, 130, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(12, 230, 130, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(12, 230, 130, 0); }
}

.top-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--color-accent-gradient);
    z-index: 1001;
    transition: width 0.2s ease;
}

/* 3. Typography & Badges */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.25;
}

h1 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }
}

h2 {
    font-size: 2rem;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: var(--radius-full);
    background-color: var(--color-accent-blue);
    box-shadow: 0 0 8px var(--color-accent-blue);
}

.section-tag {
    color: var(--color-accent-blue);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.section-header {
    max-width: 680px;
    margin: 0 auto 3.5rem auto;
}

.section-desc {
    font-size: 1.125rem;
}

/* 4. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-fast);
    border: 1px solid transparent;
}

.btn-large {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

.btn-primary {
    background-color: var(--color-accent-blue);
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0050d5;
    box-shadow: var(--shadow-glow-blue);
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: var(--bg-tertiary);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--bg-secondary);
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

.btn-accent {
    background-color: var(--color-accent-green);
    color: #081e14;
    font-weight: 600;
}

.btn-accent:hover {
    background-color: #0bd176;
    box-shadow: var(--shadow-glow-green);
    transform: translateY(-1px);
}

.btn-outline-alt {
    background-color: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.btn-outline-alt:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background-color: var(--bg-tertiary);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* 5. Main Header & Navigation */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: var(--bg-glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: background-color var(--transition-normal);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.theme-switch {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0;
    outline: none;
}

.theme-switch-track {
    width: 52px;
    height: 28px;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    position: relative;
    transition: background-color var(--transition-normal);
    display: flex;
    align-items: center;
    padding: 2px;
}

.theme-switch-thumb {
    width: 22px;
    height: 22px;
    background-color: var(--text-primary);
    border-radius: 50%;
    position: absolute;
    left: 2px;
    transition: transform var(--transition-normal), background-color var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

/* Icons inside the thumb */
.theme-switch-thumb svg {
    width: 12px;
    height: 12px;
    color: var(--bg-primary);
    transition: color var(--transition-fast);
}

/* Switch states based on body class */
body.light-theme .theme-switch-thumb {
    transform: translateX(24px);
}

body.dark-theme .moon-icon-switch { display: none; }
body.dark-theme .sun-icon-switch { display: block; }
body.light-theme .sun-icon-switch { display: none; }
body.light-theme .moon-icon-switch { display: block; }

.header-cta {
    display: none;
}

@media (min-width: 640px) {
    .header-cta {
        display: inline-flex;
    }
}

.menu-mobile-btn {
    display: flex;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: var(--radius-sm);
}

@media (min-width: 1024px) {
    .menu-mobile-btn {
        display: none;
    }
}

.menu-mobile-btn .close-icon { display: none; }
.menu-mobile-btn.active .open-icon { display: none; }
.menu-mobile-btn.active .close-icon { display: block; }

/* Mobile navigation drawer */
.mobile-nav-drawer {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-primary);
    z-index: 999;
    padding: 2rem 1.5rem;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform var(--transition-normal), opacity var(--transition-normal);
    border-bottom: 1px solid var(--border-color);
    overflow-y: auto;
}

.mobile-nav-drawer.open {
    transform: translateY(0);
    opacity: 1;
}

.mobile-nav-drawer ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mobile-nav-drawer a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 600;
    display: block;
    padding: 0.5rem 0;
}

.mobile-nav-drawer a.btn {
    text-align: center;
    font-size: 1rem;
    padding: 0.8rem;
    margin-top: 1rem;
}

/* 6. Sections General */
section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-normal);
}

@media (min-width: 1024px) {
    section {
        padding: 7.5rem 0;
    }
}

/* 7. Hero Section */
.hero-section {
    padding-top: 8rem;
    background-image: radial-gradient(circle at 75% 20%, rgba(0, 98, 255, 0.08) 0%, transparent 50%),
                      radial-gradient(circle at 15% 80%, rgba(12, 230, 130, 0.06) 0%, transparent 50%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.hero-specs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-specs {
        flex-direction: row;
        gap: 2rem;
    }
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.spec-icon {
    width: 18px;
    height: 18px;
    color: var(--color-accent-green);
}

/* Browser Mockup Visuals */
.browser-mockup {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: border-color var(--transition-normal);
}

.browser-header {
    background-color: var(--bg-tertiary);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.browser-dots {
    display: flex;
    gap: 6px;
    margin-right: 1.5rem;
}

.browser-dots span {
    width: 9px;
    height: 9px;
    border-radius: var(--radius-full);
}

.browser-dots span:nth-child(1) { background-color: #ef4444; }
.browser-dots span:nth-child(2) { background-color: #f59e0b; }
.browser-dots span:nth-child(3) { background-color: #10b981; }

.browser-address {
    flex-grow: 1;
    max-width: 320px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.2rem 0.75rem;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    font-family: monospace;
}

.browser-body {
    padding: 0;
    position: relative;
}

/* Dashboard Mockup Content */
.dashboard-preview {
    display: grid;
    grid-template-columns: 50px 1fr;
    height: 280px;
}

.dashboard-sidebar {
    background-color: var(--bg-tertiary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 1rem;
    gap: 1.25rem;
}

.sidebar-item {
    color: var(--text-muted);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.sidebar-item.active, .sidebar-item:hover {
    color: var(--color-accent-blue);
}

.sidebar-item svg {
    width: 18px;
    height: 18px;
}

.dashboard-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

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

.db-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.db-user {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.db-widgets {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.widget {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
}

.widget-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.widget-value {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    margin-top: 0.15rem;
}

.trend-up {
    font-size: 0.65rem;
    color: var(--color-accent-green);
    font-weight: 600;
}

.trend-ok {
    font-size: 0.65rem;
    color: var(--color-accent-blue);
    font-weight: 600;
}

.db-chart-placeholder {
    height: 90px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    position: relative;
}

.mini-chart {
    width: 100%;
    height: 100%;
}

.floating-ia-alert {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    left: 1rem;
    background-color: var(--bg-secondary);
    border: 1px solid var(--color-accent-blue);
    box-shadow: var(--shadow-md), 0 0 15px rgba(0, 98, 255, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideUpFloat 4s ease-in-out infinite alternate;
}

@keyframes slideUpFloat {
    0% { transform: translateY(2px); }
    100% { transform: translateY(-4px); }
}

.ia-icon-wrapper {
    background: var(--color-accent-gradient);
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ia-icon-wrapper svg {
    width: 16px;
    height: 16px;
    animation: rotateSpark 3s linear infinite;
}

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

.ia-alert-text {
    font-size: 0.75rem;
    line-height: 1.3;
}

.ia-alert-text strong {
    display: block;
    color: var(--color-accent-blue);
    font-weight: 600;
}

.ia-alert-text span {
    color: var(--text-primary);
}

/* 8. Core ERP Section (ERPNext Core) */
.core-section {
    background-color: var(--bg-secondary);
}

.card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.card:hover .card-icon {
    transform: scale(1.05);
}

.card-icon svg {
    width: 22px;
    height: 22px;
}

.blue-glow svg { color: var(--color-accent-blue); }
.green-glow svg { color: var(--color-accent-green); }

.card:hover .blue-glow {
    box-shadow: var(--shadow-glow-blue);
    border-color: rgba(0, 98, 255, 0.4);
}

.card:hover .green-glow {
    box-shadow: var(--shadow-glow-green);
    border-color: rgba(12, 230, 130, 0.4);
}

/* 9. Sandbox Section (Totum Key Features) */
.sandbox-section {
    background-color: var(--bg-primary);
}

.sandbox-tabs {
    display: flex;
    flex-direction: column;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    border-radius: var(--radius-md);
    gap: 0.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .sandbox-tabs {
        flex-direction: row;
        border-radius: var(--radius-full);
        gap: 0.5rem;
    }
}

.tab-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .tab-btn {
        border-radius: var(--radius-full);
        flex: 1;
    }
}

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

.tab-btn.active {
    color: #ffffff;
    background-color: var(--color-accent-blue);
}

.sandbox-display {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

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

.tab-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 420px;
}

@media (min-width: 1024px) {
    .tab-grid {
        grid-template-columns: 0.9fr 1.1fr;
    }
}

.tab-info {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

@media (min-width: 1024px) {
    .tab-info {
        border-bottom: none;
        border-right: 1px solid var(--border-color);
    }
}

.tab-badge {
    color: var(--color-accent-green);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.tab-info h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.tab-preview {
    background-color: var(--bg-primary);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Industry Selector Controls */
.selector-industria {
    margin-top: 1.5rem;
}

.selector-industria label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.industry-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

@media (min-width: 480px) {
    .industry-buttons {
        flex-direction: row;
    }
}

.ind-btn {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    flex-grow: 1;
}

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

.ind-btn.active {
    background-color: var(--bg-primary);
    color: var(--color-accent-blue);
    border-color: var(--color-accent-blue);
    font-weight: 600;
}

/* Simulated ERP Screens (vps-screen) */
.vps-screen {
    width: 100%;
    max-width: 480px;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.screen-title {
    background-color: var(--bg-tertiary);
    padding: 0.65rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.small-icon {
    width: 14px;
    height: 14px;
    color: var(--color-accent-blue);
}

.industry-view-content {
    padding: 1.25rem;
    font-size: 0.85rem;
}

/* Mock Tables/Lists for Custom Industries */
.mock-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.5rem;
}

.mock-table th, .mock-table td {
    padding: 0.5rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.mock-table th {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.mock-badge {
    display: inline-block;
    padding: 0.15rem 0.4rem;
    border-radius: var(--radius-sm);
    font-size: 0.7rem;
    font-weight: 600;
}

.mock-badge.success { background-color: rgba(12, 230, 130, 0.15); color: var(--color-accent-green); }
.mock-badge.warning { background-color: rgba(245, 158, 11, 0.15); color: #f59e0b; }
.mock-badge.primary { background-color: rgba(0, 98, 255, 0.15); color: var(--color-accent-blue); }

.industry-kpi-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.kpi-mini-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
}

.kpi-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.kpi-value {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.1rem;
}

/* AI Report Tab Styling */
.prompt-box {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 0 3px rgba(0, 98, 255, 0.15);
}

.ai-screen-box {
    min-height: 250px;
}

.ai-report-output {
    padding: 1.5rem;
    height: 100%;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-idle-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-align: center;
    gap: 0.75rem;
}

.ai-idle-state svg {
    width: 36px;
    height: 36px;
    opacity: 0.5;
}

.ai-loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

.ai-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color);
    border-top-color: var(--color-accent-blue);
    border-radius: var(--radius-full);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.report-title-output {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.report-summary-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.chart-bars-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 90px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

.chart-bar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 25%;
    gap: 0.25rem;
}

.chart-bar-fill {
    width: 100%;
    max-width: 36px;
    background: var(--color-accent-gradient);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    height: 0;
    transition: height 1s cubic-bezier(0.175, 0.885, 0.32, 1.1);
}

.chart-bar-val {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--text-primary);
}

.chart-bar-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.ai-alert-notification {
    background-color: rgba(12, 230, 130, 0.08);
    border: 1px dashed var(--color-accent-green);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    animation: popIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.ai-alert-notification svg {
    color: var(--color-accent-green);
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.ai-alert-notification span {
    font-size: 0.7rem;
    color: var(--text-primary);
}

/* Voice Module Tab Styling */
.voice-module {
    margin-top: 1.5rem;
}

.voice-control-wrapper {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.voice-mic-btn {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    outline: none;
    transition: all var(--transition-fast);
}

.voice-mic-btn svg {
    width: 24px;
    height: 24px;
    z-index: 2;
    transition: transform var(--transition-fast);
}

.voice-mic-btn:hover {
    color: var(--text-primary);
    border-color: var(--color-accent-blue);
    box-shadow: 0 0 10px rgba(0, 98, 255, 0.15);
}

.voice-mic-btn.recording {
    background-color: var(--color-accent-blue);
    color: #ffffff;
    border-color: var(--color-accent-blue);
    box-shadow: var(--shadow-glow-blue);
}

.voice-mic-btn.recording svg {
    transform: scale(1.1);
}

/* Pulsing ripple around the mic when recording */
.voice-mic-btn .ripple {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: var(--radius-full);
    border: 1px solid var(--color-accent-blue);
    opacity: 0;
    pointer-events: none;
    box-sizing: border-box;
}

.voice-mic-btn.recording .ripple {
    animation: micRipple 1.5s infinite;
}

@keyframes micRipple {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.6); opacity: 0; }
}

.mic-status-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.preset-questions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.preset-questions p {
    margin-bottom: 0.25rem;
}

.voice-preset {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-sm);
}

.voice-screen-box {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.voice-visualizer {
    background-color: var(--bg-primary);
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
}

.voice-waves {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 30px;
}

.voice-waves span {
    width: 3px;
    height: 8px;
    background-color: var(--text-muted);
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.voice-mic-btn.recording ~ .voice-waves span,
.voice-waves.animating span {
    background-color: var(--color-accent-blue);
    animation: waveBounce 1s infinite alternate;
}

.voice-waves.animating span:nth-child(1) { animation-delay: 0.1s; height: 18px; }
.voice-waves.animating span:nth-child(2) { animation-delay: 0.3s; height: 26px; }
.voice-waves.animating span:nth-child(3) { animation-delay: 0.0s; height: 12px; }
.voice-waves.animating span:nth-child(4) { animation-delay: 0.4s; height: 22px; }
.voice-waves.animating span:nth-child(5) { animation-delay: 0.2s; height: 16px; }

@keyframes waveBounce {
    0% { transform: scaleY(0.5); }
    100% { transform: scaleY(1.5); }
}

.voice-chat-log {
    flex-grow: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow-y: auto;
    font-size: 0.8rem;
}

.chat-bubble {
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
    max-width: 85%;
    line-height: 1.4;
    transition: all 0.3s ease;
}

.user-bubble {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    align-self: flex-end;
    border-bottom-right-radius: 0;
}

.system-bubble {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    align-self: flex-start;
    border-top-left-radius: 0;
    box-shadow: var(--shadow-sm);
}

.system-bubble strong {
    color: var(--color-accent-blue);
    display: block;
    margin-bottom: 0.25rem;
}

.empty-bubble {
    opacity: 0.4;
    font-style: italic;
}

/* 10. Architecture / Despliegue Section */
.arch-section {
    background-color: var(--bg-secondary);
}

.arch-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.arch-content p {
    margin-bottom: 1.25rem;
}

.vps-benefits {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.benefit {
    display: flex;
    gap: 1rem;
}

.benefit svg {
    color: var(--color-accent-blue);
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.benefit h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.benefit p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0;
}

/* Stack vertical diagram styling */
.tech-stack-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.tech-stack-card h3 {
    text-align: center;
    margin-bottom: 2rem;
}

.stack-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stack-layer {
    width: 100%;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    text-align: center;
    transition: all var(--transition-normal);
}

.stack-layer:hover {
    border-color: var(--color-accent-blue);
    transform: scale(1.02);
}

.layer-title {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
}

.layer-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.layer-items span {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.stack-arrow {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 24px;
}

.stack-arrow svg {
    width: 16px;
    height: 16px;
}

/* 11. Contact Section */
.contact-section {
    background-color: var(--bg-primary);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3.5rem;
}

@media (min-width: 1024px) {
    .contact-container {
        grid-template-columns: 0.95fr 1.05fr;
    }
}

.contact-info-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info-side h2 {
    margin-bottom: 1.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.detail-item svg {
    width: 22px;
    height: 22px;
    color: var(--color-accent-blue);
}

.detail-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-val {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
}

.detail-item a.detail-val:hover {
    color: var(--color-accent-blue);
    text-decoration: underline;
}

.contact-form-side {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
}

.form-wrapper h3 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.form-sub {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 480px) {
    .grid-2-col {
        grid-template-columns: repeat(2, 1fr);
    }
}

textarea.form-control {
    resize: vertical;
}

/* 12. Footer */
.main-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 280px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

.social-links a:hover {
    color: var(--text-primary);
}

.footer-links-col h4 {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-bottom-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom-flex {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* 13. Form Status Message Box */
.form-status-box {
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
    text-align: center;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.form-status-box.success {
    background-color: rgba(12, 230, 130, 0.08);
    border: 1px solid var(--color-accent-green);
    color: var(--color-accent-green);
}

.form-status-box.error {
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid #ef4444;
    color: #ef4444;
}
