
/* Reset and Base Styles */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
    --primary-red: #dc2626;
    --primary-orange: #ff6b35;
    --glass-bg: rgba(10, 10, 10, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-gradient: linear-gradient(135deg, #ff6b35, #dc2626);
}
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: #000;
    overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

.master-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh;
    z-index: -1;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.7)),
                url('../images/p300-background.webp') center/cover;
    filter: brightness(0.6);
}

.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.header {
    background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}
.nav-container {
    display:flex; justify-content:space-between; align-items:center;
    width:100%; max-width:1400px; margin:0 auto; padding:0 20px;
}
.logo h1 {
    font-size:1.8rem; font-weight:700; margin-bottom:0.25rem;
    background:linear-gradient(135deg,#ff6b35,#f9ca24);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}
.logo .tagline { font-size:0.85rem; opacity:0.9; font-weight:300; color:#b8c6db; }

.hamburger {
    display:flex; flex-direction:column; cursor:pointer; padding:0.5rem;
}
.hamburger span {
    width:25px; height:3px; background:white; margin:3px 0;
    transition:all 0.3s ease; border-radius:2px;
}
.drawer-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,0.5);
    opacity:0; visibility:hidden; transition:opacity .25s ease, visibility .25s ease;
    z-index:999;
}
.drawer-overlay.show { opacity:1; visibility:visible; }

.dropdown { position:relative; }

.nav-menu {
    position:fixed; top:0; left:0; height:100vh; width:320px;
    max-width:min(86vw,420px);
    background:linear-gradient(135deg,#0f2027,#203a43);
    color:#fff; padding:calc(16px + env(safe-area-inset-top)) 18px 24px;
    transform:translateX(-100%); transition:transform .28s ease;
    z-index:1000; display:flex; flex-direction:column; gap:0.5rem;
    overflow-y:auto; -webkit-overflow-scrolling:touch;
    box-shadow:2px 0 30px rgba(0,0,0,.35);
    border-right:1px solid rgba(255,255,255,0.08);
}
.nav-menu.open { transform:translateX(0); }

.drawer-head {
    display:flex; align-items:center; justify-content:space-between;
    padding:6px 2px 12px;
    border-bottom:1px solid rgba(255,255,255,0.08);
    margin-bottom:8px; position:sticky; top:0;
    background:linear-gradient(135deg,#0f2027,#203a43); z-index:1;
}
.drawer-title { font-weight:700; letter-spacing:.3px; color:#e5efff; }
.drawer-close {
    background:transparent; border:0; color:#fff; font-size:1.6rem;
    line-height:1; padding:4px 8px; cursor:pointer; border-radius:8px;
}
.drawer-close:hover { background:rgba(255,255,255,0.08); }

.nav-menu li { list-style:none; }

.nav-menu > li > a,
.nav-menu > li > .dropdown-toggle {
    display:flex; align-items:center; justify-content:space-between;
    gap:.6rem; color:#fff; text-decoration:none; font-weight:600;
    padding:12px 10px; border-radius:10px;
    transition:background .2s ease, transform .2s ease;
}
.nav-menu > li > a:hover,
.nav-menu > li > .dropdown-toggle:hover {
    background:rgba(255,255,255,0.08); transform:translateX(2px);
}
.nav-menu a.btn-primary {
    background:linear-gradient(135deg,#ff6b35,#ff8c42);
    color:#fff; padding:12px 16px; border-radius:12px;
    text-align:center; box-shadow:0 4px 15px rgba(255,107,53,0.3);
    margin-top:6px;
}
.dropdown-toggle { cursor:pointer; }
.dropdown-toggle::after {
    content:'▸'; font-size:.9rem; opacity:.9;
    transition:transform .2s ease; margin-left:.2rem;
}
.dropdown.open .dropdown-toggle::after { transform:rotate(90deg); }

.dropdown-menu {
    overflow:hidden; max-height:0; transition:max-height .25s ease;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:10px; margin:4px 0 8px;
}
.dropdown.open .dropdown-menu {
    max-height:80vh; overflow-y:auto; -webkit-overflow-scrolling:touch;
}
.dropdown-menu::-webkit-scrollbar { width:4px; }
.dropdown-menu::-webkit-scrollbar-track {
    background:rgba(255,255,255,0.05); border-radius:2px;
}
.dropdown-menu::-webkit-scrollbar-thumb {
    background:rgba(255,107,53,0.6); border-radius:2px;
}
.dropdown-menu { scrollbar-width:thin; scrollbar-color:rgba(255,107,53,0.6) rgba(255,255,255,0.05); }
.dropdown-menu a {
    display:block; padding:10px 12px; color:#f7fafc; text-decoration:none;
    font-weight:500; border-top:1px solid rgba(255,255,255,0.06);
}
.dropdown-menu a:first-child { border-top:0; }
.dropdown-menu a:hover { background:rgba(255,255,255,0.08); }
.nav-menu a::after { display:none !important; }

.main-content { position:relative; z-index:1; padding-top:80px; }

.hero-section {
    min-height:100vh; display:flex; align-items:center; justify-content:center;
    padding:4rem 2rem; position:relative;
}
.hero-glass {
    border:1px solid var(--glass-border); border-radius:30px;
    padding:4rem 3rem; max-width:1200px; margin:0 auto;
    box-shadow:0 25px 50px rgba(0,0,0,0.5); text-align:center;
}
.hero-content h1 {
    font-size:4rem; font-weight:900;
    background:linear-gradient(135deg,#fff,#ff6b35,#dc2626);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text; margin-bottom:1.5rem; line-height:1.1;
}
.hero-subtitle {
    font-size:1.4rem; color:var(--text-secondary);
    margin-bottom:2.5rem; font-weight:300; max-width:900px;
    margin-left:auto; margin-right:auto;
}
.hero-stats {
    display:grid; grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
    gap:1.5rem; margin-bottom:2.5rem;
}
.stat-card {
    background:rgba(255,255,255,0.03);
    backdrop-filter:blur(8px);
    border:1px solid var(--glass-border);
    padding:1.5rem; border-radius:15px;
    transition:all 0.3s ease;
}
.stat-card:hover {
    transform:translateY(-5px);
    background:rgba(255,255,255,0.05);
    border-color:var(--primary-orange);
}
.stat-number {
    font-size:2.2rem; font-weight:800;
    background:var(--accent-gradient);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text;
}
.stat-label { color:var(--text-secondary); font-size:0.9rem; margin-top:0.3rem; }

.hero-buttons {
    display:flex; gap:1.5rem; justify-content:center;
    flex-wrap:wrap; margin-bottom:2rem;
}
.btn-primary {
    background:linear-gradient(135deg,#ff6b35,#ff8c42);
    color:white !important; padding:1rem 2rem; border-radius:50px;
    text-decoration:none; font-weight:600; font-size:1rem;
    transition:all 0.3s ease; border:none; cursor:pointer;
    display:inline-block; box-shadow:0 4px 15px rgba(255,107,53,0.3);
}
.btn-primary:hover {
    transform:translateY(-3px);
    box-shadow:0 8px 25px rgba(255,107,53,0.4);
}
.btn-secondary {
    background:transparent; color:#dc2626;
    padding:1rem 2rem; border:2px solid #dc2626;
    border-radius:50px; text-decoration:none;
    font-weight:600; font-size:1rem; transition:all 0.3s ease;
    display:inline-block;
}
.btn-secondary:hover {
    background:#dc2626; color:white; transform:translateY(-2px);
}

.glass-section {
    border:1px solid rgba(255,255,255,0.08);
    border-radius:30px; padding:5rem 3rem;
    margin:4rem auto; max-width:1400px;
    box-shadow:0 25px 50px rgba(0,0,0,0.5);
}
.section-title {
    font-size:3.2rem; font-weight:800; text-align:center;
    background:var(--accent-gradient);
    -webkit-background-clip:text; -webkit-text-fill-color:transparent;
    background-clip:text; margin-bottom:1rem;
}
.section-subtitle {
    text-align:center; font-size:1.2rem; color:var(--text-secondary);
    margin-bottom:3rem; max-width:900px; margin-left:auto; margin-right:auto;
}

.private-services-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(380px,1fr));
    gap:2rem; margin-top:3rem;
}
.private-service-card {
    background:rgba(30,30,30,0.3);
    backdrop-filter:blur(8px);
    border:1px solid var(--glass-border);
    padding:2.5rem; border-radius:20px;
    transition:all 0.3s ease; position:relative; overflow:hidden;
}
.private-service-card::before {
    content:''; position:absolute; top:0; left:0; right:0; height:3px;
    background:var(--accent-gradient); transform:scaleX(0);
    transition:transform 0.3s ease;
}
.private-service-card:hover::before { transform:scaleX(1); }
.private-service-card:hover {
    transform:translateY(-10px);
    background:rgba(40,40,40,0.4);
    border-color:var(--primary-orange);
    box-shadow:0 20px 40px rgba(220,38,38,0.2);
}
.service-icon {
    font-size:3rem; color:var(--primary-orange);
    margin-bottom:1.5rem; display:block;
}
.private-service-card h3 {
    color:var(--primary-orange); font-size:1.6rem;
    font-weight:700; margin-bottom:1rem;
}
.private-service-card p {
    color:var(--text-secondary); line-height:1.7; margin-bottom:1.5rem;
}
.service-features { list-style:none; margin:1.5rem 0; }
.service-features li {
    color:var(--text-secondary);
    padding:0.5rem 0; padding-left:2rem; position:relative;
}
.service-features li::before {
    content:"✓"; position:absolute; left:0;
    color:var(--primary-orange); font-weight:bold;
}
.price-badge {
    background:linear-gradient(135deg,#22c55e,#16a34a);
    color:white; padding:0.8rem 1.5rem;
    border-radius:20px; font-weight:700;
    margin:1rem 0; display:inline-block;
    font-size:1.1rem;
}

.why-p300-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(300px,1fr));
    gap:2rem; margin-top:3rem;
}
.benefit-card {
    background:rgba(30,30,30,0.3);
    backdrop-filter:blur(8px);
    border:1px solid var(--glass-border);
    padding:2rem; border-radius:15px; text-align:center;
    transition:all 0.3s ease;
}
.benefit-card:hover {
    transform:translateY(-5px);
    background:rgba(40,40,40,0.4);
    border-color:var(--primary-orange);
}
.benefit-icon {
    font-size:2.5rem; color:var(--primary-orange);
    margin-bottom:1rem;
}
.benefit-card h4 {
    color:var(--text-primary); font-size:1.2rem;
    font-weight:700; margin-bottom:1rem;
}
.benefit-card p { color:var(--text-secondary); line-height:1.6; }

.confidentiality-section {
    border-radius:30px; padding:4rem 3rem;
    margin:4rem auto; max-width:1200px; text-align:center;
}
.confidentiality-content h2 {
    font-size:2.8rem; font-weight:800;
    color:white; margin-bottom:1.5rem;
}
.confidentiality-features {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(250px,1fr));
    gap:2rem; margin:2rem 0;
}
.confidentiality-feature {
    background:rgba(255,255,255,0.1);
    padding:1.5rem; border-radius:15px;
    border:1px solid var(--glass-border);
}
.confidentiality-feature i {
    font-size:2rem; color:var(--primary-orange);
    margin-bottom:1rem;
}
.confidentiality-feature h4 {
    color:white; margin-bottom:0.5rem;
}
.confidentiality-feature p {
    color:var(--text-secondary); font-size:0.9rem;
}

.footer {
    background:linear-gradient(135deg,#1a1a1a 0%,#2d2d2d 100%);
    color:white; padding:60px 0 30px; position:relative;
}
.footer::before {
    content:''; position:absolute; top:0; left:0; right:0; height:1px;
    background:linear-gradient(90deg,transparent,#ff6b35,transparent);
}
.footer-content {
    display:grid; grid-template-columns:2fr 1fr 1fr 1fr;
    gap:2rem; margin-bottom:2rem;
    max-width:1400px; margin-left:auto; margin-right:auto;
    padding:0 20px;
}
.footer-section h3,
.footer-section h4 {
    margin-bottom:1rem; color:#ff6b35;
    font-size:1.1rem; font-weight:700;
}
.footer-section h3 { font-size:1.3rem; }
.footer-section p {
    margin-bottom:0.8rem; opacity:0.9; line-height:1.6;
    color:#cbd5e1; font-size:0.85rem;
}
.footer-section ul { list-style:none; }
.footer-section li { margin-bottom:0.5rem; }
.footer-section a {
    color:#cbd5e1; text-decoration:none; opacity:0.9;
    transition:all 0.3s ease; display:inline-block;
    font-weight:500; font-size:0.8rem;
}
.footer-section a:hover {
    opacity:1; color:#ff6b35; transform:translateX(3px);
}
.footer-bottom {
    text-align:center; padding-top:1.5rem;
    border-top:1px solid #374151; opacity:0.8;
    max-width:1400px; margin:0 auto;
    font-size:0.8rem; color:#94a3b8;
    padding-left:20px; padding-right:20px;
}

/* Results Gallery Section */
.results-gallery-section {
border-top: 1px solid rgba(255, 255, 255, 0.08);
border-bottom: 1px solid rgba(255, 255, 255, 0.08);
padding: 5rem 0;
margin: 4rem 0;
position: relative;
overflow: hidden;
}

.gallery-scroll-container {
position: relative;
width: 100%;
padding: 20px 0;
}

.gallery-track {
display: flex;
gap: 2rem;
overflow-x: auto;
padding: 2rem 20px;
scroll-snap-type: x mandatory;
scrollbar-width: none; /* Firefox */
-ms-overflow-style: none; /* IE/Edge */
scroll-behavior: smooth;
}

.gallery-track::-webkit-scrollbar {
display: none; /* Chrome/Safari/Webkit */
}

.gallery-item {
flex: 0 0 auto;
width: 320px;
scroll-snap-align: center;
perspective: 1000px;
}

.gallery-card {
background: rgba(30, 30, 30, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 15px;
overflow: hidden;
transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
height: 100%;
display: flex;
flex-direction: column;
}

.gallery-card:hover {
transform: translateY(-10px) scale(1.02);
box-shadow: 0 20px 40px rgba(220, 38, 38, 0.2);
border-color: var(--primary-orange);
background: rgba(40, 40, 40, 0.8);
}

.gallery-card img {
width: 100%;
height: 400px; /* Portrait aspect ratio for documents */
object-fit: cover;
object-position: top center;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
transition: all 0.5s ease;
cursor: pointer; /* Suggests it can be clicked/viewed */
}

.gallery-card:hover img {
filter: brightness(1.1);
}

.gallery-caption {
padding: 1.5rem;
flex-grow: 1;
display: flex;
flex-direction: column;
}

.gallery-caption h3 {
color: var(--primary-orange);
font-size: 1.2rem;
margin-bottom: 0.5rem;
font-weight: 700;
}

.gallery-caption p {
color: #cbd5e1;
font-size: 0.9rem;
line-height: 1.5;
margin: 0;
}

/* Controls */
.gallery-controls {
display: flex;
justify-content: center;
align-items: center;
gap: 2rem;
margin-top: 1rem;
}

.scroll-btn {
background: rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.2);
color: white;
width: 40px;
height: 40px;
border-radius: 50%;
cursor: pointer;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
font-size: 1.2rem;
}

.scroll-btn:hover {
background: var(--primary-orange);
border-color: var(--primary-orange);
transform: scale(1.1);
}

.scroll-instruction {
color: var(--text-secondary);
font-size: 0.9rem;
display: flex;
align-items: center;
gap: 0.5rem;
opacity: 0.7;
}
.comparison-image-wrap {
text-align: center;
margin-top: 2rem;
}

.comparison-image {
max-width: 100%;
border-radius: 20px;
box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
border: 1px solid rgba(255, 255, 255, 0.1);
transition: transform 0.3s ease;
}

.comparison-image:hover {
transform: scale(1.015);
border-color: #ff6b35;
}

.image-caption {
font-size: 0.95rem;
color: #cbd5e1;
margin-top: 1rem;
font-style: italic;
opacity: 0.85;
}
.site-logo {
font-size: 1.8rem;
font-weight: 700;
line-height: 1;
margin-bottom: 0.25rem;
}

.site-logo a {
text-decoration: none;
background: linear-gradient(135deg, #ff6b35, #f9ca24);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
  /* CTA Section */
    .cta-section {
        border-radius: 30px;
        padding: 5rem 3rem;
        margin: 4rem auto;
        max-width: 1200px;
        text-align: center;
        position: relative;
        overflow: hidden;
    }

    .cta-section::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255, 107, 53, 0.1) 0%, transparent 70%);
        animation: pulse 4s ease-in-out infinite;
    }

    @keyframes pulse {
        0%, 100% { transform: scale(1); opacity: 0.5; }
        50% { transform: scale(1.1); opacity: 0.8; }
    }

    .cta-content {
        position: relative;
        z-index: 1;
    }

    .cta-section h2 {
        font-size: 3.2rem;
        font-weight: 800;
        color: white;
        margin-bottom: 1.5rem;
    }

    .cta-section p {
        font-size: 1.3rem;
        color: var(--text-secondary);
        margin-bottom: 3rem;
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
        line-height: 1.7;
    }

    /* Quick Quote Button */
    .quick-quote {
        position: fixed;
        bottom: 30px;
        right: 30px;
        z-index: 999;
        opacity: 0;
        transform: translateY(100px);
        animation: slideUp 0.8s ease forwards 2s;
    }
    .breadcrumb {
        padding: 0.8rem 20px;
        font-size: 0.85rem;
        color: #888;
        max-width: 1400px;
        margin: 0 auto;
    }
    .breadcrumb a {
        color: #ff6b35;
        text-decoration: none;
    }
    .breadcrumb a:hover {
        text-decoration: underline;
    }
    .breadcrumb span {
        margin: 0 0.4rem;
        color: #555;
    }
/* Mobile Responsiveness */
@media (max-width: 768px) {
.gallery-item {
    width: 280px;
}

.gallery-card img {
    height: 350px;
}

.scroll-btn {
    display: none; /* Hide buttons on mobile, swipe is intuitive */
}
}


/* Mobile tweak: slightly wider cards for nicer swipe */
@media (max-width: 768px) {
.why-card {
    min-width: 80%;
    max-width: 80%;
}
}
/* Mobile: stack in 1 column */
@media (max-width: 768px) {
.support-content.why-chooses-us .support-resources {
    grid-template-columns: 1fr;
    max-width: 100%;
}
}
/* Mobile tweak: make cards a bit wider for nicer swipe */
@media (max-width: 768px) {
.review-card {
    min-width: 80%;
    max-width: 80%;
}
}
@media (max-width:768px) {
    .container { padding:0 20px; }
    .hero-section { padding:120px 0 80px; }
    .hero-glass { padding:3rem 2rem; }
    .hero-content h1 { font-size:2.8rem; line-height:1.2; }
    .hero-subtitle { font-size:1.1rem; }
    .hero-buttons { flex-direction:column; align-items:center; gap:1rem; width:100%; }
    .btn-primary, .btn-secondary { width:100%; max-width:280px; text-align:center; }
    .hero-stats { grid-template-columns:repeat(2,1fr); gap:1rem; }
    .glass-section { padding:3rem 2rem; margin:2rem 1rem; }
    .section-title { font-size:2.2rem; }
    .section-subtitle { font-size:1rem; }
    .private-services-grid { grid-template-columns:1fr; gap:1.5rem; }
    .private-service-card { padding:2rem 1.5rem; }
    .why-p300-grid { grid-template-columns:1fr; }
    .benefit-card { padding:1.5rem; }
    .confidentiality-features { grid-template-columns:1fr; }
    .footer-content { grid-template-columns:1fr; text-align:center; padding:0 15px; }
}
@media (max-width:480px) {
    .hero-content h1 { font-size:2.2rem; }
    .section-title { font-size:1.8rem; }
    .hero-stats { grid-template-columns:1fr; }
    .glass-section { padding:2rem 1.5rem; }
}

/* ── P300 Science Section ──────────────────────────────── */
.science-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:3rem; align-items:start; margin-top:2.5rem;
}
@media(max-width:900px){ .science-grid{ grid-template-columns:1fr; } }
.science-prose h3 {
    color:var(--primary-orange); font-size:1.5rem;
    font-weight:700; margin:1.8rem 0 0.7rem;
}
.science-prose h3:first-child { margin-top:0; }
.science-prose p {
    color:var(--text-secondary); line-height:1.85;
    font-size:1rem; margin-bottom:1rem;
}
.science-prose strong { color:#fff; }
.p300-badge {
    display:inline-block; background:linear-gradient(135deg,#ff6b35,#dc2626);
    color:#fff; font-size:0.78rem; font-weight:700;
    padding:0.25rem 0.7rem; border-radius:999px;
    text-transform:uppercase; letter-spacing:0.5px; margin-bottom:1.5rem;
}
/* ERP Graph */
.erp-graph-wrap {
    background:rgba(10,10,10,0.6);
    border:1px solid rgba(255,107,53,0.3);
    border-radius:20px; padding:1.5rem;
}
.erp-graph-wrap h4 {
    color:#fff; font-size:1rem; font-weight:700;
    text-align:center; margin-bottom:1.2rem;
}
.erp-graph-wrap canvas { width:100% !important; }
.erp-legend {
    display:flex; gap:1.5rem; justify-content:center;
    flex-wrap:wrap; margin-top:1rem;
}
.erp-legend-item {
    display:flex; align-items:center; gap:0.4rem;
    color:var(--text-secondary); font-size:0.82rem;
}
.erp-dot {
    width:12px; height:12px; border-radius:50%;
    flex-shrink:0;
}
.erp-caption {
    text-align:center; color:var(--text-secondary);
    font-size:0.82rem; margin-top:0.8rem; font-style:italic;
}
    .qbuilder-wrap {
        max-width: 700px;
        margin: 0 auto;
    }
    .qbuilder-textarea {
        width: 100%;
        min-height: 120px;
        background: rgba(255,255,255,0.05);
        border: 1px solid rgba(255,255,255,0.15);
        border-radius: 12px;
        color: #fff;
        font-size: 1rem;
        font-family: Inter, sans-serif;
        padding: 1rem;
        resize: vertical;
        box-sizing: border-box;
        transition: border-color 0.3s;
    }
    .qbuilder-textarea:focus {
        outline: none;
        border-color: #ff6b35;
    }
    .qbuilder-textarea::placeholder { color: #666; }
    .qbuilder-btn {
        margin-top: 1rem;
        width: 100%;
        padding: 1rem;
        background: linear-gradient(135deg, #ff6b35, #dc2626);
        color: #fff;
        font-size: 1.05rem;
        font-weight: 700;
        border: none;
        border-radius: 12px;
        cursor: pointer;
        transition: opacity 0.2s;
    }
    .qbuilder-btn:disabled { opacity: 0.5; cursor: not-allowed; }
    .qbuilder-results {
        margin-top: 1.5rem;
        display: none;
    }
    .qbuilder-results.visible { display: block; }
    .qbuilder-question {
        background: rgba(34,197,94,0.07);
        border: 1px solid rgba(34,197,94,0.3);
        border-radius: 12px;
        padding: 1.1rem 1.4rem;
        margin-bottom: 0.75rem;
        color: #fff;
        font-size: 1rem;
        line-height: 1.5;
    }
    .qbuilder-question span {
        display: block;
        color: #22c55e;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        margin-bottom: 0.3rem;
    }
    .qbuilder-loading {
        text-align: center;
        color: #888;
        padding: 1.5rem;
        display: none;
    }
    .qbuilder-loading.visible { display: block; }
    .qbuilder-cta {
        margin-top: 1.5rem;
        background: rgba(255,107,53,0.08);
        border: 1px solid rgba(255,107,53,0.3);
        border-radius: 12px;
        padding: 1.25rem;
        text-align: center;
        display: none;
    }
    .qbuilder-cta.visible { display: block; }
    .qbuilder-cta p {
        color: #ccc;
        margin: 0 0 1rem;
        font-size: 0.95rem;
    }
    .qbuilder-disclaimer {
        margin-top: 1rem;
        color: #555;
        font-size: 0.78rem;
        text-align: center;
    }
    .case-row {
display: grid;
gap: 1.5rem;
align-items: center;
background: rgba(255,255,255,0.03);
border: 1px solid rgba(255,255,255,0.1);
border-radius: 14px;
padding: 1.5rem;
}
.case-row-img-right { grid-template-columns: 1fr 260px; }
.case-row-img-left  { grid-template-columns: 260px 1fr; }
#case-studies { opacity: 1 !important; transform: none !important; }

@media (max-width: 640px) {
.case-row-img-right,
.case-row-img-left {
    grid-template-columns: 1fr;
}
.case-row img {
    max-width: 260px;
    margin: 0 auto;
}
.case-row-img-left img {
    order: 2;
}
}
/* ── Polygraph Problems Section ───────────────────────── */
.poly-problem-grid {
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
    gap:1.5rem; margin-top:2.5rem;
}
.poly-card {
    background:rgba(220,38,38,0.06);
    border:1px solid rgba(220,38,38,0.2);
    border-radius:16px; padding:1.8rem;
    transition:all 0.3s ease;
}
.poly-card:hover {
    border-color:rgba(220,38,38,0.5);
    background:rgba(220,38,38,0.1);
    transform:translateY(-4px);
}
.poly-card-icon { font-size:2rem; margin-bottom:0.8rem; }
.poly-card h4 { color:#f87171; font-size:1.1rem; font-weight:700; margin-bottom:0.6rem; }
.poly-card p { color:var(--text-secondary); font-size:0.92rem; line-height:1.7; }

/* ── P300 vs Polygraph Comparison Table ────────────────── */
.vs-table-wrap { overflow-x:auto; margin-top:2rem; border-radius:16px; }
.vs-table {
    width:100%; border-collapse:collapse; min-width:600px;
}
.vs-table thead tr {
    background:rgba(255,107,53,0.12);
}
.vs-table th {
    padding:1rem 1.2rem; text-align:left;
    font-size:0.95rem; font-weight:700;
    border-bottom:2px solid rgba(255,107,53,0.3);
    white-space:nowrap;
}
.vs-table th.col-feature { color:var(--text-secondary); }
.vs-table th.col-p300 { color:var(--primary-orange); }
.vs-table th.col-poly { color:#f87171; }
.vs-table td {
    padding:0.85rem 1.2rem;
    border-bottom:1px solid rgba(255,255,255,0.06);
    font-size:0.92rem; color:var(--text-secondary);
    vertical-align:top;
}
.vs-table tr:last-child td { border-bottom:none; }
.vs-table tr:hover td { background:rgba(255,255,255,0.03); }
.vs-table td.col-feature { color:#e2e8f0; font-weight:600; }
.vs-table td.col-p300 { color:#86efac; }
.vs-table td.col-poly { color:#fca5a5; }
.vs-win { display:inline-block; }
.vs-win::before { content:'✓ '; color:#22c55e; font-weight:700; }
.vs-lose::before { content:'✗ '; color:#ef4444; font-weight:700; }
.vs-lose { display:inline-block; }

/* ── Anxiety / Stress Reassurance Section ─────────────── */
.anxiety-grid {
    display:grid; grid-template-columns:1fr 1fr;
    gap:3rem; align-items:center; margin-top:2.5rem;
}
@media(max-width:900px){ .anxiety-grid{ grid-template-columns:1fr; } }
.anxiety-list { list-style:none; margin:1.5rem 0 0; }
.anxiety-list li {
    display:flex; gap:0.8rem; align-items:flex-start;
    padding:0.9rem 0; border-bottom:1px solid rgba(255,255,255,0.07);
    color:var(--text-secondary); font-size:0.97rem; line-height:1.7;
}
.anxiety-list li:last-child { border-bottom:none; }
.anxiety-list li .ai { color:var(--primary-orange); font-size:1.2rem; flex-shrink:0; margin-top:2px; }
.anxiety-visual {
    background:rgba(10,10,10,0.5);
    border:1px solid rgba(255,107,53,0.25);
    border-radius:20px; padding:2rem; text-align:center;
}
.anxiety-meter-wrap { margin:1.5rem 0; }
.meter-row {
    display:flex; align-items:center; gap:1rem;
    margin-bottom:0.9rem;
}
.meter-label {
    font-size:0.82rem; color:var(--text-secondary);
    width:100px; text-align:right; flex-shrink:0;
}
.meter-bar-bg {
    flex:1; height:10px; border-radius:999px;
    background:rgba(255,255,255,0.08); overflow:hidden;
}
.meter-bar {
    height:100%; border-radius:999px;
    transition:width 1.5s ease;
}
.meter-bar.red { background:linear-gradient(90deg,#ef4444,#dc2626); }
.meter-bar.green { background:linear-gradient(90deg,#22c55e,#16a34a); }
.meter-pct {
    font-size:0.82rem; font-weight:700; width:36px;
    flex-shrink:0;
}
.anxiety-visual p {
    color:var(--text-secondary); font-size:0.9rem; line-height:1.7;
    margin:0;
}

/* FAQ Accordion */
.faq-section { max-width:1000px; margin:0 auto; }
.faq-item {
    border:1px solid rgba(255,255,255,0.1);
    border-radius:14px;
    margin-bottom:1rem;
    overflow:hidden;
    background:rgba(20,20,20,0.5);
    transition:border-color 0.3s ease;
}
.faq-item:hover { border-color:rgba(255,107,53,0.4); }
.faq-item.open { border-color:var(--primary-orange); }
.faq-question {
    width:100%; background:none; border:none; color:#fff;
    font-family:'Inter',sans-serif; font-size:1.05rem;
    font-weight:600; text-align:left;
    padding:1.3rem 1.5rem; cursor:pointer;
    display:flex; justify-content:space-between; align-items:center;
    gap:1rem; transition:background 0.2s ease;
}
.faq-question:hover { background:rgba(255,107,53,0.06); }
.faq-question .faq-icon {
    flex-shrink:0; width:24px; height:24px;
    background:rgba(255,107,53,0.15);
    border-radius:50%; display:flex; align-items:center;
    justify-content:center; font-size:1rem; color:var(--primary-orange);
    transition:transform 0.3s ease, background 0.3s ease;
}
.faq-item.open .faq-question .faq-icon {
    transform:rotate(45deg);
    background:var(--primary-orange); color:#fff;
}
.faq-answer {
    max-height:0; overflow:hidden;
    transition:max-height 0.4s ease, padding 0.3s ease;
    padding:0 1.5rem;
}
.faq-item.open .faq-answer {
    max-height:400px;
    padding:0 1.5rem 1.3rem;
}
.faq-answer p {
    color:var(--text-secondary);
    line-height:1.8; font-size:0.97rem;
    border-top:1px solid rgba(255,255,255,0.07);
    padding-top:1rem; margin:0;
}
/* Blog Scroll Section */
.blog-scroll-section {
padding: 2.5rem 0;
margin: 1rem auto;
max-width: 1400px;
}

.blog-scroll-track {
display: flex;
gap: 1.2rem;
overflow-x: auto;
padding: 1rem 20px 1.5rem;
scroll-snap-type: x mandatory;
scrollbar-width: none;
-ms-overflow-style: none;
scroll-behavior: smooth;
}

.blog-scroll-track::-webkit-scrollbar { display: none; }

.blog-scroll-card {
flex: 0 0 260px;
scroll-snap-align: center;
background: rgba(30, 30, 30, 0.6);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 14px;
padding: 1.4rem;
text-decoration: none;
color: inherit;
display: flex;
flex-direction: column;
gap: 0.6rem;
transition: all 0.3s ease;
}

.blog-scroll-card:hover {
transform: translateY(-6px);
border-color: var(--primary-orange);
box-shadow: 0 12px 30px rgba(220, 38, 38, 0.15);
background: rgba(40, 40, 40, 0.8);
}

.blog-scroll-tag {
display: inline-block;
font-size: 0.7rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 0.05em;
padding: 0.25rem 0.6rem;
border-radius: 6px;
width: fit-content;
}

.blog-scroll-tag.relationship { background: rgba(239, 68, 68, 0.2); color: #f87171; }
.blog-scroll-tag.technology  { background: rgba(59, 130, 246, 0.2); color: #60a5fa; }
.blog-scroll-tag.research    { background: rgba(168, 85, 247, 0.2); color: #c084fc; }
.blog-scroll-tag.practical   { background: rgba(34, 197, 94, 0.2); color: #4ade80; }

.blog-scroll-card h3 {
font-size: 0.95rem;
font-weight: 700;
color: var(--text-primary);
line-height: 1.35;
}

.blog-scroll-card p {
font-size: 0.8rem;
color: var(--text-secondary);
line-height: 1.5;
flex-grow: 1;
}

.blog-scroll-meta {
font-size: 0.72rem;
color: rgba(255, 255, 255, 0.35);
display: flex;
justify-content: space-between;
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding-top: 0.5rem;
margin-top: auto;
}
