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

:root {
    --primary-color: #0066ff;
    --secondary-color: #4a90e2;
    --accent-color: #ff6b35;
    --dark-bg: #f8fafc;
    --darker-bg: #e2e8f0;
    --light-text: #1a202c;
    --gray-text: #4a5568;
    --card-bg: #ffffff;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #0066ff 0%, #4a90e2 100%);
    --gradient-secondary: linear-gradient(135deg, #ff6b35 0%, #ff8a50 100%);
    --font-primary: 'Inter', sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--dark-bg);
    color: var(--light-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

@media (min-width: 1400px) {
    .main-container {
        max-width: 1400px;
        padding: 0 40px;
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    transition: all 0.3s ease;
    border-bottom: 1px solid var(--border-color);
}

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

.nav-logo h2 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--light-text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

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

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

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--light-text);
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 8rem;
    padding-bottom: 2rem;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(0, 102, 255, 0.05) 0%, transparent 50%);
}

.geometric-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: var(--gradient-primary);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    top: 60%;
    right: 10%;
    animation-delay: 2s;
}

.shape-3 {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    top: 30%;
    right: 30%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    z-index: 2;
    width: 100%;
}

.hero-text {
    padding-top: 4rem;
    position: relative;
    flex-shrink: 0;
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.title-line {
    display: block;
    opacity: 0;
    transform: translateY(50px);
    animation: slideUp 1s ease forwards;
}

.title-line:nth-child(1) { animation-delay: 0.2s; }
.title-line:nth-child(2) { animation-delay: 0.4s; }
.title-line:nth-child(3) { animation-delay: 0.6s; }

.highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 0.8s;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(0, 212, 255, 0.4);
}

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

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

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

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

/* Hero Visual */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    height: auto;
    padding-top: 0;
}

.chat-messages {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem 2rem 4rem 2rem;
    justify-content: flex-start;
    overflow: visible;
}

.message {
    max-width: 95%;
    min-height: 60px;
    padding: 1.2rem 1.5rem;
    border-radius: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0;
    transform: translateY(30px);
    animation: messageSlideIn 0.6s ease forwards;
    backdrop-filter: blur(20px);
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: -1.0rem;
}

.message-label {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 500;
    margin-bottom: -1.0rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.message-label.user-label {
    align-self: flex-end;
    color: var(--primary-color);
}

.message-label.ai-label {
    align-self: flex-start;
    color: var(--gray-text);
}

.message::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: xor;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    z-index: -1;
}

.message.user {
    align-self: flex-end;
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.15), 
        rgba(74, 144, 226, 0.1)
    );
    color: #0066ff;
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(0, 102, 255, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(0, 102, 255, 0.2);
    font-weight: 500;
}

.message.user::before {
    background: linear-gradient(135deg, 
        rgba(0, 102, 255, 0.4), 
        rgba(74, 144, 226, 0.2)
    );
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 20px;
}

.message.ai {
    align-self: flex-start;
    background: linear-gradient(135deg, 
        rgba(148, 163, 184, 0.15), 
        rgba(203, 213, 225, 0.1)
    );
    color: var(--light-text);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 20px;
    box-shadow: 
        0 8px 32px rgba(148, 163, 184, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.message.ai::before {
    background: linear-gradient(135deg, 
        rgba(148, 163, 184, 0.4), 
        rgba(203, 213, 225, 0.2)
    );
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 20px;
}

.redacted {
    background: #000;
    color: #000;
    padding: 1px 8px;
    border-radius: 3px;
    display: inline-block;
    margin: 0 2px;
    user-select: none;
    line-height: 1.2;
}

.warning-icon {
    color: #ff6b35;
    font-weight: bold;
    margin-right: 8px;
}

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

.scroll-indicator {
    position: fixed;
    bottom: 3vh;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.2rem;
    color: var(--gray-text);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--card-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 60px;
}

.feature-card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: visible;
}

.feature-icon svg {
    width: 36px;
    height: 36px;
    color: white;
    stroke-width: 2;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.feature-card p {
    color: var(--gray-text);
    line-height: 1.7;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--darker-bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.1rem;
    color: var(--gray-text);
    text-transform: none;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Services Section */
.services {
    padding: 100px 0;
    background: var(--card-bg);
}

/* New two-column layout */
.services-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 60px;
    min-height: 500px;
}

.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: flex;
    gap: 1.5rem;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-item:hover,
.service-item.active {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 102, 255, 0.15);
    border-color: var(--primary-color);
}

.service-item.active {
    background: linear-gradient(135deg, rgba(0, 102, 255, 0.05), rgba(74, 144, 226, 0.03));
}

.service-content {
    flex: 1;
}

/* Screenshot Showcase */
.screenshot-showcase {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 2rem;
    padding-left: 1rem;
}

/* Screenshot Stack Container */
.screenshot-stack {
    position: relative;
    width: min(600px, 90vw);
    height: min(420px, 65vw);
    margin: 0 auto;
    perspective: 1200px;
    transform-style: preserve-3d;
    filter: drop-shadow(0 25px 50px rgba(0, 0, 0, 0.25));
}

/* Base Screenshot Card Styles */
.screenshot-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 
        0 0 0 1px rgba(255, 255, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

/* Mac-style Window Chrome */
.screenshot-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 32px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-bottom: 1px solid var(--border-color);
    z-index: 2;
    border-radius: 12px 12px 0 0;
}

.screenshot-card::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 12px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    box-shadow: 
        16px 0 0 #ffbd2e,
        32px 0 0 #27ca3f,
        0 0 0 1px rgba(0,0,0,0.1);
    z-index: 3;
}

