/* ==========================================================================
   b3 digital - Minimalist System Stylesheet v5.0
   Clean, refined dark slate aesthetic for modern enterprise TI
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties & Design Tokens
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette (Monochrome Slate & Deep Tech Blue) */
    --bg-dark: #09090b;       /* Pure Zinc 950 */
    --bg-surface: #121215;    /* Zinc 900 adjusted */
    --bg-card: rgba(18, 18, 22, 0.8);
    --bg-card-hover: rgba(26, 26, 32, 0.95);
    
    --color-primary: #3b82f6; /* Sophisticated Blue */
    --color-accent: #60a5fa;  /* Muted Accent Blue */
    --color-primary-glow: rgba(59, 130, 246, 0.08);
    --color-accent-glow: rgba(96, 165, 250, 0.05);
    
    --text-main: #f4f4f5;     /* Zinc 100 */
    --text-muted: #a1a1aa;    /* Zinc 400 */
    --text-dim: #71717a;      /* Zinc 500 */

    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-highlight: rgba(255, 255, 255, 0.12);
    
    --status-success: #10b981;
    --status-warning: #f59e0b;
    --status-danger: #ef4444;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Transitions & Spacing */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    --shadow-flat: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

/* --------------------------------------------------------------------------
   2. Reset & Baseline
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-main);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-highlight);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-dim);
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Layout Containers
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 7rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.hidden { display: none !important; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-5 { margin-bottom: 3rem; }

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

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

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

.grid-4-cols {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

/* Minimalist Glass Card */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-flat);
    transition: var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--border-highlight);
}

/* Flat Badges */
.badge-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
}

.tag-success {
    background: rgba(16, 185, 129, 0.05);
    border-color: rgba(16, 185, 129, 0.15);
    color: var(--status-success);
}

.tag-warning {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.15);
    color: var(--status-warning);
}

.tag-danger {
    background: rgba(239, 68, 68, 0.05);
    border-color: rgba(239, 68, 68, 0.15);
    color: var(--status-danger);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: var(--color-accent);
    border-radius: 50%;
}

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

.btn-primary {
    background-color: #fafafa;
    color: #09090b;
}

.btn-primary:hover {
    background-color: #e4e4e7;
}

.btn-outline {
    background-color: transparent;
    border-color: var(--border-highlight);
    color: var(--text-main);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.04);
    border-color: var(--text-main);
}

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

.btn-accent:hover {
    background-color: #2563eb;
}

.btn-lg {
    padding: 0.8rem 1.6rem;
    font-size: 0.95rem;
}

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

.link-btn {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-accent);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.link-btn:hover {
    color: var(--text-main);
}

/* --------------------------------------------------------------------------
   5. Navigation Header
   -------------------------------------------------------------------------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    background: transparent;
    transition: var(--transition-normal);
}

.navbar.scrolled {
    padding: 0.85rem 0;
    background: rgba(9, 9, 11, 0.95);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
}

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

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.logo-badge {
    background: #ffffff;
    color: #000000;
    font-weight: 800;
    font-size: 1.1rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.logo-dot {
    color: var(--color-primary);
}

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

.nav-item {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

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

.nav-cta {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
}

.mobile-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-main);
    transition: var(--transition-fast);
}

/* --------------------------------------------------------------------------
   6. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    padding: 10rem 0 7rem 0;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
    overflow: hidden;
}

.hero-grid {
    align-items: center;
}

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

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.gradient-text {
    background: linear-gradient(180deg, #ffffff 0%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 580px;
}

.hero-cta-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.hero-trust-indicators {
    display: flex;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-dim);
}

.hero-visual-wrapper {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Schematic Vector Container instead of heavy AI render */
.hero-image-container {
    width: 100%;
    max-width: 500px;
    aspect-ratio: 1.1;
    padding: 2rem;
    border-radius: var(--radius-md);
    background: rgba(18, 18, 22, 0.4);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
}

