/* Base styles will be added here */

:root {
    /* Palette */
    --primary: #6957db;
    --primary-rgb: 105, 87, 219;
    --secondary: #e5e3fa;
    --surface: #fbfaff;
    --text: #1e1e1e;
    --text-muted: #6b7280;
    --border: rgba(0, 0, 0, 0.08);
    --card-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    --focus-ring: 0.125rem solid var(--primary);

    /* Typography */
    --font-headline: 'Alef', sans-serif;
    --font-body: 'Inter', sans-serif;
    --h1-size: clamp(2.5rem, 5vw, 3.5rem);
    --h2-size: clamp(2rem, 4vw, 2.5rem);
    --h3-size: 1.5rem;
    --body-size: 1rem;
    --caption-size: 0.875rem;
    --font-regular: 400;
    --font-semibold: 600;
    --font-bold: 700;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Radius */
    --radius-sm: 0.375rem; /* 6px */
    --radius-md: 0.625rem; /* 10px */
    --radius-lg: 0.75rem; /* 12px */
    --radius-pill: 9999px;

    /* Motion */
    --transition-duration: 150ms;
}

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

html {
    scroll-behavior: smooth;
    font-size: clamp(14px, 1vw, 50px); /* Fluidly scales the base font for the entire site */
}

body {
    font-family: var(--font-body);
    background-color: var(--surface);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 5rem; /* 80px */
    overflow-x: hidden;
}

body.mobile-menu-active {
    overflow: hidden;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headline);
    font-weight: var(--font-bold);
    line-height: 1.2;
    text-wrap: balance;
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

p {
    margin-bottom: var(--space-md);
    max-width: 65ch;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.container {
    width: 100%;
    max-width: 90rem; /* Changed from px to rem for scaling */
    margin-left: auto;
    margin-right: auto;
    padding-left: clamp(1.5rem, 5vw, 3rem); /* Fluid padding */
    padding-right: clamp(1.5rem, 5vw, 3rem);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

main > section {
    padding-top: calc(var(--space-xl) + var(--space-lg));
    padding-bottom: calc(var(--space-xl) + var(--space-lg));
}

/* Enhanced section spacing for visual rhythm */
#hero {
    padding-bottom: calc(var(--space-xl) + var(--space-sm));
}

#stats {
    padding-top: calc(var(--space-xl) + var(--space-lg));
    padding-bottom: calc(var(--space-xl) + var(--space-lg));
}

#cta {
    padding-top: calc(var(--space-xl) + var(--space-xl));
    padding-bottom: calc(var(--space-xl) + var(--space-xl));
}

#logo-cloud {
    background-color: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding-top: var(--space-lg);
    padding-bottom: var(--space-lg);
}

.logo-cloud-title {
    text-align: center;
    color: var(--text-muted);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-lg);
    font-size: var(--body-size);
}

.logo-marquee {
    width: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    padding: 0.5rem 0; /* Add vertical padding */
}

.logo-marquee::before, .logo-marquee::after {
    content: '';
    position: absolute;
    top: 0;
    width: 10rem;
    height: 100%;
    z-index: 2;
}

.logo-marquee::before {
    left: 0;
    background: linear-gradient(to left, rgba(255, 255, 255, 0), white);
}

.logo-marquee::after {
    right: 0;
    background: linear-gradient(to right, rgba(255, 255, 255, 0), white);
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-100%); }
}

.logo-slide {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-shrink: 0;
    min-width: 100%;
    animation: scroll 40s linear infinite;
}

.logo-slide img {
    height: 60px;
    width: 60px;
    border-radius: 50%;
    object-fit: cover;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all var(--transition-duration) ease;
    margin: 0 var(--space-lg);
}

.logo-slide img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-lg);
    border-radius: var(--radius-md);
    font-weight: var(--font-semibold);
    text-decoration: none;
    transition: all var(--transition-duration) ease;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: #5845c7;
    text-decoration: none;
}

.btn-secondary {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-secondary:hover {
    background-color: #f4f2ff;
    text-decoration: none;
}


/* Header */
#main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-sm) 0;
}

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

.navbar-logo img {
    height: 5.3125rem; /* 85px */
}

