/* =========================================
   1. Variables & Reset
   ========================================= */
:root {
    /* Colors */
    --bg-dark: #050b14;
    --bg-panel: #0a1420;
    --bg-card: rgba(13, 25, 41, 0.65);
    
    --accent-gold: #FFD700;
    --accent-gold-bright: #FFE44D;
    --accent-blue: #00F0FF;
    --accent-blue-dim: rgba(0, 240, 255, 0.2);
    
    --text-primary: #FFFFFF;
    --text-secondary: #CBD5E1; 
    --text-tertiary: #94A3B8; 
    
    --border-light: rgba(255, 255, 255, 0.15);
    --border-tech: rgba(0, 240, 255, 0.3);
    
    --font-head: 'Rajdhani', sans-serif;
    --font-body: 'Inter', sans-serif;

    --container-width: 1200px;
    --header-height: 80px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    letter-spacing: 0.02em;
    font-size: 16px;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.grid-overlay {
    position: fixed;
    top: -50px; left: 0; width: 100%; height: 120%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
    animation: grid-scroll 20s linear infinite;
}

@keyframes grid-scroll {
    0% { transform: translateY(0); }
    100% { transform: translateY(50px); }
}

/* =========================================
   2. Typography & Components
   ========================================= */
h1, h2, h3, h4, .btn, nav a, .stat-value, .badge, .form-label {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1 { font-weight: 700; line-height: 1.1; letter-spacing: 0.02em; }
h2 { font-weight: 600; letter-spacing: 0.08em; }

.text-gradient {
    background: linear-gradient(90deg, #fff, var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gold { color: var(--accent-gold); }
.text-secondary { color: var(--text-secondary); }

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 2rem;
}

header .container {
    max-width: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.section-padding { padding: 8rem 0; }
.section-anchor { scroll-margin-top: var(--header-height); }
.bg-darker { background: rgba(0,0,0,0.3); }

.tactical-cut {
    clip-path: polygon(
        12px 0, 100% 0, 
        100% calc(100% - 12px), 
        calc(100% - 12px) 100%, 
        0 100%, 
        0 12px
    );
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
}

.btn-primary {
    background: var(--accent-gold);
    color: #000;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.2);
}

.btn-primary:hover {
    background: var(--accent-gold-bright);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.5);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    clip-path: none; 
    position: relative;
    overflow: hidden;
}

.btn-outline::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--accent-blue);
    opacity: 0.05;
    z-index: -1;
}

.btn-outline:hover {
    background: rgba(0, 240, 255, 0.15);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    text-shadow: 0 0 8px var(--accent-blue);
}

.btn-sm { padding: 0.7rem 1.5rem; font-size: 0.85rem; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); }
.btn-block { width: 100%; display: flex; }

/* =========================================
   3. Navigation
   ========================================= */
header {
    position: relative;
    top: 0;
    min-height: 120px;
    display: flex;
    align-items: center;
    z-index: 1000;
    background-color: #0a1a33;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 60px;
    margin: 16px;
    padding: 10px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-bottom: none;
    isolation: isolate;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo { display: flex; align-items: center; gap: 1rem; }
header .logo img {
    display: block;
    height: 100px;
    width: auto;
    max-width: min(46vw, 440px);
    max-height: none;
    object-fit: contain;
}

.logo-mark {
    width: 40px; height: 40px;
    background: var(--accent-gold);
    color: #000;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(15% 0, 100% 0, 100% 85%, 85% 100%, 0 100%, 0 15%);
}

.logo-text h1 { font-size: 1.4rem; color: #fff; line-height: 1; margin-bottom: 0; }
.logo-text span { font-size: 0.7rem; color: var(--accent-gold); display: block; letter-spacing: 0.25em; }

.nav-links { display: flex; gap: 3rem; }
.nav-links a { 
    font-size: 0.95rem; 
    font-weight: 600; 
    color: var(--text-secondary); 
    position: relative; 
    padding: 0.5rem 0; 
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-blue); }
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -28px; left: 0;
    width: 100%; height: 2px;
    background: var(--accent-blue);
    box-shadow: 0 0 10px var(--accent-blue);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--accent-gold);
    border-radius: 2px;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }
    
    .nav-links {
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: rgba(5, 11, 20, 0.98);
        backdrop-filter: blur(20px);
        border-bottom: 2px solid var(--accent-gold);
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        padding: 3rem 0;
        transform: translateY(-150%);
        transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
        z-index: 999;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    }
    
    .nav-links.active { transform: translateY(0); }
    .nav-links li { width: 100%; text-align: center; }
    .nav-links a { display: block; font-size: 1.2rem; padding: 1rem 0; }

    .menu-toggle.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active span:nth-child(2) { opacity: 0; }
    .menu-toggle.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}

