/* ==========================================================================
   Optiq Group - Swiss Industrial Minimal Grid Style
   ========================================================================== */

/* Theme Definitions */
:root {
    /* Fonts */
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Sora', sans-serif;
    --font-mono: 'Courier Prime', monospace;

    /* Brand Colors (Matched precisely to logo hex values) */
    --brand-navy: #00185A;
    --brand-red: #AE0000;
    --brand-red-hover: #800000;
    --logo-navy: var(--brand-navy);
    --logo-red: var(--brand-red);

    /* HSL Components for Alpha values */
    --brand-navy-hsl: 224, 100%, 18%;
    --brand-red-hsl: 0, 100%, 34%;

    /* Light Theme Tokens */
    --bg-primary: #ffffff;
    --bg-secondary: #f6f8fa;
    --bg-warm: #F5F3F0;
    --border-color: #e1e4e8;
    --border-heavy: #c8ccd1;
    --text-primary: #12141a;
    --text-secondary: #586069;
    --text-muted: #959da5;
    --card-hover-tint: rgba(0, 24, 90, 0.02);
    --input-bg: transparent;
    --btn-outline-text: var(--brand-navy);
    --btn-outline-border: var(--brand-navy);
    --navbar-bg: rgba(255, 255, 255, 0.9);

    /* Border Hierarchy */
    --border-weight-primary: 2px;
    --border-weight-secondary: 1px;

    /* Spacing Scale */
    --section-gap: 6rem;
    --section-gap-lg: 10rem;

    /* Animation Duration */
    --transition-speed: 0.3s;
}

/* Dark Theme Tokens */
.dark-theme,
html.dark-theme {
    --bg-primary: #0a0b0f;
    --bg-secondary: #12141a;
    --bg-warm: #14161c;
    --border-color: #24292e;
    --border-heavy: #3a3f47;
    --text-primary: #f6f8fa;
    --text-secondary: #959da5;
    --text-muted: #586069;
    --card-hover-tint: rgba(255, 77, 77, 0.03);
    --input-bg: transparent;
    --btn-outline-text: var(--text-primary);
    --btn-outline-border: var(--text-secondary);
    --logo-navy: #4b6efb;
    --logo-red: #ff4d4d;
    --brand-red: #ff4d4d;
    --brand-red-hover: #ff6b6b;
    --navbar-bg: rgba(10, 11, 15, 0.9);
}

/* Reset and Global Settings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.625;
    -webkit-font-smoothing: antialiased;
    transition: background-color var(--transition-speed) ease, color var(--transition-speed) ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
    color: var(--brand-navy);
    transition: color var(--transition-speed) ease;
}

.dark-theme h1, 
.dark-theme h2, 
.dark-theme h3, 
.dark-theme h4, 
.dark-theme h5, 
.dark-theme h6 {
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Underline-slide hover for inline links */
.text-link,
.footer-links a,
.service-link {
    position: relative;
    display: inline-block;
}

.text-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--brand-red);
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.text-link:hover::after {
    width: 100%;
}

main {
    position: relative;
    overflow: hidden;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--navbar-bg);
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
    padding: 1rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar.scrolled {
    padding: 0.6rem 0;
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.nav-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-image {
    height: 54px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
    transition: filter var(--transition-speed) ease;
}

.dark-theme .logo-image {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15)) brightness(0) invert(1);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    order: 3;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 0; /* Sharp corner style */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.theme-toggle-btn:hover {
    border-color: var(--brand-red);
    color: var(--brand-red);
}

.theme-toggle-btn .sun-icon {
    display: block;
}

.theme-toggle-btn .moon-icon {
    display: none;
}

.dark-theme .theme-toggle-btn .sun-icon {
    display: none;
}

.dark-theme .theme-toggle-btn .moon-icon {
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-menu a {
    font-family: var(--font-sans);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem 0;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-red);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-speed) ease;
}

.nav-menu a:hover {
    color: var(--brand-red);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-menu a.active {
    color: var(--text-primary);
    font-weight: 700;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    padding: 10px;
    cursor: pointer;
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.2s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
    position: relative;
    padding: 16rem 0 var(--section-gap-lg);
    background: var(--bg-primary);
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: center;
}

.hero-image-block {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-logo-illustration {
    width: 100%;
    max-width: 460px;
    height: auto;
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    padding: 1.5rem;
    transition: border-color var(--transition-speed) ease;
}

.hero-logo-illustration:hover {
    border-color: var(--brand-red);
}

/* Pulse animation for the technical nodes */
.pulse-ring {
    transform-origin: center;
    animation: nodePulse 2.5s infinite ease-out;
}

@keyframes nodePulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* Slow outer ring rotation for the hero SVG */
.hero-logo-illustration .outer-ring-rotate {
    transform-origin: 250px 250px;
    animation: ringRotate 60s linear infinite;
}

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

/* Technical Image Wrapper & Frame styling */
.tech-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
    transition: all var(--transition-speed) ease;
}

.tech-image-wrapper:hover {
    border-color: var(--brand-red);
    box-shadow: 0 20px 40px rgba(174, 0, 0, 0.03);
}

.hero-tech-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: grayscale(10%) contrast(105%);
}

/* Futuristic corner crosshair lines */
.tech-corner {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 2px solid var(--border-heavy);
    pointer-events: none;
    transition: border-color var(--transition-speed) ease;
}