.navbar-controls {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-link {
    color: var(--text-muted);
    font-weight: var(--font-semibold);
    padding: var(--space-xs) 0;
    border-bottom: 0.125rem solid transparent;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--primary);
    text-decoration: none;
    border-bottom-color: var(--primary);
}

.navbar-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.navbar-toggle-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.navbar-toggle-btn .hamburger-icon {
    width: 1.5rem; /* 24px */
    height: 1.5rem; /* 24px */
    color: var(--text);
    transition: transform 0.3s ease;
}

body.mobile-menu-active .navbar-toggle-btn .hamburger-icon {
    transform: rotate(90deg);
}

/* Hero Section */
#hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

#hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1rem, 5vw, 4rem);
    align-items: center;
}

#hero .hero-content {
    padding-bottom: 2rem;
}

#hero .hero-content h1 {
    margin-bottom: var(--space-md);
}

#hero .hero-content p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 50ch;
}

#hero .hero-content .btn {
    margin-top: var(--space-sm);
}

#hero .trust-bar {
    margin-top: var(--space-xl);
    color: var(--text-muted);
}

#hero .trust-bar p {
    font-size: var(--caption-size);
    margin-bottom: var(--space-sm);
}

#hero .trust-bar .logos {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    filter: grayscale(100%);
    opacity: 0.7;
}

#hero .hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 500px; /* Ensures space for the animation */
}

#hero .hero-media .media-placeholder {
    width: 100%;
    height: 500px;
    background-color: var(--secondary);
    border-radius: var(--radius-lg);
}

/* Common Section Styles */
.section-title {
    text-align: center;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: var(--font-bold);
    color: var(--text);
}

/* Fix section title contrast on colored backgrounds */
#features .section-title {
    color: var(--text);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
}

#features .section-subtitle {
    color: var(--text-muted);
}

/* Who We Help section gets clean white background for better header composition */
#who-we-help {
    background: white !important;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

#who-we-help .section-title {
    color: var(--text);
}

#who-we-help .section-subtitle {
    color: var(--text-muted);
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: var(--space-sm);
    margin-bottom: calc(var(--space-xl) + var(--space-sm));
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.125rem;
    line-height: 1.6;
}

.features-intro {
    text-align: center;
    margin-bottom: calc(var(--space-xl) + var(--space-sm));
}

.features-intro .section-subtitle {
    margin-bottom: var(--space-sm);
    font-size: 1.25rem;
    font-weight: var(--font-semibold);
    color: var(--text);
}

.features-description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 60ch;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Section */
#stats {
    background: linear-gradient(135deg, #fbfaff 0%, white 100%);
    position: relative;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}





.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.stat-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: calc(var(--space-lg) + 0.25rem);
    box-shadow: var(--card-shadow);
    text-align: left;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-rose));
}

.stat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.15);
    border-color: rgba(var(--primary-rgb), 0.2);
}

.stat-card .icon-container {
    width: 48px;
    height: 48px;
    background-color: var(--secondary);
    border-radius: 12px;
    margin: 0 0 var(--space-md) 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.stat-card .icon-container svg {
    width: 28px;
    height: 28px;
}

.stat-card .stat-number {
    font-family: var(--font-headline);
    font-size: clamp(2.25rem, 6vw, 3rem);
    font-weight: var(--font-bold);
    color: var(--accent-rose);
    margin-bottom: var(--space-sm);
}

.stat-card .stat-description {
    color: var(--text-muted);
    font-size: var(--body-size);
    margin-bottom: var(--space-sm);
}

.stat-card .stat-source {
    margin-top: var(--space-sm);
    color: var(--text-muted);
    font-size: var(--caption-size);
    border-top: 1px dashed var(--border);
    padding-top: var(--space-sm);
}

/* Problem Section */
#problem {
    background: linear-gradient(135deg, var(--surface) 0%, white 100%);
    position: relative;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

#problem::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0.3;
}

