/* ========================================
   Route Genome — Website Styles
   ======================================== */

:root {
    --navy: #1a2744;
    --navy-light: #243352;
    --teal: #2d9e8f;
    --teal-light: #3cc4b1;
    --green: #4aab6d;
    --green-light: #c8d99a;
    --green-pale: #d4e4a6;
    --orange: #e8973f;
    --orange-light: #f5b84d;
    --gold: #e8a933;
    --white: #ffffff;
    --gray-50: #f8f9fa;
    --gray-100: #f0f2f5;
    --gray-200: #e2e6ea;
    --gray-300: #cdd3da;
    --gray-600: #6b7280;
    --gray-700: #4a5568;
    --gray-800: #2d3748;
    --gray-900: #1a202c;

    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.05);
    --shadow-lg: 0 4px 12px rgba(0,0,0,0.1), 0 16px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 8px 24px rgba(0,0,0,0.12), 0 24px 60px rgba(0,0,0,0.1);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: var(--font);
    color: var(--gray-800);
    line-height: 1.7;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    transition: var(--transition);
}
.navbar.scrolled {
    box-shadow: var(--shadow);
}
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--navy);
}
.nav-logo img {
    height: 40px;
    width: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}
.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color var(--transition);
}
.nav-links a:hover {
    color: var(--navy);
}
.nav-cta {
    background: var(--navy);
    color: var(--white) !important;
    padding: 10px 24px;
    border-radius: 100px;
    font-weight: 600 !important;
    transition: all var(--transition) !important;
}
.nav-cta:hover {
    background: var(--teal) !important;
    transform: translateY(-1px);
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}
.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
}
.hero-bg-image {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,39,68,0.88) 0%, rgba(26,39,68,0.75) 50%, rgba(26,39,68,0.85) 100%);
}
.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
    position: relative;
}
.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--teal), var(--green));
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.hero h1 {
    font-size: 3.4rem;
    font-weight: 900;
    line-height: 1.1;
    color: var(--white);
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}
.text-gradient {
    background: linear-gradient(135deg, var(--teal), var(--green), var(--orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 560px;
}
.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    padding-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.15);
}
.stat-value {
    display: block;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--orange-light);
}
.stat-label {
    font-size: 0.82rem;
    color: rgba(255,255,255,0.6);
    font-weight: 500;
}
.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.2);
}
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}
.hero-logo {
    width: 320px;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.1));
    animation: float 6s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--teal);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--orange);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(232,151,63,0.3);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
}
.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    color: var(--white);
    border-color: rgba(255,255,255,0.7);
    transform: translateY(-2px);
}
.btn-lg {
    padding: 18px 40px;
    font-size: 1.05rem;
}

/* ========================================
   Section Styles
   ======================================== */
.section {
    padding: 100px 0;
}
.section-alt {
    background: var(--gray-50);
}
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 64px;
}
.section-tag {
    display: inline-block;
    background: linear-gradient(135deg, rgba(45,158,143,0.1), rgba(74,171,109,0.1));
    color: var(--teal);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.section-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section-intro {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.7;
}
.section-intro strong {
    color: var(--navy);
}

/* ========================================
   Section Banners & Card Images
   ======================================== */
.section-banner {
    max-width: 900px;
    margin: 0 auto 48px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.section-banner img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}
.card-image {
    margin: -36px -36px 24px -36px;
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.mil-card .card-image {
    margin: -36px -36px 24px -40px;
}
.industry-card:hover .card-image img,
.mil-card:hover .card-image img {
    transform: scale(1.05);
}

/* ========================================
   Content Blocks
   ======================================== */
.content-block {
    max-width: 800px;
    margin: 0 auto 48px;
}
.content-block h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}
.content-block p {
    margin-bottom: 16px;
    color: var(--gray-700);
}
.lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--gray-800);
}

/* Factorial Cards */
.factorial-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.factorial-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: var(--transition);
}
.factorial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.factorial-card.highlight {
    background: var(--navy);
    border-color: var(--navy);
    color: white;
}
.factorial-card.highlight .factorial-label,
.factorial-card.highlight .factorial-routes {
    color: rgba(255,255,255,0.8);
}
.factorial-num {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--teal);
    line-height: 1;
    margin-bottom: 4px;
}
.factorial-card.highlight .factorial-num {
    color: var(--orange-light);
}
.factorial-label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-600);
    margin-bottom: 8px;
    font-weight: 600;
}
.factorial-routes {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-800);
    line-height: 1.4;
}