.tech-image-wrapper:hover .tech-corner {
    border-color: var(--brand-red);
}

.tech-corner.tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.tech-corner.tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.tech-corner.bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.tech-corner.br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* Pulsing High-Tech Status Badge */
.tech-status-badge {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
    transition: background var(--transition-speed) ease;
}

/* Ensure the status badge adapts to themes */
.dark-theme .tech-status-badge {
    background: rgba(10, 11, 15, 0.85);
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10b981;
}

.status-dot.pulsing {
    animation: badgePulse 1.5s infinite ease-in-out;
}

@keyframes badgePulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

.status-text {
    color: var(--text-primary);
}

.tech-node {
    transition: opacity var(--transition-speed) ease;
}

.tech-node:hover {
    opacity: 0.8;
}

.hero-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
    display: inline-block;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.hero-badge::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 2px;
    background-color: var(--brand-red);
}

.hero h1 {
    font-size: 5.5rem;
    font-weight: 800;
    letter-spacing: -0.06em;
    line-height: 0.92;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
}

.gradient-text {
    color: var(--brand-navy);
    background: linear-gradient(135deg, var(--brand-navy) 0%, var(--brand-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dark-theme .gradient-text {
    color: var(--text-primary);
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-red) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text-block {
    display: flex;
    flex-direction: column;
}

.hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--text-secondary);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 4rem;
}

/* BUTTONS — with left accent bar */
.btn {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 1.1rem 2.5rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-block;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    text-align: center;
    position: relative;
}

.btn-primary,
.btn-gradient,
.btn-secondary {
    background-color: var(--brand-red);
    color: #ffffff;
    border-left: 4px solid var(--brand-navy);
}

.dark-theme .btn-primary,
.dark-theme .btn-gradient,
.dark-theme .btn-secondary {
    border-left-color: #ffffff;
}

.btn-primary:hover,
.btn-gradient:hover,
.btn-secondary:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(174, 0, 0, 0.18);
}

.btn-outline {
    background: transparent;
    color: var(--btn-outline-text);
    border: 1px solid var(--btn-outline-border);
    border-left: 4px solid var(--brand-red);
}

.btn-outline:hover {
    background-color: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
    border-left-color: var(--brand-red);
}

.btn-light {
    background-color: var(--bg-primary);
    color: var(--brand-red);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-red);
}

.btn-light:hover {
    background-color: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
}

/* Hero Stats Grid */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    border-top: var(--border-weight-primary) solid var(--border-heavy);
    padding-top: 3.5rem;
    margin-top: var(--section-gap);
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--brand-red);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ==========================================================================
   SERVICES SECTION & CARDS GRID
   ========================================================================== */
.services-overview {
    padding: var(--section-gap-lg) 0 4rem;
    background: var(--bg-primary);
}

.services-intro {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 4rem;
    align-items: flex-start;
}

.services-intro h2 {
    font-size: 3rem;
    text-transform: uppercase;
}

.services-intro p {
    font-size: 1.15rem;
    line-height: 1.75;
    border-left: 1px solid var(--border-color);
    padding-left: 3rem;
}

.services-preview {
    padding: var(--section-gap) 0 var(--section-gap-lg);
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: var(--border-weight-primary) solid var(--border-heavy);
    border-left: var(--border-weight-secondary) solid var(--border-color);
}

.service-card {
    background: var(--bg-primary);
    padding: 3.5rem 3.5rem 3.5rem 4rem;
    border-right: var(--border-weight-secondary) solid var(--border-color);
    border-bottom: var(--border-weight-secondary) solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    transition: background-color 0.25s ease, border-color 0.25s ease;
    position: relative;
}

.service-card:hover {
    border-bottom-color: var(--brand-red);
}

.service-card:hover {
    background-color: var(--card-hover-tint);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 2.8rem;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 2rem;
    display: block;
    line-height: 1;
    opacity: 0.3;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -0.03em;
}

.service-card p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.service-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.highlight-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-color);
}

.service-link {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-red);
    transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.service-card:hover .service-link::after {
    width: 40%;
}

.service-link:hover {
    color: var(--text-primary);
}

/* ==========================================================================
   INDUSTRIES SECTION
   ========================================================================== */
.industries-section {
    padding: var(--section-gap-lg) 0;
    background: var(--bg-warm);
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.section-header {
    margin-bottom: var(--section-gap);
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 4rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2.5rem;
}

.header-left-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.header-left-col .section-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--brand-red);
    font-weight: 700;
}

.header-left-col .header-meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.header-right-col {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.section-title {
    font-size: 3rem;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.05;
}

.section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.section-header.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--section-gap);
    border-top: none;
    padding-top: 0;
}

.section-header.centered .header-left-col {
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-header.centered .header-right-col {
    align-items: center;
    gap: 1rem;
}

.section-header.centered .section-title {
    text-align: center;
}

.section-header.centered .section-description {
    text-align: center;
}

.industries-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--border-weight-primary) solid var(--border-heavy);
    border-left: var(--border-weight-secondary) solid var(--border-color);
}