.screenshot-card img {
    width: 100%;
    height: calc(100% - 32px);
    margin-top: 32px;
    object-fit: cover;
    border-radius: 0 0 12px 12px;
    display: block;
}

/* Stack Positioning - Cards tilted backwards with right edge as pivot */
.card-back-2 {
    z-index: 1;
    opacity: 0.7;
    transform: rotateY(-30deg) translateZ(-40px) translateY(15px) translateX(30px) scale(0.85);
    transform-origin: right center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.card-back-1 {
    z-index: 2;
    opacity: 0.85;
    transform: rotateY(-20deg) translateZ(-20px) translateY(8px) translateX(15px) scale(0.92);
    transform-origin: right center;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25);
}

.card-top {
    z-index: 3;
    opacity: 1;
    transform: rotateY(-10deg) translateZ(0px) translateY(0px) translateX(0px) scale(1);
    transform-origin: right center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Card Stack Cycling Animations - Smooth repositioning, always 3 cards visible */
@keyframes moveFromFrontToMiddle {
    0% {
        z-index: 3;
        opacity: 1;
        transform: rotateY(-10deg) translateZ(0px) translateY(0px) translateX(0px) scale(1);
        transform-origin: right center;
    }
    100% {
        z-index: 2;
        opacity: 0.85;
        transform: rotateY(-20deg) translateZ(-20px) translateY(8px) translateX(15px) scale(0.92);
        transform-origin: right center;
    }
}

@keyframes moveFromMiddleToBack {
    0% {
        z-index: 2;
        opacity: 0.85;
        transform: rotateY(-20deg) translateZ(-20px) translateY(8px) translateX(15px) scale(0.92);
        transform-origin: right center;
    }
    100% {
        z-index: 1;
        opacity: 0.7;
        transform: rotateY(-30deg) translateZ(-40px) translateY(15px) translateX(30px) scale(0.85);
        transform-origin: right center;
    }
}

@keyframes moveFromBackToFront {
    0% {
        z-index: 1;
        opacity: 0.7;
        transform: rotateY(-30deg) translateZ(-40px) translateY(15px) translateX(30px) scale(0.85);
        transform-origin: right center;
    }
    100% {
        z-index: 3;
        opacity: 1;
        transform: rotateY(-10deg) translateZ(0px) translateY(0px) translateX(0px) scale(1);
        transform-origin: right center;
    }
}

/* Animation Classes */
.moving-front-to-middle {
    animation: moveFromFrontToMiddle 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.moving-middle-to-back {
    animation: moveFromMiddleToBack 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.moving-back-to-front {
    animation: moveFromBackToFront 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Hover State - Stack Spreads Slightly */
.screenshot-stack:hover .card-back-2 {
    transform: rotate(-5deg) translateY(20px) translateX(16px) scale(0.9);
    opacity: 0.7;
}

.screenshot-stack:hover .card-back-1 {
    transform: rotate(-2.5deg) translateY(10px) translateX(8px) scale(0.95);
    opacity: 0.85;
}

.screenshot-stack:hover .card-top {
    transform: rotate(0deg) translateY(-2px) translateX(0px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Reduced Motion Fallback */
@media (prefers-reduced-motion: reduce) {
    .screenshot-card {
        transition: opacity 0.3s ease !important;
        animation: none !important;
    }
    
    .cycling-to-top,
    .cycling-to-middle,
    .cycling-to-back {
        animation: none !important;
    }
    
    .card-back-2,
    .card-back-1 {
        opacity: 0.4 !important;
        transform: translateY(4px) translateX(2px) scale(0.98) !important;
    }
    
    .screenshot-stack:hover .screenshot-card {
        transform: none !important;
    }
}

.service-icon {
    width: 70px;
    height: 70px;
    margin-bottom: 2rem;
    background: rgba(0, 102, 255, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 35px;
    height: 35px;
    color: var(--primary-color);
    stroke-width: 2;
}

.service-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--light-text);
}

.service-card p {
    color: var(--gray-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-link:hover {
    color: var(--secondary-color);
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--darker-bg);
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
.footer {
    background: var(--light-text);
    color: white;
    padding: 80px 0 30px;
}

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

.footer-brand h3 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
}

.link-group h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 600;
}

.link-group a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 4rem;
    }
    
    .hero-text {
        padding-top: 2rem;
        position: static;
        margin-bottom: 3rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero {
        min-height: 120vh;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }
    
    .hero-visual {
        height: auto;
    }
    
    .chat-messages {
        padding: 1rem 1rem 4rem 1rem;
        height: auto;
        max-width: 100%;
        opacity: 0;
        transform: translateY(50px);
        transition: opacity 0.6s ease, transform 0.6s ease;
        overflow: visible;
    }
    
    .chat-messages.visible {
        opacity: 1;
        transform: translateY(0);
    }
    
    .message {
        max-width: 95%;
        padding: 1rem;
        font-size: 0.9rem;
        min-height: 50px;
    }
    
    .scroll-indicator {
        position: fixed;
        bottom: 2vh;
        top: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        margin-top: 40px;
    }
    
    /* Mobile responsive services layout */
    .services-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        min-height: auto;
    }
    
    .screenshot-showcase {
        order: -1; /* Show screenshots first on mobile */
        padding: 1rem;
    }
    
    .screenshot-stack {
        width: min(500px, 85vw);
        height: min(350px, 60vw);
    }
    
    .screenshot-card::before {
        height: 28px;
    }
    
    .screenshot-card::after {
        top: 8px;
        left: 10px;
        width: 8px;
        height: 8px;
        box-shadow: 
            14px 0 0 #ffbd2e,
            28px 0 0 #27ca3f,
            0 0 0 1px rgba(0,0,0,0.1);
    }
    
    .screenshot-card img {
        height: calc(100% - 28px);
        margin-top: 28px;
    }
    
    .card-back-2 {
        transform: rotate(-3deg) translateY(12px) translateX(8px) scale(0.94);
    }
    
    .card-back-1 {
        transform: rotate(-1.5deg) translateY(6px) translateX(4px) scale(0.97);
    }
    
    .service-item {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .hero-buttons,
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .nav-container {
        padding: 1rem;
    }
    
    .main-container {
        padding: 0 20px;
    }
    
    .features,
    .services,
    .cta {
        padding: 80px 0;
    }
    
    .stats {
        padding: 60px 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .features,
    .services,
    .cta {
        padding: 60px 0;
    }
    
    .stats {
        padding: 50px 0;
    }
    
    /* Smaller mobile screenshot stack */
    .screenshot-stack {
        width: min(400px, 80vw);
        height: min(280px, 55vw);
    }
    
    .screenshot-card::before {
        height: 24px;
    }
    
    .screenshot-card::after {
        top: 7px;
        left: 8px;
        width: 7px;
        height: 7px;
        box-shadow: 
            12px 0 0 #ffbd2e,
            24px 0 0 #27ca3f,
            0 0 0 1px rgba(0,0,0,0.1);
    }
    
    .screenshot-card img {
        height: calc(100% - 24px);
        margin-top: 24px;
    }
    
    .card-back-2 {
        transform: rotate(-2.5deg) translateY(10px) translateX(6px) scale(0.95);
    }
    
    .card-back-1 {
        transform: rotate(-1.2deg) translateY(5px) translateX(3px) scale(0.98);
    }
    
    .service-item {
        padding: 1rem;
        gap: 0.8rem;
    }
    
    .service-item h3 {
        font-size: 1.2rem;
    }
    
    .service-item p {
        font-size: 0.9rem;
    }
}

/* Contact Page Styles */
.contact-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

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

.contact-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.contact-form-section {
    padding: 5rem 0;
    background: var(--surface-color);
}

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

.contact-info h2,
.contact-form h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.contact-icon {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-icon svg {
    width: 24px;
    height: 24px;
    color: white;
    stroke-width: 2;
}

.contact-details h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--gray-text);
    line-height: 1.6;
}

.contact-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2.5rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #ccc;
    border-radius: 10px;
    background: #f5f5f5;
    color: #333;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #777;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.2);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: var(--dark-bg);
    color: var(--text-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.checkbox-group label {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.4;
}

.offices {
    padding: 5rem 0;
}

.offices-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.office-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.office-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.office-type {
    font-size: 0.9rem;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    font-weight: 600;
}

.office-focus {
    font-size: 0.9rem;
    color: var(--gray-text);
    font-style: italic;
    margin-top: 1rem;
}

/* About Page Styles */
.about-hero {
    min-height: 50vh;
    display: flex;
    align-items: center;
}

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

.about-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero-content p {
    font-size: 1.2rem;
    color: var(--gray-text);
    line-height: 1.6;
}

.mission {
    padding: 5rem 0;
    background: var(--surface-color);
}

.mission-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    align-items: center;
}

.mission-text {
    text-align: left;
}

.mission-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mission-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-text);
    margin-bottom: 1.5rem;
}

/* Prompt Animation Styles */
.mission-animation {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.prompt-animation-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.prompt-bubble {
    position: absolute;
    min-height: 35px;
    padding: 0.5rem;
    border-radius: 10px;
    max-width: 200px;
    font-size: 0.7rem;
    line-height: 1.2;
    z-index: 10;
    transition: all 0.3s ease;
    text-align: left;
}


.prompt-bubble.normal {
    background: linear-gradient(135deg, 
        rgba(148, 163, 184, 0.15), 
        rgba(203, 213, 225, 0.1)
    );
    color: var(--light-text);
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
}


.prompt-bubble.adversary {
    background: linear-gradient(135deg, 
        rgba(220, 38, 38, 0.2), 
        rgba(239, 68, 68, 0.15)
    );
    color: #991b1b;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 20px;
    z-index: 100;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(220, 38, 38, 0.3);
}


.prompt-user {
    font-size: 0.7rem;
    opacity: 0.6;
    font-weight: 500;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--gray-text);
}

.prompt-bubble.adversary .prompt-user {
    color: #dc2626;
    opacity: 0.8;
}

.prompt-text {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--light-text);
    font-weight: 400;
}

.prompt-bubble.adversary .prompt-text {
    color: #991b1b;
    font-weight: 500;
}

.redacted {
    background: #374151;
    color: #374151;
    padding: 0 4px;
    border-radius: 2px;
    font-family: monospace;
    user-select: none;
}

/* Team Section */
.team {
    padding: 5rem 0;
    background: var(--dark-bg);
}

.team-member {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    align-items: start;
    margin-top: 3rem;
}

.member-image {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-color), #8B5CF6);
    padding: 3px;
}

