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

:root {
    --primary-color: #ffffff;
    --secondary-color: #666666;
    --accent-color: #888888;
    --background-color: #0a0a0a;
    --surface-color: #1a1a1a;
    --border-color: #333333;
    --text-primary: #ffffff;
    --text-secondary: #cccccc;
    --text-muted: #999999;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease, backdrop-filter 0.3s ease, border-bottom-color 0.3s ease;
}

.header.transparent {
    background: transparent;
    backdrop-filter: none;
    border-bottom: 1px solid transparent;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    height: 2rem;
    width: 2rem;
    object-fit: contain;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

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

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 2rem;
    background: #000;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    min-height: 80vh;
    position: relative;
    z-index: 2;
}

.greeting {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease 0.2s forwards;
    position: relative;
    z-index: 3;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2; /* Reduced for tighter line spacing */
    letter-spacing: 0.02em; /* Added to ensure proper word spacing */
    margin-bottom: 0.5rem; /* Add small margin to control spacing */
    color: #ffffff;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease 0.4s forwards;
    position: relative;
    z-index: 3;
}

/* Text Generate Effect for Hero */
.text-generate {
    overflow: hidden;
}

.text-generate .word {
    display: inline;
    opacity: 0;
    filter: blur(10px);
    animation: text-generate-in 0.8s ease-out forwards;
}