.industry-card {
    background: var(--bg-primary);
    padding: 3.5rem 3.5rem 3.5rem 4rem;
    border-right: var(--border-weight-secondary) solid var(--border-color);
    border-bottom: var(--border-weight-secondary) solid var(--border-color);
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.industry-card:hover {
    background-color: var(--card-hover-tint);
    border-bottom-color: var(--brand-red);
}

.industry-number {
    font-family: var(--font-mono);
    font-size: 3.5rem;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1;
    opacity: 0.25;
}

.industry-card h3 {
    font-size: 1.6rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.industry-card p {
    margin-bottom: 1.5rem;
}

.industry-details {
    border-top: 1px dashed var(--border-color);
    padding-top: 1.5rem;
    margin-top: 1.5rem;
}

.industry-details p {
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ==========================================================================
   VALUE PROPOSITION
   ========================================================================== */
.value-section {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.value-content {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: var(--section-gap);
}

.value-text h2 {
    font-size: 3.5rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

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

.value-item h4 {
    font-size: 1.25rem;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

.dark-theme .value-item h4 {
    color: var(--text-primary);
}

.value-item p {
    line-height: 1.6;
}

/* ==========================================================================
   SERVICES DETAIL PAGE
   ========================================================================== */
.page-header-alt {
    padding: 14rem 0 var(--section-gap);
    background: var(--bg-primary);
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.breadcrumb {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--brand-red);
    margin-bottom: 1.5rem;
}

.page-header-alt h1 {
    font-size: 4.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.page-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
}

.services-category {
    padding: var(--section-gap) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.services-category.alt-bg {
    background: var(--bg-secondary);
}


.service-detail {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 3rem;
    margin-bottom: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.service-detail:hover {
    border-color: var(--border-heavy);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
}

.dark-theme .service-detail:hover {
    border-color: var(--border-heavy);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.service-detail-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.75rem;
}

.service-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: block;
    letter-spacing: 1px;
}

.service-detail h2 {
    font-size: 2rem;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
}

.dark-theme .service-detail h2 {
    color: var(--text-primary);
}

.service-intro {
    font-size: 1.1rem;
    line-height: 1.625;
    color: var(--text-secondary);
    max-width: 900px;
}

.service-detail-content {
    display: grid;
    grid-template-columns: 1fr 1.8fr 1.2fr;
    grid-template-rows: auto;
    gap: 2.5rem;
}

/* Reverse alternating layout */
.service-detail.reverse .service-detail-content {
    grid-template-columns: 1.2fr 1.8fr 1fr;
}

.content-block {
    grid-column: 1;
    grid-row: 1;
}

.service-detail.reverse .content-block {
    grid-column: 3;
}

.content-block h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.dark-theme .content-block h3 {
    color: var(--text-primary);
}

.content-block p {
    font-size: 1rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 0;
}

.capabilities-grid {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-detail.reverse .capabilities-grid {
    grid-column: 2;
}

.capability-item {
    border-left: 2px solid var(--border-color);
    padding: 0.25rem 0 0.25rem 1.25rem;
    transition: border-color var(--transition-speed) ease, transform var(--transition-speed) ease;
}

.capability-item:hover {
    border-color: var(--brand-red);
    transform: translateX(4px);
}

.capability-item h4 {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
}

.dark-theme .capability-item h4 {
    color: var(--text-primary);
}

.capability-item p {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--text-secondary);
    margin: 0;
}

.benefits-section {
    grid-column: 3;
    grid-row: 1;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--brand-red);
    border-radius: 8px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-self: stretch;
}

.service-detail.reverse .benefits-section {
    grid-column: 1;
}

.benefits-section h3 {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin: 0;
    letter-spacing: 0.5px;
}

.dark-theme .benefits-section h3 {
    color: var(--text-primary);
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.benefit-item {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--text-secondary);
}

.benefit-item strong {
    color: var(--brand-red);
    font-weight: 700;
    display: block;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

/* ==========================================================================
   IMPLEMENTATION & PROCESS TIMELINE
   ========================================================================== */
.approach-section,
.process-section {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.approach-steps,
.process-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--border-weight-primary) solid var(--border-heavy);
    border-left: var(--border-weight-secondary) solid var(--border-color);
    margin-top: 4rem;
}

.approach-step,
.process-step {
    background: var(--bg-primary);
    padding: 3.5rem 3.5rem 3.5rem 4rem;
    border-right: var(--border-weight-secondary) solid var(--border-color);
    border-bottom: var(--border-weight-secondary) solid var(--border-color);
    transition: border-color 0.25s ease, 
                background-color 0.25s ease, 
                transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.approach-step:hover,
.process-step:hover {
    border-bottom-color: var(--brand-red);
    background-color: var(--card-hover-tint);
    transform: translateY(-4px);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 3rem;
    color: var(--brand-red);
    font-weight: 700;
    margin-bottom: 2rem;
    opacity: 0.25;
    line-height: 1;
    transition: opacity 0.25s ease;
}

.approach-step:hover .step-number,
.process-step:hover .step-number {
    opacity: 0.8;
}

.step-phase {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-red);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    display: block;
}

.approach-step h3,
.process-step h3 {
    font-size: 1.4rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ==========================================================================
   ABOUT JOURNEY & TIMELINE
   ========================================================================== */
.about-content {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.mission-vision {
    padding: var(--section-gap-lg) 0;
    background: var(--bg-warm);
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

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

.mv-card {
    background: var(--bg-primary);
    border: var(--border-weight-secondary) solid var(--border-color);
    padding: 4.5rem;
    border-top: 4px solid var(--brand-red);
}

.mv-card h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.mv-card p {
    line-height: 1.7;
}

.differentiation-section,
.values-section {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: var(--border-weight-primary) solid var(--border-heavy);
    border-left: var(--border-weight-secondary) solid var(--border-color);
    margin-top: 4rem;
}

.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: var(--border-weight-primary) solid var(--border-heavy);
    border-left: var(--border-weight-secondary) solid var(--border-color);
    margin-top: 4rem;
}

.value-card,
.diff-item {
    background: var(--bg-primary);
    padding: 3.5rem 3.5rem 3.5rem 4rem;
    border-right: var(--border-weight-secondary) solid var(--border-color);
    border-bottom: var(--border-weight-secondary) solid var(--border-color);
    transition: border-color 0.25s ease;
}

.value-card:hover,
.diff-item:hover {
    border-bottom-color: var(--brand-red);
}

.value-card h4,
.diff-item h4 {
    font-size: 1.35rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* Partner Glimpse Section */
.partner-glimpse-section {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
    background: var(--bg-primary);
}

.partner-glimpse-card {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    border: var(--border-weight-primary) solid var(--border-heavy);
    margin-top: 4rem;
    background: var(--bg-primary);
}

.glimpse-brand {
    padding: 3.5rem;
    border-right: var(--border-weight-secondary) solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--bg-secondary);
}

.glimpse-brand h3 {
    font-size: 2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.glimpse-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-red);
}

.glimpse-details {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.glimpse-details p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.glimpse-products-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.glimpse-products-badges span {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.3rem 0.8rem;
    text-transform: uppercase;
}

.glimpse-btn {
    align-self: flex-start;
}

/* Technical Partner Section - Redesigned & Attention Grabbing */
.partner-section {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.partner-container {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    border: var(--border-weight-primary) solid var(--border-heavy);
    margin-top: 4rem;
    background: var(--bg-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.02);
}

.partner-brand-box {
    padding: 5rem 4rem;
    border-right: var(--border-weight-secondary) solid var(--border-color);
    background: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.partner-logo-wrapper {
    margin-bottom: 3.5rem;
    height: 100px;
    display: flex;
    align-items: center;
}

.partner-logo-img {
    height: 100%;
    max-height: 95px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.glimpse-logo-wrapper {
    margin-bottom: 2rem;
    height: 75px;
}

/* Light / Dark Mode logo switcher */
.logo-light {
    display: block;
}
.logo-dark {
    display: none;
}
.dark-theme .logo-light {
    display: none;
}
.dark-theme .logo-dark {
    display: block;
    filter: brightness(0) invert(1);
}

.partner-brand-content h3 {
    font-size: 2.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.partner-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--brand-red);
    margin-bottom: 2rem;
    display: inline-block;
}

.partner-brand-content p {
    color: var(--text-secondary);
    margin-bottom: 3rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.partner-visit-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    align-self: flex-start;
}

.partner-visit-btn svg {
    transition: transform 0.25s ease;
}

.partner-visit-btn:hover svg {
    transform: translate(2px, -2px);
}

.partner-products-showcase {
    padding: 5rem 4rem;
    display: flex;
    flex-direction: column;
}

.showcase-header {
    margin-bottom: 3.5rem;
}

.showcase-header h4 {
    font-size: 1.35rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
    color: var(--text-primary);
}

.showcase-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

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

.product-card-premium {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 2.5rem 2rem 2rem;
    background: var(--bg-primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-premium:hover {
    transform: translateY(-5px);
    border-color: var(--brand-red);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.03);
}

.product-card-premium .card-num {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.35;
}

.prod-badge {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--brand-red);
    border: 1px solid var(--brand-red);
    padding: 0.15rem 0.4rem;
    margin-bottom: 1rem;
    display: inline-block;
}

.product-card-premium h5 {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.product-card-premium p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    margin: 0;
    line-height: 1.6;
}

.card-highlight-full {
    grid-column: span 2;
    background: var(--bg-secondary);
    border-left: 3px solid var(--brand-red);
}

.prod-desc {
    margin-bottom: 1.8rem !important;
    font-size: 0.94rem !important;
    line-height: 1.65 !important;
}

.prod-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.grid-features-two-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.feature-tag {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.75rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s ease;
}

.product-card-premium:hover .feature-tag {
    border-color: var(--border-heavy);
    color: var(--text-primary);
    background: var(--bg-primary);
}

.tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    display: inline-block;
}

.oee-dot { background-color: #10b981; box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }
.eam-dot { background-color: #f59e0b; box-shadow: 0 0 8px rgba(245, 158, 11, 0.4); }
.ems-dot { background-color: #06b6d4; box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.dms-dot { background-color: #8b5cf6; box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.eln-dot { background-color: #ef4444; box-shadow: 0 0 8px rgba(239, 68, 68, 0.4); }

.product-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-card-premium:hover::before {
    transform: scaleX(1);
}

.product-card-premium:nth-child(1)::before { background: #10b981; }
.product-card-premium:nth-child(2)::before { background: #f59e0b; }
.product-card-premium:nth-child(3)::before { background: #06b6d4; }
.product-card-premium:nth-child(4)::before { background: #8b5cf6; }
.product-card-premium:nth-child(5)::before { background: #ef4444; }

@media (max-width: 768px) {
    .products-grid-detailed {
        grid-template-columns: 1fr;
    }
    .card-highlight-full {
        grid-column: span 1;
    }
    .grid-features-two-col {
        grid-template-columns: 1fr;
    }
}

/* About Approach Custom Grid (4 Columns) */
.about-approach-steps {
    grid-template-columns: repeat(4, 1fr) !important;
}

/* ==========================================================================
   CONTACT FORM & LAYOUTS
   ========================================================================== */
.contact-section {
    padding: var(--section-gap-lg) 0;
    border-bottom: var(--border-weight-primary) solid var(--border-heavy);
}

.contact-grid,
.contact-wrapper {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 5rem;
}

.contact-info {
    grid-column: 1;
}

.contact-form-container {
    grid-column: 2;
}

.contact-info h2 {
    font-size: 3rem;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 3rem;
}

.contact-item,
.info-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem 1.75rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all var(--transition-speed) ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.01);
}

.contact-item:hover,
.info-item:hover {
    border-left-color: var(--brand-red);
    border-color: var(--border-heavy);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    background: var(--bg-primary);
}

.dark-theme .contact-item,
.dark-theme .info-item {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.dark-theme .contact-item:hover,
.dark-theme .info-item:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.info-icon {
    color: var(--brand-red);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

.info-content {
    display: flex;
    flex-direction: column;
}

.contact-item h4,
.info-item h4 {
    font-size: 1.15rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--brand-navy);
}

.dark-theme .contact-item h4,
.dark-theme .info-item h4 {
    color: var(--text-primary);
}

.contact-form {
    border: 1px solid var(--border-color);
    background: var(--bg-secondary);
    border-radius: 0;
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.01);
    transition: border-color var(--transition-speed) ease, box-shadow var(--transition-speed) ease;
}

.contact-form:hover {
    border-color: var(--border-heavy);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.02);
}

.dark-theme .contact-form:hover {
    border-color: var(--border-heavy);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.75rem;
    transition: color var(--transition-speed) ease;
}

.form-group:focus-within label {
    color: var(--brand-red);
    font-weight: 700;
}

/* Clean Underline Input Form Style (Agency Aesthetic) */
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    border: none;
    border-bottom: 2px solid var(--border-color);
    background: transparent;
    padding: 0.85rem 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.25s ease;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--brand-red);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.btn-submit {
    width: 100%;
    background-color: var(--brand-red);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1.2rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-speed) ease;
}

.btn-submit:hover {
    background-color: var(--brand-red-hover);
}

/* ==========================================================================
   REDESIGNED CONTACT PORTAL SYSTEM
   ========================================================================== */
.contact-portal-section {
    padding: 4.5rem 0 7rem;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.portal-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.portal-meta-badge .badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-red);
}

.portal-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 5.5rem;
    align-items: start;
}

.portal-left {
    display: flex;
    flex-direction: column;
}

.portal-left-title {
    font-size: 2.25rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--brand-navy);
}

.dark-theme .portal-left-title {
    color: var(--text-primary);
}

.portal-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.technical-info-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tech-info-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all var(--transition-speed) ease;
}

.tech-info-card:hover {
    border-color: var(--border-heavy);
    transform: translateX(5px);
    background: var(--bg-primary);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.015);
}

.tech-info-card .card-icon {
    color: var(--brand-red);
    background: rgba(174, 0, 0, 0.05);
    border: 1px solid rgba(174, 0, 0, 0.1);
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    flex-shrink: 0;
    transition: all var(--transition-speed) ease;
}

.tech-info-card:hover .card-icon {
    background: var(--brand-red);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(174, 0, 0, 0.3);
}

.tech-info-card h5 {
    font-size: 1.05rem;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.dark-theme .tech-info-card h5 {
    color: var(--text-primary);
}

.tech-info-card p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

.contact-form-card {
    background: rgba(246, 248, 250, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 0;
    padding: 3.5rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.02);
    transition: all var(--transition-speed) ease;
}

.dark-theme .contact-form-card {
    background: rgba(18, 20, 26, 0.65);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.contact-form-card:hover {
    border-color: var(--border-heavy);
}

.card-header-tech {
    margin-bottom: 3rem;
}

.card-header-tech h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

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

.form-row-tech {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-group-tech {
    position: relative;
    margin-bottom: 2.25rem;
}

.form-group-tech label {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 0.5rem;
    transition: color var(--transition-speed) ease;
}

.form-group-tech input,
.form-group-tech textarea {
    display: block;
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.3s ease;
    border-radius: 0;
}

.form-group-tech input::placeholder,
.form-group-tech textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.5;
}

/* Accent animating focus line */
.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--brand-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-group-tech:focus-within .input-focus-line {
    transform: scaleX(1);
}

.form-group-tech:focus-within label {
    color: var(--brand-red);
    font-weight: 700;
}

/* Custom Dropdown selector */
.select-wrapper-tech {
    position: relative;
    width: 100%;
}

.select-wrapper-tech select {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border-color);
    padding: 0.75rem 0;
    font-family: var(--font-sans);
    font-size: 0.94rem;
    color: var(--text-primary);
    outline: none;
    cursor: pointer;
    border-radius: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    transition: border-color 0.3s ease;
}

.select-wrapper-tech select option {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.select-wrapper-tech::after {
    content: '';
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-muted);
    pointer-events: none;
    transition: border-top-color var(--transition-speed) ease;
}

.select-wrapper-tech:hover::after {
    border-top-color: var(--text-primary);
}

.form-group-tech:focus-within .select-wrapper-tech::after {
    border-top-color: var(--brand-red);
}

.form-group-tech textarea {
    min-height: 100px;
    resize: vertical;
}

/* submit button with tech accents */
.btn-submit-tech {
    width: 100%;
    background-color: var(--brand-red);
    color: #ffffff;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 1.25rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: none;
    border-left: 4px solid var(--brand-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dark-theme .btn-submit-tech {
    border-left-color: #ffffff;
}

.btn-submit-tech:hover {
    background-color: var(--brand-red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(174, 0, 0, 0.2);
}

.btn-arrow {
    transition: transform 0.25s ease;
}

.btn-submit-tech:hover .btn-arrow {
    transform: translateX(4px);
}

/* Responsive Contact Portal Rules */
@media (max-width: 1200px) {
    .portal-grid {
        gap: 3.5rem;
    }
    .portal-left-title {
        font-size: 2rem;
    }
}

@media (max-width: 992px) {
    .contact-portal-section {
        padding: 2rem 0 5rem;
    }
    
    .portal-grid {
        grid-template-columns: 1fr;
        gap: 4.5rem;
    }
    
    .portal-subtitle {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-portal-section {
        padding: 1.5rem 0 4rem;
    }
    
    .portal-left-title {
        font-size: 1.8rem;
    }
    
    .contact-form-card {
        padding: 2.5rem 2rem;
    }
    
    .form-row-tech {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

/* Custom Leaflet Popup Overrides */
.leaflet-popup-content-wrapper {
    background: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05) !important;
    padding: 0.25rem 0.5rem;
}

.leaflet-popup-tip {
    background: var(--bg-primary) !important;
    border-left: 1px solid var(--border-color) !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.dark-theme .leaflet-popup-content-wrapper {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3) !important;
}

.custom-map-pin {
    background: transparent;
    border: none;
}

.alert {
    font-family: var(--font-sans);
    font-size: 0.9rem;
    padding: 1.2rem;
    border-radius: 0;
    margin-bottom: 2rem;
    font-weight: 500;
}

.alert-success {
    background-color: #d1fae5;
    color: #065f46;
    border-left: 4px solid #10b981;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

/* Map placeholder */
.map-section {
    padding: 6rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.map-container,
.map-placeholder {
    height: 400px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    text-transform: uppercase;
    font-size: 0.85rem;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */
.cta-section {
    padding: var(--section-gap-lg) 0;
    background: var(--brand-navy);
    border-top: 4px solid var(--brand-red);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.cta-section h2,
.cta-content h2 {
    font-size: 3rem;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
}

.cta-section p,
.cta-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
}

.cta-section .btn-light {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 4px solid var(--brand-red);
}

.cta-section .btn-light:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #ffffff;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background-color: var(--brand-navy) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 0 !important; /* Sharp corner style */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.back-to-top:hover {
    background-color: var(--brand-red) !important;
    transform: translateY(-2px);
}

/* ==========================================================================
   404 ERROR PAGE
   ========================================================================== */
.error-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0;
}

.error-content {
    text-align: center;
    max-width: 600px;
}

.error-content h1 {
    font-family: var(--font-mono);
    font-size: 7.5rem;
    line-height: 1;
    color: var(--brand-red);
    margin-bottom: 2rem;
}

.error-content h2 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.error-content p {
    margin-bottom: 2.5rem;
}

.error-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   FOOTER (REDESIGNED SWISS INDUSTRIAL MINIMAL)
   ========================================================================== */
.footer {
    background: var(--bg-secondary);
    padding: var(--section-gap) 0 4rem;
    border-top: var(--border-weight-primary) solid var(--border-heavy);
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Footer Top Section */
.footer-top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
    align-items: flex-start;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-brand {
    padding-right: 3rem;
}

.footer-logo {
    height: 54px;
    width: auto;
    margin-bottom: 1.5rem;
    transition: filter var(--transition-speed) ease;
}

.dark-theme .footer-logo {
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.15)) brightness(0) invert(1);
}

.footer-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 500px;
}

/* Newsletter Block */
.footer-newsletter {
    display: flex;
    flex-direction: column;
}

.footer-meta {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--brand-red);
    margin-bottom: 0.75rem;
    display: block;
    font-weight: 700;
}

.footer-newsletter h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--brand-navy);
}

.dark-theme .footer-newsletter h4 {
    color: var(--text-primary);
}

.newsletter-form {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    transition: border-color 0.25s ease;
}

.newsletter-form:focus-within {
    border-color: var(--brand-red);
}

.newsletter-form input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.88rem;
    font-weight: 500;
    width: 100%;
    padding: 0.5rem 0;
}

.newsletter-form input::placeholder {
    color: var(--text-muted);
}

.btn-subscribe {
    background: transparent;
    border: none;
    outline: none;
    color: var(--brand-red);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: color 0.2s ease, transform 0.2s ease;
}

.btn-subscribe:hover {
    color: var(--text-primary);
    transform: translateX(2px);
}

/* Footer Middle Section (Grid Links) */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border-color);
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-column h4 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--brand-navy);
    margin: 0.5rem 0 1.5rem;
    letter-spacing: -0.02em;
}

.dark-theme .footer-column h4 {
    color: var(--text-primary);
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links li {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--text-secondary);
    position: relative;
    display: inline-block;
    transition: color 0.2s ease, padding-left 0.25s ease;
}

.footer-links a:hover {
    color: var(--brand-red);
    padding-left: 6px;
}

.footer-contact p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.footer-contact a {
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.footer-contact a:hover {
    color: var(--brand-red);
}

/* Footer Bottom Section */
.footer-bottom {
    display: block;
}

.footer-copyright-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1.5rem;
}

.footer-copyright-block p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

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

.footer-bottom-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
    color: var(--brand-red);
}

/* ==========================================================================
   ANIMATIONS & EFFECTS
   ========================================================================== */

/* Scroll-triggered reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay classes for children */
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* Legacy animation class kept for backwards compatibility */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Delays for elements */
.animate-in:nth-child(1) { animation-delay: 0.05s; }
.animate-in:nth-child(2) { animation-delay: 0.1s; }
.animate-in:nth-child(3) { animation-delay: 0.15s; }
.animate-in:nth-child(4) { animation-delay: 0.2s; }

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVENESS)
   ========================================================================== */
@media (max-width: 1200px) {
    .hero h1 { font-size: 4.5rem; }
    .services-grid, 
    .industries-container { grid-template-columns: repeat(2, 1fr); }
    .services-grid { border-right: 1px solid var(--border-color); }
    .service-card:nth-child(3) { border-right: 1px solid var(--border-color); }
    .footer-top { gap: 3rem; }
    .footer-grid { grid-template-columns: repeat(4, 1fr); }
    .page-header-alt h1 { font-size: 3.8rem; }
}

@media (max-width: 992px) {
    .container { padding: 0 1.5rem; }
    .nav-content { padding: 0 1.5rem; }
    .nav-menu { gap: 1.5rem; } /* Reduce gap to fit on tablet screens */
    .hero-container { grid-template-columns: 1fr; gap: 2.5rem; }
    .hero-text-block { border-left: none; padding-left: 0; }
    .hero h1 { font-size: 3.8rem; }
    .page-header-alt h1 { font-size: 3.2rem; }
    .service-detail { padding: 2.5rem; }
    
    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
        padding-top: 2.5rem;
    }

    .services-intro,
    .section-header,
    .value-content,
    .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
    
    .services-intro p,
    .section-description,
    .contact-info p { border-left: none; padding-left: 0; }
    
    .service-detail-content {
        grid-template-columns: 1fr !important;
        grid-template-rows: auto !important;
        gap: 2rem;
    }
    .content-block,
    .capabilities-grid,
    .benefits-section {
        grid-column: auto !important;
        grid-row: auto !important;
        align-self: stretch !important;
    }

    .contact-wrapper {
        grid-template-columns: 1fr !important;
        gap: 3.5rem;
    }
    .contact-info,
    .contact-form-container {
        grid-column: auto !important;
    }
    
    .approach-steps,
    .about-approach-steps,
    .process-steps,
    .value-grid,
    .values-grid,
    .diff-grid { grid-template-columns: repeat(2, 1fr) !important; }
    
    .partner-container,
    .partner-glimpse-card {
        grid-template-columns: 1fr;
    }
    
    .partner-brand-box,
    .glimpse-brand {
        border-right: none;
        border-bottom: var(--border-weight-secondary) solid var(--border-color);
        padding: 3rem;
    }
    
    .partner-products-showcase,
    .glimpse-details {
        padding: 3rem;
    }

    .footer-top { grid-template-columns: 1fr; gap: 3rem; }
    .footer-brand { padding-right: 0; }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    }
    
    .nav-menu.active { display: flex; }
    .mobile-toggle { display: flex; }
    .hero { padding-top: 8rem; padding-bottom: 6rem; }
    .hero h1 { font-size: 3rem; }
    .page-header-alt { padding-top: 8rem; padding-bottom: 4rem; }
    .page-header-alt h1 { font-size: 2.5rem; }
    .service-detail { padding: 1.5rem; }
    
    .services-grid, 
    .industries-container,
    .approach-steps,
    .about-approach-steps,
    .process-steps,
    .value-grid,
    .values-grid,
    .mv-grid,
    .diff-grid,
    .products-grid-detailed { grid-template-columns: 1fr !important; }
    
    .card-highlight-full {
        grid-column: span 1 !important;
    }
    
    .capabilities-grid { grid-template-columns: 1fr !important; }
    .benefits-list { gap: 1rem; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    
    .value-text h2 { font-size: 2.5rem; }
    .services-intro h2 { font-size: 2.2rem; }
    .section-title { font-size: 1.8rem; }
    .service-card, 
    .industry-card, 
    .value-item, 
    .value-card,
    .mv-card,
    .diff-item,
    .alliance-card {
        padding: 2rem 1.5rem !important;
    }
    
    .alliance-brand-full {
        padding: 2.5rem 1.5rem !important;
    }
    
    .cta-section h2, .cta-content h2 { font-size: 2.2rem; }
    .cta-content { padding: 0 1.5rem; }

    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { display: block; }
    .footer-copyright-block { flex-direction: column; gap: 1rem; text-align: center; }
    .footer-bottom-links { justify-content: center; }
}

@media (max-width: 576px) {
    .hero h1 { font-size: 2.5rem; }
    .page-header-alt h1 { font-size: 2rem; }
    .service-detail { padding: 1.25rem; }
    .contact-form-card { padding: 1.5rem 1rem; }
    .value-text h2 { font-size: 2rem; }
    .services-intro h2 { font-size: 1.8rem; }
    .cta-section h2, .cta-content h2 { font-size: 1.8rem; }
    .cta-content { padding: 0 1rem; }
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding-top: 2rem;
    }
    .stat-value {
        font-size: 2.2rem;
    }
    .partner-brand-box,
    .partner-products-showcase,
    .glimpse-brand,
    .glimpse-details {
        padding: 2.5rem 1.5rem;
    }
    .partner-brand-content h3,
    .glimpse-brand h3 {
        font-size: 1.8rem;
    }
}

/* ==========================================================================
   PARTNER SPLIT GRID ALLIANCE REDESIGN
   ========================================================================== */
.alliance-grid {
    display: flex;
    flex-direction: column;
    margin-top: 4rem;
}

.ecosystem-header {
    margin-top: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
}

.ecosystem-header h3 {
    font-size: 1.8rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ecosystem-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-top: 0.5rem;
}

.ecosystem-products-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.ecosystem-products-grid .alliance-card {
    flex: 0 1 calc(33.333% - 1rem);
    min-width: 300px; /* Ensure they don't get too small before wrapping */
}

@media (max-width: 1024px) {
    .ecosystem-products-grid .alliance-card {
        flex: 0 1 calc(50% - 1rem); /* 2 in a row on medium screens */
    }
}

@media (max-width: 768px) {
    .ecosystem-products-grid .alliance-card {
        flex: 0 1 100%; /* 1 in a row on small screens */
    }
}

/* Card layout configurations from diagram */
.alliance-card {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 0; /* Match other cards */
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.25rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                box-shadow 0.25s ease;
}

.alliance-card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-red);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}

