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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: #3a3a3a;
    background: linear-gradient(135deg, #fefcf8 0%, #f7f5f0 50%, #f2efea 100%);
    overflow-x: hidden;
}

/* Subtle texture overlay */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(255,255,255,0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245,240,235,0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(250,248,243,0.2) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* Floating elements for subtle animation */
.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    width: 3px;
    height: 3px;
    background: rgba(138, 122, 107, 0.2);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 3s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 15%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) scale(1);
        opacity: 0.2;
    }
    50% { 
        transform: translateY(-15px) scale(1.1);
        opacity: 0.4;
    }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    backdrop-filter: blur(24px);
    background: rgba(254, 252, 248, 0.85);
    border-bottom: 1px solid rgba(58, 58, 58, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.25rem 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo {
    font-size: 1.5rem;
    font-weight: 500;
    color: #3a3a3a;
    text-decoration: none;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    position: relative;
}

.logo::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8a7a6b, #d4c7b8);
    transition: width 0.4s ease;
}

.logo:hover::after {
    width: 100%;
}

.logo:hover {
    color: #2a2a2a;
}

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

.nav-links a {
    text-decoration: none;
    color: #6a6a6a;
    font-weight: 400;
    font-size: 0.95rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #8a7a6b;
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #3a3a3a;
    transform: translateY(-1px);
}

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

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: #3a3a3a;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    transition: transform 0.2s ease;
}

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

/* Mobile Menu */
.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(254, 252, 248, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(58, 58, 58, 0.08);
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(58, 58, 58, 0.1);
}

