/* ========== UPDATED TO MATCH PART DISCOVERY STYLES WITH MOBILE FIXES ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E3A8A;
    --primary-light: #3B82F6;
    --primary-dark: #1E40AF;
    --secondary: #10B981;
    --accent: #F59E0B;
    --foreground: #111827;
    --foreground-light: #374151;
    --background: #FFFFFF;
    --light-grey: #F9FAFB;
    --grey: #E5E7EB;
    --dark-grey: #6B7280;
    --header-offset: 110px;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--foreground);
    background-color: var(--background);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
}

/* Fix iOS input zoom */
input, textarea, select, button {
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Nunito Sans', sans-serif;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 3.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== SMOOTH ANIMATIONS ========== */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

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

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideLeft 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideRight 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-scale-up {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

.animate-delay-100 { animation-delay: 100ms; }
.animate-delay-200 { animation-delay: 200ms; }
.animate-delay-300 { animation-delay: 300ms; }
.animate-delay-400 { animation-delay: 400ms; }
.animate-delay-500 { animation-delay: 500ms; }
.animate-delay-600 { animation-delay: 600ms; }
.animate-delay-700 { animation-delay: 700ms; }
.animate-delay-800 { animation-delay: 800ms; }

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

@keyframes slideLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseSlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

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

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

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

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

/* Button Animations */
.primary-button {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 9999px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    min-width: 200px;
    justify-content: center;
    text-align: center;
    animation: pulseSlow 4s ease-in-out infinite;
}

.primary-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.3);
    animation: none;
}

.primary-button:active {
    transform: translateY(-1px);
}

.primary-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.7s ease;
}

.primary-button:hover::before {
    left: 100%;
}

.primary-button span {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.primary-button i {
    transition: transform 0.4s ease;
}

.primary-button:hover i {
    transform: translateX(5px);
}

.secondary-button {
    padding: 1rem 2rem;
    background: white;
    border: 2px solid var(--grey);
    color: var(--foreground);
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    min-width: 200px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.secondary-button:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.secondary-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(30, 58, 138, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.secondary-button:hover::before {
    width: 300px;
    height: 300px;
}

.secondary-button span {
    position: relative;
    z-index: 1;
}

/* Progress Bar Animation */
.progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    width: 0%;
    transition: width 0.3s ease;
}

.blueprint-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.008;
    pointer-events: none;
    z-index: 1;
}

.blueprint-grid rect {
    fill: url(#grid-pattern);
}

.blueprint-grid pattern {
    color: rgba(30, 58, 138, 0.05);
}

section {
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--header-offset);
}

/* Remove blueprint grid from sections if it's too prominent */
section:not(.hero) .blueprint-grid {
    display: none;
}

/* ========== HEADER - FIXED FOR MOBILE ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.header.hidden {
    transform: translateY(-100%);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100rem;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--foreground);
    letter-spacing: -0.02em;
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
    margin-left: auto;
}

.nav-link {
    color: #374151;
    font-weight: 600;
    font-size: 0.875rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--foreground);
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: var(--foreground);
    transform: translateY(-2px);
}

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

.cta-button {
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.cta-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
}

/* ========== DROPDOWN MENU - EXACT FROM FIRST CODE ========== */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background-color: white;
    min-width: 250px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border: 1px solid #E5E7EB;
    z-index: 1001;
    animation: fadeIn 0.3s ease-out;
}

.dropdown-menu.active {
    display: block;
}

.dropdown-item {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--foreground);
    border-bottom: 1px solid #F9FAFB;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: var(--light-grey);
    padding-left: 2rem;
    color: var(--foreground);
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: var(--primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--foreground);
    transition: transform 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
    z-index: 1002;
}

.menu-toggle:hover {
    background: var(--light-grey);
    transform: rotate(90deg);
}

/* ========== HERO SECTION WITH MOBILE FIXES ========== */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    width: 100%;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding-top: 80px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Subtle Background Image Layer */
.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('https://static.wixstatic.com/media/3d4c2a_2f337be5b7da445db58a7946af6d1fe4~mv2.jpg');
    background-size: clamp(700px, 70vw, 1400px) auto;
    background-position: 0% 50%;
    background-attachment: scroll;
    background-repeat: repeat-x;
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 10s ease infinite;
    transform: translate3d(0,0,0);
    will-change: transform, background-position;
    backface-visibility: hidden;
}

