:root {
    --bg-dark: #050508;
    --bg-card: #0e0e14;
    --primary: #5c24ff;
    --secondary: #ff3d7f;
    --text-main: #ffffff;
    --text-muted: #8892b0;
    --font-head: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
}

/* Global Canvas Background - Blue Constellation */
#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    /* Allow clicks to pass through to content */
}

/* Ensure all content is above the canvas */
nav,
header,
section,
.carousel-container,
.stats-bar {
    position: relative;
    z-index: 1;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes glow {
    0% {
        box-shadow: 0 0 10px rgba(92, 36, 255, 0.2);
    }

    50% {
        box-shadow: 0 0 25px rgba(92, 36, 255, 0.5);
    }

    100% {
        box-shadow: 0 0 10px rgba(92, 36, 255, 0.2);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-head);
    font-weight: 700;
}

.gradient-text {
    background: linear-gradient(135deg, #fff 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Portfolio Carousel */
.carousel-container {
    perspective: 1500px;
    width: 100%;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
    padding: 50px 0;
}

/* Nav */
.glass-nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 0.25rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 8, 0.7);
    backdrop-filter: blur(15px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-family: var(--font-head);
    font-size: 1.5rem;
    letter-spacing: 1px;
}

.highlight {
    color: var(--secondary);
}

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

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: #BE1E2D;
    text-shadow: 0 0 12px rgba(190, 30, 45, 0.7), 0 0 24px rgba(190, 30, 45, 0.35);
}

/* PORTFOLIO — always-glowing standout nav link */
.nav-portfolio {
    color: #fff !important;
    font-family: var(--font-head) !important;
    font-weight: 700 !important;
    font-size: 0.82rem !important;
    letter-spacing: 2px !important;
    text-transform: uppercase;
    padding: 0.4rem 1.2rem !important;
    border-radius: 50px;
    border: none;
    background: linear-gradient(90deg, #ff3d7f, #ff75a0, #ff1a66, #ff3d7f);
    background-size: 300% 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 0 15px rgba(255, 61, 127, 0.4);
    animation: portfolio-flow 3s linear infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

.nav-portfolio:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 61, 127, 0.6), 0 0 50px rgba(255, 61, 127, 0.3) !important;
}

@keyframes portfolio-flow {
    0% {
        background-position: 0% 50%;
        box-shadow: 0 0 15px rgba(255, 61, 127, 0.4);
    }
    50% {
        box-shadow: 0 0 25px rgba(255, 61, 127, 0.6);
    }
    100% {
        background-position: -300% 50%;
        box-shadow: 0 0 15px rgba(255, 61, 127, 0.4);
    }
}

/* Active state — on the portfolio page itself, pill is always fully lit */
.nav-portfolio--active,
.nav-portfolio--active:hover {
    background: linear-gradient(90deg, #ff3d7f, #ff75a0, #ff1a66, #ff3d7f) !important;
    background-size: 300% 100%;
    color: #fff !important;
    box-shadow: 0 0 30px rgba(255, 61, 127, 0.7), 0 0 60px rgba(255, 61, 127, 0.3) !important;
    animation: portfolio-flow 3s linear infinite;
    transform: scale(1.05);
}

/* Hero */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    /* Center Vertically */
    justify-content: center;
    text-align: center;
    overflow: hidden;
}



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 2rem;
}

.hero h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Interactive Elements */
.primary-btn {
    padding: 1rem 2.5rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 50px;
    color: white;
    font-weight: 700;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(255, 61, 127, 0.4);
}

/* Stats */
.stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 4rem 10%;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.stat-item .number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-head);
    color: var(--text-main);
}

.stat-item .suffix {
    font-size: 3.5rem;
    color: var(--secondary);
}