/* Data Flow Comparison */
.data-flow-comparison {
    position: relative;
    margin-bottom: var(--space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    height: 300px;
    overflow: hidden;
}

.flow-demo {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.flow-demo.active {
    opacity: 1;
    transform: translateY(0);
}

.risk-demo {
    background: linear-gradient(135deg, #fef2f2 0%, white 100%);
    border-color: #fecaca;
}

.secure-demo {
    background: linear-gradient(135deg, #f0fdf4 0%, white 100%);
    border-color: #bbf7d0;
}

.demo-label {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: var(--font-semibold);
    font-size: var(--caption-size);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-pill);
}

.risk-label {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

.secure-label {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.demo-label i {
    width: 14px;
    height: 14px;
}

.flow-scenario {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    width: 100%;
    justify-content: center;
}

.scenario-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-visual {
    position: relative;
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.step-icon {
    width: 24px;
    height: 24px;
    color: var(--text-muted);
}

.ai-tool {
    border-color: #f87171;
}

.ai-tool .step-icon {
    color: #ef4444;
}

.ai-tool-secure {
    border-color: #22c55e;
}

.ai-tool-secure .step-icon {
    color: #16a34a;
}

.risk-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #ef4444;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: riskPulse 1.5s ease-in-out infinite;
}

.risk-indicator i {
    width: 12px;
    height: 12px;
    color: white;
}

.secure-indicator {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: securePulse 1.5s ease-in-out infinite;
}

.secure-indicator i {
    width: 12px;
    height: 12px;
    color: white;
}

@keyframes securePulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.scenario-step span {
    font-size: var(--caption-size);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
}

.data-transfer {
    position: relative;
    flex: 1;
    max-width: 200px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transfer-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    transform: translateY(-50%);
}

.risk-line {
    background: linear-gradient(90deg, #e5e7eb, #f87171, #e5e7eb);
}

.secure-line {
    background: linear-gradient(90deg, #e5e7eb, #22c55e, #e5e7eb);
}

.meshulash-protection {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    z-index: 3;
}

.protection-visual {
    width: 60px;
    height: 60px;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2);
    animation: protectionPulse 2s ease-in-out infinite;
}

.protection-logo {
    height: 20px;
    width: auto;
    max-width: 45px;
}

.meshulash-protection span {
    font-size: var(--caption-size);
    font-weight: var(--font-bold);
    color: var(--primary);
    background: white;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@keyframes protectionPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.2), 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.3), 0 0 0 8px rgba(var(--primary-rgb), 0); }
}

.data-packets {
    display: flex;
    gap: 8px;
    z-index: 2;
}

.packet {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: packetMove 3s ease-in-out infinite;
    border: 2px solid;
}

.packet i {
    width: 14px;
    height: 14px;
}

.packet.sensitive {
    background: #fef3c7;
    border-color: #f59e0b;
    color: #d97706;
    animation-delay: 0s;
}

.packet.pii {
    background: #ddd6fe;
    border-color: #8b5cf6;
    color: #7c3aed;
    animation-delay: 0.5s;
}

.packet.code {
    background: #dcfce7;
    border-color: #22c55e;
    color: #16a34a;
    animation-delay: 1s;
}

/* Secure packet styles */
.packet.protected {
    background: #ddd6fe;
    border-color: var(--primary);
    color: var(--primary);
    animation-delay: 0s;
}

.packet.redacted {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #6b7280;
    animation-delay: 0.5s;
}

.packet.filtered {
    background: #ecfdf5;
    border-color: #22c55e;
    color: #16a34a;
    animation-delay: 1s;
}

.status-message {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    font-size: var(--caption-size);
    font-weight: var(--font-semibold);
    background: white;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    border: 1px solid;
}

.status-message i {
    width: 16px;
    height: 16px;
}

.risk-warning {
    color: #ef4444;
    border-color: #fecaca;
}

.secure-success {
    color: #16a34a;
    border-color: #bbf7d0;
}

@keyframes riskPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

@keyframes packetMove {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(20px); }
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.problem-card {
    background-color: white;
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border);
    transition: all 0.2s ease;
}

.problem-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.problem-card h3 {
    margin-bottom: var(--space-md);
    color: var(--primary);
    font-size: 1.375rem;
    font-weight: var(--font-bold);
}

/* Features Section */
#features {
    background: linear-gradient(135deg, white 0%, #f8f6ff 100%);
    position: relative;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}



.mobile-layout {
    display: none;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: flex-start;
}

.feature-item {
    padding: var(--space-lg) 0;
    border-bottom: 1px solid var(--border);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item:last-child {
    border-bottom: none;
}

.feature-item h3 {
    margin-bottom: var(--space-sm);
    letter-spacing: -0.01em;
    color: var(--primary);
    position: relative;
    padding-left: var(--space-md);
}

.feature-item h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}

.feature-item p {
    color: var(--text-muted);
}

.features-sticky-media {
    position: sticky;
    top: 7.5rem; /* 120px */
    height: 60vh;
}

.media-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: translateY(40px);
    transition: opacity 0.4s ease-out, transform 0.4s ease-out, visibility 0.4s;
}

.media-content .media-placeholder {
    aspect-ratio: 16 / 9;
    height: 100%;
    background-color: var(--secondary);
    border-radius: var(--radius-lg);
}

.media-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

/* Center the images with transparent backgrounds */
#feature-media-1,
#feature-media-2,
#feature-media-3 {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Styles for feature images */
#feature-media-1 img,
#feature-media-2 img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
}