.parallax-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
    transform: translate3d(0,0,0);
    will-change: transform, background-position;
    backface-visibility: hidden;
}

.hero-circle-1 {
    position: absolute;
    top: 25%;
    left: 25%;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    opacity: 0.2;
    animation: spin 60s linear infinite;
}

.hero-circle-2 {
    position: absolute;
    bottom: 25%;
    right: 25%;
    width: 300px;
    height: 300px;
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 50%;
    opacity: 0.2;
    animation: spin-reverse 40s linear infinite;
    animation-delay: 1s;
}

.hero-circle-3 {
    position: absolute;
    top: 60%;
    left: 10%;
    width: 150px;
    height: 150px;
    border: 1px solid rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 8s ease-in-out infinite;
    animation-delay: 2s;
}

.hero-circle-4 {
    position: absolute;
    top: 15%;
    right: 15%;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(30, 58, 138, 0.05);
    border-radius: 50%;
    opacity: 0.15;
    animation: float 10s ease-in-out infinite;
    animation-delay: 3s;
}

.hero-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 20;
    max-width: 90rem;
    margin: 0 auto;
    padding: 3.5rem 1.5rem;
    text-align: center;
    width: 100%;
}

.hero-title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.title-line-1, .title-line-2 {
    display: block;
}

.title-line-2 {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--dark-grey);
    max-width: 48rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
    opacity: 0;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

.button-group {
    margin-bottom: 4rem;
    opacity: 0;
    animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1rem;
    align-items: center;
}

.access-btn {
    margin-bottom: 0;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 20;
    transition: opacity 0.5s ease, transform 0.5s ease;
    animation: bounce 2s infinite;
}

.scroll-text {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--dark-grey);
    font-weight: 600;
    opacity: 0.8;
    margin-bottom: 4px;
    display: block;
    text-align: center;
    width: 100%;
    letter-spacing: 2px;
}

.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom,
        rgba(30, 58, 138, 0) 0%,
        rgba(30, 58, 138, 0.7) 50%,
        rgba(30, 58, 138, 0) 100%);
}

/* ========== PHILOSOPHY SECTION ========== */
.philosophy {
    padding: 8rem 0;
    background-color: var(--light-grey);
    text-align: center;
    position: relative;
}

.quote {
    font-size: 2.75rem;
    font-weight: 600;
    max-width: 55rem;
    margin: 0 auto;
    line-height: 1.3;
    color: var(--foreground);
    position: relative;
}

.quote span { 
    color: var(--primary-dark);
    position: relative;
    display: inline-block;
}

.quote span::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.quote:hover span::after {
    width: 100%;
}

/* ========== STRUCTURED DIGITAL FLOWS SECTION ========== */
.infrastructure {
    padding: 8rem 0;
    background: white;
    position: relative;
    overflow: hidden;
}

.infrastructure-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.infrastructure-content {
    width: 100%;
}

.infrastructure-content h2 {
    line-height: 1.1;
    font-size: 3.5rem;
    color: var(--foreground);
    text-align: left;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.infrastructure-content p {
    font-size: 1.25rem;
    color: var(--dark-grey);
    margin-top: 1.5rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-align: left;
    max-width: 48rem;
}

/* System Tag with animation */
.system-tag {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    border: 1px solid rgba(30, 58, 138, 0.3);
    background: rgba(30, 58, 138, 0.05);
    color: var(--primary);
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
               transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    display: block;
    width: fit-content;
}

.system-tag.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient Text */
.gradient-text {
    color: var(--primary);
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
               transform 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.gradient-text.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Features List with animation */
.features-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 2.5rem;
    max-width: 400px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background: var(--light-grey);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    opacity: 0;
    transform: translateX(-20px);
    text-align: left;
}

.feature-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.feature-item:nth-child(1) { transition-delay: 0.3s; }
.feature-item:nth-child(2) { transition-delay: 0.4s; }
.feature-item:nth-child(3) { transition-delay: 0.5s; }
.feature-item:nth-child(4) { transition-delay: 0.6s; }

.feature-item:hover {
    background: white;
    border-color: var(--grey);
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.feature-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    flex-shrink: 0;
    font-size: 0.875rem;
}

.feature-item:hover .feature-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.feature-text {
    font-size: 0.9375rem;
    color: var(--dark-grey);
    transition: color 0.3s;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

/* Dashboard Container */
.dashboard-container {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    transition: all 1.2s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.dashboard-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.dashboard-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--grey);
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 100%;
    height: auto;
}

.dashboard-card:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--grey);
    background: var(--light-grey);
}