.schematic-svg {
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.schematic-node {
    fill: var(--bg-dark);
    stroke: var(--border-highlight);
    stroke-width: 1.5px;
    transition: var(--transition-fast);
}

.schematic-node:hover {
    stroke: var(--color-primary);
}

.schematic-line {
    stroke: var(--border-subtle);
    stroke-width: 1.5px;
    stroke-dasharray: 4;
    animation: dash 30s linear infinite;
}

@keyframes dash {
    to {
        stroke-dashoffset: -1000;
    }
}

/* Floating Clean Badges */
.floating-badge {
    position: absolute;
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: var(--shadow-flat);
}

.badge-top {
    top: -1rem;
    right: 2rem;
}

.badge-bottom {
    bottom: -1rem;
    left: 2rem;
}

.badge-icon {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.badge-val {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-main);
}

.badge-lbl {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   7. Metrics Strip
   -------------------------------------------------------------------------- */
.metrics-strip {
    background: rgba(18, 18, 22, 0.3);
    border-bottom: 1px solid var(--border-subtle);
    padding: 3rem 0;
}

.metric-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
    color: var(--text-main);
}

.metric-unit {
    font-size: 1.5rem;
    color: var(--color-accent);
    font-weight: 700;
}

.metric-currency {
    font-size: 1.8rem;
    color: var(--text-muted);
    font-weight: 600;
}

.metric-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    max-width: 200px;
}

/* --------------------------------------------------------------------------
   8. Section Headers
   -------------------------------------------------------------------------- */
.section-eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-top: 0.5rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0.5rem auto 0 auto;
}

/* --------------------------------------------------------------------------
   9. Pillars & Service Cards
   -------------------------------------------------------------------------- */
.pillar-cards {
    margin-top: 4rem;
}

.pillar-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    position: relative;
    height: 100%;
}

.highlighted-pillar {
    border-color: rgba(255,255,255,0.15);
    background: rgba(22, 22, 26, 0.9);
}

.pillar-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    margin-bottom: 1.5rem;
}

.pillar-tag {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pillar-title {
    font-size: 1.4rem;
    margin-top: 0.25rem;
}

.pillar-desc {
    font-size: 0.85rem;
    color: var(--color-accent);
    margin-bottom: 1.25rem;
}

.pillar-main-message {
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-main);
    background: rgba(255,255,255,0.02);
    border-left: 2px solid var(--border-highlight);
    padding-left: 1rem;
    margin-bottom: 1.5rem;
}

.pillar-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-bottom: 2rem;
}

.pillar-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.pillar-list li svg {
    flex-shrink: 0;
    color: var(--color-primary);
    margin-top: 3px;
}

.pillar-footer {
    margin-top: auto;
}

/* --------------------------------------------------------------------------
   10. Sector Toggle Switcher
   -------------------------------------------------------------------------- */
.toggle-switch-container {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    margin-top: 2rem;
}

.toggle-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 0.5rem 1.25rem;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.toggle-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

.sector-cards-grid {
    margin-top: 4rem;
    animation: fadeIn 0.4s ease;
}

.sector-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.sector-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.sector-card h4 {
    font-size: 1.15rem;
}

.sector-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Cuestionario de Cumplimiento Ley Chile
   -------------------------------------------------------------------------- */
.compliance-quiz-flow {
    margin-top: 3rem;
}

.quiz-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-full);
    margin-bottom: 3rem;
    overflow: hidden;
}

.quiz-progress-fill {
    height: 100%;
    background: var(--color-primary);
    transition: width 0.3s ease;
}

.quiz-step {
    display: none;
}

.quiz-step.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.quiz-step h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.quiz-step-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.quiz-options-vertical {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-radio-option input[type="radio"] {
    display: none;
}

.quiz-radio-box {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    transition: var(--transition-fast);
}

.quiz-radio-box strong {
    font-size: 1rem;
    color: var(--text-main);
}

.quiz-radio-box span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.quiz-radio-option input:checked + .quiz-radio-box {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--color-accent);
}

/* Consent Checkbox */
.consent-checkbox-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.consent-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
}

.consent-checkbox-label input[type="checkbox"] {
    display: none;
}