.dark-theme .alliance-card {
    background: #111;
    border-color: #333;
}

.dark-theme .alliance-card:hover {
    border-color: var(--brand-red);
    box-shadow: 0 15px 40px rgba(255,0,0,0.05);
}

.alliance-brand-full {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--brand-red);
    border-radius: 0; /* Match other cards */
    padding: 4.5rem 4rem;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease;
    margin-bottom: 2rem !important;
}

.alliance-brand-full:hover {
    transform: translateY(-4px);
    border-color: var(--brand-red);
}

.dark-theme .alliance-brand-full {
    background: #111;
    border-color: #333;
    border-left-color: var(--brand-red);
}

.dark-theme .alliance-brand-full:hover {
    border-color: var(--brand-red);
}

/* Product card internal elements */
.card-num {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--brand-red);
    position: absolute;
    top: 2.2rem;
    right: 2.5rem;
    opacity: 0.8;
}

.card-badge {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    width: fit-content;
}

.alliance-card h3 {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.02em;
}

.alliance-card p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.card-tags span {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.6rem;
    background: var(--bg-primary);
    text-transform: uppercase;
    transition: all 0.25s ease;
}

.alliance-card:hover .card-tags span {
    border-color: var(--border-heavy);
    color: var(--text-primary);
}

/* Alliance Brand Card details */
.brand-header-row {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.brand-logo-container {
    height: 70px;
    display: flex;
    align-items: center;
}

.partner-logo-img {
    height: 100%;
    max-height: 65px;
    width: auto;
    object-fit: contain;
}

/* Light / Dark Mode logo switcher */
.logo-light { display: block; }
.logo-dark { display: none; }
.dark-theme .logo-light { display: none; }
.dark-theme .logo-dark { display: block; }

.alliance-badge {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--brand-red);
}