#feature-media-3 img {
    width: 90%;
    height: 90%;
    object-fit: contain;
    box-shadow: none;
    border-radius: 0;
}

.media-content.is-active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Testimonials Section */
#testimonials {
    background-color: white;
    position: relative;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

/* Deployment Stats */
.deployment-stats {
    display: flex;
    justify-content: center;
    gap: calc(var(--space-xl) + var(--space-sm));
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
}

.stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(var(--primary-rgb), 0.12);
}

.stat-visual {
    position: relative;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
    z-index: 2;
    position: relative;
}

.stat-info {
    text-align: left;
}

.stat-number {
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--text);
    line-height: 1;
    margin-bottom: 2px;
}

.stat-label {
    font-size: var(--caption-size);
    color: var(--text-muted);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Progress Ring Animation */
.progress-ring {
    position: relative;
    transform: rotate(-90deg);
}

.progress-ring-circle-bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 3;
}

.progress-ring-circle {
    fill: none;
    stroke: var(--primary);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 157;
    stroke-dashoffset: 39;
    animation: progressRing 2s ease-in-out infinite;
}

@keyframes progressRing {
    0%, 100% { stroke-dashoffset: 78; }
    50% { stroke-dashoffset: 39; }
}

/* Security Badge Animation */
.security-badge {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.security-waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.wave {
    position: absolute;
    border: 2px solid var(--primary);
    border-radius: 50%;
    opacity: 0;
    animation: securityWave 2s ease-out infinite;
}

.wave-1 {
    width: 60px;
    height: 60px;
    animation-delay: 0s;
}

.wave-2 {
    width: 80px;
    height: 80px;
    animation-delay: 0.3s;
}

.wave-3 {
    width: 100px;
    height: 100px;
    animation-delay: 0.6s;
}

@keyframes securityWave {
    0% { transform: translate(-50%, -50%) scale(0.3); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1); opacity: 0; }
}

/* Monitoring Display Animation */
.monitoring-display {
    position: relative;
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--primary);
}

.activity-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 3px;
}

.activity-dots .dot {
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    animation: activityPulse 1.5s ease-in-out infinite;
}

.activity-dots .dot:nth-child(1) { animation-delay: 0s; }
.activity-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.activity-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes activityPulse {
    0%, 100% { opacity: 0.3; transform: scale(0.8); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* ===== NEW SECTIONS STYLES ===== */

/* How It Works Section */
#how-it-works {
    background: linear-gradient(135deg, white 0%, #f8f6ff 100%);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.workflow-demo {
    display: flex;
    flex-direction: column;
    gap: var(--space-2xl);
    margin-top: var(--space-xl);
}

.workflow-step {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
    margin-bottom: var(--space-lg);
}

.step-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-bold);
    font-size: 1.125rem;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.step-header h3 {
    color: var(--primary);
    margin: 0;
    font-size: 1.375rem;
}

.workflow-step p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.demo-visual {
    display: flex;
    justify-content: center;
    margin-top: var(--space-lg);
}

/* Browser Window Demo */
.browser-window {
    width: 100%;
    max-width: 400px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.browser-header {
    background: var(--surface);
    padding: var(--space-sm) var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-md);
    border-bottom: 1px solid var(--border);
}

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

.browser-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
}

.browser-url {
    font-size: var(--caption-size);
    color: var(--text-muted);
    font-family: monospace;
}

