/* ===== CSS VARIABLES ===== */
:root {
    --primary: #2563EB;
    --primary-dark: #1D4ED8;
    --primary-light: #3B82F6;
    --secondary: #06B6D4;
    --accent: #10B981;
    --dark: #0A1628;
    --dark-2: #1E293B;
    --dark-3: #334155;
    --text: #334155;
    --text-light: #64748B;
    --white: #FFFFFF;
    --bg-light: #F8FAFC;
    --border: #E2E8F0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.15), 0 10px 10px -5px rgba(0,0,0,0.06);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    --transition: 0.3s ease;
    --font: 'Poppins', sans-serif;
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--white); overflow-x: hidden; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== NAVBAR ===== */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 1.25rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: all var(--transition);
}
.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow);
    padding: 0.85rem 2rem;
}
.nav-logo {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 1.4rem; font-weight: 800; color: var(--white);
    transition: color var(--transition);
}
.nav-logo .tooth-icon { font-size: 1.6rem; }
.navbar.scrolled .nav-logo { color: var(--primary); }

.nav-links { display: flex; align-items: center; gap: 2rem; list-style: none; }
.nav-links a {
    font-weight: 500; color: rgba(255,255,255,0.9);
    transition: color var(--transition); position: relative; font-size: 0.95rem;
}
.navbar.scrolled .nav-links a { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--primary); transition: width var(--transition);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a:hover { color: var(--white); }
.navbar.scrolled .nav-links a:hover { color: var(--primary); }

.nav-cta {
    background: var(--primary) !important; color: var(--white) !important;
    padding: 0.5rem 1.4rem; border-radius: var(--radius-full);
    font-weight: 600 !important; transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--primary-dark) !important; transform: translateY(-2px); box-shadow: 0 4px 15px rgba(37,99,235,0.4); }
.nav-cta::after { display: none !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { width: 24px; height: 2px; background: var(--white); transition: all var(--transition); display: block; }
.navbar.scrolled .hamburger span { background: var(--dark); }

/* ===== MOBILE NAV ===== */
.mobile-nav {
    display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark); z-index: 999; flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--white); font-size: 1.5rem; font-weight: 600; }
.mobile-nav .close-btn { position: absolute; top: 1.5rem; right: 2rem; background: none; border: none; color: var(--white); font-size: 2rem; cursor: pointer; }

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.85rem 2rem; border-radius: var(--radius-full);
    font-weight: 600; font-size: 1rem; border: none; cursor: pointer;
    transition: all var(--transition); font-family: var(--font);
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: var(--white); box-shadow: 0 4px 15px rgba(37,99,235,0.4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.5); }
.btn-white { background: var(--white); color: var(--primary); box-shadow: 0 4px 15px rgba(0,0,0,0.15); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-outline-white { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: rgba(255,255,255,0.12); border-color: var(--white); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }

/* ===== QUICK NAVIGATION (pill-shaped section toggle) ===== */
.btn-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    text-decoration: none;
    border: 2px solid transparent;
    transition: all var(--transition);
    cursor: pointer;
    white-space: nowrap;
}
.btn-nav.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
.btn-nav.active:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    box-shadow: 0 6px 18px rgba(37,99,235,0.35);
    transform: translateY(-2px);
}
.btn-nav.outline {
    background: transparent;
    color: var(--primary);
    border-color: rgba(37,99,235,0.35);
}
.btn-nav.outline:hover {
    background: rgba(37,99,235,0.06);
    border-color: var(--primary);
    color: var(--primary-dark);
    box-shadow: 0 4px 14px rgba(37,99,235,0.18);
    transform: translateY(-2px);
}

/* ===== LAYOUT ===== */
section { padding: 5rem 0; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section-label { display: inline-block; color: var(--primary); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 2.5px; margin-bottom: 0.75rem; }
.section-title { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; color: var(--dark); line-height: 1.2; margin-bottom: 1rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-light); max-width: 600px; line-height: 1.85; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }

/* ===== HOME HERO ===== */
.hero { min-height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; background: var(--dark); padding: 7rem 0 5rem; }
#hero-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.5) 50%, transparent 100%); z-index: 1; }

