/* ==========================================================================
   Technology Page Specific Styles - UPDATED WITH HERO REFINEMENTS
   ========================================================================== */

/* Hero Section - UPDATED with padding fix */
.technology-hero {
    position: relative;
    min-height: 85vh;
    background-color: var(--color-primary);
    overflow: hidden;
    display: flex;
    align-items: center;
    color: white;
    padding-bottom: var(--space-16); /* ADDED: Prevents content overflow */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, rgba(10, 36, 114, 0.85), rgba(13, 92, 99, 0.85)), url('https://images.unsplash.com/photo-1589254065878-42c9da997008?ixlib=rb-4.0.3&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    animation: slowZoom 20s infinite alternate;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-pattern-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><path d="M30 0 L60 30 L30 60 L0 30 Z" fill="rgba(255,255,255,0.03)"/></svg>');
    opacity: 0.3;
    animation: movePattern 15s linear infinite;
}

.hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.2) 0%, transparent 70%);
    filter: blur(50px);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.5; transform: translate(-50%, -50%) scale(1.2); }
}

@keyframes movePattern {
    from { transform: translateX(0) translateY(0); }
    to { transform: translateX(30px) translateY(30px); }
}

.technology-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding-bottom: var(--space-8); /* ADDED: Extra bottom padding */
}

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

.hero-pre-title {
    font-size: var(--font-size-sm);
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--color-accent);
    background: rgba(255,255,255,0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-title {
    font-size: clamp(2.5rem, 8vw, 4.2rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    text-align: center;
}

.text-accent {
    color: var(--color-accent);
    position: relative;
    display: inline-block;
}

.hero-subhead {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-8);
    font-family: var(--font-accent);
    opacity: 0.9;
}

.dual-engine-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    margin: var(--space-8) 0;
    background: rgba(255,255,255,0.1);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-full);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
}

.preview-engine {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
}

.preview-engine i {
    font-size: var(--font-size-xl);
    color: var(--color-accent);
}

.preview-engine span {
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-medium);
}

.preview-connector i {
    color: var(--color-accent);
    opacity: 0.7;
}

/* Hero Quote Card - ENHANCED visibility */
.hero-quote-card {
    max-width: 700px;
    margin: var(--space-8) auto 0;
    background: rgba(0, 0, 0, 0.3); /* Darker for better contrast */
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    border: 1px solid var(--color-accent);
    box-shadow: var(--shadow-xl);
}

.hero-quote-text {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin: 0;
    font-family: var(--font-accent);
    font-style: italic;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Hero alignment normalization */
.technology-hero {
    min-height: 90vh;
}

.technology-hero .hero-content {
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.technology-hero .hero-text-center {
    width: 100%;
    align-items: center;
}

.technology-hero .hero-title {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    width: 100%;
    max-width: 900px;
    margin: 0 auto var(--space-8);
    text-align: center;
    justify-self: center;
    align-self: center;
}

.technology-hero .hero-subhead {
    max-width: 780px;
    margin: 0 auto var(--space-8);
    text-align: center;
}

.technology-hero .hero-quote-card {
    max-width: 800px;
    width: 100%;
}

.technology-hero .hero-quote-text {
    font-size: var(--font-size-xl);
    line-height: 1.5;
    text-align: center;
}

/* Scroll Indicator - REFINED positioning */
.hero-scroll-indicator {
    position: absolute;
    bottom: var(--space-4); /* Reduced from var(--space-8) */
    left: 50%;
    transform: translateX(-50%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1); /* Reduced from var(--space-2) */
    z-index: 20;
    animation: bounce 2s infinite;
    opacity: 0.8;
    transition: opacity var(--transition-base);
    cursor: pointer;
}

.hero-scroll-indicator:hover {
    opacity: 1;
}

.scroll-text {
    font-size: var(--font-size-xs);
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); } /* Reduced from -20px */
    60% { transform: translateX(-50%) translateY(-5px); }  /* Reduced from -10px */
}

/* Animation Classes */
.animate-fade-in {
    animation: fadeIn 1s ease forwards;
    opacity: 0;
}

