/*
 * FUTUREONICS — White-Premium Custom Build
 * Mobile-First Clean Architecture
 * Built to scale from 320px to 4K with zero conflicts
 */

/* =======================
   1. DESIGN TOKENS
   ======================= */
:root {
    --primary: #00d2ff;
    --secondary: #9d00ff;
    --text-main: #0a0a0a;
    --text-dim: rgba(10, 10, 10, 0.55);
    --bg: #ffffff;
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(0, 0, 0, 0.08);
    --radius-pill: 100px;
    --radius-card: 24px;
    --ease: cubic-bezier(0.19, 1, 0.22, 1);
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

/* =======================
   2. RESET & BASE
   ======================= */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Fallback */
    overflow-x: clip;
    /* Modern strict containment */
}

body {
    font-family: 'Outfit', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-main);
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

/* =======================
   3. LAYOUT PRIMITIVES
   ======================= */
.container {
    width: 100%;
    max-width: 1280px;
    margin-inline: auto;
    padding-inline: clamp(1rem, 5vw, 2.5rem);
}

.section {
    padding-block: clamp(4rem, 10vw, 8rem);
    background: var(--bg);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.section--alt {
    background: #fcfcfc;
    /* Very light grey to distinguish but still solid */
}

/* =======================
   4. CANVAS BG
   ======================= */
#canvas-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100dvh;
    z-index: -1;
    pointer-events: none;
    object-fit: cover;
}

/* =======================
   5. NAVBAR
   ======================= */
.main-header {
    position: fixed;
    top: clamp(10px, 3vh, 24px);
    left: 0;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
}

.nav-pill {
    pointer-events: all;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(92%, 860px);
    background: var(--glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-pill);
    padding: 0.65rem 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    box-shadow: var(--shadow);
    transition: background 0.4s var(--ease), width 0.4s var(--ease);
}

/* Logo — always center column */
.logo {
    grid-column: 2;
    justify-self: center;
    font-weight: 800;
    font-size: clamp(0.9rem, 2.5vw, 1.15rem);
    letter-spacing: 0.08em;
    white-space: nowrap;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.visual-card {
    aspect-ratio: 16 / 10;
    min-height: 280px;
    width: 100%;
    display: block;
    position: relative;
    background: #000;
}

@media (max-width: 768px) {
    .visual-card {
        aspect-ratio: 4 / 3;
        min-height: 240px;
    }
}

/* Desktop links — left of logo via order */
.nav-links {
    grid-column: 1;
    display: flex;
    gap: 1.8rem;
    align-items: center;
    justify-content: flex-start;
}

.nav-cta {
    grid-column: 3;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: flex-end;
}

.nav-links a,
.nav-cta a {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-main);
    opacity: 0.65;
    transition: opacity 0.25s, transform 0.25s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after,
.nav-cta a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s var(--ease), left 0.3s var(--ease);
}

.nav-links a:hover,
.nav-cta a:hover {
    opacity: 1;
}

.nav-links a:hover::after,
.nav-cta a:hover::after {
    width: 80%;
    left: 10%;
}

/* CTA — right column */
.nav-cta {
    grid-column: 3;
    display: flex;
    gap: 1.8rem;
    justify-content: flex-end;
    align-items: center;
}

/* Hamburger — hidden by default */
.mobile-toggle {
    display: none;
    grid-column: 1;
    justify-self: start;
    background: none;
    border: none;
    cursor: pointer;
    width: 28px;
    height: 13px;
    position: relative;
    z-index: 2100;
}

.mobile-toggle span,
.mobile-toggle span::before,
.mobile-toggle span::after {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: 0.4s var(--ease);
}

.mobile-toggle span {
    position: relative;
}

.mobile-toggle span::before,
.mobile-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}

.mobile-toggle span::before {
    top: -7px;
}

.mobile-toggle span::after {
    top: 7px;
}

.mobile-toggle.active span {
    background: transparent;
}

.mobile-toggle.active span::before {
    top: 0;
    transform: rotate(45deg);
    background: #fff;
}

.mobile-toggle.active span::after {
    top: 0;
    transform: rotate(-45deg);
    background: #fff;
}