.mobile-menu.active {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu a {
    display: block;
    color: #6a6a6a;
    text-decoration: none;
    padding: 1rem;
    border-bottom: 1px solid rgba(58, 58, 58, 0.08);
    font-weight: 400;
    transition: color 0.3s ease;
}

.mobile-menu a:hover {
    color: #3a3a3a;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 900px;
    animation: fadeInUp 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero h1 {
    font-size: clamp(2.75rem, 6vw, 4.5rem);
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #2a2a2a;
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #8a7a6b;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3s steps(30, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #8a7a6b; }
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem);
    color: #6a6a6a;
    margin-bottom: 4rem;
    font-weight: 300;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-scroll {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    color: #9a9a9a;
    font-size: 0.85rem;
    font-weight: 300;
    animation: gentle-bounce 3s infinite;
    transition: all 0.3s ease;
    text-decoration: none;
}

.cta-scroll:hover {
    color: #6a6a6a;
    transform: translateX(-50%) translateY(-2px);
}

/* Products Section */
.products {
    padding: 8rem 0 10rem;
    background: rgba(255, 255, 255, 0.4);
    position: relative;
    z-index: 1;
}

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

.section-title {
    text-align: center;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 4rem;
    color: #2a2a2a;
    letter-spacing: -0.02em;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Product Card */
.product-card {
    border-radius: 28px;
    padding: 3rem;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0,0,0,0.06),
        0 1px 1px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.product-card:hover {
    transform: translateY(-12px) rotate(0.5deg);
    box-shadow: 
        0 24px 64px rgba(0,0,0,0.12),
        0 8px 16px rgba(0,0,0,0.08);
}

.product-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 10;
}

.product-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.product-card:hover .product-icon {
    transform: rotate(5deg) scale(1.05);
}

.product-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: inherit;
}

/* Product-specific icon colors */
.bambooreader-card .product-icon {
    background: linear-gradient(135deg, #6B8E6B, #5A7C5A);
    color: white;
}

.lotus-card .product-icon {
    background: linear-gradient(135deg, #3730A3, #312E81);
    color: white;
}

.speakeasy-card .product-icon {
    background: linear-gradient(135deg, #B8866B, #A67356);
    color: white;
}

.xcodeassistant-card .product-icon {
    background: linear-gradient(135deg, #4A5568, #2D3748);
    color: white;
}

.contentflow-card .product-icon {
    background: #664EA3; /* Single purple color - warmer, softer than original */
    color: white;
    box-shadow: 0 4px 12px rgba(102, 78, 163, 0.25);
    transition: all 0.3s ease;
}

.contentflow-card:hover .product-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 8px 20px rgba(102, 78, 163, 0.35);
}

.product-title-group {
    flex: 1;
}

.product-title {
    font-size: 1.6rem;
    font-weight: 500;
    color: #2a2a2a;
    margin-bottom: 0.5rem;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.product-status {
    font-size: 0.9rem;
    color: #6a6a6a;
    font-weight: 300;
    opacity: 0.8;
}

.product-tagline {
    font-size: 1.1rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    z-index: 10;
}

.product-features {
    list-style: none;
    margin-bottom: 2.5rem;
    display: grid;
    gap: 0.75rem;
    flex: 1;
    position: relative;
    z-index: 10;
}

.product-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: #5a5a5a;
    line-height: 1.5;
    font-weight: 300;
    padding: 0;
    margin: 0;
}

.product-features li::before {
    content: '✓';
    color: #3a3a3a;
    font-weight: 600;
    margin-top: 0.1rem;
    flex-shrink: 0;
    margin-right: 0;
}

.product-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
    position: relative;
    z-index: 10;
}

.product-link {
    align-self: flex-start;
    padding: 0.9rem 1.8rem;
    background: #3a3a3a;
    border: 1px solid #3a3a3a;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 10;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.product-link:hover {
    background: #2a2a2a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.product-link.disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    border-color: #e5e5e5;
}

.product-link.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Coming Soon Card Special Styling */
.xcodeassistant-card {
    opacity: 0.8;
}

.speakeasy-card {
    opacity: 0.9;
}

/* Contentflow-specific styles - UPDATED */
.contentflow-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

.contentflow-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(102, 78, 163, 0.06); /* Single purple overlay */
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.contentflow-card:hover {
    transform: translateY(-12px) rotate(0.5deg);
    box-shadow: 
        0 24px 64px rgba(102, 78, 163, 0.15),
        0 8px 16px rgba(102, 78, 163, 0.08);
}

.contentflow-card .product-title {
    color: #2a2a2a;
}

.contentflow-card .product-tagline {
    color: #5a5a5a;
}

.contentflow-card .product-features li {
    color: #5a5a5a;
}

.contentflow-card .product-link {
    background: #3a3a3a; /* Black button to match other cards */
    color: white;
    border: 1px solid #3a3a3a;
    box-shadow: none; /* Remove special shadow */
    transition: all 0.3s ease;
}

.contentflow-card .product-link:hover {
    background: #2a2a2a; /* Darker black on hover */
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Standard black shadow */
}

/* Adjust animation delay for the new card */
.reveal.delay-5 {
    animation-delay: 0.5s;
}

/* About Section */
.about {
    padding: 10rem 0;
    background: linear-gradient(135deg, #f9f7f3 0%, #f4f1ec 100%);
    position: relative;
    z-index: 1;
}

.about-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 6rem;
    align-items: center;
}

.about-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 300;
    margin-bottom: 2.5rem;
    color: #2a2a2a;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

.about-text p {
    font-size: 1.15rem;
    color: #5a5a5a;
    margin-bottom: 1.8rem;
    line-height: 1.7;
    font-weight: 300;
}

.about-image {
    background: linear-gradient(135deg, #e8ddd3, #ddd2c7);
    border-radius: 24px;
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: #8a7a6b;
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(255,255,255,0.3) 0%, transparent 70%);
}

.about-image:hover {
    transform: scale(1.02) rotate(-0.5deg);
}

/* Footer */
footer {
    background: #2a2a2a;
    color: #e5e5e5;
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid #3a3a3a;
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2.5rem;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.footer-social-link:hover {
    transform: translateY(-3px);
}

.footer-social-icon {
    width: 24px;
    height: 24px;
    filter: brightness(0) saturate(100%) invert(100%);
    transition: all 0.3s ease;
}

.footer-social-link:hover .footer-social-icon {
    transform: scale(1.15);
    filter: brightness(0) saturate(100%) invert(90%);
}

.footer-content a {
    color: #b5b5b5;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-content a:hover {
    color: #e5e5e5;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Scroll reveal animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }

/* Responsive */
@media (max-width: 768px) {
    .nav-container {
        padding: 1rem 1.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }

    .products-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .hero {
        padding: 6rem 1.5rem 4rem;
    }
    
    .product-card {
        padding: 2rem;
    }

    .product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .product-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .products {
        padding: 6rem 0;
    }
    
    .about {
        padding: 6rem 0;
    }

    .container {
        padding: 0 1.5rem;
    }

    .footer-social {
        gap: 1.5rem;
    }

    .footer-social-icon {
        width: 22px;
        height: 22px;
    }
}

@media (max-width: 480px) {
    .product-card {
        padding: 1.5rem;
    }

    .product-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .product-title {
        font-size: 1.25rem;
    }
}