.animate-slide-up {
    animation: slideUp 1s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.delay-1 {
    animation-delay: 0.3s;
}

.delay-2 {
    animation-delay: 0.6s;
}

.delay-3 {
    animation-delay: 0.9s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Introduction Section */
.intro-section {
    padding: var(--space-20) 0;
    background-color: var(--color-white);
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.section-tag {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--color-accent);
    background-color: rgba(242, 201, 76, 0.1);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.intro-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lead-text {
    font-size: var(--font-size-xl);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

.comparison-bubble {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--color-bg-secondary), white);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-8) 0;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--color-border);
}

.bubble {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
}

.bubble.traditional {
    background: rgba(231, 76, 60, 0.1);
    color: #c0392b;
}

.bubble.ours {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
}

.bubble i {
    font-size: var(--font-size-lg);
}

.bubble-arrow i {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
}

.highlight-text {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    background-color: var(--color-bg-secondary);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--color-accent);
    margin: var(--space-8) 0;
    font-weight: var(--font-weight-medium);
}

.intro-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.data-visualization {
    position: relative;
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    border-radius: 50%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    animation: rotate 20s linear infinite;
}

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

.data-point {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--color-accent);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--color-accent);
}

.data-point:nth-child(1) { top: 20%; left: 30%; }
.data-point:nth-child(2) { top: 60%; left: 20%; }
.data-point:nth-child(3) { top: 40%; left: 70%; }
.data-point:nth-child(4) { top: 80%; left: 60%; }
.data-point:nth-child(5) { top: 30%; left: 80%; }

.data-connection {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 50%;
}

/* Architecture Section */
.architecture-section {
    padding: var(--space-12) 0 var(--space-20);
    background-color: var(--color-bg-secondary);
}

.section-header-center {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-header-center h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-2);
}

.section-subhead {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    font-family: var(--font-accent);
}

.header-decoration {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-secondary));
    margin: 0 auto;
    border-radius: var(--radius-full);
}

.architecture-diagram {
    max-width: 1000px;
    margin: 0 auto;
}

.diagram-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-4);
    align-items: center;
}

.diagram-card {
    position: relative;
    padding: var(--space-8);
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    overflow: hidden;
    transition: transform var(--transition-base);
}

.diagram-card:hover {
    transform: translateY(-8px);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(242, 201, 76, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

.lvm-card .card-icon,
.llm-card .card-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-4);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--font-size-2xl);
    color: white;
    position: relative;
    z-index: 2;
}

.diagram-card h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
    position: relative;
    z-index: 2;
}

.diagram-card p {
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 2;
}

.card-badge {
    display: inline-block;
    padding: var(--space-1) var(--space-3);
    background: rgba(242, 201, 76, 0.1);
    color: var(--color-accent);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
    position: relative;
    z-index: 2;
}

.diagram-connector {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-primary);
    font-size: var(--font-size-xl);
}

.connector-line {
    width: 30px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
}

/* Engine Sections */
.engine-section {
    padding: var(--space-20) 0;
    position: relative;
    overflow: hidden;
}

.lvm-section {
    background-color: var(--color-white);
}

.llm-section {
    background-color: var(--color-bg-secondary);
}

.engine-deep-dive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.engine-deep-dive.reverse {
    direction: rtl;
}

.engine-deep-dive.reverse .engine-content {
    direction: ltr;
}