/* =======================
   6. MOBILE MENU OVERLAY
   ======================= */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding-block: clamp(2rem, 8vh, 4rem);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease), visibility 0.6s;
    overflow: hidden;
}

.menu-grain {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

.menu-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.m-orb-1 {
    width: 300px;
    height: 300px;
    background: var(--primary);
    top: -10%;
    left: -10%;
}

.m-orb-2 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 5%;
    right: -5%;
}

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

.mobile-menu-header {
    width: 100%;
    padding-inline: clamp(1.5rem, 5vw, 3rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.mobile-menu-header .logo {
    color: #fff;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 5vh, 2.5rem);
    text-align: center;
    position: relative;
    z-index: 2;
}

.mobile-nav .menu-link {
    font-size: clamp(1.75rem, 8vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.3s;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
}

.mobile-nav .menu-link:hover {
    color: var(--primary);
}

.mobile-menu-overlay.active .menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .menu-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .menu-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .menu-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-inline: 2rem;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.5s var(--ease) 0.4s, transform 0.5s var(--ease) 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-footer .social-links a {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.menu-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.2s, transform 0.3s var(--ease);
}

.menu-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* =======================
   7. HERO SECTION
   ======================= */
.section-hero {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: clamp(4rem, 12vh, 8rem);
    padding-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

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

.section-hero h1 {
    font-size: clamp(2rem, 9vw, 5.5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    margin-inline: auto;
    max-width: 95%;
    background: linear-gradient(135deg, #000 0%, #333 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    word-break: break-word;
    /* Prevents overflow of long technical terms */
}

.section-hero p {
    font-size: clamp(0.95rem, 2.5vw, 1.2rem);
    color: var(--text-dim);
    max-width: 600px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

/* =======================
   8. BUTTONS
   ======================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    border: none;
    transition: 0.35s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 0 12px rgba(0, 210, 255, 0.4);
}

.btn-outline-dark {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-outline-dark:hover {
    background: var(--text-main);
    color: #fff;
}

.btn-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

@media (max-width: 480px) {
    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
    }
}

/* =======================
   9. HIGHLIGHT GRADIENT
   ======================= */
.highlight {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    display: inline-block;
}

/* =======================
   10. GRID SYSTEMS
   ======================= */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.5rem;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.5rem;
}

/* =======================
   11. GLASS CARD
   ======================= */
.glass-card {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
    transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
    will-change: transform;
}

.glass-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Product Titles - with Truncation Support */
.glass-card h4 {
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    min-height: 2.6em;
    /* Keeps heights aligned */
}

/* =======================
   12. SOLUTION CARDS (Trident)
   ======================= */
.solution-card {
    padding: clamp(1.5rem, 4vw, 2.5rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
}

.solution-card h3 {
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.solution-card p {
    color: var(--text-dim);
    font-size: 0.92rem;
    flex-grow: 1;
}

.card-glow {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    filter: blur(36px);
    opacity: 0.18;
    border-radius: 50%;
    pointer-events: none;
}

.glow-cyan {
    background: var(--primary);
}

.glow-purple {
    background: var(--secondary);
}

.glow-gold {
    background: #ffb700;
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-main);
}

/* =======================
   13. STATS GRID
   ======================= */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 2rem;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-card);
    padding: clamp(2rem, 5vw, 3.5rem);
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: block;
    margin-bottom: 0.4rem;
}

.stat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-dim);
}

/* =======================
   14. DEEP DIVE SECTIONS
   ======================= */
.deep-dive-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
}

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

.deep-dive-row.reverse>* {
    direction: ltr;
}

.badge {
    display: inline-block;
    background: rgba(0, 210, 255, 0.08);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 4px;
    margin-bottom: 1.2rem;
}

.deep-dive-text h2 {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.deep-dive-text p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    font-weight: 600;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.visual-card {
    border-radius: var(--radius-card);
    overflow: hidden;
    height: clamp(250px, 40vw, 480px);
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}

.visual-card:hover img {
    transform: scale(1.04);
}

/* =======================
   15. SCROLL HINT
   ======================= */
.scroll-hint {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-dim);
}

.mouse {
    width: 22px;
    height: 38px;
    border: 2px solid currentColor;
    border-radius: 14px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: var(--primary);
    border-radius: 2px;
    animation: scrollMouse 2s ease infinite;
}

@keyframes scrollMouse {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
}

/* =======================
   16. BLOG / HORIZONTAL SCROLL
   ======================= */
.horizontal-scroll-container {
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-block: 1rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}

.horizontal-scroll-container::-webkit-scrollbar {
    display: none;
}

.blog-tile {
    scroll-snap-align: start;
    flex: 0 0 clamp(260px, 75vw, 340px);
    padding: clamp(1.25rem, 4vw, 2rem);
    text-align: left;
}

.blog-tile .date {
    display: block;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.blog-tile h4 {
    font-size: clamp(1rem, 3vw, 1.2rem);
    font-weight: 800;
    margin-bottom: 0.5rem;
}

/* =======================
   17. TESTIMONIAL
   ======================= */
.testimonial-wrap {
    max-width: 900px;
    margin-inline: auto;
    text-align: center;
}

.quote-icon {
    font-size: clamp(4rem, 12vw, 7rem);
    line-height: 1;
    color: var(--primary);
    opacity: 0.25;
    display: block;
    margin-bottom: -1rem;
}

.display-3 {
    font-size: clamp(1.4rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

/* =======================
   18. CTA SECTION
   ======================= */
.cta-box {
    background: #0a0a0a;
    color: #fff;
    border-radius: clamp(20px, 5vw, 40px);
    padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 5vw, 5rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-box h2 {
    font-size: clamp(2rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.cta-box .highlight {
    background-image: linear-gradient(90deg, #fff, var(--primary));
}

.cta-box p {
    color: rgba(255, 255, 255, 0.6);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    max-width: 560px;
    margin-inline: auto;
    margin-bottom: 2.5rem;
}

.cta-box .btn-outline-dark {
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.glow-orb {
    position: absolute;
    width: clamp(200px, 40vw, 400px);
    height: clamp(200px, 40vw, 400px);
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    pointer-events: none;
}

.orb-1 {
    top: -20%;
    left: -10%;
    background: var(--primary);
    animation: drift 14s infinite alternate;
}

.orb-2 {
    bottom: -20%;
    right: -10%;
    background: var(--secondary);
    animation: drift 14s infinite alternate-reverse;
}

@keyframes drift {
    from {
        transform: translate(0, 0) scale(1);
    }

    to {
        transform: translate(5%, 3%) scale(1.08);
    }
}

/* =======================
   19. LOADER
   ======================= */
#loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    background: #fff;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.8s var(--ease);
}

.loader-text {
    font-size: clamp(1rem, 5vw, 1.5rem);
    font-weight: 800;
    letter-spacing: 0.7em;
    padding-left: 0.7em;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pulse 1.4s ease infinite alternate;
}

@keyframes pulse {
    from {
        opacity: 0.4;
        filter: blur(2px);
    }

    to {
        opacity: 1;
        filter: blur(0);
    }
}

/* =======================
   20. CURSOR
   ======================= */
.cursor-dot,
.cursor-outline {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background: var(--text-main);
}

.cursor-outline {
    width: 32px;
    height: 32px;
    border: 2px solid var(--text-main);
    opacity: 0.4;
}

/* =======================
   21. UTILS
   ======================= */
.text-center {
    text-align: center;
}

.text-dim {
    color: var(--text-dim);
}

.section-hero-content {
    position: relative;
    z-index: 1;
}

/* =======================
   22. RESPONSIVE BREAKPOINTS
   (Clean, non-conflicting)
   ======================= */

/* — TABLET & BELOW (< 900px) — */
@media (max-width: 900px) {

    /* Navbar — switch to flexible grid */
    .nav-pill {
        width: 90%;
        padding: 0.6rem 1rem;
        grid-template-columns: auto 1fr auto;
        display: grid;
        align-items: center;
    }

    .nav-links {
        display: none;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        text-align: center;
        font-size: 1rem;
        width: 100%;
    }

    .nav-cta {
        display: none;
    }

    .mobile-toggle {
        display: flex;
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
        margin-top: px;
        margin-left: 6px;
    }

    /* Deep-dive rows stack */
    .deep-dive-row,
    .deep-dive-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
    }

    .deep-dive-row.reverse>* {
        direction: ltr;
    }

    .deep-dive-text {
        order: 1;
    }

    .deep-dive-text .feature-list {
        max-width: 380px;
        margin-inline: auto;
        text-align: left;
    }

    .visual-card {
        order: 2;
    }
}

/* — MOBILE (< 600px) — */
@media (max-width: 600px) {
    .nav-pill {
        width: 88%;
        padding: 0.55rem 0.9rem;
        grid-template-columns: auto 1fr auto;
    }

    .logo {
        font-size: 0.9rem;
    }

    .mobile-toggle span::before {
        top: -6px;
    }

    .mobile-toggle span::after {
        top: 6px;
    }

    .btn-group {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-group .btn {
        width: 100%;
    }

    .scroll-hint {
        display: none;
    }
}

/* — TOUCH devices — */
@media (hover: none) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }
}

/* =======================
   23. MAIN FOOTER
   ======================= */
/* =======================
   23. MAIN FOOTER (Enterprise Dark)
   ======================= */
.main-footer {
    background: #080808;
    color: #ffffff;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: clamp(4rem, 10vw, 8rem);
    padding-bottom: 3rem;
    position: relative;
    z-index: 10;
    overflow: hidden;
}

/* Subtle data-glow top edge */
.main-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(2, 1fr) 1.5fr;
    gap: clamp(2rem, 5vw, 4rem);
    margin-bottom: clamp(4rem, 8vw, 6rem);
}

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

.footer-label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--primary);
    /* Accent color for labels in dark mode */
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.footer-logo {
    justify-self: start !important;
    grid-column: auto !important;
    font-size: 1.4rem !important;
    color: #fff !important;
    text-align: left;
    display: block;
}

.footer-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
    max-width: 320px;
}

/* Infrastructure Status Indicator */
.status-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 100px;
    width: fit-content;
    margin-top: 0.5rem;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff9d;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff9d;
    animation: status-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes status-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

.status-text {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
}

.status-text strong {
    color: #fff;
    font-weight: 800;
}

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

.footer-links a {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.3s var(--ease);
    display: inline-block;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(6px);
}

/* Social Links Redesign */
.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    /* Modern squircle */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.4s var(--ease);
}

.social-links a:hover {
    background: var(--primary);
    color: #000;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 210, 255, 0.3);
    border-color: transparent;
}

.social-links svg {
    width: 18px;
    height: 18px;
}

/* Premium Newsletter Form */
.newsletter-form {
    display: flex;
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 4px;
    transition: border-color 0.3s var(--ease);
}

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

.newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.75rem 1rem;
    color: #fff;
    font-size: 0.9rem;
    outline: none;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.btn-submit {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-submit:hover {
    transform: scale(1.05);
}

.btn-submit svg {
    width: 16px;
    height: 16px;
}

/* Footer Bottom Section (Copyright) */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
}

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

.legal-links a {
    color: inherit;
    transition: color 0.3s var(--ease);
}

.legal-links a:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .legal-links {
        justify-content: center;
    }
}

/* Newsletter styles... (kept from current) */

/* =======================
   11. PREMIUM SECTIONS
   ======================= */

/* Logo Marquee */
.section-marquee {
    padding-block: 3rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.3);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
    gap: 5rem;
}

.marquee-item {
    font-size: 1.1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.25);
    white-space: nowrap;
    text-transform: uppercase;
}