.custom-checkbox {
    width: 18px;
    height: 18px;
    border-radius: 3px;
    border: 1.5px solid var(--text-dim);
    flex-shrink: 0;
    position: relative;
    transition: var(--transition-fast);
    margin-top: 3px;
}

.consent-checkbox-label input:checked + .custom-checkbox {
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.consent-checkbox-label input:checked + .custom-checkbox::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: bold;
}

.consent-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}

/* Compliance Results */
.result-header {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 3rem;
}

.score-circle {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 3px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.score-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

.score-lbl {
    font-size: 0.6rem;
    color: var(--text-muted);
}

.result-recommendations h4 {
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.rec-card {
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
}

.rec-card h5 {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
}

.rec-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   12. B3 Idea Validator & Calculadora
   -------------------------------------------------------------------------- */
.tool-wrapper {
    padding: 3rem;
}

.tool-header {
    margin-bottom: 2.5rem;
}

.tool-title {
    font-size: 2rem;
    margin-top: 0.5rem;
}

.tool-subtitle {
    color: var(--text-muted);
    max-width: 600px;
    margin: 0.5rem auto 0 auto;
    font-size: 0.95rem;
}

/* B3 Idea Validator */
.validator-input-box {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.input-label {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
}

.validator-input-box textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    resize: vertical;
    transition: var(--transition-fast);
}

.validator-input-box textarea:focus {
    outline: none;
    border-color: var(--text-main);
}

.preset-pills {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.pill-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}

.preset-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-fast);
}

.preset-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
}

/* Validator Result Output */
.validator-result-panel {
    animation: fadeIn 0.4s ease;
}

.result-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 2rem 0;
}