.stat-item .label {
    display: block;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Sections */
.section {
    padding: 8rem 5%;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 4rem;
    text-align: center;
}

/* Grid & Cards */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Center 4th pricing plan directly below Plan 2 on large screens */
@media (min-width: 1080px) {
    #services .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    #services .grid-3 .pricing-card:nth-child(4) {
        grid-column: 2;
    }
}

.card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3rem 2rem;
    border-radius: 20px;
    transition: transform 0.1s;
    /* smooth tilt */
    transform-style: preserve-3d;
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Calculator Section */
.dark-alt {
    background: transparent;
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.text-side {
    flex: 1;
}

.visual-side {
    flex: 1;
}

.input-group {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

input[type=range] {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: var(--secondary);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--secondary);
}

.value-display {
    font-size: 2.5rem;
    font-weight: 700;
    margin-top: 1rem;
    color: var(--primary);
    font-family: var(--font-head);
}

.graph-container {
    height: 300px;
    width: 100%;
    /* border: 1px dashed rgba(255,255,255,0.1); */
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.projection-result {
    text-align: center;
    margin-top: 1rem;
}

.big-number {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Contact */
.contact-section {
    display: flex;
    justify-content: center;
}

.contact-glass {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 4rem;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
}

.contact-glass h2 {
    margin-bottom: 2rem;
    text-align: center;
}

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

.form-group input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 10px 0;
    color: white;
    font-size: 1.1rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary);
}

.form-group label {
    position: absolute;
    top: 10px;
    left: 0;
    color: var(--text-muted);
    transition: 0.3s;
    pointer-events: none;
}

.form-group input:focus~label,
.form-group input:not(:placeholder-shown)~label {
    top: -20px;
    font-size: 0.8rem;
    color: var(--primary);
}

.full-width {
    width: 100%;
}

footer {
    padding: 3rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    .split-layout {
        flex-direction: column;
    }

    .hero h1 {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
    }
}

/* Restored Carousel Styles */
.carousel {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    position: relative;
}

.carousel-container {
    perspective: 1500px;
    width: 100%;
    height: 600px;
    /* Force Beautiful Height */
    display: flex;
    /* Inherited */
    justify-content: center;
    align-items: center;
    overflow: visible;
    position: relative;
    padding: 50px 0;
}

.carousel-item {
    position: absolute;
    width: 400px;
    height: 500px;
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    /* Default Hidden State */
    opacity: 0;
    transform: scale(0.3) translateZ(-200px);
    transition: all 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    pointer-events: none;
}

.carousel-item.active {
    opacity: 1;
    transform: translateX(0) scale(1) translateZ(0);
    z-index: 10;
    pointer-events: auto;
    box-shadow: 0 0 50px rgba(92, 36, 255, 0.3);
}

.carousel-item.prev {
    transform: translateX(-500px) scale(0.85) rotateY(25deg) translateZ(-50px);
    opacity: 0.6;
    z-index: 5;
}

.carousel-item.next {
    transform: translateX(500px) scale(0.85) rotateY(-25deg) translateZ(-50px);
    opacity: 0.6;
    z-index: 5;
}

.carousel-image {
    width: 100%;
    height: 70%;
    object-fit: cover;
    border-bottom: 2px solid var(--primary);
}

.carousel-caption {
    padding: 1.5rem;
    text-align: center;
}

.carousel-caption h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.carousel-caption p {
    font-size: 0.95rem;
    color: var(--text-muted);
}

.carousel-controls {
    position: absolute;
    bottom: 5%;
    display: flex;
    gap: 1rem;
    z-index: 20;
}

.control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* Animations Trigger */
.reveal-text {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.delay-200 {
    transition-delay: 0.2s;
}

.delay-400 {
    transition-delay: 0.4s;
}

/* ============================
   Performance Solutions Styling
   ============================ */

.performance-solutions {
    position: relative;
    z-index: 10;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 20px;
    padding: 3rem 2rem;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    height: 100%;
}

.corner-ribbon {
    position: absolute;
    top: 35px;
    right: -45px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    padding: 8px 50px;
    font-size: 0.75rem;
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 4px 15px rgba(255, 61, 127, 0.4);
    z-index: 20;
    white-space: nowrap;
}

.pricing-card:hover {
    transform: scale(1.05);
    border-color: rgba(147, 51, 234, 0.5);
    box-shadow: 0 0 30px rgba(147, 51, 234, 0.15), 0 0 10px rgba(236, 72, 153, 0.1);
}

/* Scan-line Effect */
.pricing-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(147, 51, 234, 0.1) 50%, transparent 100%);
    background-size: 100% 200%;
    transform: translateY(-100%);
    transition: transform 0.6s ease-in-out;
    pointer-events: none;
    z-index: 1;
}