/* Strict 2-column grid: text on the left, 3D model on the right */
.hero-grid {
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.hero-content { position: relative; z-index: 2; max-width: 36rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.12); backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.18); padding: 0.45rem 1.2rem;
    border-radius: var(--radius-full); color: var(--white); font-size: 0.85rem;
    font-weight: 500; margin-bottom: 1.5rem;
}
.badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #10B981; animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(0.8)} }

.hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; color: var(--white); line-height: 1.12; margin-bottom: 1.4rem; }
.hero h1 .highlight { background: linear-gradient(135deg, #60A5FA, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 1.05rem; color: rgba(255,255,255,0.82); margin-bottom: 2.25rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== SKETCHFAB 3D MODEL CONTAINER ===== */
/* The container is the "window"; the iframe is oversized and offset so the
   Sketchfab UI (top author bar, bottom watermark, side controls) is pushed
   beyond the container's `overflow: hidden` clip. */
.hero-3d {
    position: relative;
    width: 100%;
    height: 520px;
    overflow: hidden;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 0 80px rgba(96, 165, 250, 0.2);
    border: 1px solid rgba(96, 165, 250, 0.15);
    will-change: transform;
    z-index: 2;
}
.hero-3d iframe {
    position: absolute;
    border: 0;
    width: calc(100% + 40px);
    height: calc(100% + 120px);
    top: -60px;
    left: -20px;
    pointer-events: auto;
}
.hero-3d-loading {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: var(--dark);
    color: rgba(255,255,255,0.72);
    font-size: 0.9rem;
    transition: opacity 300ms ease;
}
.hero-3d-loading.is-hidden { opacity: 0; pointer-events: none; }
.hero-3d-spinner {
    width: 56px; height: 56px;
    border: 3px solid rgba(96, 165, 250, 0.18);
    border-top-color: #60a5fa;
    border-radius: 50%;
    animation: hero3d-spin 0.9s linear infinite;
}
@keyframes hero3d-spin { to { transform: rotate(360deg); } }
.hero-3d-loading-text { color: rgba(255,255,255,0.7); font-weight: 500; letter-spacing: 0.02em; }

@media (max-width: 1024px) {
    .hero-grid { gap: 2.5rem; }
    .hero-3d { height: 460px; }
}
@media (max-width: 768px) {
    .hero { padding: 8rem 0 3rem; }
    .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-content { max-width: 100%; }
    .hero-3d { height: 400px; }
}

/* ===== FEATURES ===== */
.features { background: var(--bg-light); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; margin-top: 3rem; }
.feature-card {
    background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem 2rem;
    box-shadow: var(--shadow); transition: all var(--transition); border: 1px solid var(--border);
    position: relative; overflow: hidden;
}
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--primary), var(--secondary)); transform: scaleX(0); transform-origin: left; transition: transform var(--transition); }
.feature-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 64px; height: 64px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 2rem; }
.icon-blue { background: rgba(37,99,235,0.1); }
.icon-cyan { background: rgba(6,182,212,0.1); }
.icon-green { background: rgba(16,185,129,0.1); }
.icon-purple { background: rgba(139,92,246,0.1); }
.icon-orange { background: rgba(249,115,22,0.1); }
.feature-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--dark); margin-bottom: 0.75rem; }
.feature-card p { color: var(--text-light); line-height: 1.8; font-size: 0.95rem; }

/* ===== HOW IT WORKS ===== */
.how-it-works { background: var(--white); }
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4rem; position: relative; }
.steps-row::before { content: ''; position: absolute; top: 45px; left: calc(16.66% + 1rem); width: calc(66.66% - 2rem); height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); z-index: 0; }
.step { text-align: center; position: relative; z-index: 1; }
.step-num {
    width: 90px; height: 90px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white); font-size: 1.6rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; margin: 0 auto 1.5rem;
    box-shadow: 0 8px 24px rgba(37,99,235,0.35); position: relative;
}
.step-num::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px dashed rgba(37,99,235,0.25); animation: spin-slow 20s linear infinite; }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.step h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.step p { color: var(--text-light); font-size: 0.9rem; padding: 0 1rem; }

