:root {
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.15);
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-alt: #f1f5f9;
    --text-main: #0f172a;
    --text-muted: #475569;
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(15, 23, 42, 0.1);
    --container-width: 1100px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: clip;
    /* Allow content to exist outside without vertical scrollbar issues, or use hidden */
}

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

section {
    padding: 80px 0;
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
}

.bg-alt,
#platform {
    position: relative;
    overflow: hidden;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-alt::before,
#platform::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 76, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 76, 255, 0.1) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(circle at 50% 50%, transparent 20%, black 100%);
    z-index: 0;
    pointer-events: none;
}

.bg-alt .container,
#platform .container {
    position: relative;
    z-index: 1;
}

.capabilities-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-top: 4rem;
}

.capability-item {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.capability-item.inverse {
    flex-direction: row-reverse;
}

.capability-item .pillar-info {
    flex: 1;
    position: relative;
}

.capability-item .pillar-info h4,
.capability-item .pillar-info p {
    position: relative;
    z-index: 2;
}

.capability-item .pillar-info h4 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    color: var(--text-main);
}

.capability-item .pillar-info p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.capability-item .pillar-icon {
    width: 60px;
    height: 60px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
}

/* Browser Frame Wireframe */
.browser-frame {
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
}

/* Workflow Section */
.workflow-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 4rem;
}

.workflow-item {
    display: flex;
    align-items: center;
    gap: 5rem;
}

.workflow-item.reverse {
    flex-direction: row-reverse;
}

.workflow-image {
    flex: 1.2;
    position: relative;
    z-index: 1;
}

.workflow-image.glass::after {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--primary-glow);
    filter: blur(40px);
    z-index: -1;
    opacity: 0.5;
}

.workflow-image img {
    width: 100%;
    border-radius: 12px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.workflow-content {
    flex: 1;
}

.workflow-step {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.workflow-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.workflow-connector {
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    margin: 1rem 0;
}

.workflow-connector::before {
    content: '';
    position: absolute;
    left: 15%;
    right: 15%;
    top: 50%;
    height: 1px;
    background: linear-gradient(to right,
            rgba(37, 99, 235, 0) 0%,
            rgba(37, 99, 235, 0.4) 50%,
            rgba(37, 99, 235, 0) 100%);
    transform: translateY(-50%);
}

.workflow-connector-node {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 15px var(--primary);
}

.workflow-connector-node::after {
    content: '';
    position: absolute;
    inset: -4px;
    border: 1px solid var(--primary);
    border-radius: 50%;
    animation: h-connector-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes h-connector-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

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

.workflow-connector-flow {
    position: absolute;
    left: 15%;
    top: 50%;
    width: 60px;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary));
    transform: translateY(-50%);
    animation: h-connector-flow 3s linear infinite;
}

@keyframes h-connector-flow {
    0% {
        left: 15%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        left: 75%;
        opacity: 0;
    }
}

@media (max-width: 900px) {

    .workflow-item,
    .workflow-item.reverse {
        flex-direction: column;
        text-align: center;
        gap: 3rem;
    }

    .workflow-connector {
        display: none;
    }
}

.browser-header {
    background: #f1f5f9;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--glass-border);
}

.browser-header .dots {
    display: flex;
    gap: 6px;
}

.browser-header .dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #cbd5e1;
}

.browser-header .address-bar {
    height: 12px;
    background: #ffffff;
    border-radius: 4px;
    flex: 1;
}