.pricing-card:hover::after {
    animation: scanline 2s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

/* Data Chip */
.data-chip {
    display: inline-block;
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.75rem;
    color: #00f0ff;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
    text-transform: uppercase;
    letter-spacing: 2px;
    width: fit-content;
    backdrop-filter: blur(4px);
}

/* Recommended Badge Style */
.pricing-card.recommended {
    border: 1px solid rgba(92, 36, 255, 0.3);
    background: linear-gradient(to bottom, rgba(92, 36, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #9333ea, #ec4899);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(236, 72, 153, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

/* Header & Price */
.pricing-header h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.pricing-header p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    min-height: 40px;
    /* Aligns prices vertically */
}

.pricing-price {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(to right, #fff, #a5b4fc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.protocol-allocation {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature List */
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 2rem 0;
    text-align: left;
    flex-grow: 1;
}

/* Plain row (e.g. "Everything in Plan 1") */
.pf-item--plain {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.pf-item--plain .pf-icon i {
    color: var(--primary);
    font-size: 0.8rem;
}

/* Accordion item wrapper */
.pf-item {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

/* Toggle button */
.pf-toggle {
    width: 100%;
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0;
    text-align: left;
    font-family: var(--font-body);
    transition: background 0.2s;
}

.pf-toggle:hover {
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
}

.pf-icon {
    flex-shrink: 0;
}

.pf-icon i {
    color: var(--primary);
    font-size: 0.8rem;
}

.pf-title {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
    line-height: 1.3;
}

.pf-chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.pf-toggle.open .pf-chevron {
    transform: rotate(180deg);
}

/* Detail panel */
.pf-detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.25s ease;
    font-size: 0.83rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding: 0 0 0 1.5rem;
}

.pf-detail.open {
    max-height: 200px;
    padding: 0 0 0.75rem 1.5rem;
}

.feature-strong {
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Web Design Add-On styles */
.addon-toggle-wrap {
    margin-top: 1rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    text-align: left;
}

.addon-toggle-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.addon-toggle-btn:hover {
    background: rgba(92, 36, 255, 0.1);
    border-color: rgba(92, 36, 255, 0.3);
    color: #fff;
}

.addon-toggle-btn.active {
    background: rgba(92, 36, 255, 0.15);
    border-color: rgba(92, 36, 255, 0.5);
    color: #00f0ff;
    box-shadow: 0 0 15px rgba(92, 36, 255, 0.1);
}

.addon-icon {
    font-size: 0.8rem;
    color: var(--primary);
    transition: transform 0.3s ease, color 0.3s ease;
}

.addon-toggle-btn.active .addon-icon {
    color: #00f0ff;
}

.addon-chevron {
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.addon-toggle-btn.active .addon-chevron {
    transform: rotate(180deg);
}

.addon-detail {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, padding 0.3s ease;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    padding: 0 0.5rem;
}

.addon-detail.open {
    max-height: 250px;
    opacity: 1;
    padding: 1rem 0.5rem 0.5rem 0.5rem;
}

.addon-price {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.addon-price span {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* CTA Button */
.cta-btn {
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #5c24ff, #9333ea);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: auto;
    position: relative;
    overflow: hidden;
}

.cta-btn:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(92, 36, 255, 0.3);
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.cta-btn:hover::after {
    left: 100%;
}

/* ══════════════════════════════════════════
   GLOBAL SCROLL PADDING & ANCHOR TARGETING
══════════════════════════════════════════ */
html {
    scroll-padding-top: 90px;
    scroll-behavior: smooth;
}

/* Primary btn as anchor link */
a.primary-btn {
    display: inline-block;
    text-decoration: none;
}

/* Mobile menu button (hidden by default) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background 0.3s;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ══════════════════════════════════════════
   SHARED SECTION HEADER SYSTEM
══════════════════════════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 4px;
    color: #BE1E2D;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 500;
}

.section-sub {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 560px;
    margin: 0.75rem auto 0;
    line-height: 1.7;
}

.section-title.left-align {
    text-align: left;
}

/* ══════════════════════════════════════════
   CAPABILITIES PROTOCOL — SERVICES
══════════════════════════════════════════ */
.capabilities-section {
    position: relative;
    z-index: 1;
}

.capabilities-grid {
    display: grid;
    /* 6 service cards in 3×2, then the metric card spans full width */
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.cap-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #BE1E2D, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cap-card:hover {
    border-color: rgba(190, 30, 45, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(190, 30, 45, 0.08);
}

.cap-card:hover::before {
    opacity: 1;
}

.cap-card-icon {
    font-size: 1.8rem;
    color: #BE1E2D;
    margin-bottom: 0.75rem;
}

.cap-card-num {
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.cap-card h3 {
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.cap-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.cap-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cap-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    border: 1px solid rgba(190, 30, 45, 0.3);
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.5px;
}

/* Metric card — spans 3 cols bottom row */
.cap-card--metric {
    grid-column: 1 / -1;
    background: rgba(190, 30, 45, 0.04);
    border-color: rgba(190, 30, 45, 0.15);
}

.metric-label {
    font-family: var(--font-head);
    font-size: 0.7rem;
    letter-spacing: 4px;
    color: #BE1E2D;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.metric-row {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.metric-item {
    flex: 1;
    text-align: center;
}

.metric-value {
    font-family: var(--font-head);
    font-size: 2.8rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.5rem;
}

/* Viral/high-end variant — bigger, glowing red shadow */
.metric-value.viral {
    font-size: 4.5rem;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 18px rgba(190, 30, 45, 0.55));
    text-shadow:
        0 0 30px rgba(190, 30, 45, 0.6),
        0 2px 8px rgba(0, 0, 0, 0.9);
}


.metric-value span {
    color: #BE1E2D;
    font-size: 2.4rem;
}

.metric-value.viral span {
    font-size: 3rem;
    text-shadow: 0 0 20px rgba(190, 30, 45, 0.8);
}

/* Title line above desc */
.metric-title {
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 0.25rem;
    margin-top: 0.75rem;
}

.metric-desc {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.metric-divider {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.07);
    flex-shrink: 0;
}

.metric-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.metric-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #BE1E2D, #ff3d7f);
    border-radius: 2px;
    animation: fillBar 2s ease forwards;
}

@keyframes fillBar {
    from {
        width: 0%;
    }
}

.metric-footer {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

/* ══════════════════════════════════════════
   VERIFIED MOMENTUM — TESTIMONIALS
══════════════════════════════════════════ */
.testimonials-section {
    position: relative;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(190, 30, 45, 0.2);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.testimonial-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    border: 1px solid transparent;
    background: linear-gradient(135deg, rgba(190, 30, 45, 0.3), transparent 60%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    pointer-events: none;
}

.testimonial-card--featured {
    background: rgba(190, 30, 45, 0.06);
    border-color: rgba(190, 30, 45, 0.4);
    box-shadow: 0 0 40px rgba(190, 30, 45, 0.12), 0 0 80px rgba(190, 30, 45, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(190, 30, 45, 0.15);
}

.testimonial-sector {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #BE1E2D;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    flex-grow: 1;
    font-style: italic;
    border-left: 2px solid rgba(190, 30, 45, 0.4);
    padding-left: 1.25rem;
    margin: 0;
}

.testimonial-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.testimonial-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.04);
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.testimonial-stat span {
    color: #BE1E2D;
    font-weight: 700;
    margin-right: 0.3rem;
}

/* ══════════════════════════════════════════
   INTELLIGENCE BRIEFING — FAQ ACCORDION
══════════════════════════════════════════ */
.faq-section {
    position: relative;
    z-index: 1;
}

.faq-container {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.faq-item.open {
    border-color: rgba(190, 30, 45, 0.35);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--text-main);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    gap: 1rem;
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: #BE1E2D;
}

.faq-icon {
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), color 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(180deg);
    color: #BE1E2D;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1), padding 0.3s ease;
    padding: 0 2rem;
}

.faq-answer p {
    font-size: 0.93rem;
    color: var(--text-muted);
    line-height: 1.8;
    padding-bottom: 1.75rem;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 2rem;
}

/* ══════════════════════════════════════════
   THE REACH BLUEPRINT — ABOUT US
══════════════════════════════════════════ */
.about-section {
    position: relative;
    z-index: 1;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.about-text-col .section-tag {
    text-align: left;
}

.about-text-col .section-title {
    margin-bottom: 1.5rem;
}

.about-lead {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    line-height: 1.4;
}

.about-body {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-stat-row {
    display: flex;
    gap: 2rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.about-stat {
    flex: 1;
}

.about-stat-val {
    font-family: var(--font-head);
    font-size: 2rem;
    font-weight: 700;
    color: #BE1E2D;
    line-height: 1;
    margin-bottom: 0.4rem;
}

.about-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
}

/* Terminal */
.about-terminal {
    background: #0a0a10;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    font-family: 'Courier New', monospace;
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(190, 30, 45, 0.08);
}

.terminal-header {
    background: rgba(255, 255, 255, 0.04);
    padding: 0.85rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background: #BE1E2D;
}

.terminal-dot.yellow {
    background: #f39c12;
}

.terminal-dot.green {
    background: #27ae60;
}

.terminal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.5rem;
    letter-spacing: 1px;
}

.terminal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.terminal-line {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    display: flex;
    align-items: center;
    gap: 0.6rem;
    animation: typeIn 0.4s ease forwards;
    opacity: 0;
}

.terminal-line:nth-child(1) {
    animation-delay: 0.2s;
}

.terminal-line:nth-child(2) {
    animation-delay: 0.5s;
}

.terminal-line:nth-child(3) {
    animation-delay: 0.8s;
}

.terminal-line:nth-child(4) {
    animation-delay: 1.1s;
}

.terminal-line:nth-child(5) {
    animation-delay: 1.4s;
}

.terminal-line:nth-child(6) {
    animation-delay: 1.7s;
}

.terminal-line:nth-child(7) {
    animation-delay: 2.0s;
}

.terminal-line:nth-child(8) {
    animation-delay: 2.3s;
}

.terminal-line:nth-child(9) {
    animation-delay: 2.6s;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-6px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.t-green {
    color: #27ae60;
}

.t-cyan {
    color: #00d4ff;
}

.t-yellow {
    color: #f39c12;
}

.t-red {
    color: #BE1E2D;
}

.t-white {
    color: rgba(255, 255, 255, 0.8);
}

.cursor {
    animation: blink 1s step-end infinite;
    color: #BE1E2D;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* ══════════════════════════════════════════
   RESPONSIVE — UPDATED
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .capabilities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cap-card--metric {
        grid-column: 1 / -1;
    }

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

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .metric-row {
        flex-direction: column;
        gap: 1.5rem;
    }

    .metric-divider {
        width: 60px;
        height: 1px;
    }

    .about-stat-row {
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(5, 5, 8, 0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }
}