.marquee-item span {
    font-weight: 300;
    color: var(--primary);
    opacity: 0.7;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Process Section */
.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.5rem;
    position: relative;
}

.process-card {
    padding: 2.5rem;
    text-align: center;
    position: relative;
}

.process-num {
    font-size: 0.85rem;
    font-weight: 900;
    color: var(--primary);
    background: rgba(0, 210, 255, 0.1);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
}

/* Image Ribbon Scroller */
.section-image-ribbon {
    margin-top: 4rem;
    padding-block: 2rem;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.section-image-ribbon::before,
.section-image-ribbon::after {
    content: '';
    position: absolute;
    top: 0;
    width: 15vw;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.section-image-ribbon::before {
    left: 0;
    background: linear-gradient(to right, var(--bg) 0%, transparent 100%);
    width: 15%;
}

.section-image-ribbon::after {
    right: 0;
    background: linear-gradient(to left, var(--bg) 0%, transparent 100%);
    width: 15%;
}

.ribbon-track {
    display: flex;
    width: max-content;
    gap: 1.5rem;
    animation: scroll-ribbon 40s linear infinite;
}

.ribbon-item {
    width: 380px;
    height: 240px;
    border-radius: 20px;
    overflow: hidden;
    background: #eee;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.ribbon-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}

.ribbon-item:hover img {
    transform: scale(1.08);
}

@keyframes scroll-ribbon {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

@media (max-width: 768px) {
    .nav-pill {
        display: flex;
        justify-content: space-between;
        padding-inline: 1.5rem;
    }

    /* Navbar Logo - absolute center within the already centered pill */
    .nav-pill .logo {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        margin: 0;
        grid-column: auto;
    }

    /* Footer Logo Reset - Ensure it follows normal flow on mobile */
    .footer-logo {
        position: static !important;
        transform: none !important;
        left: auto !important;
        top: auto !important;
        display: block !important;
        text-align: left !important;
        margin-bottom: 1rem !important;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links,
    .nav-cta {
        display: none;
    }
}

@media (max-width: 600px) {
    .ribbon-item {
        width: 260px;
        height: 160px;
    }
}

@media (max-width: 768px) {
    .feed-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* =======================
   24. CONTACT MATRIX & FORM
   ======================= */
.contact-section {
    padding-top: clamp(10rem, 20vh, 14rem);
    padding-bottom: clamp(6rem, 12vw, 10rem);
    position: relative;
    z-index: 10;
    color: #111;
}

.contact-section h1 {
    color: #000;
}

.contact-section p {
    color: rgba(0, 0, 0, 0.7);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: clamp(2rem, 5vw, 6rem);
    align-items: start;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 2.5rem;
    border-radius: 28px;
    transition: all 0.5s var(--ease);
}

.contact-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary);
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.contact-card h4 {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--primary);
    margin-bottom: 1.25rem;
}

.contact-card .val {
    font-size: 1.35rem;
    font-weight: 700;
    color: #111;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-card p {
    font-size: 0.95rem;
    color: rgba(0, 0, 0, 0.6);
    line-height: 1.6;
}

/* Glass Matrix UI */
.contact-matrix {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 40px;
    padding: clamp(2.5rem, 6vw, 4.5rem);
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    max-width: 900px;
}


.form-group {
    margin-bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(0, 0, 0, 0.5);
}

.form-input {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    padding: 1.25rem 1.75rem;
    border-radius: 14px;
    color: #000;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s var(--ease);
}

.form-input:focus {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 210, 255, 0.15);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.15);
}

textarea.form-input {
    min-height: 180px;
    resize: none;
}

.btn-contact {
    width: 100%;
    padding: 1.5rem;
    background: var(--primary);
    color: #000;
    border: none;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.btn-contact:hover {
    transform: scale(1.02) translateY(-3px);
    box-shadow: 0 15px 45px rgba(0, 210, 255, 0.4);
}

@media (max-width: 1024px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

@media (max-width: 768px) {
    .contact-matrix {
        padding: 2.5rem 2rem;
    }

    .contact-matrix::after {
        display: none;
    }
}

/* =======================
   25. PILLAR MANIFESTO
   ======================= */
.pillar-manifesto-grid {
    display: flex;
    flex-direction: column;
    gap: 6rem;
    padding-bottom: 6rem;
}

.pillar-node {
    position: relative;
    padding-left: clamp(2rem, 8vw, 4rem);
    border-left: 2px solid rgba(0, 0, 0, 0.05);
}

.pillar-marker {
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: block;
}

.pillar-node h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
}

.pillar-node .subtitle {
    font-size: 1.1rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.pillar-content {
    max-width: 800px;
}

.pillar-content p {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 2rem;
}

.competency-box {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.05rem;
    line-height: 1.6;
}

.competency-box strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
}

.advantage-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    line-height: 1.6;
}

.advantage-item strong {
    color: var(--primary);
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .pillar-node {
        padding-left: 1.5rem;
        gap: 3rem;
    }

    .pillar-manifesto-grid {
        gap: 4rem;
    }
}