.browser-content {
    padding: var(--space-lg);
}

.extension-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.extension-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.extension-icon i {
    width: 20px;
    height: 20px;
}

.extension-info {
    flex: 1;
}

.extension-name {
    font-weight: var(--font-semibold);
    color: var(--text);
    margin-bottom: var(--space-xs);
}

.extension-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--caption-size);
    color: var(--text-muted);
}

.install-bar {
    width: 60px;
    height: 4px;
    background: var(--border);
    border-radius: var(--radius-pill);
    overflow: hidden;
}

.install-progress {
    height: 100%;
    background: var(--primary);
    animation: installProgress 2s ease-in-out infinite;
}

@keyframes installProgress {
    0% { width: 0; }
    100% { width: 100%; }
}

/* Policy Dashboard Demo */
.policy-dashboard {
    width: 100%;
    max-width: 350px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.dashboard-header {
    background: var(--primary);
    color: white;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--font-semibold);
}

.dashboard-icon {
    width: 20px;
    height: 20px;
}

.policy-rules {
    padding: var(--space-md);
}

.rule-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-toggle {
    width: 44px;
    height: 24px;
    background: #e5e7eb;
    border-radius: var(--radius-pill);
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #d1d5db;
}

.rule-toggle.active {
    background: var(--primary);
    border-color: var(--primary);
}

.toggle-switch {
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.toggle-switch.active {
    transform: translateX(22px);
}

.rule-info {
    flex: 1;
}

.rule-name {
    font-weight: var(--font-semibold);
    color: var(--text);
    margin-bottom: 2px;
}

.rule-status {
    font-size: var(--caption-size);
    color: var(--text-muted);
}

/* Monitoring Panel Demo */
.monitoring-panel {
    width: 100%;
    max-width: 350px;
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.panel-header {
    background: var(--primary);
    color: white;
    padding: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--font-semibold);
}

.panel-icon {
    width: 20px;
    height: 20px;
}

.protection-stats {
    padding: var(--space-md);
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
}

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

.stat-value {
    font-weight: var(--font-semibold);
    color: var(--primary);
}

.live-activity {
    padding: var(--space-md);
}

.activity-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 24px;
    height: 24px;
    color: var(--primary);
}

.activity-text {
    flex: 1;
    font-size: var(--caption-size);
    color: var(--text);
}

.activity-time {
    font-size: var(--caption-size);
    color: var(--text-muted);
}

/* Compliance Section */
#compliance {
    background: linear-gradient(135deg, white 0%, #f8fafc 100%);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.compliance-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
    margin-top: var(--space-xl);
}

.compliance-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.compliance-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent-rose));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.compliance-card:hover::before {
    transform: scaleX(1);
}

.compliance-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.15);
}

.compliance-icon {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    border: 2px solid var(--border);
}

.compliance-icon i {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.compliance-card h3 {
    color: var(--text);
    margin-bottom: var(--space-sm);
    font-size: 1.375rem;
}

.compliance-card p {
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.compliance-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-pill);
    font-size: var(--caption-size);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Integrations Section */
#integrations {
    background: linear-gradient(135deg, #f8fafc 0%, white 100%);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    padding: var(--space-xl) 0;
    margin: 0;
}

#integrations .container {
    margin-top: var(--space-md);
}

#integrations .section-subtitle {
    margin-bottom: var(--space-md);
}

#integrations .integration-showcase {
    margin-bottom: var(--space-lg);
}

.integration-showcase {
    margin-top: var(--space-lg);
}

.integration-category {
    margin-bottom: var(--space-lg);
}

.integration-category:first-child {
    margin-bottom: var(--space-lg);
}

.integration-category:last-child {
    margin-bottom: 0;
}

.integration-category h3 {
    color: var(--text-secondary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    text-align: center;
}

.platform-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: var(--space-md);
    max-width: 600px;
    margin: 0 auto;
}

.platform-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-radius: 12px;
    background: white;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.platform-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.15);
    border-color: var(--primary);
}

.platform-logo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #f8fafc;
    border-radius: 16px;
    transition: all 0.3s ease;
}

.platform-item:hover .platform-logo {
    background: white;
    transform: scale(1.05);
}