/* ===== STATS ===== */
.stats { background: linear-gradient(135deg, var(--dark) 0%, #0d2347 100%); position: relative; overflow: hidden; }
.stats::before { content: ''; position: absolute; top: -50%; left: -20%; width: 60%; height: 200%; background: radial-gradient(ellipse, rgba(37,99,235,0.12) 0%, transparent 70%); }
.stats::after { content: ''; position: absolute; bottom: -50%; right: -20%; width: 60%; height: 200%; background: radial-gradient(ellipse, rgba(6,182,212,0.1) 0%, transparent 70%); }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; position: relative; z-index: 1; }
.stat-item { text-align: center; padding: 2.5rem 1.5rem; border-radius: var(--radius-lg); background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: all var(--transition); }
.stat-item:hover { background: rgba(255,255,255,0.08); transform: translateY(-4px); }
.stat-num { font-size: 3.2rem; font-weight: 800; background: linear-gradient(135deg, #60A5FA, #06B6D4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; line-height: 1; margin-bottom: 0.5rem; }
.stat-label { color: rgba(255,255,255,0.65); font-size: 0.9rem; font-weight: 500; }

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-light); }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 3rem; }
.tcard { background: var(--white); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tcard-stars { color: #F59E0B; font-size: 1rem; margin-bottom: 1rem; }
.tcard p { color: var(--text); font-style: italic; line-height: 1.85; margin-bottom: 1.5rem; font-size: 0.95rem; }
.tcard-author { display: flex; align-items: center; gap: 0.75rem; }
.tcard-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); display: flex; align-items: center; justify-content: center; color: var(--white); font-weight: 700; font-size: 1rem; }
.tcard-name { font-weight: 700; font-size: 0.9rem; color: var(--dark); }
.tcard-role { font-size: 0.8rem; color: var(--text-light); }