/* Timeline */
.timeline {
    margin: 32px 0;
    position: relative;
    padding-left: 140px;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 120px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--teal), var(--green), var(--orange));
}
.timeline-item {
    position: relative;
    margin-bottom: 32px;
    padding-left: 32px;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -7px;
    top: 8px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--teal);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--teal);
}
.timeline-date {
    position: absolute;
    left: -172px;
    top: 2px;
    width: 100px;
    text-align: right;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--teal);
}
.timeline-content h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.timeline-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    margin: 0;
}

/* Records Grid */
.records-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 32px 0;
}
.record-card {
    background: white;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
}
.record-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.record-card.highlight {
    background: linear-gradient(135deg, var(--teal), var(--green));
    border: none;
    color: white;
    grid-column: span 3;
}
.record-year {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    margin-bottom: 4px;
}
.record-card.highlight .record-year {
    color: var(--orange-light);
}
.record-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--navy);
}
.record-card.highlight .record-value {
    color: white;
    font-size: 1.5rem;
}
.record-note {
    display: block;
    font-size: 0.85rem;
    margin-top: 4px;
    opacity: 0.9;
}

/* Callout */
.callout {
    max-width: 800px;
    margin: 48px auto;
    padding: 40px;
    border-radius: var(--radius-lg);
    position: relative;
}
.callout-primary {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    color: white;
}
.callout-primary h3 {
    color: var(--orange-light);
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.callout-primary p {
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
}
.callout-primary p:last-child { margin-bottom: 0; }

.callout-accent {
    background: linear-gradient(135deg, rgba(45,158,143,0.08), rgba(74,171,109,0.08));
    border: 2px solid rgba(45,158,143,0.2);
}
.callout-accent h3 {
    color: var(--navy);
    margin-bottom: 12px;
}
.callout-accent p {
    color: var(--gray-700);
    margin-bottom: 8px;
}
.callout-accent p:last-child { margin-bottom: 0; }
.callout-text {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    color: var(--navy);
}

.callout-military {
    background: linear-gradient(135deg, var(--navy), #1e3050);
    color: white;
}
.callout-military h3 {
    color: var(--orange-light);
    margin-bottom: 12px;
}
.callout-military p {
    color: rgba(255,255,255,0.9);
}

/* Paradigm Shift */
.paradigm-shift {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 32px;
    align-items: center;
    max-width: 800px;
    margin: 48px auto;
}
.paradigm-old, .paradigm-new {
    padding: 32px;
    border-radius: var(--radius);
    text-align: center;
}
.paradigm-old {
    background: var(--gray-100);
    border: 1px solid var(--gray-200);
}
.paradigm-new {
    background: linear-gradient(135deg, rgba(45,158,143,0.1), rgba(74,171,109,0.1));
    border: 2px solid var(--teal);
}
.paradigm-old h4, .paradigm-new h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.paradigm-old h4 { color: var(--gray-600); }
.paradigm-new h4 { color: var(--teal); }
.paradigm-old p, .paradigm-new p {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--navy);
}
.paradigm-arrow {
    color: var(--teal);
}

/* ========================================
   Solution Steps
   ======================================== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 64px;
}
.step-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
}
.step-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(45,158,143,0.3);
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal), var(--green));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 20px;
}
.step-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.step-card p {
    color: var(--gray-600);
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.step-card p:last-child { margin-bottom: 0; }
.highlight-text {
    font-weight: 700;
    color: var(--teal) !important;
}
.feature-list {
    margin: 12px 0;
}
.feature-list li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    color: var(--gray-600);
}
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

/* Architecture Table */
.arch-table {
    max-width: 800px;
    margin: 24px auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.arch-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    border-bottom: 1px solid var(--gray-200);
}
.arch-row:last-child { border-bottom: none; }
.arch-header {
    background: var(--navy);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}
.arch-row span {
    padding: 14px 20px;
    font-size: 0.95rem;
}
.arch-row:not(.arch-header) span:first-child {
    font-weight: 600;
    color: var(--navy);
    background: rgba(45,158,143,0.04);
}
.arch-note {
    text-align: center;
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-top: 16px;
}

/* Comparison Table */
.comparison-table {
    max-width: 900px;
    margin: 24px auto;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}
.comp-row {
    display: grid;
    grid-template-columns: 150px 1fr 1fr;
    border-bottom: 1px solid var(--gray-200);
}
.comp-row:last-child { border-bottom: none; }
.comp-header {
    background: var(--navy);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
}
.comp-row span {
    padding: 14px 20px;
    font-size: 0.93rem;
}
.comp-label {
    font-weight: 700;
    color: var(--navy);
    background: var(--gray-50);
}
.comp-old {
    color: var(--gray-600);
}
.comp-new {
    color: var(--teal);
    font-weight: 600;
    background: rgba(45,158,143,0.04);
}

/* ========================================
   FAQ
   ======================================== */
.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}
.faq-item:first-child {
    border-top: 1px solid var(--gray-200);
}
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    color: var(--navy);
    transition: color var(--transition);
}
.faq-question:hover {
    color: var(--teal);
}
.faq-icon {
    flex-shrink: 0;
    transition: transform var(--transition);
    color: var(--gray-600);
}
.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--teal);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer {
    max-height: 400px;
    padding-bottom: 20px;
}
.faq-answer p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ========================================
   Industry Cards
   ======================================== */