.window-controls {
    display: flex;
    gap: 0.5rem;
}

.control-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    transition: transform 0.3s;
}

.control-dot:hover {
    transform: scale(1.2);
}

.red { background: #EF4444; }
.yellow { background: #F59E0B; }
.green { background: #10B981; }

.dashboard-version {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--dark-grey);
}

.dashboard-content {
    padding: 1.75rem;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.metric-box {
    padding: 1.25rem;
    border-radius: 0.75rem;
    background: var(--light-grey);
    border: 1px solid var(--grey);
    transition: all 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.metric-box.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.metric-box:nth-child(1) { transition-delay: 0.5s; }
.metric-box:nth-child(2) { transition-delay: 0.6s; }

.metric-box:hover {
    background: white;
    border-color: var(--primary);
    transform: translateY(-5px);
}

.metric-label {
    font-size: 0.875rem;
    color: var(--dark-grey);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.metric-value {
    font-family: 'Courier New', monospace;
    font-size: 1.75rem;
    color: var(--foreground);
    font-weight: 700;
}

.metric-value.neon {
    color: var(--primary);
}

/* Progress Bars */
.progress-bars {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.progress-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s, transform 0.6s;
}

.progress-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.progress-item:nth-child(1) { transition-delay: 0.7s; }
.progress-item:nth-child(2) { transition-delay: 0.8s; }
.progress-item:nth-child(3) { transition-delay: 0.9s; }
.progress-item:nth-child(4) { transition-delay: 1.0s; }

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    align-items: center;
}

.progress-label {
    color: var(--dark-grey);
    font-weight: 600;
}

.progress-value {
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 0.875rem;
    color: var(--primary);
    position: relative;
    padding-left: 25px;
}

.progress-value::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 20px;
    height: 2px;
    background: linear-gradient(to right, var(--grey) 50%, var(--grey) 50%);
    background-size: 200% 100%;
    background-position: right;
    transform: translateY(-50%);
    transition: background-position 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s;
    border-radius: 1px;
}

.progress-item.animate-in .progress-value::before {
    background: linear-gradient(to right, var(--primary) var(--progress-fill), var(--grey) var(--progress-fill));
}

.progress-item:nth-child(1) .progress-value::before {
    --progress-fill: 94%;
}
.progress-item:nth-child(2) .progress-value::before {
    --progress-fill: 87%;
}
.progress-item:nth-child(3) .progress-value::before {
    --progress-fill: 91%;
}
.progress-item:nth-child(4) .progress-value::before {
    --progress-fill: 96%;
}

.progress-bar-bg {
    height: 0.5rem;
    background: var(--light-grey);
    border-radius: 9999px;
    overflow: hidden;
    position: relative;
}

.progress-bar-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--primary);
    border-radius: 9999px;
    transition: width 1.5s cubic-bezier(0.16, 1, 0.3, 1) 1s;
}

.progress-item.animate-in .progress-bar-fill {
    width: var(--progress-width);
}

.progress-item:nth-child(1) .progress-bar-fill { --progress-width: 94%; }
.progress-item:nth-child(2) .progress-bar-fill { --progress-width: 87%; }
.progress-item:nth-child(3) .progress-bar-fill { --progress-width: 91%; }
.progress-item:nth-child(4) .progress-bar-fill { --progress-width: 96%; }

/* Graph Container */
.graph-container {
    height: 6rem;
    border-radius: 0.75rem;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.05), transparent);
    border: 1px solid var(--grey);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s 1.2s, transform 0.8s 1.2s;
}

.graph-container.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.graph-grid {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(30, 58, 138, 0.1);
}

.graph-grid::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: repeating-linear-gradient(
        to right,
        transparent,
        transparent 9%,
        rgba(30, 58, 138, 0.1) 10%
    );
}

.graph-line {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.graph-line path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    animation: drawLine 2s ease-in-out 1.5s forwards;
}

@keyframes drawLine {
    to {
        stroke-dashoffset: 0;
    }
}

/* ========== PRECISION SECTION ========== */
.precision {
    background-color: var(--light-grey);
    padding: 8rem 0;
    position: relative;
}

.precision-header {
    text-align: center;
    margin-bottom: 5rem;
}