.validator-metrics-grid {
    margin: 1.5rem 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.val-metric-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 1.25rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.val-lbl {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.val-val {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.2rem 0;
}

.val-sub {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.glass-card-nested {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.roadmap-summary-box h5 {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.roadmap-summary-box p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.cta-prompt {
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
}

/* Calculadora de Impacto B3 */
.calc-grid {
    align-items: flex-start;
}

.calc-inputs-panel {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.range-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.range-label-row {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.range-value-display {
    color: var(--text-main);
    font-weight: 700;
}

input[type="range"] {
    width: 100%;
    accent-color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    height: 4px;
    border-radius: 2px;
    cursor: pointer;
}

.range-ticks {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.calc-output-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.loss-summary-box {
    background: rgba(239, 68, 68, 0.02);
    border: 1px solid rgba(239, 68, 68, 0.1);
    padding: 1rem;
    border-radius: var(--radius-sm);
}

.stat-title {
    display: block;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
}

.text-danger { color: var(--status-danger); }
.text-success { color: var(--status-success); }
.text-accent { color: var(--color-accent); }

.savings-highlight-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    padding: 1.25rem;
    text-align: center;
}

.savings-badge-pill {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    margin-bottom: 0.4rem;
}

.savings-title {
    font-size: 1.25rem;
    color: var(--text-muted);
}

.savings-amount {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0.1rem 0;
}

.savings-sub {
    font-size: 0.78rem;
    color: var(--text-dim);
}

/* --------------------------------------------------------------------------
   13. Blog Section
   -------------------------------------------------------------------------- */
.blog-filters-bar {
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 1.25rem;
}

.blog-cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.cat-filter-btn {
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    padding: 0.35rem 0.95rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.8rem;
    transition: var(--transition-fast);
}

.cat-filter-btn.active, .cat-filter-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--text-main);
    color: var(--text-main);
}

.blog-search-box input {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-size: 0.85rem;
    width: 200px;
    transition: var(--transition-fast);
}

.blog-search-box input:focus {
    outline: none;
    border-color: var(--text-main);
}

/* Public Article Cards */
.blog-card {
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-2px);
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.blog-card-cat {
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.blog-card-title {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
    line-height: 1.35;
}

.blog-card-excerpt {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    flex-grow: 1;
}

/* Admin Dashboard Table */
.admin-table-wrapper {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
}

.admin-table th, .admin-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-subtle);
}

.admin-table th {
    background: #0f0f11;
    color: var(--text-muted);
    font-weight: 600;
    position: sticky;
    top: 0;
}

.btn-delete {
    background: rgba(239, 68, 68, 0.05);
    color: var(--status-danger);
    border: 1px solid rgba(239, 68, 68, 0.15);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.7rem;
    transition: var(--transition-fast);
}

.btn-delete:hover {
    background: var(--status-danger);
    color: #fff;
}

/* --------------------------------------------------------------------------
   14. Contact Form Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: start;
}

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

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

.detail-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.contact-form-wrapper {
    padding: 2.5rem;
}

.form-title {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-group input, .form-group textarea, .custom-select {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus, .custom-select:focus {
    outline: none;
    border-color: var(--text-main);
}

.form-status {
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    background: rgba(16, 185, 129, 0.05);
    border: 1px solid rgba(16, 185, 129, 0.15);
    color: var(--status-success);
    font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */
.footer {
    background: #060608;
    border-top: 1px solid var(--border-subtle);
    padding: 4rem 0 2rem 0;
}

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

.footer-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 0.75rem;
    max-width: 280px;
}

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

.footer-col h4 {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 1.5rem;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.8rem;
}

/* --------------------------------------------------------------------------
   16. Minimalist AI Chat Widget
   -------------------------------------------------------------------------- */
.ai-chat-widget {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 2000;
}

.chat-toggle-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border-radius: var(--radius-sm);
    background: #09090b;
    color: #ffffff;
    border: 1px solid var(--border-highlight);
    box-shadow: var(--shadow-flat);
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition-fast);
}

.chat-toggle-btn:hover {
    border-color: #ffffff;
}

.chat-window {
    position: absolute;
    bottom: 3.5rem;
    right: 0;
    width: 350px;
    height: 480px;
    background: #09090b;
    border: 1px solid var(--border-highlight);
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.2s ease;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1rem;
    background: #121215;
    border-bottom: 1px solid var(--border-subtle);
}

.chat-avatar {
    width: 28px;
    height: 28px;
    border-radius: 3px;
    background: #ffffff;
    color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.75rem;
}

.online-status {
    display: block;
    font-size: 0.65rem;
    color: var(--status-success);
}

.close-chat-btn {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

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

.msg {
    max-width: 85%;
    padding: 0.65rem 0.85rem;
    border-radius: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.bot-msg {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-main);
    align-self: flex-start;
    border: 1px solid var(--border-subtle);
}

.user-msg {
    background: #ffffff;
    color: #000000;
    align-self: flex-end;
}

.chat-quick-actions {
    display: flex;
    gap: 0.4rem;
    padding: 0.4rem 0.85rem;
    overflow-x: auto;
    background: #121215;
    border-top: 1px solid var(--border-subtle);
}

.quick-btn {
    white-space: nowrap;
    background: transparent;
    border: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 0.7rem;
    padding: 0.25rem 0.6rem;
    border-radius: 3px;
    cursor: pointer;
}

.quick-btn:hover {
    border-color: var(--text-main);
    color: var(--text-main);
}

.chat-input-bar {
    display: flex;
    padding: 0.65rem 0.85rem;
    background: #121215;
    border-top: 1px solid var(--border-subtle);
    gap: 0.4rem;
}

.chat-input-bar input {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    color: var(--text-main);
    font-size: 0.8rem;
}

.chat-input-bar input:focus {
    outline: none;
    border-color: var(--text-muted);
}

.send-chat-btn {
    background: #ffffff;
    color: #000000;
    border: none;
    border-radius: 4px;
    width: 28px;
    height: 28px;
    cursor: pointer;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   17. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid, .grid-2-cols, .contact-grid, .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .grid-3-cols {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .tool-wrapper {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-surface);
        flex-direction: column;
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .grid-4-cols {
        grid-template-columns: repeat(2, 1fr);
    }

    .floating-badge {
        display: none;
    }

    .toggle-switch-container {
        flex-direction: column;
        width: 100%;
    }

    .chat-window {
        width: 90vw;
        right: 5vw;
    }
}