/* ===== CTA ===== */
.cta-section { background: linear-gradient(135deg, var(--primary) 0%, #0EA5E9 100%); text-align: center; padding: 6rem 0; position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; top: -80px; right: -80px; width: 350px; height: 350px; border-radius: 50%; background: rgba(255,255,255,0.06); }
.cta-section::after { content: ''; position: absolute; bottom: -100px; left: -60px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.04); }
.cta-section h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; position: relative; z-index: 1; }
.cta-section p { color: rgba(255,255,255,0.88); font-size: 1.1rem; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.cta-section .btn-white { position: relative; z-index: 1; }

/* ===== FOOTER ===== */
footer { background: var(--dark); color: rgba(255,255,255,0.65); padding: 5rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 4rem; }
.footer-brand .logo { font-size: 1.4rem; font-weight: 800; color: var(--white); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.footer-brand > p { font-size: 0.9rem; line-height: 1.8; margin-bottom: 1.5rem; }
.footer-social { display: flex; gap: 0.75rem; }
.social-link { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.6); transition: all var(--transition); font-size: 1rem; }
.social-link:hover { background: var(--primary); color: var(--white); transform: translateY(-3px); }
.footer-col h4 { color: var(--white); font-weight: 600; margin-bottom: 1.5rem; font-size: 0.95rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-col ul a { color: rgba(255,255,255,0.55); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: var(--primary-light); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2rem; display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; flex-wrap: wrap; gap: 1rem; }
.footer-bottom a { color: var(--primary-light); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero { padding: 9rem 0 5rem; background: var(--dark); text-align: center; position: relative; overflow: hidden; }
#page-canvas { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; opacity: 0.4; }
.page-hero-content { position: relative; z-index: 2; }
.breadcrumb { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1.25rem; color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.breadcrumb a { color: rgba(255,255,255,0.5); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb .sep { color: rgba(255,255,255,0.25); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.page-hero p { font-size: 1.1rem; color: rgba(255,255,255,0.75); max-width: 580px; margin: 0 auto; line-height: 1.8; }

/* ===== DIAGNOSE PAGE ===== */
.diagnose-section { background: var(--bg-light); }
.diagnose-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.upload-card { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.upload-card h2 { font-size: 1.6rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.upload-card > p { color: var(--text-light); margin-bottom: 2rem; font-size: 0.95rem; }
.upload-drop {
    border: 2px dashed #CBD5E1; border-radius: var(--radius-lg); padding: 3.5rem 2rem;
    text-align: center; transition: all var(--transition); cursor: pointer; position: relative;
    background: var(--bg-light);
}
.upload-drop:hover, .upload-drop.drag-over { border-color: var(--primary); background: rgba(37,99,235,0.03); }
.upload-drop input[type="file"] { display: none; }
.upload-drop .upload-emoji { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: var(--primary); }
.upload-drop .upload-emoji svg { width: 56px; height: 56px; stroke-width: 1.5; }
.upload-drop h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark); margin-bottom: 0.4rem; }
.upload-drop p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.2rem; }
.upload-formats { display: flex; justify-content: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.format-tag { background: rgba(37,99,235,0.08); color: var(--primary); padding: 0.2rem 0.7rem; border-radius: var(--radius-full); font-size: 0.78rem; font-weight: 600; }
#preview-area { margin-top: 1.5rem; display: none; }
#preview-area img { border-radius: var(--radius); max-height: 250px; width: 100%; object-fit: cover; }
.analyze-btn-wrap { margin-top: 1.5rem; text-align: center; }

.result-box { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.result-placeholder { text-align: center; padding: 3rem 1rem; }
.result-placeholder .placeholder-icon { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 1rem; opacity: 0.45; color: var(--text-light); }
.result-placeholder .placeholder-icon svg { width: 56px; height: 56px; }
.result-placeholder h3 { font-size: 1.1rem; font-weight: 700; color: var(--dark-3); margin-bottom: 0.5rem; }
.result-placeholder p { color: var(--text-light); font-size: 0.9rem; }

.diagnose-steps-panel { background: var(--white); border-radius: var(--radius-lg); padding: 2.5rem; box-shadow: var(--shadow); border: 1px solid var(--border); margin-top: 2rem; }
.diagnose-steps-panel h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark); margin-bottom: 1.5rem; }
.d-steps { display: flex; flex-direction: column; gap: 1.25rem; }
.d-step { display: flex; gap: 1rem; align-items: flex-start; }
.d-step-num { width: 36px; height: 36px; min-width: 36px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--secondary)); color: var(--white); font-weight: 700; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.d-step-text h4 { font-weight: 600; color: var(--dark); font-size: 0.95rem; margin-bottom: 0.2rem; }
.d-step-text p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ===== ABOUT PAGE ===== */
.about-mission { padding: 6rem 0; }
.about-block { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; margin-bottom: 6rem; }
.about-block:last-child { margin-bottom: 0; }
.about-block.reverse .about-image { order: -1; }
.about-text h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.about-text p { color: var(--text-light); line-height: 1.9; margin-bottom: 1.25rem; font-size: 0.98rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-image { border: 1px solid #E2E8F0; border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; box-shadow: 0 4px 24px rgba(0,0,0,0.07); }
.about-image img { display: block; width: 100%; height: 100%; object-fit: cover; }

.values-section { background: var(--bg-light); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; margin-top: 3rem; }
.value-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2rem 1.5rem; transition: all var(--transition); }
.value-card:hover { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); transform: translateY(-4px); }
.value-emoji { font-size: 2.2rem; margin-bottom: 1rem; }
.value-card h4 { font-weight: 700; color: var(--dark); margin-bottom: 0.5rem; }
.value-card p { color: var(--text-light); font-size: 0.88rem; line-height: 1.7; }

.team-section { padding: 5rem 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2rem; margin-top: 3rem; }
.team-card { background: var(--white); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); transition: all var(--transition); text-align: center; }
.team-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.team-photo { aspect-ratio: 1; background: linear-gradient(135deg, #DBEAFE, #BAE6FD); display: flex; align-items: center; justify-content: center; font-size: 4rem; opacity: 0.5; }
.team-info { padding: 1.5rem; }
.team-info h4 { font-weight: 700; color: var(--dark); margin-bottom: 0.3rem; }
.team-info .team-role { color: var(--primary); font-size: 0.85rem; font-weight: 600; margin-bottom: 0.5rem; display: block; }
.team-info p { color: var(--text-light); font-size: 0.85rem; line-height: 1.6; }

/* ===== CONTACT PAGE ===== */
.contact-section { padding: 5rem 0; background: var(--bg-light); }
.contact-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 4rem; align-items: start; }
.contact-info-panel h2 { font-size: 2rem; font-weight: 800; color: var(--dark); margin-bottom: 1rem; }
.contact-info-panel > p { color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.85; }
.contact-items { display: flex; flex-direction: column; gap: 1.5rem; margin-bottom: 2.5rem; }
.c-item { display: flex; gap: 1rem; align-items: flex-start; }
.c-icon { width: 48px; height: 48px; min-width: 48px; border-radius: var(--radius); background: rgba(37,99,235,0.1); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.c-icon svg { width: 22px; height: 22px; }
.c-text h4 { font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; font-size: 0.95rem; }
.c-text p { color: var(--text-light); font-size: 0.9rem; line-height: 1.6; }
.contact-social h4 { font-weight: 700; color: var(--dark); margin-bottom: 1rem; font-size: 0.95rem; }
.contact-social .footer-social { justify-content: flex-start; }
/* Override: contact section is on a light bg, so social icons must be dark/coloured */
.contact-social .social-link {
    background: rgba(37,99,235,0.1);
    color: var(--primary);
}
.contact-social .social-link:hover {
    background: var(--primary);
    color: var(--white);
}

.contact-form-card { background: var(--white); border-radius: var(--radius-lg); padding: 3rem; box-shadow: var(--shadow-xl); border: 1px solid var(--border); }
.contact-form-card h3 { font-size: 1.5rem; font-weight: 800; color: var(--dark); margin-bottom: 0.5rem; }
.contact-form-card > p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.4rem; }
.form-group label { display: block; font-weight: 600; color: var(--dark); margin-bottom: 0.45rem; font-size: 0.85rem; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 0.85rem 1.2rem; border: 2px solid var(--border);
    border-radius: var(--radius); font-family: var(--font); font-size: 0.9rem;
    color: var(--text); transition: all var(--transition); background: var(--bg-light); outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color: var(--primary); background: var(--white); box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success { display: none; background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); border-radius: var(--radius); padding: 1rem 1.5rem; color: #065F46; font-weight: 500; margin-top: 1rem; text-align: center; }

/* ===== BRAND WORDMARK ===== */
.brand-text { font-family: var(--font); font-weight: 800; letter-spacing: -0.01em; line-height: 1; display: inline-flex; align-items: baseline; }
.brand-den { color: var(--white); }
.brand-10  { color: #3B82F6; }
.navbar.scrolled .brand-den { color: var(--dark); }

/* ===== STAR RATINGS ===== */
.tcard-stars { display: flex; align-items: center; gap: 2px; margin-bottom: 1rem; }
.tcard-stars svg { width: 18px; height: 18px; }

/* ===== ANIMATIONS ===== */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ===== UNIFIED CARD HOVER EFFECTS ===== */
/* Placed after .fade-up so hover transform wins over .fade-up.visible */
.feature-card,
.tcard,
.value-card,
.faq-item,
.cond-card,
.team-card {
    border: 1px solid var(--border);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover,
.tcard:hover,
.value-card:hover,
.faq-item:hover,
.cond-card:hover,
.team-card:hover,
.fade-up.visible.feature-card:hover,
.fade-up.visible.tcard:hover,
.fade-up.visible.value-card:hover,
.fade-up.visible.faq-item:hover,
.fade-up.visible.cond-card:hover,
.fade-up.visible.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(37, 99, 235, 0.12);
    border-color: #93C5FD;
    cursor: pointer;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .diagnose-layout, .about-block, .contact-layout { grid-template-columns: 1fr; gap: 2rem; }
    .about-block.reverse .about-image { order: 0; }
    .steps-row { grid-template-columns: 1fr; }
    .steps-row::before { display: none; }
}
@media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .form-row { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    section { padding: 3.5rem 0; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .contact-form-card { padding: 2rem; }
}
@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .container { padding: 0 1.25rem; }
}
