/**
 * Dentalls - Next-Gen Dental Operating System B2B Styling
 * Modern Health-Tech SaaS Design System
 */

:root {
    --bg-primary: #0b1329;
    --bg-secondary: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #24344d;
    --text-primary: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --cyan-primary: #06b6d4;
    --cyan-hover: #0891b2;
    --teal-primary: #14b8a6;
    --emerald-success: #10b981;
    --purple-accent: #8b5cf6;
    --amber-warning: #f59e0b;
}

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

body {
    background-color: var(--bg-secondary);
    color: var(--text-primary);
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base SVG, Image and Icon Resizing Protection */
svg {
    max-width: 100%;
    vertical-align: middle;
}

img {
    max-width: 100%;
    vertical-align: middle;
    backface-visibility: hidden;
}

/* Typography Helpers */
.gradient-text {
    background: linear-gradient(135deg, #38bdf8 0%, #06b6d4 50%, #2dd4bf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
    background: linear-gradient(135deg, #c084fc 0%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Layout & Paint Isolation for Silky Smooth 60-144 FPS Scrolling */
section {
    contain: layout style;
}

/* Glass & Card Components (Optimized for 60 FPS Stutter-Free Scrolling) */
.glass-panel {
    background: #1e293b;
    border: 1px solid rgba(51, 65, 85, 0.7);
    border-radius: 1.25rem;
}

.glass-panel-glow {
    background: #0f172a;
    border: 1px solid rgba(6, 182, 212, 0.35);
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px -15px rgba(6, 182, 212, 0.15);
}

.card-hover {
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    backface-visibility: hidden;
    transform: translateZ(0);
}
.card-hover:hover {
    transform: translateY(-4px) translateZ(0);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 16px 32px -8px rgba(6, 182, 212, 0.2);
}

/* Navigation Links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #94a3b8;
    border-radius: 0.5rem;
    transition: color 0.15s ease, background-color 0.15s ease;
    text-decoration: none;
}
.nav-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}
.nav-link.active {
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #94a3b8;
    border-radius: 0.75rem;
    text-decoration: none;
    transition: color 0.15s ease, background-color 0.15s ease;
}
.mobile-nav-link:hover, .mobile-nav-link.active {
    color: #38bdf8;
    background: rgba(6, 182, 212, 0.12);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35);
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary:hover {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    box-shadow: 0 6px 20px rgba(6, 182, 212, 0.45);
    transform: translateY(-1px) translateZ(0);
    color: #ffffff;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: #f1f5f9;
    background: rgba(30, 41, 59, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.9);
    border-radius: 0.75rem;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
    background: rgba(51, 65, 85, 0.9);
    border-color: rgba(6, 182, 212, 0.5);
    color: #ffffff;
}

/* Badges & Pills */
.badge-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 9999px;
}

/* Interactive Sliders (ROI Calculator) */
.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 8px;
    border-radius: 9999px;
    background: #334155;
    outline: none;
    transition: background 0.2s;
}
.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    border: 3px solid #0f172a;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
    transition: transform 0.15s, background 0.15s;
}
.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    background: #22d3ee;
}
.range-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #06b6d4;
    cursor: pointer;
    border: 3px solid #0f172a;
    box-shadow: 0 0 12px rgba(6, 182, 212, 0.6);
}

/* Module Icon Boxes */
.feature-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Dental Odontogram Tooth Grid Representation */
.tooth-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 48px;
    border-radius: 8px;
    border: 1px solid #334155;
    background: #1e293b;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.15s ease, border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.tooth-badge:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.15);
    color: #38bdf8;
    transform: translateY(-2px) translateZ(0);
}
.tooth-badge.has-treatment {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.2);
    color: #22d3ee;
}

/* FAQ Accordion */
.faq-item {
    border: 1px solid rgba(51, 65, 85, 0.8);
    background: rgba(30, 41, 59, 0.6);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.faq-item.active {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(30, 41, 59, 0.95);
}
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-align: left;
    background: none;
    border: none;
    color: #f1f5f9;
    cursor: pointer;
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 1.5rem;
    color: #94a3b8;
    font-size: 0.9375rem;
    line-height: 1.6;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding: 0 1.5rem 1.25rem 1.5rem;
}
.faq-chevron {
    transition: transform 0.3s ease;
}
.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: #06b6d4;
}

/* Animations */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-8px); }
}
.animate-float {
    animation: floatSlow 5s ease-in-out infinite;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #0f172a;
}
::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #06b6d4;
}