.browser-content {
    height: 280px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.wireframe-rect {
    height: 40px;
    background: #f1f5f9;
    border-radius: 6px;
    width: 100%;
}

.wireframe-rect.highlight {
    background: rgba(37, 99, 235, 0.1);
    border: 1px dashed var(--primary);
}

.wireframe-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wireframe-line {
    height: 10px;
    background: #f1f5f9;
    border-radius: 2px;
}

.wireframe-line:nth-child(1) {
    width: 90%;
}

.wireframe-line:nth-child(2) {
    width: 75%;
}

.wireframe-line:nth-child(3) {
    width: 85%;
}

.wireframe-nodes {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    position: relative;
}

.node {
    width: 30px;
    height: 30px;
    background: #f1f5f9;
    border-radius: 50%;
    position: absolute;
}

.node.center {
    width: 50px;
    height: 50px;
    background: var(--primary);
    position: static;
}

.node:nth-child(2) {
    top: 20%;
    left: 20%;
}

.node:nth-child(3) {
    bottom: 20%;
    right: 20%;
}

.node:nth-child(4) {
    top: 10%;
    right: 30%;
}

.wireframe-chart {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 100%;
    justify-content: center;
    padding-bottom: 20px;
}

.wireframe-chart .bar {
    width: 30px;
    background: #f1f5f9;
    border-radius: 4px 4px 0 0;
}

.wireframe-chart .bar:nth-child(even) {
    background: var(--primary);
    opacity: 0.7;
}

@media (max-width: 900px) {
    .capabilities-list {
        gap: 6rem;
    }

    .capability-item,
    .capability-item.inverse {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 3rem;
    }

    .capability-item .pillar-info {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .capability-item .pillar-info h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .capabilities-list {
        gap: 4rem;
    }

    .capability-item {
        gap: 2rem;
    }
}

#sectors {
    position: relative;
    overflow: hidden;
    background-color: #050510;
    /* Match animation background */
}

.flythrough-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    /* Subtle blend */
}

#sectors .container {
    position: relative;
    z-index: 1;
}

.sector-icon {
    height: 64px;
    width: auto;
    margin-bottom: 1.5rem;
}