.engine-visual {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pose-estimation-visual {
    position: relative;
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.skeleton-model {
    position: relative;
    width: 200px;
    height: 350px;
    margin: 0 auto;
}

.skeleton-head {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border: 3px solid var(--color-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.skeleton-torso {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 120px;
    border: 3px solid var(--color-accent);
    border-radius: 30px;
}

.skeleton-arm {
    position: absolute;
    width: 50px;
    height: 100px;
    border: 3px solid var(--color-accent);
    border-radius: 25px;
}

.skeleton-arm.left {
    top: 70px;
    left: 30%;
    transform: rotate(-20deg);
}

.skeleton-arm.right {
    top: 70px;
    right: 30%;
    transform: rotate(20deg);
}

.skeleton-leg {
    position: absolute;
    width: 40px;
    height: 100px;
    border: 3px solid var(--color-accent);
    border-radius: 20px;
}

.skeleton-leg.left {
    top: 190px;
    left: 40%;
    transform: rotate(-5deg);
}

.skeleton-leg.right {
    top: 190px;
    right: 40%;
    transform: rotate(5deg);
}

.tracking-dots {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.dot:nth-child(1) { top: 30px; left: 100px; }
.dot:nth-child(2) { top: 80px; left: 80px; }
.dot:nth-child(3) { top: 120px; left: 120px; }
.dot:nth-child(4) { top: 180px; left: 90px; }
.dot:nth-child(5) { top: 220px; left: 110px; }
.dot:nth-child(6) { top: 280px; left: 100px; }

.facial-tracking {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(10, 36, 114, 0.9);
    border-radius: var(--radius-full);
    color: white;
    font-size: var(--font-size-xs);
}

.facial-tracking i {
    color: var(--color-accent);
}

.engine-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--color-accent);
    opacity: 0.3;
    display: block;
    margin-bottom: var(--space-2);
}

.engine-content h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-2);
}

.engine-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    font-family: var(--font-accent);
}

.engine-content p {
    font-size: var(--font-size-lg);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.engine-highlight {
    background: rgba(242, 201, 76, 0.1);
    padding: var(--space-6);
    border-radius: var(--radius-lg);
    margin: var(--space-6) 0;
    border-left: 4px solid var(--color-accent);
}

.engine-highlight h4 {
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    font-size: var(--font-size-lg);
}

.tech-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.spec {
    padding: var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: transform var(--transition-base);
}

.spec-label {
    display: block;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-1);
}

.spec-value {
    display: block;
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-bold);
    color: var(--color-primary);
}

.llm-visualization {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, var(--color-primary-light), var(--color-secondary-light));
    border-radius: var(--radius-xl);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.brain-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: var(--space-2);
}

.brain-waves i {
    font-size: var(--font-size-3xl);
    color: var(--color-accent);
    opacity: 0.3;
    animation: wave 2s infinite;
}

.brain-waves i:nth-child(2) {
    animation-delay: 0.5s;
}

.brain-waves i:nth-child(3) {
    animation-delay: 1s;
}

@keyframes wave {
    0%, 100% { transform: scale(1); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.6; }
}

.protocol-circles {
    position: relative;
    width: 300px;
    height: 300px;
    border: 2px dashed rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: rotate 20s linear infinite;
}

.protocol {
    position: absolute;
    padding: var(--space-2) var(--space-4);
    background: var(--color-white);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-lg);
    white-space: nowrap;
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-medium);
}

.protocol:nth-child(1) { top: 20%; left: -20px; }
.protocol:nth-child(2) { top: 70%; right: -20px; }
.protocol:nth-child(3) { bottom: 20%; left: 50%; transform: translateX(-50%); }

.clinical-domains {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-6);
}

.domain-tag {
    padding: var(--space-1) var(--space-3);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
}

/* Dataset Section */
.dataset-section {
    padding: var(--space-20) 0;
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
}

.dataset-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.dataset-header .section-tag {
    background: rgba(255,255,255,0.2);
    color: white;
}

.dataset-header h2 {
    color: white;
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-2);
}

.dataset-subhead {
    font-size: var(--font-size-lg);
    color: rgba(255,255,255,0.8);
    margin-bottom: var(--space-4);
    font-family: var(--font-accent);
}

.dataset-intro {
    font-size: var(--font-size-xl);
    max-width: 900px;
    margin: 0 auto var(--space-4);
    text-align: center;
    line-height: 1.6;
    color: rgba(255,255,255,0.95);
}

.diversity-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
    margin: var(--space-12) 0;
}

.diversity-card {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: var(--space-8);
    border-radius: var(--radius-xl);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform var(--transition-base);
}

.diversity-card:hover {
    transform: translateY(-8px);
}

.diversity-icon {
    position: relative;
    width: 60px;
    height: 60px;
    margin-bottom: var(--space-4);
}

.diversity-icon i {
    font-size: var(--font-size-3xl);
    color: var(--color-accent);
}

