/* Global Reset & Base Styles */
:root {
    --bg-dark: #020405;
    --text-primary: #ffffff;
    --text-secondary: #9ca3af;
    --accent-green: #00ff88;
    --accent-green-dim: rgba(0, 255, 136, 0.1);
    --grid-color: rgba(0, 255, 136, 0.08);
    /* Slightly adjusted for better visibility at low opacity */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Navbar styles moved to common/header.css */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background-color: var(--accent-green);
    color: #000;
}

.btn-primary:hover {
    background-color: #00cc6a;
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-gradient {
    background: linear-gradient(135deg, var(--accent-green) 0%, #00cc6a 100%);
    color: #020405;
    box-shadow: 0 4px 15px rgba(0, 255, 136, 0.2);
    border: none;
}

.btn-gradient:hover {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5), 0 0 50px rgba(0, 255, 136, 0.3);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--accent-green);
}

.btn-outline:hover {
    border-color: var(--accent-green);
    background: var(--accent-green-dim);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 140px;
    /* Increased to prevent overlap */
    overflow: hidden;
}

.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Create a sharp green grid */
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.2) 1px, transparent 1px);
    background-size: 60px 60px;
    /* Larger squares as per reference */
    background-position: center top;
    opacity: 0.8;
    /* Increased opacity to make lines distinct */
    z-index: 1;
    pointer-events: none;
    /* Optional: Slight fade at the very bottom only */
    mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    /* Adjusted ratio */
    align-items: center;
    gap: 4rem;
    padding-bottom: 4rem;
}

/* Center Pacific/Green Glow Spotlight */
.hero-section::before {
    content: '';
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.15) 0%, rgba(2, 4, 5, 0) 60%);
    z-index: 0;
    filter: blur(80px);
    pointer-events: none;
}

/* Badge styling */
.badge-container {
    margin-bottom: 2rem;
}

.badge-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 1.2rem;
    background: rgba(0, 255, 136, 0.08);
    /* Green tint */
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    color: var(--accent-green);
    font-weight: 500;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.05);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 4.5rem;
    /* Larger title */
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: 1.5rem;
    color: var(--accent-green);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 90%;
}

.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Hero Visual (Lottie/Image) */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.hero-visual::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    z-index: -1;
    filter: blur(40px);
}

/* Trusted By Section */
.trusted-by {
    position: relative;
    z-index: 2;
    background: linear-gradient(to bottom, transparent, rgba(2, 4, 5, 0.8));
    padding: 3rem 0 3rem;
    text-align: center;
    margin-top: -80px;
    overflow: hidden;
    /* Hide scrollbar for marquee */
}

.trusted-text {
    color: #9ca3af;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.logos-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logos-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scroll 40s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.client-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.3rem;
    /* Larger for impact */
    color: #6b7280;
    /* Subtle gray */
    background: transparent;
    border: none;
    padding: 0 2rem;
    white-space: nowrap;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
}