.member-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 17px;
    display: block;
}

.member-info {
    padding: 2rem 0;
}

.member-info h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.member-title {
    font-size: 1.1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.member-bio {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.member-bio:last-child {
    margin-bottom: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .mission-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .mission-text {
        text-align: center;
    }
    
    .mission-animation {
        height: 400px;
    }
    
    .prompt-bubble {
        max-width: 180px;
        padding: 0.6rem;
        font-size: 0.75rem;
    }
    
    .prompt-text {
        font-size: 0.8rem;
    }
    
    .team-member {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .member-image {
        max-width: 250px;
        margin: 0 auto;
    }
    
    .member-image img {
        height: 320px;
    }
    
    .member-info {
        padding: 1rem 0;
    }
    
    .member-info h3 {
        font-size: 1.8rem;
    }
}

.values {
    padding: 5rem 0;
}

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

.value-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.1);
}

.value-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.value-icon svg {
    width: 30px;
    height: 30px;
    color: white;
    stroke-width: 2;
}

.value-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.value-card p {
    color: var(--gray-text);
    line-height: 1.6;
}

.team {
    padding: 5rem 0;
    background: var(--surface-color);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-member {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.member-photo {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    overflow: hidden;
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.team-member h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.member-title {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.member-bio {
    color: var(--gray-text);
    line-height: 1.6;
    font-size: 0.9rem;
}




/* Responsive Design for Contact & About Pages */
@media (max-width: 768px) {
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-hero-content h1,
    .about-hero-content h1 {
        font-size: 2rem;
    }
    
    .mission-text h2 {
        font-size: 2rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
    }
    
    .offices-grid,
    .values-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .value-icon {
        width: 50px;
        height: 50px;
    }
    
    .value-icon svg {
        width: 24px;
        height: 24px;
    }
}