/* =========================================
   4. Hero & Products Grid
   ========================================= */
.hero-container { 
    position: relative; 
    height: 100vh; 
    width: 100%;
    overflow: hidden; 
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-text {
    position: relative;
    z-index: 2;
    color: white;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-text h1 { font-size: 4rem; margin-bottom: 0.5rem; letter-spacing: 2px; }
.hero-text h2 { color: var(--accent-gold); font-size: 1.5rem; letter-spacing: 4px; font-weight: 500; }

.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { font-size: 2.5rem; margin-bottom: 1rem; }
.section-line { width: 60px; height: 3px; background: var(--accent-gold); margin: 0 auto 1.5rem; box-shadow: 0 0 10px var(--accent-gold); }
.section-subtitle { 
    color: var(--text-secondary); 
    max-width: 700px; 
    margin: 0 auto; 
    font-size: 1.2rem; 
    line-height: 1.6;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.hud-card {
    background: rgba(13, 25, 41, 0.7);
    background-image: linear-gradient(
        135deg, 
        rgba(255, 255, 255, 0.03) 0%, 
        rgba(255, 255, 255, 0.0) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 10px 30px -5px rgba(0, 0, 0, 0.3),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.hud-card::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 200%; height: 100%;
    background: linear-gradient(
        115deg, 
        transparent 30%, 
        rgba(255, 255, 255, 0.03) 45%, 
        rgba(0, 240, 255, 0.12) 50%, 
        rgba(255, 255, 255, 0.03) 55%, 
        transparent 70%
    );
    transform: skewX(-20deg);
    transition: transform 0.6s ease-out;
    pointer-events: none;
    z-index: 1;
}

.hud-card:hover { 
    transform: translateY(-8px) scale(1.01); 
    border-color: rgba(0, 240, 255, 0.4); 
    background: rgba(13, 25, 41, 0.85);
    box-shadow: 
        0 25px 60px -12px rgba(0, 0, 0, 0.7),
        0 0 30px rgba(0, 240, 255, 0.15),
        inset 0 0 30px rgba(0, 240, 255, 0.08),
        inset 0 1px 0 rgba(0, 240, 255, 0.4);
}

.hud-card:hover::before {
    transform: skewX(-20deg) translateX(75%);
    transition: transform 0.8s ease-in-out;
}

.card-corner {
    position: absolute;
    width: 15px; height: 15px;
    border-color: var(--text-tertiary);
    border-style: solid;
    pointer-events: none;
    transition: border-color 0.3s ease;
    z-index: 2;
}
.top-left { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.top-right { top: -1px; right: -1px; border-width: 2px 2px 0 0; }
.bottom-left { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; }
.bottom-right { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hud-card:hover .card-corner { border-color: var(--accent-blue); }

.card-header h3 { font-size: 1.6rem; margin-top: 0.5rem; letter-spacing: 0.08em; }
.desc { 
    color: var(--text-secondary); 
    font-size: 1rem; 
    margin: 1.5rem 0 2rem; 
    min-height: 4.5rem; 
    line-height: 1.75;
}

.badge { display: inline-block; padding: 0.35rem 0.75rem; font-size: 0.7rem; font-weight: 700; border-radius: 2px; }
.badge-gold { background: rgba(255, 215, 0, 0.1); color: var(--accent-gold); border: 1px solid var(--accent-gold); }
.badge-blue { background: rgba(0, 240, 255, 0.1); color: var(--accent-blue); border: 1px solid var(--accent-blue); }

/* =========================================
   5. News Timeline (Consolidated)
   ========================================= */
.timeline { border-left: 2px solid var(--accent-blue); padding-left: 2.5rem; margin-left: 1rem; position: relative; }
.timeline-item { 
    margin-bottom: 3.5rem; 
    position: relative; 
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.timeline-item.visible { opacity: 1; transform: translateX(0); }
.timeline-marker { 
    position: absolute; left: -3.1rem; top: 0; 
    width: 16px; height: 16px; 
    background: var(--bg-dark); 
    border: 2px solid var(--accent-blue); 
    border-radius: 50%; 
    box-shadow: 0 0 10px var(--accent-blue); 
}
.timeline-date { 
    font-family: var(--font-head); 
    color: var(--accent-blue); 
    font-weight: 700; 
    margin-bottom: 0.5rem; 
    font-size: 0.9rem; 
    letter-spacing: 1px; 
}

/* =========================================
   6. Contact Form (Consolidated & Tactical)
   ========================================= */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 3rem; }
.form-group { margin-bottom: 1.5rem; }
.form-label { display: block; font-size: 0.8rem; color: var(--accent-gold); margin-bottom: 0.5rem; letter-spacing: 1px; }

.form-input { 
    width: 100%; 
    background: rgba(255,255,255,0.03); 
    border: none;
    border-bottom: 2px solid var(--border-light); 
    color: #fff; 
    padding: 1rem 1.2rem; 
    font-family: var(--font-body); 
    font-size: 1rem;
    transition: all 0.3s ease; 
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.form-input:focus { 
    outline: none; 
    border-bottom-color: var(--accent-blue); 
    background: rgba(0, 240, 255, 0.05); 
    box-shadow: 0 5px 15px -5px rgba(0, 240, 255, 0.2);
}

/* =========================================
   7. Modal & Specs Styling
   ========================================= */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 11, 20, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.4s;
    backdrop-filter: blur(8px);
}

.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-content {
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 4rem 3rem 3rem;
}

.close-modal {
    position: absolute;
    top: 1.5rem; right: 1.5rem;
    background: none; border: none;
    color: var(--text-tertiary);
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}
.close-modal:hover { color: var(--accent-blue); }

.modal-header h2 { font-size: 2.4rem; color: #fff; margin-bottom: 2rem; }

.modal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 0.8rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 0.95rem; }
.spec-table td:first-child { color: var(--text-tertiary); text-transform: uppercase; font-size: 0.8rem; letter-spacing: 1px; width: 140px; font-weight: 600; }

.full-spec-list li { margin-bottom: 1rem; font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
.full-spec-list li strong { color: #fff; display: block; font-family: var(--font-head); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 4px; }

/* =========================================
   8. Tech Grid
   ========================================= */
.tech-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }

.tech-card {
    background: var(--bg-panel);
    padding: 2rem;
    border: 1px solid var(--border-light);
    transition: all 0.3s;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.tech-card:hover { border-color: var(--accent-gold); background: rgba(255, 215, 0, 0.03); transform: translateY(-5px); }
.tech-icon-small { font-family: var(--font-head); color: var(--accent-gold); font-size: 1.2rem; font-weight: 700; margin-bottom: 1rem; opacity: 0.5; }
.tech-card h4 { font-size: 1.1rem; color: #fff; margin-bottom: 0.75rem; letter-spacing: 0.05em; }
.tech-card p { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; }

/* =========================================
   9. Scroll to Top Button
   ========================================= */
.scroll-top-btn {
    position: fixed;
    bottom: 2rem; right: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
    width: 60px; height: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    clip-path: polygon(20% 0, 100% 0, 100% 80%, 80% 100%, 0 100%, 0 20%);
}

.scroll-top-btn.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.scroll-top-btn:hover { background: var(--accent-blue-dim); box-shadow: 0 0 20px var(--accent-blue); transform: translateY(-5px); }
.scroll-top-btn .btn-icon { font-size: 1.2rem; line-height: 1; }
.scroll-top-btn .btn-text { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; margin-top: 2px; }

/* =========================================
   10. Footer Styling
   ========================================= */
footer { border-top: 1px solid var(--border-light); background: #02050a; padding: 6rem 0 3rem; margin-top: auto; }

.footer-layout { display: grid; grid-template-columns: 1fr 1.5fr; gap: 4rem; margin-bottom: 3rem; }

.footer-brand h3 { color: #fff; font-size: 1.5rem; margin-top: 1rem; }
.footer-brand p { color: var(--text-tertiary); font-size: 0.95rem; }

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

.link-label { width: 100%; font-family: var(--font-head); color: var(--accent-blue); font-size: 0.75rem; letter-spacing: 2px; margin-bottom: 0.5rem; }
.footer-links a { font-size: 1rem; color: var(--text-secondary); position: relative; }
.footer-links a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--accent-gold); transition: width 0.3s; }
.footer-links a:hover { color: var(--accent-gold); }
.footer-links a:hover::after { width: 100%; }

/* =========================================
   11. Animations & Utilities
   ========================================= */
.fade-in { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fade-in.visible { opacity: 1; transform: translateY(0); }

.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }
.delay-400 { transition-delay: 400ms; }
.delay-500 { transition-delay: 500ms; }

@media (max-width: 768px) {
    .modal-grid { grid-template-columns: 1fr; }
    .footer-layout { grid-template-columns: 1fr; gap: 2rem; }
    .hero-text h1 { font-size: 2.8rem; }
    .scroll-top-btn { bottom: 1rem; right: 1rem; width: 50px; height: 50px; }
    .contact-grid { grid-template-columns: 1fr; }
}

/* Large horizontal brand lockup: responsive header and footer treatment */
.footer-logo {
    display: block;
    height: 78px;
    width: auto;
    max-width: min(72vw, 360px);
    margin: 0 auto 0.75rem;
    object-fit: contain;
}

@media (max-width: 768px) {
    :root { --header-height: 92px; }

    header {
        min-height: 92px;
        margin: 10px;
        padding: 0 22px;
        border-radius: 46px;
    }

    header .logo img {
        height: 86px;
        width: auto;
        max-width: 76vw;
        max-height: none;
        object-fit: contain;
    }

    .footer-logo {
        height: 60px;
        max-width: 76vw;
    }
}


/* === OTIS navigation upgrade: appended without replacing existing site styles === */
html { scroll-padding-top: 92px; }
.section-anchor { scroll-margin-top: 92px; }
.site-header {
  position: fixed; top: 0; left: 0; right: 0; min-height: 72px; height: 72px;
  margin: 0; padding: 0 clamp(1rem, 3vw, 2.5rem); border-radius: 0;
  background: rgba(5, 11, 20, .92); border-bottom: 1px solid rgba(0, 240, 255, .18);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(0,0,0,.28); transform: translateY(0);
  transition: transform .26s ease, background .26s ease, border-color .26s ease;
}
.site-header.is-scrolled { background: rgba(5, 11, 20, .98); border-bottom-color: rgba(0, 240, 255, .38); }
.site-header.is-hidden { transform: translateY(-105%); }
.site-header .header-shell { max-width: none; padding: 0; height: 100%; }
.site-header .logo img { height: 54px; max-width: min(58vw, 260px); }
.site-header .nav-links { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.site-header .nav-links a { color: var(--text-secondary); font-size: .82rem; letter-spacing: .11em; }
.site-header .nav-links a:hover, .site-header .nav-links a:focus-visible { color: var(--accent-blue); }
.site-header .nav-links a:last-child { color: var(--accent-gold); border: 1px solid rgba(255,215,0,.62); padding: .52rem .72rem; }
.site-header .menu-toggle { margin-left: auto; border: 0; background: transparent; padding: 0; }
@media (max-width: 768px) {
  .site-header { min-height: 64px; height: 64px; padding: 0 1.15rem; }
  .site-header .logo img { height: 46px; max-width: 62vw; }
  .site-header .menu-toggle { display: flex; width: 32px; height: 24px; }
  .site-header .nav-links { position: absolute; top: 64px; left: 0; right: 0; width: 100%; margin: 0; padding: .5rem 1.15rem 1.25rem; gap: 0; background: rgba(5,11,20,.98); border-bottom: 1px solid rgba(0,240,255,.28); transform: translateY(-130%); }
  .site-header .nav-links.active { transform: translateY(0); }
  .site-header .nav-links a { width: 100%; padding: .92rem 0; border-bottom: 1px solid rgba(255,255,255,.08); text-align: center; }
  .site-header .nav-links a:last-child { width: auto; margin: .8rem auto 0; padding: .7rem 1rem; border-bottom: 1px solid rgba(255,215,0,.62); }
  .section-anchor { scroll-margin-top: 78px; }
}


/* === Navigation / mobile spacing refinement v4 === */
@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }
  .site-header { height: 64px; min-height: 64px; }
  .site-header .header-shell { position: relative; }
  .site-header .menu-toggle { position: relative; z-index: 1002; flex: 0 0 32px; }
  .site-header .nav-links {
    display: flex !important;
    position: absolute !important;
    top: 58px !important;
    right: 0 !important;
    left: auto !important;
    width: min(220px, calc(100vw - 2rem)) !important;
    margin: 0 !important;
    padding: .45rem .85rem .75rem !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    text-align: right !important;
    background: rgba(5, 11, 20, .985) !important;
    border: 1px solid rgba(0, 240, 255, .32) !important;
    border-top: 2px solid var(--accent-gold) !important;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .52) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(-12px) !important;
    transition: opacity .18s ease, transform .18s ease, visibility .18s ease !important;
  }
  .site-header .nav-links.active {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }
  .site-header .nav-links a {
    width: 100% !important;
    padding: .76rem .35rem !important;
    font-size: .78rem !important;
    line-height: 1.15 !important;
    text-align: right !important;
    border-bottom: 1px solid rgba(255,255,255,.10) !important;
  }
  .site-header .nav-links a:last-child {
    width: 100% !important;
    margin: .45rem 0 0 !important;
    padding: .68rem .35rem !important;
    text-align: right !important;
    border: 0 !important;
    color: var(--accent-gold) !important;
  }
  .section-padding { padding-top: 3.25rem !important; padding-bottom: 3.25rem !important; }
  #product.section-padding { padding-top: 2.25rem !important; }
  #threats.section-padding, #innovation.section-padding, #platform.section-padding { padding-top: 3.5rem !important; padding-bottom: 3.5rem !important; }
  #innovation .otis-how-title { margin-top: 2.1rem !important; margin-bottom: 1.15rem !important; }
  #innovation .otis-ops-grid { margin-bottom: 2rem !important; }
  #platform .otis-how-title { margin-top: 1rem !important; margin-bottom: 1.1rem !important; }
  #platform .otis-channels { margin-bottom: 0 !important; }
  .section-header { margin-bottom: 2rem !important; }
  .payoff-block { margin-bottom: 2.25rem !important; padding: 1.75rem .6rem !important; }
  .otis-intro { margin-bottom: 2.25rem !important; }
  .otis-pillars { margin-bottom: 2.25rem !important; }
  .threat-grid { margin-bottom: 2.25rem !important; }
}
