/* Design System */
:root {
    /* Colors */
    --bg-color: #fafafa;
    --bg-white: #ffffff;
    --text-primary: #1a1816;
    --text-secondary: #898683;
    --accent-color: #1a1816;
    --theme-primary: #4A4A4A;
    /* Dark Grey */
    --theme-dark: #2C2C2C;
    /* Darker Grey */
    --rating-yellow: #FFC107;

    /* Using black as accent for buttons */
    --border-color: rgba(0, 0, 0, 0.06);

    /* Typography */
    --font-display: 'GT America', 'Manrope', sans-serif;
    --font-body: 'GT America', 'Manrope', sans-serif;

    /* Spacing */
    --container-width: 1200px;
    --section-padding: 140px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 32px;
    --radius-full: 999px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 400;
    /* Duna uses lighter weights */
    line-height: 1.2;
    color: var(--text-primary);
}

h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    letter-spacing: -0.03em;
}

h2 {
    font-size: 40px;
    letter-spacing: -2px;
    line-height: 48px;
}

h3 {
    font-size: 24px;
    letter-spacing: -0.5px;
}

p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-secondary);
    letter-spacing: -0.1px;
}

/* Layout */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 24px;
}

.section {
    padding: var(--section-padding) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--text-primary);
}

.btn-primary:hover {
    background-color: var(--text-primary);
    color: var(--bg-white);
    transform: translateY(-2px);
}

.btn-cta {
    background-color: var(--bg-white);
    color: var(--text-primary);
    border: none;
    padding: 18px 36px;
    font-size: 16px;
}

.btn-cta:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    padding: 32px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    padding: 20px 0;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Marquee */
.marquee-section {
    background: #1a1a1a;
    color: #ffffff;
    padding: 20px 0;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: none;
    /* Remove border if any */
}

.marquee-content {
    display: inline-block;
    animation: marquee 20s linear infinite;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    /* Adjusted to match screenshot size */
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

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

.separator {
    margin: 0 40px;
    color: #8ECD71;
    /* Original Green */
    font-size: 1.2em;
    /* Make the dot slightly larger */
    vertical-align: middle;
}

.menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
}

.menu-btn:hover {
    transform: scale(1.1);
}

/* Hero */
.hero {
    min-height: 90vh;
    padding-top: 180px;
    position: relative;
    overflow: hidden;
}

.hero-grid {
    align-items: center;
}

.hero-text {
    grid-column: span 6;
    z-index: 2;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-primary);
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 32px;
}

.hero p {
    margin: 32px 0 48px;
    max-width: 90%;
    font-size: 20px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
}

.hero-image-wrapper {
    grid-column: span 6;
    position: relative;
    height: 700px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    /* Removed border-bottom */
}

.stats-grid {
    display: flex;
    justify-content: flex-start;
    gap: 0;
    /* Gap handled by padding for borders */
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-right: 60px;
    margin-right: 60px;
    border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
    border-right: none;
    padding-right: 0;
    margin-right: 0;
}

.stat-value {
    font-family: var(--font-display);
    font-weight: 300;
    /* Light weight like Duna */
    font-size: 48px;
    /* Reduced from 64px */
    line-height: 1.2;
    color: var(--text-primary);
}

.stat-label {
    font-size: 16px;
    /* Reduced from 18px */
    color: var(--text-secondary);
    font-weight: 400;
}

/* Features Section */
.features-section {
    padding: 100px 0;
}