.industry-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.industry-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    overflow: hidden;
}
.industry-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.industry-card:last-child {
    grid-column: span 2;
}
.industry-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(45,158,143,0.1), rgba(74,171,109,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--teal);
}
.industry-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 16px;
}
.industry-card p {
    color: var(--gray-600);
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.industry-card ul {
    margin: 0;
}
.industry-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--gray-600);
}
.industry-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
}

/* ========================================
   Military Cards
   ======================================== */
.mil-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}
.mil-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 36px;
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--navy);
    transition: var(--transition);
    overflow: hidden;
}
.mil-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.mil-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 12px;
}
.mil-card p {
    color: var(--gray-600);
    margin-bottom: 12px;
    font-size: 0.95rem;
}
.mil-card p:last-child { margin-bottom: 0; }

/* ========================================
   Benefits Summary
   ======================================== */
.benefits-summary {
    max-width: 800px;
    margin: 48px auto 0;
}
.benefits-summary h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 24px;
    text-align: center;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--gray-200);
    font-size: 0.93rem;
    font-weight: 500;
    color: var(--gray-700);
}
.benefit-item::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}
.benefits-military .benefit-item::before {
    background: var(--orange);
}

/* ========================================
   CTA Section
   ======================================== */
.section-cta {
    background: linear-gradient(160deg, var(--navy) 0%, #1e3050 100%);
    color: white;
    text-align: center;
    padding: 100px 0;
}
.cta-content {
    max-width: 640px;
    margin: 0 auto;
}
.cta-content h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}
.cta-content p {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 36px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
}
.cta-actions .btn-primary {
    background: var(--teal);
}
.cta-actions .btn-primary:hover {
    background: var(--orange);
}
.cta-actions .btn-outline {
    border-color: rgba(255,255,255,0.3);
    color: white;
}
.cta-actions .btn-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--gray-900);
    color: rgba(255,255,255,0.6);
    padding: 48px 0;
}
.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.footer-logo {
    height: 36px;
    width: auto;
    opacity: 0.8;
}
.footer-brand p {
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    font-size: 0.85rem;
    transition: color var(--transition);
}
.footer-links a:hover {
    color: white;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .hero h1 { font-size: 2.6rem; }
    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { order: -1; }
    .hero-logo { width: 220px; }
    .section-header h2 { font-size: 2rem; }
    .factorial-grid { grid-template-columns: repeat(3, 1fr); }
    .factorial-card:nth-child(4),
    .factorial-card:nth-child(5) { grid-column: auto; }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        border-top: 1px solid var(--gray-200);
    }
    .nav-links.active { display: flex; }
    .nav-toggle { display: flex; }
    .nav-cta {
        width: fit-content;
    }

    .hero { padding: 120px 0 60px; }
    .hero h1 { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-direction: column; }
    .hero-stats { flex-direction: column; gap: 16px; align-items: flex-start; }
    .stat-divider { width: 40px; height: 1px; }

    .section { padding: 60px 0; }
    .section-header h2 { font-size: 1.7rem; }
    .section-banner img { height: 200px; }
    .card-image img { height: 160px; }

    .factorial-grid { grid-template-columns: repeat(2, 1fr); }
    .factorial-card.highlight { grid-column: span 2; }

    .timeline { padding-left: 32px; }
    .timeline::before { left: 12px; }
    .timeline-date {
        position: relative;
        left: auto;
        top: auto;
        text-align: left;
        margin-bottom: 4px;
    }
    .timeline-item { padding-left: 24px; }
    .timeline-item::before { left: -15px; }

    .records-grid { grid-template-columns: repeat(2, 1fr); }
    .record-card.highlight { grid-column: span 2; }

    .paradigm-shift {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .paradigm-arrow {
        transform: rotate(90deg);
        text-align: center;
    }

    .steps-grid { grid-template-columns: 1fr; }
    .industry-grid { grid-template-columns: 1fr; }
    .industry-card:last-child { grid-column: auto; }
    .mil-grid { grid-template-columns: 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }

    .comp-row { grid-template-columns: 100px 1fr 1fr; font-size: 0.82rem; }
    .arch-row { grid-template-columns: 140px 1fr; }

    .page-hero { padding: 120px 0 50px; }
    .page-hero-content h1 { font-size: 1.8rem; }
    .overview-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }

    .cta-content h2 { font-size: 1.8rem; }
    .cta-actions { flex-direction: column; align-items: center; }

    .footer-content { flex-direction: column; gap: 24px; text-align: center; }
    .footer-brand { flex-direction: column; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 1.7rem; }
    .factorial-grid { grid-template-columns: 1fr 1fr; }
    .records-grid { grid-template-columns: 1fr; }
    .record-card.highlight { grid-column: auto; }
    .comp-row { grid-template-columns: 1fr; }
    .comp-header { display: none; }
    .comp-row:not(.comp-header) {
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
}