.icon-badge {
    position: absolute;
    top: -10px;
    right: -20px;
    background: var(--color-accent);
    color: var(--color-primary);
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
}

.diversity-card h3 {
    color: white;
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-4);
}

.diversity-card p {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: var(--space-6);
}

.demographic-bars {
    margin-top: var(--space-6);
}

.demographic {
    margin-bottom: var(--space-4);
}

.demo-label {
    display: block;
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.7);
    margin-bottom: var(--space-1);
}

.bar-container {
    height: 8px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-1);
}

.bar {
    height: 100%;
    background: var(--color-accent);
    border-radius: var(--radius-full);
    animation: growBar 1.5s ease-out;
}

@keyframes growBar {
    from { width: 0; }
}

.demo-value {
    font-size: var(--font-size-xs);
    color: rgba(255,255,255,0.9);
    font-weight: var(--font-weight-medium);
}

.friction-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
}

.friction-item {
    text-align: center;
    padding: var(--space-4);
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    transition: transform var(--transition-base);
}

.friction-item:hover {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
}

.friction-item i {
    font-size: var(--font-size-2xl);
    color: var(--color-accent);
    margin-bottom: var(--space-2);
    display: block;
}

.friction-item span {
    font-size: var(--font-size-xs);
    color: white;
}

.dataset-conclusion {
    font-size: var(--font-size-xl);
    text-align: center;
    max-width: 800px;
    margin: var(--space-8) auto var(--space-4);
    font-weight: var(--font-weight-medium);
    color: white;
}

.dataset-warning {
    text-align: center;
    color: var(--color-accent);
    font-size: var(--font-size-lg);
    font-style: italic;
    font-family: var(--font-accent);
}

/* Architecture Visual Section */
.architecture-visual-section {
    padding: var(--space-20) 0;
    background-color: var(--color-white);
}

.architecture-flow {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.architecture-flow h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-8);
}

.flow-diagram {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    flex-wrap: wrap;
    margin-bottom: var(--space-8);
}