.features-section .section-header {
    text-align: left;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    /* Large gap as per screenshot */
    margin-top: 0;
    /* Spacing handled by header margin */
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-icon {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.feature-item h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-item p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 300px;
    /* Limit width for readability */
}

/* Section Header */
.section-header {
    margin-bottom: 80px;
}

.section-header.centered {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    margin-bottom: 24px;
}

/* Infrastructure Flow */
.infrastructure-flow {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 24px;
    padding: 40px 0;
}

/* Infrastructure Section Background */
.infrastructure {
    background-color: #e6e6e4;
    /* Slightly darker for better contrast */
}

.flow-node {
    background: transparent;
    padding: 0;
    border-radius: 60px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: none;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s linear 0.5s;
    /* Delay z-index reset on close */
    perspective: 1000px;
    cursor: pointer;
    position: relative;
    z-index: 1;
    height: auto;
    /* Let content dictate height */
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    background: transparent;
    /* Background is on faces now */
    border-radius: 60px;
    box-shadow: none;
    /* Shadow on faces or handled by hover */
    display: flex;
    flex-direction: column;
}

.flow-node:hover .card-inner {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.flow-node-clone {
    margin: 0;
    padding: 0;
    border-radius: 60px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    border: none;
    perspective: 1000px;
    z-index: 1000;
    background: transparent;
}



.flow-node-clone.expanded .card-inner {
    transform: rotateY(180deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Add shadow to faces for depth */
.card-face {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 32px;
    border-radius: 60px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
    width: 100%;
    height: 100%;
}

.card-front {
    background-color: var(--bg-white);
    color: var(--text-primary);
    position: relative;
    /* Relative to dictate size in flow */
    z-index: 2;
}

.card-back {
    background-color: var(--bg-white);
    /* Light theme */
    color: var(--text-primary);
    transform: rotateY(180deg);
    position: absolute;
    /* Absolute to sit behind front */
    top: 0;
    left: 0;
}

.card-back h3 {
    color: var(--text-primary);
    margin-bottom: 16px;
}

.card-back p {
    color: var(--text-secondary);
}

/* Overlay Backdrop */
.card-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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



.node-icon {
    font-size: 32px;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.flow-node h3 {
    font-size: 22px;
    font-weight: 400;
}

.flow-node p {
    font-size: 16px;
    color: var(--text-secondary);
}

.flow-connector {
    flex: 0 0 100px;
    color: rgba(0, 0, 0, 0.1);
    align-self: center;
}

/* Lead Gen */
.lead-gen-section {
    background: var(--text-primary);
    color: var(--bg-white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding-bottom: 40px;
}

.lead-gen-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 80px;
}

.lead-gen-section h2 {
    margin-bottom: 16px;
    color: var(--bg-white);
}

.lead-gen-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
}

.modern-form .input-group {
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    padding: 8px;
    display: flex;
}

.modern-form input {
    background: transparent;
    border: none;
    color: var(--bg-white);
    padding: 16px 24px;
    width: 100%;
    font-size: 1rem;
    outline: none;
}

.modern-form .btn-icon {
    padding: 16px;
    border-radius: 50%;
    background: var(--bg-white);
    color: var(--text-primary);
}

.main-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    margin-left: 24px;
}

/* Section Divider */
.section-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 0;
    width: 100%;
}

/* Bento Grid Additions */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bento-card {
    position: relative;
    height: 360px;
    border-radius: 12px;
    overflow: hidden;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.card-wide {
    grid-column: span 2;
}

.card-light {
    background-color: #f8f8f6;
}

.card-dark {
    background-color: #000000;
    color: white;
}

.card-black {
    background-color: #292421;
    color: white;
}

.card-theme-gradient {
    background: linear-gradient(135deg, var(--theme-primary) 0%, var(--theme-dark) 100%);
    color: white;
}

.card-theme-solid {
    background-color: #333333;
    /* Dark Grey Solid */
    color: white;
}

.card-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.opacity-80 {
    opacity: 0.8;
}

.card-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-center-content {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
}

.card-center-content.flex-col {
    flex-direction: column;
    text-align: center;
    gap: 8px;
}

.stat-value-large {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 300;
    line-height: 1;
    color: var(--text-primary);
}

.stat-value-large.text-white {
    color: white;
}

.stat-subtext {
    font-size: 16px;
    color: var(--text-secondary);
}

.stat-subtext.text-white-opacity {
    color: rgba(255, 255, 255, 0.7);
}

.card-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
}

.quote {
    font-size: 20px;
    line-height: 1.5;
    font-weight: 400;
    letter-spacing: -0.4px;
}

.author {
    font-size: 14px;
    opacity: 0.8;
}

.logo-placeholder {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 24px;
    color: var(--text-primary);
}

.logo-placeholder.text-white {
    color: white;
}

.logo-placeholder.right {
    float: right;
}

.logo-placeholder.small {
    font-size: 18px;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.icon-btn {
    background: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.icon-btn:hover {
    opacity: 1;
}

.card-action {
    position: absolute;
    bottom: 24px;
    right: 24px;
}

.text-white {
    color: white;
}

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

.text-yellow {
    color: var(--rating-yellow);
}

/* Responsive */
@media (min-width: 1025px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .card-wide {
        grid-column: span 2;
    }
}

@media (max-width: 1024px) {

    .hero-text,
    .hero-image-wrapper {
        grid-column: span 12;
    }

    .hero-image-wrapper {
        height: 400px;
        margin-top: 40px;
    }

    .hero-image-wrapper {
        height: 400px;
        margin-top: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .feature-item p {
        max-width: 100%;
    }

    .infrastructure-flow {
        flex-direction: column;
    }

    .flow-connector {
        transform: rotate(90deg);
        width: 40px;
        height: 40px;
        flex: 0 0 40px;
    }

    .stats-grid {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
}

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

    .card-wide {
        grid-column: span 1;
    }
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-item:first-child {
    border-top: 1px solid var(--border-color);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    transition: color 0.3s ease;
}

.faq-question:hover {
    color: var(--theme-primary);
}

.faq-question i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-content {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.faq-content ul {
    margin: 16px 0 16px 24px;
}

.faq-content li {
    margin-bottom: 8px;
}

/* Menu Overlay (Backdrop) */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Menu Panel */
.menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    max-width: 90%;
    height: 100%;
    background: var(--bg-white);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 40px;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.menu-overlay.active .menu-panel {
    transform: translateX(0);
}

.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.menu-logo {
    height: 32px;
}

.close-menu-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
    transition: transform 0.2s;
}

.close-menu-btn:hover {
    transform: scale(1.1);
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.menu-link:hover {
    color: var(--theme-primary);
    padding-left: 10px;
}

.menu-link i {
    font-size: 16px;
    opacity: 0.5;
}

.menu-link-highlight {
    background: var(--bg-color);
    border-radius: var(--radius-md);
    padding: 16px 12px !important;
    margin-top: 16px;
    border-bottom: none !important;
}