.brand-body-row {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.brand-body-row p {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.partner-visit-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.partner-visit-btn svg {
    transition: transform 0.25s ease;
}

.partner-visit-btn:hover svg {
    transform: translate(2px, -2px);
}

/* Responsive adjustments for alliance section */
@media (max-width: 992px) {
    .alliance-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .alliance-card {
        grid-column: auto !important;
        padding: 2rem;
    }
    
    .alliance-brand-full {
        grid-column: auto !important;
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
        padding: 3.5rem 2rem;
    }
    
    .brand-logo-container {
        height: 60px;
    }
}

/* ==========================================================================
   USER OVERRIDES: INCREASE SUBTITLE SIZES (Grey & Red)
   ========================================================================== */
.page-subtitle, 
.portal-subtitle, 
.hero-subtitle,
.section-subtitle {
    font-size: 1.3rem !important; /* Increased from ~1rem (Grey subtitles) */
}

.section-label, 
.portal-meta-badge, 
.glimpse-badge, 
.partner-badge, 
.step-phase, 
.alliance-badge, 
.header-meta,
.stat-label,
.footer-meta,
.prod-badge {
    font-size: 1.15rem !important; /* Substantially increased from ~0.72rem */
    letter-spacing: 1px !important;
}

/* ==========================================================================
   SLEEK STATS REDESIGN (Non-Bulky)
   ========================================================================== */
.sleek-stats-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1rem 2rem;
}

.sleek-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
}

.sleek-stat-item .stat-value {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 300; /* Very light weight to remove bulk */
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -1px;
}

.sleek-stat-item .stat-label {
    font-family: var(--font-mono);
    color: var(--brand-red);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1.5px;
    font-size: 0.85rem !important; /* Intentionally smaller to look sleek */
}

@media (max-width: 900px) {
    .sleek-stats-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem 1rem;
    }
    .sleek-stat-item {
        width: 100%;
    }
    .sleek-stat-item .stat-value {
        font-size: 2.2rem;
        white-space: nowrap;
    }
}