.company-logo-img {
    width: 48px;
    height: 48px;
    transition: all 0.3s ease;
    object-fit: contain;
}

.company-logo-img[src*=".png"] {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.platform-item:hover .company-logo-img {
    transform: scale(1.1);
}

.company-logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-align: center;
    line-height: 1.2;
    transition: all 0.3s ease;
}

.platform-item:hover .company-logo-text {
    transform: scale(1.1);
    color: var(--text-primary);
}

.platform-tooltip {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-primary);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 10;
}

.platform-tooltip::before {
    content: '';
    position: absolute;
    top: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 4px solid var(--text-primary);
}

.platform-item:hover .platform-tooltip {
    opacity: 1;
    visibility: visible;
    bottom: -50px;
}

/* AI Chat Demo Section */
#ai-chat-demo {
    background: white;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.chat-demo-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
    align-items: start;
}

.chat-interface {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.chat-header {
    background: var(--surface);
    padding: var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
}

.chat-title {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: var(--font-semibold);
    color: var(--text);
}

.chat-icon {
    width: 20px;
    height: 20px;
    color: var(--primary);
}

.meshulash-status {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: var(--caption-size);
    color: var(--primary);
    font-weight: var(--font-semibold);
}

.status-icon {
    width: 16px;
    height: 16px;
}

.chat-messages {
    padding: var(--space-lg);
    max-height: 400px;
    overflow-y: auto;
}

.message {
    margin-bottom: var(--space-lg);
    display: flex;
    flex-direction: column;
}

.message-content {
    background: var(--surface);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    margin-bottom: var(--space-xs);
}

.user-message .message-content {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.ai-message .message-content {
    background: white;
    border-color: var(--border);
}

.message-content p {
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.data-preview, .redacted-data {
    background: #f8fafc;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: var(--caption-size);
    margin-top: var(--space-sm);
    border: 1px solid #e2e8f0;
    line-height: 1.4;
}

.user-message .data-preview {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.redacted-data {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.data-label {
    font-weight: var(--font-semibold);
    display: block;
    margin-bottom: 4px;
}

.meshulash-alert {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    background: #f0f9ff;
    color: #0369a1;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    font-size: var(--caption-size);
    font-weight: var(--font-semibold);
    border: 1px solid #bae6fd;
}

.alert-icon {
    width: 16px;
    height: 16px;
    color: #0284c7;
}

.message-time {
    font-size: var(--caption-size);
    color: var(--text-muted);
    align-self: flex-end;
}

.chat-input {
    display: flex;
    gap: var(--space-sm);
    padding: var(--space-md);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.demo-input {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    outline: none;
    font-size: var(--caption-size);
}

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

.send-btn {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.send-btn:hover {
    background: #5845c7;
}

.send-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.protection-sidebar {
    background: var(--surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.protection-sidebar h3 {
    color: var(--primary);
    margin-bottom: var(--space-lg);
    font-size: 1.25rem;
    text-align: center;
}

.protection-stats {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.protection-stats .stat-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: white;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.protection-stats .stat-icon {
    width: 32px;
    height: 32px;
    color: var(--primary);
}

.protection-stats .stat-info {
    flex: 1;
}

.protection-stats .stat-number {
    font-size: 1.25rem;
    font-weight: var(--font-bold);
    color: var(--primary);
    line-height: 1;
}

.protection-stats .stat-label {
    font-size: var(--caption-size);
    color: var(--text-muted);
    margin-top: 2px;
}

/* Success Stories Section */
#success-stories {
    background: linear-gradient(135deg, #f8f6ff 0%, var(--surface) 100%);
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
}

.stories-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.story-card {
    background: white;
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.06);
    transition: all 0.3s ease;
}

.story-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 35px rgba(var(--primary-rgb), 0.15);
}

.story-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.company-logo {
    width: 60px;
    height: 60px;
    background: var(--surface);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
}

.company-icon {
    width: 28px;
    height: 28px;
    color: var(--primary);
}

.story-metrics {
    text-align: right;
}

.metric-number {
    display: block;
    font-size: 1.5rem;
    font-weight: var(--font-bold);
    color: var(--primary);
    line-height: 1;
}

.metric-label {
    font-size: var(--caption-size);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.story-card blockquote {
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
    font-size: 1rem;
    line-height: 1.6;
}

.story-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.story-author strong {
    color: var(--primary);
    font-weight: var(--font-bold);
}

.story-author span {
    color: var(--text-muted);
    font-size: var(--caption-size);
}

/* Mobile Responsiveness for New Sections */
@media (max-width: 768px) {
    .workflow-step {
        text-align: center;
    }
    
    .demo-visual {
        margin-top: var(--space-md);
    }
    
    .browser-window,
    .policy-dashboard,
    .monitoring-panel {
        max-width: 100%;
    }
    
    .compliance-grid {
        grid-template-columns: 1fr;
    }
    
    .integration-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .platform-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .chat-demo-container {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
    
    .stories-showcase {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }
}

#testimonials::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.3), transparent);
}

.testimonial-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 90%; /* On mobile, one card takes up most of the width */
    gap: var(--space-lg);

    overflow-x: auto;
    scroll-snap-type: x mandatory;

    padding: var(--space-md);

    /* Hide scrollbar */
    scrollbar-width: none;
}

.testimonial-carousel::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    scroll-snap-align: center;
    height: 100%;
}

.testimonial-card blockquote {
    font-size: 1rem;
    font-weight: var(--font-regular);
    margin: 0;
    color: var(--text-muted);
    font-style: normal;
    line-height: 1.6;
}

.testimonial-card .author {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-top: auto;
    padding-top: var(--space-lg);
    border-top: none;
}

.author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.author-name {
    font-weight: var(--font-bold);
    color: var(--primary);
}

.author-title {
    font-size: var(--caption-size);
    color: var(--text-muted);
}

/* Who We Help Section */
#who-we-help {
    background: linear-gradient(135deg, var(--surface) 0%, #f4f2ff 100%);
    position: relative;
    border-top: 1px solid rgba(var(--primary-rgb), 0.1);
    overflow: hidden;
}

/* Security Flow Visualization */
.security-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.08);
    border: 1px solid rgba(var(--primary-rgb), 0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.step-icon i {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
}

.meshulash-hub .step-icon {
    background: var(--primary);
    border-color: var(--primary);
    transform: scale(1.1);
    animation: securityPulse 2s ease-in-out infinite;
}

.meshulash-hub .step-icon i {
    color: white;
}

.meshulash-hub .step-icon svg {
    stroke: white;
}

.flow-step span {
    font-size: var(--caption-size);
    font-weight: var(--font-semibold);
    color: var(--text-muted);
}

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

.flow-arrow {
    position: relative;
    display: flex;
    align-items: center;
    color: var(--text-muted);
}

.flow-arrow i {
    width: 16px;
    height: 16px;
}

.data-stream {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    animation: dataFlow 2s ease-in-out infinite;
    transform: translateY(-50%);
}

@keyframes securityPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(var(--primary-rgb), 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(var(--primary-rgb), 0); }
}

@keyframes dataFlow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}



#who-we-help .problem-card {
    background-color: white;
    border: 1px solid rgba(var(--primary-rgb), 0.1);
}

#who-we-help .problem-card h3 {
    color: var(--accent-rose);
    font-size: 1.375rem;
    position: relative;
}

#who-we-help .problem-card h3::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-rose);
    border-radius: var(--radius-pill);
    transition: width 0.3s ease;
}

#who-we-help .problem-card:hover h3::after {
    width: 30px;
}

/* CTA Section */
#cta {
    background-color: var(--primary);
    color: white;
    text-align: center;
}