.precision-header h2 {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.precision-header p {
    font-size: 1.25rem;
    color: var(--dark-grey);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

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

.role-card {
    background: white;
    padding: 2.5rem;
    border-radius: 1.25rem;
    border: 1px solid var(--grey);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.role-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.role-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--primary-light) 100%);
    transform: scaleY(0);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: top;
}

.role-card:hover::before {
    transform: scaleY(1);
}

.role-card h3 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    color: var(--foreground);
    z-index: 1;
}

.role-card:hover h3 {
    color: var(--primary);
}

.role-subtitle {
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    font-size: 1rem;
    position: relative;
    z-index: 1;
}

.role-card p {
    color: var(--dark-grey);
    position: relative;
    z-index: 1;
}

.role-link {
    margin-top: auto;
    font-weight: 700;
    color: var(--foreground);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1.5rem;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.role-link:hover {
    color: var(--primary);
    gap: 1rem;
}

.role-link i {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.role-link:hover i {
    transform: translateX(8px);
}

/* ========== CORE FUNCTIONS SECTION ========== */
.core-functions {
    padding: 8rem 0;
    background: white;
    text-align: center;
    position: relative;
}

.core-functions h2 {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.core-functions p {
    font-size: 1.25rem;
    color: var(--dark-grey);
    max-width: 48rem;
    margin: 0 auto 4rem;
    line-height: 1.6;
}

.functions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
}

.function-card {
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid transparent;
    background: var(--light-grey);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.function-card:hover {
    background: white;
    border-color: var(--grey);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.function-card h3 {
    font-size: 1.5rem;
    color: var(--foreground);
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.function-card:hover h3 {
    color: var(--primary);
}

.function-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    background: rgba(30, 58, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin: 0 auto 1.5rem;
    font-size: 1.75rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}

.function-card:hover .function-icon {
    background: var(--primary);
    color: white;
    transform: rotate(45deg);
}

.function-card p {
    font-size: 0.9375rem;
    color: var(--dark-grey);
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

/* ========== OPERATIONAL WORKFLOW SECTION ========== */
.workflow {
    padding: 8rem 0;
    background-color: var(--light-grey);
    position: relative;
    overflow: hidden;
}

.workflow-header {
    text-align: center;
    margin-bottom: 6rem;
}

.workflow-header h2 {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.workflow-header p {
    font-size: 1.25rem;
    color: var(--dark-grey);
    max-width: 48rem;
    margin: 0 auto;
    line-height: 1.6;
}

.workflow-steps {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 2.5rem;
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 1.5rem;
    left: 5%;
    right: 5%;
    height: 1px;
    background-color: var(--grey);
    z-index: 1;
    opacity: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s,
                opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s;
}

.workflow-steps.animate-in::before {
    opacity: 1;
    transform: scaleX(1);
}

.workflow-step {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
               transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-step.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
}

.step-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: white;
    border: 2px solid var(--grey);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: var(--dark-grey);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 3;
    position: relative;
    box-shadow: 0 0 0 6px var(--light-grey);
    transform: scale(0);
    animation: circlePop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes circlePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    70% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.workflow-step.animate-in .step-circle {
    animation-delay: calc(var(--step-index) * 0.2s);
}

.workflow-step:hover .step-circle {
    border-color: var(--primary);
    color: var(--primary);
    transform: scale(1.05);
    box-shadow: 0 0 0 8px var(--light-grey), 0 4px 12px rgba(30, 58, 138, 0.1);
}

.workflow-step h4 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--foreground);
    opacity: 0;
    transform: translateX(-20px);
    transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.workflow-step.animate-in h4 {
    opacity: 1;
    transform: translateX(0);
}

.step-description {
    font-size: 0.9375rem;
    color: var(--dark-grey);
    max-width: 200px;
    margin: 0 auto;
    line-height: 1.4;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.workflow-step.animate-in .step-description {
    opacity: 1;
    transform: translateY(0);
}

.workflow-status {
    margin-top: 6rem;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s,
               transform 0.8s cubic-bezier(0.16, 1, 0.3, 1) 1.5s;
}

.workflow-status.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.status-badge {
    display: inline-block;
    font-family: 'Courier New', monospace;
    color: var(--primary);
    background: rgba(30, 58, 138, 0.05);
    padding: 0.6rem 1.25rem;
    border: 1px solid rgba(30, 58, 138, 0.1);
    border-radius: 4px;
    font-size: 0.875rem;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.workflow-status.animate-in .status-badge {
    animation: badgePulse 2s cubic-bezier(0.16, 1, 0.3, 1) 1.8s;
}

@keyframes badgePulse {
    0%, 100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(30, 58, 138, 0.1);
    }
    50% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(30, 58, 138, 0);
    }
}

/* ========== VALUES SECTION ========== */
.values {
    padding: 8rem 0;
    background: white;
    text-align: center;
    position: relative;
}

.values h2 {
    color: var(--foreground);
    margin-bottom: 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
    text-align: center;
}

.value-item {
    border-left: none;
    padding-left: 0;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: default;
    position: relative;
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid transparent;
    background: var(--light-grey);
}

.value-item:hover {
    background: white;
    border-color: var(--grey);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.value-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
    color: var(--foreground);
}

.value-item:hover h3 {
    color: var(--primary);
}

.value-description {
    font-size: 0.9375rem;
    color: var(--dark-grey);
    line-height: 1.5;
}

.values-header-text {
    font-size: 1.25rem;
    color: var(--dark-grey);
    max-width: 48rem;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* ========== STATEMENT SECTION ========== */
.statement {
    padding: 10rem 0;
    background: white;
    position: relative;
}

.statement-card {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 5rem 3rem;
    border-radius: 1.5rem;
    border: 1px solid var(--grey);
    text-align: center;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.statement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.statement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, rgba(59,130,246,0) 0%, rgba(30,58,138,0.3) 50%, rgba(59,130,246,0) 100%);
}

.statement-card blockquote {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.6;
    color: var(--dark-grey);
    letter-spacing: -0.01em;
}

/* ========== CTA SECTION ========== */
.cta {
    padding: 10rem 0;
    text-align: center;
    background: white;
    position: relative;
}

.cta h2 {
    margin-bottom: 3.5rem;
    font-size: 5.5rem;
    color: var(--foreground);
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-buttons {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ========== BUTTON STYLES ========== */
.cta-button-large {
    position: relative;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--foreground) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 9999px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-family: 'Nunito Sans', sans-serif;
    min-width: 200px;
    justify-content: center;
    text-align: center;
    animation: pulseSlow 4s ease-in-out infinite;
}

.cta-button-large:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(30, 58, 138, 0.3);
    animation: none;
}

.cta-button-large:active {
    transform: translateY(-1px);
}

.cta-button-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transition: left 0.7s ease;
}

.cta-button-large:hover::before {
    left: 100%;
}

.cta-button-large span {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.cta-button-large i {
    transition: transform 0.4s ease;
}

.cta-button-large:hover i {
    transform: translateX(5px);
}

/* ========== FOOTER ========== */
.footer {
    background: linear-gradient(135deg, var(--foreground) 0%, #1f2937 100%);
    color: white;
    padding: 5rem 0 2.5rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 3rem;
}

.footer h3 {
    font-size: 1.75rem;
    color: white;
    position: relative;
    display: inline-block;
}

.footer h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
}

.footer h4 {
    font-size: 1.1rem;
    color: var(--primary-light);
    margin-bottom: 1.25rem;
    position: relative;
    display: inline-block;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 25px;
    height: 2px;
    background: var(--primary-light);
    border-radius: 2px;
    opacity: 0.5;
}

.footer p, .footer a {
    color: #9CA3AF;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.footer a:hover {
    color: white;
    transform: translateX(5px);
}

.footer a::before {
    content: '→';
    position: absolute;
    left: -20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer a:hover::before {
    opacity: 1;
    left: -15px;
}

.footer-bottom {
    margin-top: 5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.9rem;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-bottom p {
    text-align: center;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    font-size: 1.25rem;
    color: #9CA3AF;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0.5rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-links a:hover {
    color: white;
    background: var(--primary);
    transform: translateY(-3px) rotate(5deg);
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.3);
}

/* ========== MOBILE RESPONSIVE ========== */

/* MOBILE PHONES (0-767px) */
@media (max-width: 767px) {
    /* Header and Navigation */
    .nav-links {
        display: none !important;
    }
    
    .menu-toggle {
        display: block !important;
        font-size: 1.4rem;
        background: none;
        border: none;
        cursor: pointer;
        color: var(--foreground);
        padding: 0.5rem;
    }
    
    /* Dropdown sizing fix */
    .dropdown-menu {
        width: min(280px, 90vw);
        right: 1rem;
        border-radius: 14px;
    }
    
    .dropdown-item {
        padding: 14px 20px;
        font-size: 0.95rem;
    }
    
    /* Hero Section Fixes */
    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
        align-items: center;
        min-height: 90vh;
        max-height: none;
        overflow: visible;
    }
    
    .hero-content {
        padding-top: 80px;
        margin-top: 0;
    }
    
    .hero-background {
        background-size: 800px auto;
        animation-duration: 20s;
        opacity: 0.1;
    }
    
    .hero-title {
        font-size: clamp(2rem, 6vw, 2.8rem);
        line-height: 1.15;
        margin-bottom: 1rem;
        padding: 0 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        padding: 0 1rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    /* Fix sections for mobile */
    section:not(.hero) {
        padding: 5rem 0 !important;
        min-height: auto !important;
    }
    
    .philosophy,
    .infrastructure,
    .precision,
    .core-functions,
    .workflow,
    .values,
    .statement,
    .cta {
        padding: 5rem 0 !important;
    }
    
    /* Fix all section titles */
    h2 {
        font-size: clamp(1.6rem, 5vw, 2rem) !important;
    }
    
    .section-title {
        font-size: 2rem !important;
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 0.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem !important;
        padding: 0 0.5rem;
        margin-bottom: 2rem;
        line-height: 1.5;
    }
    
    /* Quote size fix */
    .quote {
        font-size: 1.5rem;
        padding: 0 1rem;
    }
    
    /* Fix grids for mobile */
    .infrastructure-grid,
    .values-grid,
    .two-column-benefits {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        margin-top: 2rem;
        padding: 0 0.5rem;
    }
    
    .role-cards,
    .functions-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    /* Fix cards for mobile */
    .benefit-item-improved {
        padding: 1.25rem;
        border-radius: 1rem;
    }
    
    .benefit-icon {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .benefit-content h3 {
        font-size: 1.1rem;
    }
    
    .benefit-content p {
        font-size: 0.95rem;
    }
    
    .role-card {
        padding: 1.5rem;
    }
    
    .function-card {
        padding: 1.25rem;
    }
    
    /* Fix workflow steps */
    .workflow-steps {
        flex-direction: column;
        gap: 2.5rem;
    }
    
    .step-description {
        max-width: 100%;
    }
    
    /* Fix CTA section */
    .cta h2 {
        font-size: clamp(2rem, 7vw, 2.8rem);
        margin-bottom: 2rem;
    }
    
    /* Fix buttons */
    .button-group {
        flex-direction: column;
        gap: 14px;
    }
    
    .primary-button,
    .secondary-button,
    .cta-button-large {
        min-width: auto;
        padding: 0.875rem 1.75rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    /* Fix spacing */
    .scroll-indicator {
        bottom: 25px;
    }
    
    /* Fix dashboard/metrics */
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    /* Fix statement card */
    .statement-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .statement-card blockquote {
        font-size: 1.1rem;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    .hero {
        padding-top: 90px;
        min-height: 85vh;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .section-subtitle {
        font-size: 1rem !important;
    }
    
    .benefit-item-improved {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .benefit-icon {
        margin-bottom: 0.75rem;
    }
    
    .benefit-content {
        text-align: center;
    }
    
    .benefit-content h3 {
        font-size: 1rem;
    }
    
    .benefit-content p {
        font-size: 0.9rem;
    }
    
    .hero-background {
        background-size: 600px auto;
    }
    
    .dropdown-menu {
        width: min(260px, 85vw);
    }
}

/* TABLETS (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1024px) {
    .menu-toggle {
        display: block !important;
    }
    
    .nav-links {
        display: none !important;
    }
    
    /* Keep same dropdown feel */
    .dropdown-menu {
        width: 300px;
    }
    
    /* HERO */
    .hero-background {
        background-size: 1100px auto;
        animation-duration: 18s;
    }
    
    .hero-title {
        font-size: clamp(3rem, 5vw, 4rem);
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* GRIDS */
    .role-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .functions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .infrastructure-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    /* CTA */
    .cta h2 {
        font-size: clamp(3rem, 6vw, 4rem);
    }
    
    /* Adjust section padding */
    section:not(.hero) {
        padding: 6rem 0 !important;
    }
    
    .two-column-benefits {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .benefit-item-improved {
        padding: 1.5rem;
    }
}

/* DESKTOP (1025px and above) */
@media (min-width: 1025px) {
    .menu-toggle {
        display: none !important;
    }
    
    .nav-links {
        display: flex !important;
    }
}

/* Additional responsive fixes */
@media (max-width: 1024px) {
    .section-wrapper {
        padding: 0 1.5rem;
    }
    
    .infrastructure-content h2,
    .precision-header h2,
    .core-functions h2,
    .workflow-header h2,
    .values h2,
    .cta h2 {
        font-size: clamp(2rem, 5vw, 3rem) !important;
    }
    
    .infrastructure-content p,
    .precision-header p,
    .core-functions p,
    .workflow-header p,
    .values-header-text {
        font-size: 1.1rem !important;
    }
}

/* Additional fix to ensure dropdown doesn't override hero content on mobile */
@media (max-width: 768px) {
    .hero {
        padding-top: 80px;
    }
}

/* Touch device optimizations */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Safe area support for modern devices */
@supports (padding: max(0px)) {
    .hero {
        padding-top: max(110px, env(safe-area-inset-top));
    }
    
    .header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}

/* ========== MOBILE ZOOM/SLIDING PREVENTION FIXES ========== */

/* Prevent zoom on mobile */
@media (max-width: 767px) {
    html, body {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        touch-action: pan-y;
        width: 100%;
        overflow-x: hidden;
        position: relative;
    }
    
    /* Remove scale transforms that cause zooming */
    .primary-button:hover,
    .secondary-button:hover,
    .cta-button:hover,
    .cta-button-large:hover,
    .nav-link:hover,
    .menu-toggle:hover,
    .dashboard-card:hover,
    .metric-box:hover,
    .feature-item:hover,
    .feature-icon:hover,
    .control-dot:hover,
    .role-card:hover,
    .function-card:hover,
    .value-item:hover,
    .statement-card:hover,
    .social-links a:hover {
        transform: none !important;
        scale: 1 !important;
    }
    
    /* Keep vertical movement but remove scale */
    .primary-button:hover {
        transform: translateY(-3px) !important;
        box-shadow: 0 15px 30px rgba(30, 58, 138, 0.3);
    }
    
    .secondary-button:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    }
    
    .cta-button:hover,
    .cta-button-large:hover {
        transform: translateY(-2px) !important;
        box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
    }
    
    .dashboard-card:hover {
        transform: translateY(-5px) !important;
        box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    }
    
    .role-card:hover,
    .function-card:hover,
    .value-item:hover,
    .statement-card:hover {
        transform: translateY(-5px) !important;
    }
    
    .feature-item:hover {
        transform: translateX(5px) !important;
    }
    
    .workflow-step:hover .step-circle {
        transform: scale(1.05) !important;
    }
    
    /* Prevent double-tap zoom on mobile */
    a, button, input, textarea, select {
        touch-action: manipulation;
    }
    
    /* Ensure hero background animation continues to work */
    .hero-background {
        animation: gradientShift 10s ease infinite;
        will-change: background-position;
    }
    
    /* Keep hero circle animations */
    .hero-circle-1,
    .hero-circle-2,
    .hero-circle-3,
    .hero-circle-4 {
        animation-duration: 60s;
    }
    
    /* Keep scroll indicator animation */
    .scroll-indicator {
        animation: bounce 2s infinite;
    }
    
    /* Keep hero title/subtitle animations */
    .hero-title {
        animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    }
    
    .hero-subtitle {
        animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    }
    
    .button-group {
        animation: fadeIn 1.5s cubic-bezier(0.16, 1, 0.3, 1) 0.6s forwards;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    /* Keep background animation */
    .hero-background {
        animation-duration: 15s;
        background-size: 600px auto;
    }
    
    /* Adjust hero circles for mobile */
    .hero-circle-1 {
        width: 300px;
        height: 300px;
        top: 15%;
        left: 10%;
    }
    
    .hero-circle-2 {
        width: 200px;
        height: 200px;
        bottom: 15%;
        right: 10%;
    }
    
    .hero-circle-3,
    .hero-circle-4 {
        width: 100px;
        height: 100px;
        opacity: 0.1;
    }
}

/* Prevent mobile zoom on inputs */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px !important;
        max-height: 3em;
    }
    
    button, .primary-button, .secondary-button, .cta-button, .cta-button-large {
        font-size: 16px !important;
    }
}

/* Additional touch optimization */
* {
    -webkit-tap-highlight-color: transparent;
}

/* Safe area support for modern devices */
@supports (padding: max(0px)) {
    .hero {
        padding-top: max(110px, env(safe-area-inset-top));
    }
    
    .header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }
}