@keyframes text-generate-in {
    0% {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* Hero Highlight Effect */
.hero-highlight {
    position: relative;
    display: inline-block;
}

.hero-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4, #45b7d1);
    background-size: 200% 100%;
    animation: gradient-shift 3s ease-in-out infinite;
    border-radius: 4px;
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Architecture Section */
.architecture-section {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.architecture-item {
    position: relative;
    padding-left: 5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.architecture-title {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.architecture-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.15);
    line-height: 1;
}

.architecture-description {
    font-size: clamp(1rem, 2.2vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 65ch;
    font-weight: 400;
}

/* Connectivity Stats */
.connectivity-stats {
    margin: 4rem 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.stat-item-enhanced {
    padding: 2rem;
    transition: all 0.3s ease;
    text-align: center;
}

.stat-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.stat-number-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.stat-number {
    font-size: clamp(3.5rem, 7vw, 5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.stat-plus {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-left: 0.2rem;
}

.stat-label {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.stat-primary {
    font-size: clamp(1.2rem, 2.5vw, 1.4rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

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

/* Components Grid */
.components-grid {
    margin-top: 4rem;
}

.components-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.component-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.component-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.component-card:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

.component-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.component-card h4 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.component-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Agents Typography Layout */
.agents-typography {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.agent-domain {
    position: relative;
    padding: 2rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.agent-domain:last-child {
    border-bottom: none;
}

.domain-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.domain-icon {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.domain-description {
    font-size: clamp(1rem, 2.3vw, 1.15rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 75ch;
    margin-bottom: 1.5rem;
}

.domain-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.capability {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 400;
    transition: all 0.3s ease;
}

.capability:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

/* Integration Categories */
.integration-category {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.integration-category:first-of-type {
    margin-top: 1rem;
}

/* Expandable Architecture Details */
.architecture-item.expandable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.architecture-item.expandable:hover {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    padding: 2rem;
    margin: -1rem;
}

.expand-indicator {
    font-size: 1.5rem;
    margin-left: 1rem;
    transition: transform 0.3s ease;
    color: rgba(255, 255, 255, 0.5);
}

.architecture-item.expanded .expand-indicator {
    transform: rotate(45deg);
    color: var(--text-primary);
}

.architecture-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    opacity: 0;
    margin-top: 0;
}

.architecture-item.expanded .architecture-details {
    max-height: 800px;
    opacity: 1;
    margin-top: 2rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.detail-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 1.2rem;
}

.detail-section h4 {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.detail-section p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Footer Icons */
.footer-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

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

.footer-icon {
    width: 20px;
    height: 20px;
    filter: invert(0.7);
    transition: filter 0.3s ease;
}

.footer-link:hover .footer-icon {
    filter: invert(1);
}

.btn-text {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .architecture-item {
        padding-left: 3rem;
    }
    
    .architecture-number {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }
    
    .connectivity-stats {
        grid-template-columns: 1fr;
    }
    
    .component-cards {
        grid-template-columns: 1fr;
    }
    
    .logo-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .domain-capabilities {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .conway-content-overlay {
        left: 2rem;
        max-width: calc(100% - 4rem);
    }
    
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .architecture-item.expandable:hover {
        margin: 0;
        padding: 1rem;
    }
}

.hero-subtitle {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 600;
    line-height: 1.2;
    margin-top: 0; /* Remove top margin */
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    opacity: 1;
    position: relative;
    z-index: 3;
}

.hero-description {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: 2rem;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease 0.6s forwards;
    position: relative;
    z-index: 3;
}

.language-switcher {
    font-weight: 600;
    font-size: inherit;
    color: #ffffff;
    letter-spacing: -0.02em;
    display: inline-block;
    position: relative;
    cursor: pointer;
    line-height: inherit;
    vertical-align: baseline;
}

/* Morphing text effect styles */
.morphing-text-effect {
    position: relative;
    display: inline-block;
    filter: url(#threshold) blur(0.6px);
    vertical-align: baseline;
    overflow: visible;
}

.morphing-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: inline-block;
    color: inherit;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    text-align: left;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
}



.highlight {
    background: linear-gradient(45deg, #ffffff, #cccccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-features {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease 0.8s forwards;
    position: relative;
    z-index: 3;
}

.feature-point {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    color: #cccccc;
    position: relative;
    z-index: 3;
}

.bullet {
    color: #ffffff;
    margin-right: 0.75rem;
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.8s ease 1s forwards;
    position: relative;
    z-index: 3;
}

.btn {
    padding: 0.6rem 1.5rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

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

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

.btn-github-icon {
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
    vertical-align: middle;
}

.btn-primary:hover .btn-github-icon {
    transform: scale(1.1);
}

.hero-visual {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 1;
}

#topology-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.8;
    display: block;
    background: #000;
}

.topology-controls {
    position: absolute;
    top: 6rem;
    left: 2rem;
    z-index: 10;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

#info-btn {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

#info-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

#info-btn:hover::after {
    content: attr(data-tip);
    white-space: pre-line;
    position: absolute;
    left: 3rem;
    top: 0;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    padding: 0.75rem;
    width: 200px;
    font-size: 0.75rem;
    line-height: 1.3;
    text-align: left;
    backdrop-filter: blur(15px);
    z-index: 1000;
}

#control-panel {
    position: relative;
}

#panel-toggle {
    display: none;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

#panel-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

#panel-content {
    position: absolute;
    top: 3rem;
    left: 0;
    background: rgba(0, 0, 0, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 320px;
    max-height: 500px;
    overflow-y: auto;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

#control-panel:hover #panel-content {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Custom scrollbar for control panel */
#panel-content::-webkit-scrollbar {
    width: 8px;
}

#panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

#panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

#panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Firefox scrollbar */
#panel-content {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
}

.control-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    margin-bottom: 0.5rem;
}

.control-section h4 {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding-bottom: 0.5rem;
}

#panel-content label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
}

#panel-content span {
    min-width: 40px;
    text-align: center;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.8rem;
}

#panel-content input[type="range"] {
    width: 120px;
    accent-color: #ffffff;
    height: 6px;
}

#panel-content input[type="checkbox"] {
    accent-color: #ffffff;
    width: 16px;
    height: 16px;
}

#panel-content button {
    margin: 0.25rem 0;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

#panel-content button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}



.about {
    padding: 6rem 0;
    background-color: #000000;
    position: relative;
    overflow: hidden;
}

/* --- Grid Area Definitions --- */
.grid-item-1 { grid-area: md-1-1-2-7; }
.grid-item-2 { grid-area: md-1-7-2-13; }
.grid-item-3 { grid-area: md-2-1-3-7; }
.grid-item-4 { grid-area: md-2-7-3-13; }

@media (min-width: 1280px) { /* xl breakpoint */
    .grid-item-1 { grid-area: 1 / 1 / 2 / 5; }
    .grid-item-2 { grid-area: 2 / 1 / 3 / 5; }
    .grid-item-3 { grid-area: 1 / 5 / 3 / 8; }
    .grid-item-4 { grid-area: 1 / 8 / 2 / 13; }
}

.glowing-grid-container {
    max-width: 80rem;
    margin: 0 auto;
}

.glowing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3x3 grid */
    gap: 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

@media (min-width: 768px) {
    .glowing-grid {
        grid-template-columns: repeat(3, 1fr); /* 3x3 grid on tablet */
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .glowing-grid {
        grid-template-columns: repeat(3, 1fr); /* 3x3 grid on desktop */
        gap: 1.8rem;
    }
}

@media (min-width: 1536px) {
    .glowing-grid {
        grid-template-columns: repeat(3, 1fr); /* 3x3 grid on large desktop */
        gap: 2.2rem;
    }
}

.grid-item {
    list-style: none;
    /* Create square aspect ratio */
    aspect-ratio: 1 / 1;
    min-height: 18rem; /* Increased for better proportions */
}

/* --- 3D Card Effect Styles --- */
.perspective-container {
    perspective: 2000px; /* Increased perspective for a stronger effect */
}

/* The main card element now handles the 3D transform */
.glowing-card {
    position: relative;
    height: 100%;
    border-radius: 1rem;
    border: 1px solid #262626;
    padding: 0.5rem;
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out; /* Slightly slower transition for the card tilt */
}

@media (min-width: 768px) {
    .glowing-card {
        border-radius: 1.5rem;
        padding: 0.75rem;
    }
}

.card-3d-body {
    position: relative;
    display: flex;
    height: 100%;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1rem; /* Increased gap for better spacing */
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #0a0a0a;
    padding: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform-style: preserve-3d;
    transition: transform 0.4s ease-out;
}

.card-3d-body > * {
    transform-style: preserve-3d;
}

.card-item {
    transition: transform 0.4s ease-out;
}

.card-item h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
    line-height: 1.3;
}

.card-item p {
    color: #a3a3a3;
    font-size: 0.875rem;
    max-width: 20rem;
    margin: 0.5rem 0 0 0;
    line-height: 1.4;
    height: 2.4em; /* Fixed height for exactly 2 lines */
    overflow: hidden;
}

/* Allow overflow of zoomed screenshot images on card hover */
.card-3d-body:hover {
    overflow: visible;
    z-index: 10;
}

/* Disable the CSS-based hover transform - let JS handle it */
/*
.card-3d-body:hover .image-item img,
.card-3d-body:hover .screenshot-image {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 110%;
    height: 220px;
    max-width: none;
    max-height: none;
    transform: translate(-50%, -50%) scale(1.06);
    box-shadow: 0 25px 80px 0 rgba(0,0,0,0.55), 0 0 0 4px #fff2;
    border-radius: 1.2rem;
    z-index: 20;
    transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
    pointer-events: auto;
    will-change: transform, box-shadow;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
*/

.image-item {
    width: 100%;
    margin-top: 1.5rem; /* Increased margin for more space between text and image */
    margin-bottom: 0;
    flex-shrink: 0;
}

/* --- Glowing Border Effect Styles --- */
.glowing-effect-container {
    --spread: 20;
    --start: 0;
    --active: 0;
    --glowingeffect-border-width: 1px;
    --repeating-conic-gradient-times: 5;
    --gradient: radial-gradient(circle, #dd7bbb 10%, #dd7bbb00 20%),
                radial-gradient(circle at 40% 40%, #d79f1e 5%, #d79f1e00 15%),
                radial-gradient(circle at 60% 60%, #5a922c 10%, #5a922c00 20%),
                radial-gradient(circle at 40% 60%, #4c7894 10%, #4c789400 20%),
                repeating-conic-gradient(
                    from 236.84deg at 50% 50%,
                    #dd7bbb 0%,
                    #d79f1e calc(25% / var(--repeating-conic-gradient-times)),
                    #5a922c calc(50% / var(--repeating-conic-gradient-times)),
                    #4c7894 calc(75% / var(--repeating-conic-gradient-times)),
                    #dd7bbb calc(100% / var(--repeating-conic-gradient-times))
                );
    pointer-events: none;
    position: absolute;
    inset: 0;
    border-radius: inherit;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    /* Careful performance optimization - only hint at opacity changes */
    will-change: opacity;
}

.glow {
    border-radius: inherit;
}

.glow::after {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--glowingeffect-border-width));
    border: var(--glowingeffect-border-width) solid transparent;
    background: var(--gradient);
    background-attachment: fixed;
    opacity: var(--active);
    transition: opacity 0.3s ease-in-out;
    mask-clip: padding-box, border-box;
    mask-composite: intersect;
    -webkit-mask-clip: padding-box, border-box;
    -webkit-mask-composite: intersect;
    mask-image: linear-gradient(#0000, #0000), 
                conic-gradient(from calc((var(--start) - var(--spread)) * 1deg),
                               #00000000 0deg, 
                               #fff, 
                               #00000000 calc(var(--spread) * 2deg));
    border-radius: inherit;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: 0.02em; /* Adjusted for better word spacing */
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.screenshot-image {
    width: 100%;
    height: 15rem;
    object-fit: cover;
    border-radius: 0.75rem;
    transition: transform 0.4s ease-out, box-shadow 0.4s ease-out;
}

.card-3d-body:hover .screenshot-image {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}


/* Warp Speed Section */
.warp-speed {
    padding: 6rem 0;
    background: var(--background-color);
    position: relative;
    overflow: hidden;
}

.warp-speed-content {
    text-align: center;
}

.warp-title {
    font-size: clamp(2rem, 4vw, 3.75rem);
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
    position: relative;
    z-index: 10;
}

/* This container wraps the canvas and the text to handle hover events */
.warp-container {
    position: relative;
    display: inline-block;
    padding: 0.5rem;
    border-radius: 0.25rem;
    background-color: #171717; 
    transition: background-color 0.3s ease;
    cursor: pointer;
    overflow: hidden; /* Keep beams and particles contained */
    vertical-align: text-bottom; /* Correct alignment fix */
}

.warp-container:hover {
     background-color: #0a0a0a;
}

/* The canvas for background animations is always visible */
#warp-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0.25rem;
    z-index: 1;
}

/* The outer text span, handles the zoom */
.warp-text {
    position: relative;
    z-index: 5;
    /* Slower 4x zoom transition */
    transition: color 0.3s ease, transform 0.8s ease-out;
    display: inline-block;
    transform-origin: center;
}

/* The inner span, handles the shake */
.shaker {
    display: inline-block;
}

/* Apply zoom to the outer span on hover */
.warp-container:hover .warp-text {
    transform: scale(0.8);
}

/* Apply shake animation to the inner span on hover */
.warp-container:hover .shaker {
    /* More frequent, less offset shake */
    animation: subtle-shake 0.15s infinite linear;
}

/* Corner circles that are visible by default and hide on hover */
.corner-circle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #a3a3a3; /* neutral-400 */
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse-light 2s infinite;
    z-index: 6; /* Above the canvas */
}

.warp-container:hover .corner-circle {
    display: none; /* Hide on hover */
}

.corner-circle.top-left { top: -2px; left: -2px; animation-delay: 0.8s; }
.corner-circle.top-right { top: -2px; right: -2px; }
.corner-circle.bottom-left { bottom: -2px; left: -2px; animation-delay: 1.6s; }
.corner-circle.bottom-right { bottom: -2px; right: -2px; animation-delay: 0.4s; }

@keyframes pulse-light {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.7; }
}

/* Keyframe for the subtle shake, with less shift and more frequency */
@keyframes subtle-shake {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(0.5px, -0.5px); }
    50%  { transform: translate(-0.5px, 0.5px); }
    75%  { transform: translate(0.5px, 0.5px); }
    100% { transform: translate(0, 0); }
}

.features {
    padding: 6rem 0;
    background: 
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.02) 0deg, transparent 180deg, rgba(255, 255, 255, 0.02) 360deg);
    position: relative;
    overflow: hidden;
}

.magnetic-field {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.magnetic-orb {
    position: absolute;
    width: 40px;
    height: 40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    transition: all 0.3s ease;
    animation: magneticFloat 6s ease-in-out infinite;
}

.magnetic-orb:nth-child(1) {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.magnetic-orb:nth-child(2) {
    top: 70%;
    right: 20%;
    animation-delay: -1.5s;
}

.magnetic-orb:nth-child(3) {
    top: 30%;
    right: 40%;
    animation-delay: -3s;
}

.magnetic-orb:nth-child(4) {
    bottom: 20%;
    left: 30%;
    animation-delay: -4.5s;
}

.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.features-column h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.features-column h3:first-child {
    margin-top: 0;
}

.feature-list {
    margin-bottom: 2rem;
}

.feature-item {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}


.system {
    padding: 6rem 0;
    background: 
        linear-gradient(45deg, var(--surface-color) 0%, var(--background-color) 100%),
        repeating-conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(255, 255, 255, 0.01) 30deg, transparent 60deg);
    position: relative;
    overflow: hidden;
}

.system-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.system-card {
    background: var(--background-color);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.system-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.system-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.system-features {
    margin-top: 1rem;
}

.system-feature {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding: 0.25rem 0;
}

.contact {
    padding: 4rem 0;
    background: var(--background-color);
}

.particle-network {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#network-canvas {
    width: 100%;
    height: 100%;
    opacity: 0.4;
}

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

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

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

.btn-outline:hover {
    background: var(--surface-color);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.liquid-btn {
    position: relative;
    overflow: hidden;
    border-radius: 50px;
}

.btn-text {
    position: relative;
    z-index: 2;
}

.liquid-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.6s ease;
    z-index: 1;
}

.liquid-btn:hover .liquid-bg {
    width: 300px;
    height: 300px;
    animation: liquidRipple 0.6s ease;
}

.contact-info {
    color: var(--text-muted);
}

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

.contact-info a:hover {
    text-decoration: underline;
}


.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 5px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

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

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.footer {
    padding: 3rem 0 1rem;
    background: 
        var(--background-color),
        repeating-linear-gradient(90deg, transparent, transparent 10px, rgba(255, 255, 255, 0.01) 10px, rgba(255, 255, 255, 0.01) 20px);
    border-top: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.footer-geometric {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.wave-pattern {
    position: relative;
    width: 100%;
    height: 100%;
}

.wave {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: waveComplex 20s ease-in-out infinite;
}

.wave:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.wave:nth-child(2) {
    top: 10%;
    right: 30%;
    animation-delay: -1.25s;
}

.wave:nth-child(3) {
    top: 60%;
    left: 40%;
    animation-delay: -2.5s;
}

.wave:nth-child(4) {
    top: 40%;
    right: 10%;
    animation-delay: -3.75s;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-brand h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

@keyframes fractalSpin {
    0% {
        transform: rotate(0deg);
        opacity: 0.3;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: rotate(360deg);
        opacity: 0.3;
    }
}

@keyframes morphBlob {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        border-radius: 50% 40% 60% 30%;
        opacity: 0.6;
    }
    25% {
        transform: scale(1.1) rotate(90deg);
        border-radius: 30% 70% 40% 60%;
        opacity: 0.8;
    }
    50% {
        transform: scale(0.9) rotate(180deg);
        border-radius: 60% 30% 70% 40%;
        opacity: 0.4;
    }
    75% {
        transform: scale(1.05) rotate(270deg);
        border-radius: 40% 60% 30% 70%;
        opacity: 0.7;
    }
}

@keyframes magneticFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) scale(1.2);
        opacity: 1;
    }
}

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

@keyframes waveComplex {
    0%, 100% {
        transform: scale(1);
        opacity: 0.1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.2;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 2rem 1rem;
    }
    
    .hero-visual-placeholder {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .language-switcher {
        font-size: 1.2rem;
        letter-spacing: 0.08em;
    }
    
    .topology-controls {
        top: 5rem;
        left: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    #panel-content {
        position: relative;
        top: 0;
        margin-top: 0.5rem;
        min-width: 280px;
        max-height: 400px;
    }
    
    .control-section {
        padding: 0.8rem;
    }
    
    .control-section h4 {
        font-size: 0.9rem;
    }
    
    #panel-content label {
        font-size: 0.8rem;
    }
    
    #panel-content input[type="range"] {
        width: 100px;
    }
    
    #info-btn:hover::after {
        left: 0;
        top: 3rem;
        width: 180px;
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
    
    .features-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .system-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .floating-blob, .magnetic-orb, .particle-network {
        display: none;
    }
    
    .glass-card {
        background: var(--surface-color) !important;
        backdrop-filter: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Conway's Game of Life Section */
.conway-section {
    background: var(--background-color);
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.conway-container {
    height: 100vh;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #0f172a;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mask-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: #0f172a;
    z-index: 20;
    mask-image: radial-gradient(transparent, white);
    -webkit-mask-image: radial-gradient(transparent, white);
    pointer-events: none;
}

.boxes-container {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 0;
    display: flex;
    height: 100%;
    width: 100%;
    transform: translate(-50%, -50%) skewX(-48deg) skewY(14deg) scale(1.0) rotate(0deg) translateZ(0);
    padding: 0;
}

.box-row {
    position: relative;
    height: 48px;
    width: 96px;
}

.box-cell {
    position: relative;
    height: 48px;
    width: 96px;
    border-bottom: 1px solid #334155;
    border-right: 1px solid #334155;
    transition: background-color 1.0s ease, opacity 1.0s ease;
    cursor: pointer;
}

.box-cell:first-child {
    border-left: none;
}

.box-row:first-child .box-cell {
    border-top: none;
}

.box-row .box-cell:last-child {
    border-right: none;
}

.box-row:last-child .box-cell {
    border-bottom: 1px solid #334155;
}

.box-cell.alive {
    background-color: var(--cell-color);
}

.box-cell.density {
    background-color: rgba(255, 255, 255, var(--density-opacity)) !important;
}

.box-cell.hover {
    background-color: var(--hover-color) !important;
    opacity: 0.7;
}

.box-icon {
    position: absolute;
    top: -18px;
    left: -28px;
    height: 32px;
    width: 52px;
    color: #334155;
    stroke-width: 1px;
    pointer-events: none;
}


.controls {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 30;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.control-btn {
    padding: 8px 16px;
    background: #1e293b;
    color: white;
    border: 1px solid #334155;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s;
}

.control-btn:hover {
    background: #334155;
}

.control-btn.active {
    background: #0ea5e9;
}

@media (max-width: 768px) {
    .controls {
        top: 5px;
        right: 5px;
    }
    
    .control-btn {
        padding: 6px 12px;
        font-size: 10px;
    }
}

/* Vision Section */
.vision-section {
    padding: 8rem 0;
    background: var(--background-color);
    position: relative;
}

.vision-content {
    margin-top: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.vision-paragraph {
    font-size: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.vision-paragraph:last-child {
    margin-bottom: 0;
}

.vision-original {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .vision-section {
        padding: 6rem 0;
    }
    
    .vision-content {
        margin-top: 3rem;
        padding: 0 1rem;
    }
    
    .vision-paragraph {
        font-size: 1.25rem;
        line-height: 1.7;
        margin-bottom: 2rem;
    }
}

/* Hero Section Updates */
.hero-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin: 1rem 0 2rem 0;
    line-height: 1.6;
}

/* Welcome Section Styles */
.welcome-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
}

.welcome-text .section-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.welcome-text .feature-list {
    margin: 2rem 0;
}

.welcome-text .feature-item {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

.welcome-text .feature-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-top: 2rem;
    font-style: italic;
}

.image-placeholder {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.placeholder-content {
    text-align: center;
    color: var(--text-secondary);
}

.placeholder-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.placeholder-text {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.placeholder-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Advantages Section */
.advantages {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.advantages-typography {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

.advantage-item {
    position: relative;
    padding-left: 6rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.advantage-title {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.advantage-number {
    position: absolute;
    left: 0;
    top: 0;
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 100;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
}

.advantage-description {
    font-size: clamp(1rem, 2.5vw, 1.1rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 60ch;
    font-weight: 400;
}

/* MCP Integration Section */
.mcp-integration {
    padding: 6rem 0;
}

.logos-grid {
    margin-top: 3rem;
}

.logos-grid h3 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    font-weight: 500;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.logo-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100px;
    padding: 0.5rem;
    gap: 0.5rem;
}

.company-logo {
    height: 40px;
    width: auto;
    max-width: 100%;
    max-height: 50px;
    transition: all 0.3s ease;
}

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


/* === INTEGRATION ICONS: RESTORED ORIGINAL PER-ICON STYLING === */
/* Colored icons: no filter */
.company-logo[src*="-color.svg"] {
  filter: none !important;
}

/* GitHub: white */
.company-logo[src*="github.svg"] {
  filter: invert(1) brightness(1.2) !important;
}

/* GitLab: orange */
.company-logo[src*="gitlab.svg"] {
  filter: invert(63%) sepia(96%) saturate(7492%) hue-rotate(330deg) brightness(1.1) !important;
}

/* Jira: blue */
.company-logo[src*="jira.svg"] {
  filter: invert(27%) sepia(98%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Docker: blue */
.company-logo[src*="docker.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Kubernetes: blue */
.company-logo[src*="kubernetes.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Linear: purple */
.company-logo[src*="linear.svg"] {
  filter: invert(18%) sepia(98%) saturate(7492%) hue-rotate(245deg) brightness(1.1) !important;
}

/* Telegram: blue */
.company-logo[src*="telegram.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* WhatsApp: green */
.company-logo[src*="whatsapp.svg"] {
  filter: invert(62%) sepia(98%) saturate(7492%) hue-rotate(85deg) brightness(1.1) !important;
}

/* LinkedIn: blue */
.company-logo[src*="linkedin.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Microsoft Teams: purple */
.company-logo[src*="microsoftteams.svg"] {
  filter: invert(18%) sepia(98%) saturate(7492%) hue-rotate(245deg) brightness(1.1) !important;
}

/* Zoom: blue */
.company-logo[src*="zoom.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* HubSpot: orange */
.company-logo[src*="hubspot.svg"] {
  filter: invert(63%) sepia(96%) saturate(7492%) hue-rotate(330deg) brightness(1.1) !important;
}

/* Salesforce: blue */
.company-logo[src*="salesforce.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Mailchimp: yellow */
.company-logo[src*="mailchimp.svg"] {
  filter: invert(92%) sepia(98%) saturate(7492%) hue-rotate(10deg) brightness(1.1) !important;
}

/* Stripe: blue */
.company-logo[src*="stripe.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Shopify: green */
.company-logo[src*="shopify.svg"] {
  filter: invert(62%) sepia(98%) saturate(7492%) hue-rotate(85deg) brightness(1.1) !important;
}

/* Intercom: blue */
.company-logo[src*="intercom.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* Google Analytics: orange */
.company-logo[src*="googleanalytics.svg"] {
  filter: invert(63%) sepia(96%) saturate(7492%) hue-rotate(330deg) brightness(1.1) !important;
}

/* Airtable: yellow */
.company-logo[src*="airtable.svg"] {
  filter: invert(92%) sepia(98%) saturate(7492%) hue-rotate(10deg) brightness(1.1) !important;
}

/* Databricks: orange */
.company-logo[src*="databricks.svg"] {
  filter: invert(63%) sepia(96%) saturate(7492%) hue-rotate(330deg) brightness(1.1) !important;
}

/* PostgreSQL: blue */
.company-logo[src*="postgresql.svg"] {
  filter: invert(41%) sepia(99%) saturate(7492%) hue-rotate(186deg) brightness(1.1) !important;
}

/* MongoDB: green */
.company-logo[src*="mongodb.svg"] {
  filter: invert(62%) sepia(98%) saturate(7492%) hue-rotate(85deg) brightness(1.1) !important;
}

/* Elasticsearch: orange */
.company-logo[src*="elasticsearch.svg"] {
  filter: invert(63%) sepia(96%) saturate(7492%) hue-rotate(330deg) brightness(1.1) !important;
}

/* Anthropic, OpenAI, Notion, Vercel: white */
.company-logo[src*="anthropic.svg"],
.company-logo[src*="openai.svg"],
.company-logo[src*="notion.svg"],
.company-logo[src*="vercel.svg"] {
  filter: invert(1) brightness(1.2) !important;
}

.logo-title {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: 500;
    line-height: 1.2;
    margin-top: 0.25rem;
}

/* Conway's Game of Life Overlay */
.conway-content-overlay {
    position: absolute;
    top: 50%;
    left: 4rem;
    transform: translateY(-50%);
    text-align: left;
    z-index: 25;
    background: transparent;
    padding: 2rem 3rem;
    max-width: 600px;
}

.conway-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
    color: #ffffff !important;
    background: none !important;
    background-image: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: #ffffff !important;
    line-height: 1.1;
    position: relative;
    z-index: 30;
    text-shadow: none !important;
    opacity: 1 !important;
}

.conway-description {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: #ffffff !important;
    margin-bottom: 2rem;
    line-height: 1.6;
    max-width: 50ch;
    position: relative;
    z-index: 30;
    text-shadow: none !important;
    opacity: 1 !important;
}

.conway-features {
    text-align: left;
    margin-top: 2rem;
    position: relative;
    z-index: 30;
}

.conway-feature {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #ffffff !important;
    margin-bottom: 1rem;
    padding-left: 0;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
    z-index: 30;
    text-shadow: none !important;
    opacity: 1 !important;
}

/* Features Section Update */
.features-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.features-text .feature-list {
    margin-top: 1rem;
}

.features-text .feature-item {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.6;
    padding-left: 0.5rem;
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.accordion {
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
}

.accordion-header {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.accordion-header h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.accordion-icon {
    font-size: 1.5rem;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(45deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
}

.accordion-item.active .accordion-content {
    max-height: 200px;
}

.accordion-content p {
    padding: 1.5rem 2rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Community Section */
.community {
    padding: 6rem 0;
}

.community-content {
    margin-top: 3rem;
}

.community-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.community-feature {
    text-align: center;
    padding: 1rem;
}

.community-feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.community-feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.community-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
}

.community-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-placeholder.github,
.logo-placeholder.discord {
    width: 120px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logo-placeholder.github:hover,
.logo-placeholder.discord:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Executive Intelligence Magazine Layout */
.executive-intelligence {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.01) 100%);
    border-radius: 12px;
    padding: 3rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
}

.executive-intelligence::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.executive-header {
    margin-bottom: 3rem;
}

.executive-magazine-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2rem;
    min-height: 70vh;
}

.magazine-card {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
}

.magazine-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.magazine-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.magazine-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.magazine-text {
    font-size: clamp(1rem, 1.8vw, 1.2rem);
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 300;
    opacity: 0.9;
}

/* Magazine Tags Styles */
.magazine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.magazine-tag {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 16px;
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 400;
    transition: all 0.3s ease;
}

.magazine-tag:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* Responsive adjustments for tags */
@media (max-width: 768px) {
    .magazine-tags {
        gap: 0.4rem;
        margin-top: 1rem;
        padding-top: 1rem;
    }
    
    .magazine-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.6rem;
    }
}

/* Image Modal */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: -50px;
    right: -20px;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    z-index: 2;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.modal-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: -70px;
}

.modal-next {
    right: -70px;
}

.modal-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 100%;
    max-height: 100%;
}

.modal-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 0.75rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.modal-info {
    text-align: center;
    margin-top: 1rem;
    max-width: 600px;
    padding: 0 1rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
}

.modal-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

.modal-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Screenshot Image Cursor Fix */
#screenshots img,
#screenshots .image-item img,
#screenshots .card-item.image-item img {
    cursor: pointer !important;
    position: relative;
    z-index: 10;
}

#screenshots .glowing-card {
    pointer-events: auto;
}

#screenshots .card-3d-body {
    pointer-events: auto;
}

#screenshots .card-item.image-item {
    pointer-events: auto;
}

#screenshots img:hover {
    filter: brightness(1.1);
    cursor: pointer !important;
}

#screenshots .image-item img {
    display: block !important;
    position: relative !important;
    pointer-events: auto !important;
}

/* WIP Badge Styling */
.wip-badge {
    position: absolute;
    top: 1rem;
    right: 0;
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.4);
    letter-spacing: 0.5px;
    z-index: 10;
    animation: wipPulse 2s ease-in-out infinite;
}

@keyframes wipPulse {
    0%, 100% {
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 2px 12px rgba(59, 130, 246, 0.5);
    }
}