#cta h2 {
    color: white;
    margin-bottom: var(--space-md);
}

#cta p {
    color: rgba(255, 255, 255, 0.9);
    max-width: 60ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-lg);
}

#cta .btn-cta {
    background-color: white;
    color: var(--primary);
    font-weight: var(--font-bold);
}

#cta .btn-cta:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

/* Footer */
#main-footer-content {
    padding: var(--space-lg) 0;
    text-align: center;
    color: var(--text-muted);
    font-size: var(--caption-size);
}

/* Legal page tweaks */
.legal-content {
    max-width: 70ch;
    margin-left: auto;
    margin-right: auto;
}

.legal-content h1 {
    margin-bottom: var(--space-md);
}

.legal-content .legal-meta {
    color: var(--text-muted);
    margin-bottom: var(--space-xl);
}

.legal-content h2 {
    margin-top: var(--space-lg);
    margin-bottom: var(--space-sm);
}

.legal-content ul {
    margin-left: 1.25rem;
    margin-bottom: var(--space-md);
}

.footer-sep {
    margin: 0 0.5rem;
}

.footer-link {
    color: var(--text-muted);
}

.footer-link:hover {
    color: var(--primary);
    text-decoration: none;
}

/* Responsive Styles */
@media (min-width: 640px) {
    .testimonial-carousel {
        grid-auto-columns: 45%; /* Two cards on tablet */
    }
}