/* ========================================
   Page Hero (inner pages)
   ======================================== */
.page-hero {
    position: relative;
    padding: 160px 0 80px;
    overflow: hidden;
    background: var(--navy);
}
.page-hero-short {
    padding: 150px 0 60px;
}
.page-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.page-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(26,39,68,0.88) 0%, rgba(26,39,68,0.78) 50%, rgba(26,39,68,0.9) 100%);
}
.page-hero-content {
    position: relative;
    max-width: 800px;
}
.page-hero-content h1 {
    font-size: 2.8rem;
    font-weight: 900;
    color: white;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.page-hero-content p {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.7;
}
.page-hero-content .section-tag {
    margin-bottom: 16px;
}

/* Active Nav */
.nav-active:not(.nav-cta) {
    color: var(--teal) !important;
    font-weight: 600 !important;
}

/* Page Next Button */
.page-next {
    text-align: center;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid var(--gray-200);
}

/* ========================================
   Overview Cards (Home page)
   ======================================== */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.overview-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all var(--transition);
    display: block;
}
.overview-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(45,158,143,0.3);
}
.overview-image {
    overflow: hidden;
    height: 220px;
}
.overview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.overview-card:hover .overview-image img {
    transform: scale(1.05);
}
.overview-body {
    padding: 28px;
}
.overview-body h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 10px;
}
.overview-body p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 16px;
}
.overview-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--teal);
    transition: color var(--transition);
}
.overview-card:hover .overview-link {
    color: var(--orange);
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: start;
}
.contact-form-wrapper h2 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
}
.contact-form-wrapper > p {
    color: var(--gray-600);
    margin-bottom: 32px;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--navy);
}
.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font);
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-sm);
    background: white;
    color: var(--gray-800);
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(45,158,143,0.1);
}
.form-group textarea {
    resize: vertical;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.contact-info-card {
    padding: 28px;
    background: var(--gray-50);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}
.contact-info-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}
.contact-info-card p {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 12px;
}
.contact-email {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--teal);
    transition: color var(--transition);
}
.contact-email:hover {
    color: var(--orange);
}
.highlight-card {
    background: linear-gradient(135deg, var(--navy), var(--navy-light));
    border-color: transparent;
}
.highlight-card h3 {
    color: var(--orange-light) !important;
}
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.quick-links a {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    transition: color var(--transition);
}
.quick-links a:hover {
    color: white;
}

/* ========================================
   Animations
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