.client-logo:hover {
    background: transparent;
    border: none;
    color: var(--text-primary);
    /* Use primary white for hover, or green if preferred */
    transform: scale(1.1);
    box-shadow: none;
    opacity: 1;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Responsive Design */
/* Responsive Hero & Common */
@media (max-width: 1440px) {
    .container {
        max-width: 1280px;
    }

    .hero-title {
        font-size: 4rem;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .hero-container {
        gap: 3rem;
    }
}

@media (max-width: 1024px) {
    .hero-section {
        padding-top: 120px;
        min-height: auto;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
        padding-bottom: 3rem;
    }

    .hero-content {
        max-width: 800px;
        margin: 0 auto;
    }

    .hero-visual {
        max-width: 600px;
        margin: 0 auto;
    }

    .hero-description {
        margin: 0 auto 1.5rem;
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-title {
        font-size: 3rem;
    }

    .badge-container {
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        max-width: 320px;
        margin: 3rem auto 0;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .logos-grid {
        gap: 2rem 1.5rem;
    }

    .trusted-by {
        margin-top: 0;
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.1rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .badge {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
    }

    .container {
        padding: 0 1.25rem;
    }
}


/* Value Proposition Section */
.value-prop-section {
    padding: 2rem 0 1rem;
    position: relative;
    background-color: var(--bg-dark);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.text-center {
    text-align: center;
}

.text-accent {
    color: var(--accent-green);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* New Feature Card Styles */
.feature-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.icon-circle {
    /* Removed green background and dimensions */
    background: transparent;
    width: auto;
    height: auto;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-icon-small {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.card-text {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
    max-width: 90%;
}

/* Responsive updates for features */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }
}

/* Problem Section */
/* Problem Section */
.problem-section {
    padding: 2rem 0;
    /* Reduced padding slightly to help fit */
    position: relative;
    background-color: var(--bg-dark);
    min-height: 100vh;
    /* Full viewport height */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.problem-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    position: relative;
    width: 100%;
}

/* Interactive Diagram Styles */
.interactive-diagram {
    position: relative;
    width: auto;
    /* Allow width to shrink based on height */
    max-width: 900px;
    height: 100%;
    max-height: 65vh;
    /* Limit height to 65% of viewport to leave room for title */
    margin: 0 auto;
    /* Removed explicit margin top if any, kept centering */
    aspect-ratio: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.diagram-layer {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity 0.4s ease;
}

.outer-layer {
    position: relative;
    z-index: 1;
}

.center-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 45%;
    /* Constrain width to fit inside the outer ring */
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 2;
    opacity: 0;
    /* Hidden by default */
    pointer-events: none;
}

/* Hover Effect: Show Center Layer */
.interactive-diagram:hover .center-layer {
    opacity: 1;
}

/* Optional: Dim outer layer on hover if desired, but user didn't ask 
.interactive-diagram:hover .outer-layer {
    opacity: 0.5;
}
*/

/* Responsive adjustments */
@media (max-width: 768px) {

    /* Stack visual for small screens */
    .problem-visual {
        flex-direction: column;
    }

    .diagram-center {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        margin-top: 2rem;
    }
}

/* Digital Nervous System Section */
.dns-section {
    padding: 3rem 0 2rem;
    position: relative;
    background-color: var(--bg-dark);
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 4rem;
    line-height: 1.6;
}

.dns-grid {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    position: relative;
}

.dns-card {
    flex: 1;
    min-width: 200px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.dns-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
}

.dns-icon-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
}

.dns-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.dns-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.dns-card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Flow Arrows between cards */
.dns-card:not(:last-child)::after {
    content: '→';
    position: absolute;
    right: -1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-green);
    font-size: 1.5rem;
    font-weight: 300;
    z-index: 2;
}

.dns-footer {
    margin-top: 3rem;
    color: var(--accent-green);
    font-weight: 500;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.cycle-icon {
    font-size: 1.2rem;
}

/* Responsive */
/* DNS Responsive */
@media (max-width: 1024px) {
    .dns-grid {
        gap: 1rem;
    }

    .dns-card {
        padding: 2rem 1rem;
    }

    .dns-card:not(:last-child)::after {
        right: -0.7rem;
    }
}

@media (max-width: 900px) {
    .dns-grid {
        flex-direction: column;
        gap: 3rem;
        align-items: center;
    }

    .dns-card {
        width: 100%;
        max-width: 450px;
    }

    /* Change arrow to point down on mobile */
    .dns-card:not(:last-child)::after {
        content: '↓';
        right: 50%;
        top: auto;
        bottom: -2.2rem;
        transform: translateX(50%);
    }
}


/* Platform Section */
.platform-section {
    padding: 2rem 0 2rem;
    position: relative;
    background-color: var(--bg-dark);
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.platform-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.platform-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 255, 136, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.platform-icon-box {
    width: 60px;
    height: 60px;
    background: transparent;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
}

.platform-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.platform-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.platform-card-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.platform-list {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 0.8rem;
}

.platform-list li {
    position: relative;
    padding-left: 1.5rem;
    color: #9ca3af;
    font-size: 0.95rem;
}

.platform-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

@media (max-width: 768px) {
    .platform-grid {
        grid-template-columns: 1fr;
    }
}

/* Modular Capabilities Section */
.modular-section {
    padding: 2rem 0 2rem;
    position: relative;
    background-color: var(--bg-dark);
    margin-bottom: 0;
}

/* Slider Layout */
.capabilities-slider {
    position: relative;
    min-height: 400px;
    margin-bottom: 0.5rem;
}

.module-slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    animation: fadeIn 0.5s ease;
}

.module-slide.active {
    display: grid;
}

/* Reverse layout logic */
.module-slide.reverse-layout .slide-content {
    order: 1;
}

.module-slide.reverse-layout .slide-visual {
    order: 2;
}

.module-slide .slide-content {
    order: 2;
}

.module-slide .slide-visual {
    order: 1;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Slide Content */
.slide-visual {
    width: 100%;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.01);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-category {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.slide-separator {
    width: 60px;
    height: 4px;
    background-color: var(--accent-green);
    margin-bottom: 2rem;
    border-radius: 2px;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.05rem;
    color: var(--text-secondary);
}

.dot-bullet {
    min-width: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent-green);
}

/* Slider Controls (Arrows & Dots) */
.slider-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.control-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    line-height: 1;
}

.control-btn:hover {
    background: rgba(0, 255, 136, 0.1);
    border-color: var(--accent-green);
}

.slider-dots {
    display: flex;
    gap: 0.8rem;
    align-items: center;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--accent-green);
    width: 30px;
    /* Dash effect */
    border-radius: 10px;
}

/* Bottom Tabs */
.module-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    width: 100%;
    overflow-x: auto;
    /* Allow scroll on very small screens if absolutely needed */
}

.module-tab {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    /* Vertically center content */
    justify-content: flex-start;
    /* Align content to start */
    gap: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    /* Distribute space evenly */
    min-width: 0;
    /* Allow shrinking */
    min-height: 60px;
    /* Ensure consistent height for multi-line support */
    backdrop-filter: blur(10px);
}

.module-tab:hover {
    background: rgba(255, 255, 255, 0.05);
}

.module-tab.active {
    border-color: var(--accent-green);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.1);
    background: rgba(0, 255, 136, 0.05);
}

.module-tab.active .tab-icon-wrapper {
    background: transparent;
    box-shadow: none;
}

.tab-icon-wrapper {
    width: 36px;
    height: 36px;
    background: transparent;
    border-radius: 8px;
    /* Rounded square */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.tab-icon {
    width: 24px;
    /* Adjusted to fit inside wrapper */
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.tab-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6b7280;
    transition: color 0.3s;
    white-space: normal;
    /* Allow text wrap */
    text-align: left;
    /* Align text to the left */
    line-height: 1.2;
}

.module-tab.active .tab-label {
    color: var(--text-primary);
}

/* Modular Tabs & Slider Responsive */
@media (max-width: 1200px) {
    .module-slide {
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .modular-section {
        padding: 4rem 0;
    }

    .module-slide,
    .module-slide.reverse-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .module-slide .slide-visual,
    .module-slide .slide-content,
    .module-slide.reverse-layout .slide-visual,
    .module-slide.reverse-layout .slide-content {
        order: unset !important;
    }

    .slide-visual {
        order: 1 !important;
        height: 350px;
        max-width: 600px;
        margin: 0 auto;
    }

    .slide-content {
        order: 2 !important;
        max-width: 600px;
        margin: 0 auto;
    }

    .slide-category {
        font-size: 1.75rem;
    }

    .slide-separator {
        margin: 0 auto 2rem;
    }

    .feature-item {
        justify-content: center;
    }

    .module-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-top: 3rem;
    }

    .module-tab {
        width: 100%;
        max-width: none;
    }
}

@media (max-width: 768px) {
    .capabilities-slider {
        min-height: auto;
    }

    .slide-visual {
        height: 250px;
    }

    .module-tabs {
        grid-template-columns: 1fr;
    }

    .slider-controls {
        margin-top: 2rem;
    }
}

@media (max-width: 480px) {
    .slide-category {
        font-size: 1.5rem;
    }

    .feature-item {
        font-size: 0.95rem;
    }
}