.flow-node {
    position: relative;
    min-width: 150px;
    padding: var(--space-4);
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.flow-node:hover {
    border-color: var(--color-accent);
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.flow-node i {
    font-size: var(--font-size-2xl);
    color: var(--color-primary);
    margin-bottom: var(--space-2);
    display: block;
}

.flow-node span {
    display: block;
    font-weight: var(--font-weight-bold);
    margin-bottom: var(--space-2);
}

.node-detail {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

.patient-node i { color: #3498DB; }
.lvm-node i { color: #9b59b6; }
.llm-node i { color: #e67e22; }
.clinician-node i { color: #27ae60; }

.flow-arrow i {
    font-size: var(--font-size-xl);
    color: var(--color-primary);
    opacity: 0.5;
}

.offline-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    margin-top: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.offline-mode-badge i {
    color: var(--color-accent);
}

/* CTA Section - CLEANED (removed .cta-note reference) */
.cta-section {
    padding: var(--space-16) 0;
    background-color: var(--color-bg-secondary);
}

.cta-card {
    background: linear-gradient(135deg, white, var(--color-bg-secondary));
    border-radius: var(--radius-xl);
    padding: var(--space-12);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--color-border);
    text-align: center;
}

.cta-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(10,36,114,0.02) 0%, transparent 50%);
}

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

.cta-content h3 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-3);
    color: var(--color-primary);
}

.cta-content p {
    font-size: var(--font-size-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
}

.pulse-animation {
    animation: buttonPulse 2s infinite;
}

@keyframes buttonPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.mt-4 {
    margin-top: var(--space-4);
}

/* Responsive Design - UPDATED with hero fixes */
@media (max-width: 1024px) {
    .intro-grid,
    .engine-deep-dive,
    .diversity-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }
    
    .engine-deep-dive.reverse {
        direction: ltr;
    }
    
    .diagram-row {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }
    
    .diagram-connector {
        transform: rotate(90deg);
    }
    
    .flow-diagram {
        flex-direction: column;
    }
    
    .flow-arrow {
        transform: rotate(90deg);
    }
    
    .comparison-bubble {
        flex-direction: column;
        text-align: center;
    }
    
    .bubble-arrow {
        transform: rotate(90deg);
    }
}

@media (max-width: 768px) {
    .technology-hero {
        min-height: 80vh;
        padding: var(--space-12) 0 var(--space-16); /* UPDATED: Added bottom padding */
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subhead {
        font-size: var(--font-size-lg);
    }
    
    .dual-engine-preview {
        flex-direction: column;
        padding: var(--space-4);
    }
    
    .preview-connector {
        transform: rotate(90deg);
    }
    
    .hero-scroll-indicator {
        bottom: var(--space-2); /* ADDED: Adjusted for mobile */
    }
    
    .intro-section,
    .engine-section,
    .dataset-section,
    .architecture-visual-section,
    .cta-section {
        padding: var(--space-12) 0;
    }
    
    .intro-content h2 {
        font-size: var(--font-size-2xl);
    }
    
    .tech-specs {
        grid-template-columns: 1fr;
    }
    
    .friction-grid {
        grid-template-columns: 1fr;
    }
    
    .flow-node {
        width: 100%;
    }
    
    .cta-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-quote-text {
        font-size: var(--font-size-base);
    }
    
    .hero-scroll-indicator {
        bottom: var(--space-1); /* ADDED: Fine-tuned for small mobile */
    }
    
    .scroll-text {
        font-size: 0.7rem; /* Slightly smaller on mobile */
    }
    
    .comparison-bubble {
        padding: var(--space-4);
    }
    
    .bubble {
        flex-direction: column;
        text-align: center;
    }
    
    .clinical-domains {
        justify-content: center;
    }
    
    .offline-mode-badge {
        flex-direction: column;
        text-align: center;
        padding: var(--space-3);
    }
}

/* Professional Hero Refresh */
.technology-hero .hero-content {
    background: linear-gradient(180deg, rgba(7, 18, 54, 0.34), rgba(7, 18, 54, 0.16));
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 32px;
    padding: clamp(2rem, 4vw, 3.5rem);
    margin-top: clamp(2.5rem, 7vh, 4.5rem);
    margin-bottom: clamp(1.5rem, 4vh, 3rem);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.28);
}

.technology-hero .hero-pre-title {
    background: rgba(242, 201, 76, 0.14);
    border: 1px solid rgba(242, 201, 76, 0.32);
}

.technology-hero .hero-title {
    letter-spacing: -0.03em;
}

.technology-hero .dual-engine-preview {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: none;
}

.technology-hero .preview-engine {
    background: rgba(255,255,255,0.1);
}

.technology-hero .hero-quote-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: none;
}

/* Final hero heading fix */
.technology-hero .hero-text-center {
    display: grid;
    justify-items: center;
    text-align: center;
}

.technology-hero #page-heading.hero-title {
    width: min(100%, 18ch);
    max-width: 18ch;
    margin: 0 auto var(--space-8);
    display: block;
    text-align: center !important;
    line-height: 1.05;
    letter-spacing: -0.04em;
    text-wrap: balance;
    font-size: clamp(2.4rem, 6vw, 4.25rem);
}

.technology-hero .dual-engine-preview,
.technology-hero .preview-engine,
.technology-hero .hero-quote-card {
    transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.technology-hero .dual-engine-preview:hover,
.technology-hero .preview-engine:hover,
.technology-hero .hero-quote-card:hover {
    transform: none;
}

/* Print Styles */
@media print {
    .technology-hero {
        min-height: auto;
        color: black;
        padding-bottom: 0; /* Reset for print */
    }
    
    .hero-image-layer,
    .hero-pattern-layer,
    .hero-glow,
    .hero-scroll-indicator,
    .cta-section {
        display: none;
    }
    
    .hero-content {
        color: black;
    }
    
    .hero-quote-card {
        background: none;
        border: 1px solid #ddd;
        color: black;
    }
    
    .engine-highlight {
        border: 1px solid #ddd;
        background: none;
    }
    
    .dataset-section {
        background: none;
        color: black;
    }
    
    .dataset-section .section-tag {
        background: #f0f0f0;
        color: #666;
    }
}

.hero-title {
    transform: none !important;
}