.bg-dark {
    background-color: #0f0f19;
    color: #cbd5e1;
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4 {
    color: #f8fafc;
}

.bg-dark .card {
    background-color: rgba(15, 15, 30, 0.4);
    /* More opaque, slightly navy-black */
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.bg-dark .card h3 {
    color: #f8fafc;
}

.bg-dark .card p {
    color: #94a3b8;
}

.bg-dark .card:hover {
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}



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

h1,
h2,
h3,
h4 {
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #020617;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    line-height: 1.2;
}

@media (max-width: 768px) {
    h2 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.section-subtitle {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 768px) {
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

/* Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 38px;
    width: auto;
    display: block;
    filter: hue-rotate(-30deg) saturate(1.1);
}

.logo:hover,
.logo:visited,
.logo:active {
    color: var(--text-main);
    text-decoration: none;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    width: 100%;
    height: 3px;
    background-color: var(--text-main);
    border-radius: 10px;
}

/* Toggle Animation */
.menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

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

/* Buttons */
.btn,
.btn:visited {
    display: inline-block;
    padding: 0.6rem 1.4rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    color: var(--text-main);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

.btn-primary,
.btn-primary:visited {
    background-color: var(--primary);
    color: white;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background: #1d4ed8;
    /* Slightly deeper blue */
    border-color: #1d4ed8;
    box-shadow: 0 2px 10px var(--primary-glow);
}

.btn-outline,
.btn-outline:visited {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-outline:hover {
    background: rgba(15, 23, 42, 0.06);
    border-color: var(--text-main);
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    background: radial-gradient(circle at 80% 20%, rgba(37, 99, 235, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(37, 99, 235, 0.06) 0%, transparent 40%);
}

.hero-content {
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.tagline {
    display: block;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 1.5rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #334155;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

/* Cards & Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.vertical-stack {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Platform Architecture Grid */
.platform-architecture {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
    position: relative;
}



.platform-layer {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 0 2rem 3rem;
    /* Reduced top padding */
    margin-top: 4rem;
    /* Added margin to make room for image overflow */
    position: relative;
    backdrop-filter: blur(12px);
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.layer-step {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-align: center;
}

.layer-icon {
    display: flex;
    justify-content: center;
    margin-top: -40px;
    margin-bottom: 2rem;
    width: 100%;
}

.layer-icon img {
    height: 80px;
    width: auto;
    display: block;
    background-color: white;
}

.platform-layer h3 {
    font-size: 1.35rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.platform-layer p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 900px) {
    .platform-architecture {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.card {
    padding: 3rem 2rem;
    border-radius: 8px;
    border: 1px solid var(--glass-border);
    background-color: var(--bg-white);
    display: flex;
    align-items: center;
    gap: 3rem;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
}

.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
}

.card-content {
    flex: 1;
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
}

.card-illustration {
    flex-shrink: 0;
    text-align: center;
}

.card-illustration img {
    height: 140px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.highlight {
    background-color: var(--bg-light);
}

/* Solutions Pillars */
.pillar {
    border-left: 2px solid var(--primary);
    padding: 2rem;
    background-color: var(--bg-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2rem;
    transition: all 0.3s ease;
}

.pillar:hover {
    transform: translateX(10px);
    background-color: var(--bg-white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pillar-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.pillar-icon svg {
    width: 100%;
    height: 100%;
}

.pillar-info {
    flex: 1;
}

.pillar h4 {
    color: #0f172a;
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pillar p {
    margin-bottom: 0;
}

/* About Stats */
.col-2 {
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

/* 3D Impact Section Layout */
.impact-3d-panel {
    background: var(--bg-white);
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.05);
    padding: 4rem;
    padding-top: 1rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.impact-hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 5rem;
    padding-top: 4rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.stat-main {
    margin-bottom: 2rem;
}

.big-stat-value {
    font-size: 6rem;
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.05em;
    background: linear-gradient(135deg, var(--primary) 0%, #1e40af 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(37, 99, 235, 0.15));
    margin-bottom: 1rem;
}

.big-stat-label {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.big-stat-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.impact-cta-wrap .btn-primary {
    padding: 1.25rem 3rem;
    font-size: 1.1rem;
    border-radius: 6px;
    box-shadow: 0 10px 30px var(--primary-glow);
}

.stat-item {
    margin-bottom: 2rem;
}

.stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* About / Impact Section */
#about {
    background: radial-gradient(circle at 50% 100%, var(--bg-alt) 0%, var(--bg-white) 70%);
    position: relative;
}



.impact-content-split {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
    min-height: 400px;
    margin-left: 4rem;
}

/* Text Column */
.impact-text-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.viz-text-block {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

.viz-text-block.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.viz-dimension-tag {
    display: inline-block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    padding: 0.4rem 0.8rem;
    background: var(--bg-light);
    border-radius: 4px;
    border: 1px solid var(--glass-border);
}

.viz-dimension-tag.highlight-blue {
    color: #769df5;
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.viz-dimension-tag.highlight-glow {
    box-shadow: 0 0 15px var(--primary-glow);
}

.viz-text-block h3 {
    font-size: 1.8rem;
    color: #0c1a30;
    margin-bottom: 1rem;
    font-weight: 800;
}

.viz-text-block p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.viz-multiplier-inline {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Canvas Column */
.impact-canvas-column {
    flex: 1.2;
    position: relative;
    min-height: 400px;
    background: radial-gradient(circle at center, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}

#impact-canvas-container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* Gallery Controls */
.viz-gallery-controls {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.viz-dot {
    width: 12px;
    height: 12px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.viz-dot::before {
    content: '';
    width: 6px;
    height: 6px;
    background: rgba(15, 23, 42, 0.15);
    border-radius: 50%;
    transition: all 0.33s cubic-bezier(0.16, 1, 0.3, 1);
}

.viz-dot:hover::before,
.viz-dot.active::before {
    background: var(--primary);
    width: 8px;
    height: 8px;
}

@media (max-width: 1024px) {
    .impact-3d-panel {
        padding: 2.5rem;
    }

    .impact-content-split {
        flex-direction: column-reverse;
        gap: 2rem;
        margin-left: 0;
    }

    .impact-text-column {
        min-height: 280px;
        margin-bottom: 1rem;
    }

    .viz-text-block {
        text-align: center;
        width: 100%;
        left: 0;
    }

    .impact-canvas-column {
        height: 350px;
        min-height: 350px;
    }

    .impact-hero-stat {
        margin-top: 3rem;
        padding-top: 3rem;
    }

    .big-stat-value {
        font-size: 4rem;
    }

    .big-stat-label {
        font-size: 1.25rem;
    }

    .big-stat-desc {
        font-size: 1rem;
        margin-bottom: 2.5rem;
    }

    .impact-cta-wrap .btn-primary {
        width: 100%;
        padding: 1.1rem 2rem;
    }
}

@media (max-width: 768px) {
    .impact-3d-panel {
        padding: 1.5rem;
        padding-top: 1rem;
    }

    .impact-content-split {
        margin-left: 0;
        gap: 1rem;
    }

    .impact-text-column {
        min-height: 240px;
    }

    .viz-text-block h3 {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }

    .viz-text-block p {
        font-size: 0.95rem;
    }

    .viz-multiplier-inline {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .impact-hero-stat {
        margin-top: 4rem;
        padding-top: 3.5rem;
        border-top: 1px solid rgba(15, 23, 42, 0.05);
    }

    .big-stat-value {
        font-size: 2.5rem;
        line-height: 1;
        margin-bottom: 0.5rem;
    }

    .big-stat-label {
        font-size: 1.1rem;
        line-height: 1.3;
        color: var(--text-main);
        font-weight: 700;
        max-width: 260px;
        margin: 0 auto;
    }

    .big-stat-desc {
        font-size: 0.9rem;
        line-height: 1.6;
        margin-top: 1.5rem;
        margin-bottom: 2.5rem;
        color: var(--text-muted);
        opacity: 0.9;
        padding: 0 0.25rem;
    }

    .stat-main {
        margin-bottom: 2rem;
    }
}

#press {
    background-color: #0f172a;
    background-image:
        radial-gradient(ellipse at center -20%, rgba(37, 99, 235, 0.4) 0%, transparent 70%),
        repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.04) 0px, rgba(56, 189, 248, 0.04) 1px, transparent 1px, transparent 16px),
        repeating-linear-gradient(-45deg, rgba(56, 189, 248, 0.04) 0px, rgba(56, 189, 248, 0.04) 1px, transparent 1px, transparent 16px);
    position: relative;
}

#press h2 {
    color: #ffffff;
}

#press .section-subtitle {
    color: #cbd5e1;
}

#press .tagline {
    color: #60a5fa;
}

#press .news-card {
    background: var(--glass-bg);
}

.news-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
    height: 100%;
    pointer-events: none;
    /* Disables hover effects globally if desired, or override specifically */
}

.news-card * {
    pointer-events: auto;
    /* Re-enable for links */
}

.news-card:hover {
    border-color: var(--glass-border) !important;
    box-shadow: none !important;
}

.news-header {
    padding: 2.5rem 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: auto;
}

.news-logo-top {
    max-height: 80px;
    max-width: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.news-card:hover .news-logo-top {
    transform: none;
}

.news-body {
    padding: 0.5rem 2.5rem 3rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: center;
}

.news-card h3 {
    font-size: 1.35rem;
    margin-bottom: 1.25rem;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.news-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.news-link:hover {
    gap: 0.75rem;
}



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

    .news-header {
        padding: 2rem 1.5rem 0;
    }

    .news-body {
        padding: 0.5rem 2rem 2.5rem;
    }
}

@media (max-width: 600px) {
    .news-header {
        padding: 1.5rem 0 0;
    }

    .news-body {
        padding: 0.5rem 0 2rem;
    }

    .news-card h3 {
        padding: 0 1rem;
    }

    .news-card p {
        padding: 0 1rem;
    }
}

/* Contact Section */
#contact {
    background-color: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 76, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 76, 255, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
}

#contact .container {
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
}

.contact-info {
    padding-right: 2rem;
    padding-top: 3rem;
}

.contact-features {
    list-style: none;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-features li {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.feature-icon {
    font-size: 1.5rem;
    color: var(--primary);
    line-height: 1;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.8rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-text strong {
    display: block;
    color: var(--text-main);
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.feature-text span {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    display: block;
}

.contact-form-wrapper {
    position: relative;
}

.contact-form {
    padding: 3rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: var(--bg-white);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.1);
}

.form-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

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

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.contact-form .form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.contact-form label .required {
    color: #ef4444;
}

.contact-form input {
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background-color: var(--bg-light);
    font-family: inherit;
    font-size: 0.95rem;
    outline: none;
    transition: all 0.2s;
}

.contact-form input:focus {
    border-color: var(--primary);
    background-color: var(--bg-white);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.contact-form .submit-btn {
    margin-top: 1rem;
    width: 100%;
    padding: 1.25rem;
    font-size: 1rem;
}

.form-feedback {
    font-size: 0.95rem;
    display: none;
}

.form-feedback.success {
    color: #166534;
    display: block;
}

.form-feedback.error {
    color: #991b1b;
    display: block;
}

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

    .contact-info {
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 32px;
    }
}

/* Footer */
footer {
    padding: 80px 0 40px;
    border-top: 1px solid var(--glass-border);
    background-color: #f8fafc;
}

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

.footer-brand p {
    margin-top: 1rem;
    font-weight: 500;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-newsletter h4 {
    margin-bottom: 1rem;
}

.footer-newsletter p {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.newsletter-form {
    display: flex;
    gap: 0.8rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    border: 1px solid var(--glass-border);
    background-color: var(--bg-white);
    font-family: inherit;
    font-size: 0.9rem;
    outline: none;
}

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

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.25rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(20px) saturate(180%);
        -webkit-backdrop-filter: blur(20px) saturate(180%);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
        border-left: 1px solid rgba(255, 255, 255, 0.2);
        z-index: 1000;
        padding: 2rem;
        list-style: none;
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.25rem;
        font-weight: 600;
    }

    .nav-cta {
        display: none;
    }

    .card {
        padding: 1.5rem 0.5rem;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .card.highlight {
        text-align: left;
        align-items: flex-start;
    }

    .news-card {
        padding: 0;
    }

    .card-illustration {
        margin-bottom: 0.5rem;
    }

    .grid,
    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .newsletter-form {
        flex-direction: column;
        gap: 1rem;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }

    .col-2 {
        grid-template-columns: 1fr;
    }

    .big-stat-value {
        font-size: 3rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    .platform-layer {
        padding: 0 1.5rem 1rem;
    }

    .testimonials-slider-wrapper {
        padding: 0 0 3.5rem;
    }
}

/* Testimonials Slider Section */
/* Testimonials Slider Section - Refined Card Gallery */
#testimonials {
    background-color: var(--bg-light);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 40%);
    position: relative;
    overflow: hidden;
}

.testimonials-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 4rem auto 0;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding-bottom: 3rem;
}

.testimonials-container {
    flex: 1;
    position: relative;
    min-height: 480px;
    display: grid;
    grid-template-areas: "card";
    overflow: hidden;
}

.testimonial-card {
    grid-area: card;
    padding: 3.5rem 3rem;
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.03);
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    opacity: 0;
    visibility: hidden;
    transform: translateX(60px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.04);
}

.testimonial-card.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0) !important;
    z-index: 2;
}

/* Directional Sliding Classes */
.testimonial-card.exit-left {
    transform: translateX(-100%);
    opacity: 0;
}

.testimonial-card.exit-right {
    transform: translateX(100%);
    opacity: 0;
}

.testimonial-card.enter-left {
    transform: translateX(-100%);
}

.testimonial-card.enter-right {
    transform: translateX(100%);
}

.testimonial-card::before {
    content: '“';
    position: absolute;
    top: 1rem;
    left: 2rem;
    font-size: 7rem;
    line-height: 1;
    font-family: serif;
    color: var(--primary);
    opacity: 0.08;
    pointer-events: none;
}

.testimonial-quote {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-style: italic;
    flex-grow: 1;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.testimonial-author {
    border-top: 1px solid rgba(15, 23, 42, 0.05);
    /* Very subtle line */
    padding-top: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.author-info {
    flex: 1;
}

.testimonial-logo-link {
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    margin-left: 1.5rem;
}

.testimonial-logo-link:hover {
    transform: translateY(-2px);
}

.testimonial-brand-logo {
    height: 34px;
    width: auto;
    filter: grayscale(1);
    opacity: 0.6;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.testimonial-logo-link:hover .testimonial-brand-logo {
    opacity: 0.9;
    filter: grayscale(0);
}

.testimonial-author strong {
    display: block;
    font-size: 1.2rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.testimonial-author span {
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Slider Controls */
.slider-btn-container {
    display: flex;
    align-items: center;
}

.slider-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, 0.05);
    background: var(--bg-white);
    color: var(--text-main);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.slider-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 24px var(--primary-glow);
}

.slider-btn svg {
    width: 24px;
    height: 24px;
}

.slider-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.1);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    width: 24px;
    border-radius: 5px;
}

@media (max-width: 950px) {
    .testimonials-slider-wrapper {
        padding: 0 0 4rem;
        gap: 1.5rem;
    }

    .testimonial-card {
        padding: 3rem 2rem;
    }

    .testimonial-quote {
        font-size: 1.1rem;
    }
}

@media (max-width: 600px) {
    .slider-btn-container {
        display: none;
    }

    .testimonials-slider-wrapper {
        padding: 0 0 3.5rem;
    }

    .testimonial-card {
        padding: 2.5rem 1.5rem;
        border-radius: 16px;
    }

    .testimonial-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .testimonial-logo-link {
        margin-left: 0;
    }
}

/* Screenshot Explorer */
#workflow .container,
.explorer-container,
.explorer-main,
.explorer-details,
.detail-item,
.detail-image,
.detail-content,
.explorer-container .browser-frame {
    overflow: visible !important;
    transform-style: preserve-3d;
    /* Better 3D handling */
}

.explorer-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 4rem auto 0;
    min-height: 550px;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 2000px;
    /* Restored 3D perspective */
}

.explorer-main {
    width: 100%;
    max-width: 1000px;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 5;
}

.explorer-main.is-receded {
    /* Shrink to exactly 60% scale with 3D rotation, placed further back in Z-space */
    transform: perspective(1000px) rotateY(12deg) translateX(-25%) scale(0.6) translateZ(-150px);
    opacity: 0.4;
    /* Even more receded */
    filter: blur(4px);
    pointer-events: none;
    z-index: 1;
}

.explorer-info {
    margin-top: 2rem;
    width: 600px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    transition: all 0.6s ease;
}

.explorer-main.is-receded .explorer-info {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

.explorer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.explorer-info p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.screenshot-relative {
    position: relative;
    width: 100%;
}

.main-img {
    width: 100%;
    height: auto;
    display: block;
}

/* Radar Dots */
.radar-dot {
    position: absolute;
    width: 14px;
    height: 14px;
    background: var(--primary);
    border: 3px solid rgb(237, 237, 237);
    /* Add border for better contrast */
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

/* Invisible extended clickable area to cover the buttons next to the dots */
.radar-dot::after {
    content: '';
    position: absolute;
    top: -9px;
    left: -9px;
    width: var(--hit-width, 120px);
    height: 23px;
    background: transparent;
    cursor: pointer;
}

.dot-pulse {
    position: absolute;
    inset: -10px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    animation: radar-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes radar-pulse {
    0% {
        transform: scale(0.5);
        opacity: 0.8;
    }

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

/* Detail Items */
.explorer-details {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Symmetrical side-by-side */
    pointer-events: none;
    z-index: 10;
}

.detail-item {
    position: absolute;
    inset: 0;
    margin: auto;
    height: fit-content;
    /* Scale to 0 to ensure no "dot" is visible in the center when inactive */
    transform: perspective(1000px) rotateY(-10deg) scale(0);
    width: 100%;
    max-width: 1000px;
    /* Allow enough width for unscaled text */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    /* transition visibility with a delay on close to prevent blinking */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s 0.8s;
    will-change: transform, opacity;
    pointer-events: none;
    z-index: 1000;
}

.detail-item.is-active {
    opacity: 1;
    visibility: visible;
    /* Immediate visibility when opening */
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0s 0s;
    /* Subtle 3D perspective while keeping text native scale */
    transform: perspective(1000px) rotateY(-3deg) scale(1) translateZ(30px);
    pointer-events: auto;
}

.detail-image {
    width: 700px;
    margin-bottom: 2rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.detail-image img {
    width: 100%;
    height: auto;
    display: block;
}

.detail-content {
    position: relative;
    width: 630px;
    /* Keep the text at a comfortable, unscaled width */
    max-width: 90%;
    background: var(--glass-bg);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-align: center;
    pointer-events: auto;
}

.detail-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.detail-content p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0;
}

/* Popup Close Button */
.popup-close-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--text-main);
    color: white;
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 20;
    padding: 0;
}

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

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

/* Mobile Workflow List Styling */
.workflow-mobile-list {
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    gap: 1.5rem;
    /* Adjusted gap to account for separators */
    margin-top: 3rem;
}

.mobile-step-card {
    padding: 0;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    background: var(--glass-bg);
}

.mobile-step-info {
    padding: 0 1rem;
}

.mobile-step-separator {
    width: 60px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    margin: 1rem auto;
    position: relative;
    opacity: 0.6;
}

.mobile-step-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary);
}

.mobile-step-preview {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-step-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.mobile-step-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
}

.mobile-step-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 900px) {
    .explorer-container {
        display: none;
        /* Hide interactive explorer on mobile */
    }

    .workflow-mobile-list {
        display: flex;
        /* Show simple list instead */
    }
}

@media (max-width: 600px) {
    .newsletter-form {
        flex-direction: column !important;
        gap: 1rem !important;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100% !important;
        flex: none !important;
    }
}

/* Absolute override for mobile newsletter layout */
@media (max-width: 800px) {
    .newsletter-form {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .newsletter-form input,
    .newsletter-form button {
        width: 100% !important;
        max-width: 100% !important;
        flex: none !important;
        min-width: 0 !important;
    }
}