@media (min-width: 1024px) {
    .testimonial-carousel {
        grid-auto-columns: 31%; /* Three cards on desktop */
    }
}

@media (max-width: 1024px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
    .problem-grid {
        grid-template-columns: 1fr;
    }
    #hero .container {
        gap: var(--space-lg);
    }
}

@media (max-width: 768px) {
    .desktop-layout {
        display: none;
    }

    .mobile-layout {
        display: block;
    }

    .feature-mobile-item {
        margin-bottom: var(--space-xl);
    }

    .feature-mobile-item h3 {
        margin-bottom: var(--space-md);
    }

    .feature-mobile-img {
        width: 100%;
        margin-top: var(--space-lg);
        border-radius: var(--radius-lg);
    }

    .navbar-controls {
        gap: 0; /* Remove gap to align toggle button to the far right */
        justify-content: flex-end;
    }

    .navbar-nav-wrapper {
        display: none; /* Hidden by default */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(251, 250, 255, 0.75); /* Glass effect */
        backdrop-filter: blur(12px);
        z-index: 1000;
    }

    .navbar-nav-wrapper.is-active {
        display: flex; /* Show the overlay */
        justify-content: center;
        align-items: center;
    }

    .navbar-nav {
        flex-direction: column;
        align-items: center;
        gap: var(--space-xl);
    }

    .nav-link {
        color: var(--text);
        font-size: var(--h3-size);
        font-weight: var(--font-bold);
        border-bottom: none; /* remove desktop style */
        transition: color 0.2s ease;
    }

    .nav-link:hover {
        color: var(--primary);
        border-bottom: none;
    }

    .navbar-toggle-btn {
        display: block;
        z-index: 1001; /* On top of overlay */
    }

    .navbar-actions .btn {
        display: none; /* Hide desktop CTA button */
    }

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

    .features-sticky-media {
        order: -1;
        position: relative;
        top: auto;
        height: auto;
        margin-bottom: var(--space-lg);
    }

    .media-content {
        position: relative;
        height: auto;
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .media-content:not(:first-child) {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero .container {
        grid-template-columns: 1fr;
        padding-left: var(--space-md);
        padding-right: var(--space-md);
    }

    #hero .hero-content {
        text-align: center;
        order: 1; /* Appears before media */
    }

    #hero .hero-media {
        order: 2; /* Appears after content */
        margin-top: var(--space-lg);
    }

    #hero .trust-bar {
        justify-content: center;
    }

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

    .media-content {
        display: none;
    }

    .media-content.is-active {
        display: block;
    }

    /* Mobile responsive animations */
    .deployment-stats {
        flex-direction: column;
        gap: var(--space-lg);
        align-items: center;
    }

    .stat-item {
        justify-content: center;
        min-width: 200px;
    }

    .security-flow {
        flex-direction: column;
        gap: var(--space-md);
        max-width: 300px;
    }

    .flow-arrow {
        transform: rotate(90deg);
    }

    .data-stream {
        width: 2px;
        height: 20px;
        background: linear-gradient(180deg, transparent, var(--primary), transparent);
    }

    .data-flow-comparison {
        height: auto;
    }

    .flow-demo {
        position: relative;
        height: auto;
    }

    .flow-scenario {
        flex-direction: column;
        gap: var(--space-md);
    }

    .data-transfer {
        transform: rotate(90deg);
        max-width: 80px;
        height: 60px;
    }

    .risk-line {
        background: linear-gradient(180deg, #e5e7eb, #f87171, #e5e7eb);
    }

    .secure-line {
        background: linear-gradient(180deg, #e5e7eb, #22c55e, #e5e7eb);
    }
}

