:root {
    --bg-color: #fcfcfc;
    --text-color: #1a1a1a;
    --accent-green: #8da370; /* Muted Sage Green */
    --accent-dark: #4a5d3f; /* Dark Olive */
    --accent-light: #dce6d3; /* Pale Green */
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Outfit', sans-serif;
}

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

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

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(252, 252, 252, 0.9);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 30px;
    height: 30px;
    color: var(--text-color);
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

nav {
    display: flex;
    gap: 2rem;
}

nav a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent-green);
}

.menu-btn {
    display: none;
    cursor: pointer;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 50px;
}

.main-title {
    font-family: var(--font-serif);
    font-size: 8rem;
    font-weight: 400;
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.subtitle {
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-dark);
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.3s forwards;
}

.hero-visual {
    margin-top: 3rem;
    opacity: 0;
    animation: fadeIn 1.5s ease-out 0.6s forwards;
}

.hero-spinner {
    width: 150px;
    height: 150px;
}

/* Introduction Section */
.introduction {
    display: flex;
    min-height: 80vh; /* Occupy significant vertical space */
}

.intro-visual {
    flex: 1;
    background-color: #f0f0f0; /* Fallback */
    background: linear-gradient(135deg, #e0eacc 0%, #cbdcb0 100%); /* Placeholder gradient matching the vibe */
    background-size: cover;
    background-position: center;
}

.intro-content {
    flex: 1;
    background-color: #dce6d3; /* Muted Green from image */
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--text-color);
}

.intro-title {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    font-weight: 400;
    margin-bottom: 3rem;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.intro-text {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.8;
    color: #333;
    max-width: 600px;
}



/* Technology Section */
.technology {
    padding: 6rem 4rem;
    background-color: var(--bg-color);
}

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

.tech-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.tech-header p {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #666;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    border-radius: 20px;
    padding: 3rem;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 400px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s ease;
}

.tech-card:hover {
    transform: translateY(-10px);
}

.card-visual {
    background-color: #4a5d3f; /* Deep Olive */
    background: linear-gradient(135deg, #4a5d3f 0%, #2e3b26 100%);
}

.card-patch {
    background-color: #8da370; /* Sage Green */
    background: linear-gradient(135deg, #8da370 0%, #6b8255 100%);
}

.tech-card h3 {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.tech-card p {
    font-size: 1.05rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Decorative Card Elements */
.card-visual-element, .patch-shape {
    position: absolute;
    bottom: -20px;
    right: -20px;
    opacity: 0.2;
}

.pulse-ring {
    width: 150px;
    height: 150px;
    border: 2px solid white;
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.patch-shape {
    width: 100px;
    height: 100px;
    background-color: white;
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: morph 6s infinite ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.5); opacity: 0; }
}

@keyframes morph {
    0% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
    50% { border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%; }
    100% { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
}

/* Gallery / Collection */
.gallery {
    padding: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.gallery-item {
    height: 400px;
    width: 100%;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.green-1 {
    background: linear-gradient(45deg, #4a5d3f, #2e3b26);
    /* Placeholder for the dark textured image */
}
.green-2 {
    background: linear-gradient(to right, #dce6d3, #8da370);
}
.green-3 {
    background: radial-gradient(circle at center, #8da370, #4a5d3f);
}

.collage-strip {
    display: flex;
    gap: 1rem;
    height: 200px;
}

.strip-item {
    flex: 1;
    background-color: #ddd;
    transition: flex 0.5s ease;
}

.strip-item:hover {
    flex: 2;
}

.img-1 { background-color: #333; }
.img-2 { background-color: var(--accent-light); }
.img-3 { background-color: #999; }
.img-4 { background-color: var(--accent-dark); }
.img-5 { background-color: #ccc; }


/* Icons Display / Metrics */
.icons-display {
    padding: 6rem 4rem;
    text-align: center;
    background-color: #fafafa;
}

.icons-display h2 {
    font-family: var(--font-serif);
    margin-bottom: 4rem;
    font-size: 2.5rem;
    color: var(--text-color);
}

.icon-grid {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.icon-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.metric-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #888;
}

.icon-card {
    width: 80px;
    height: 80px;
    border: 1px solid #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
}

.icon-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-green);
}

.icon-card img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.7;
}

/* Smart Analytics Section */
.smart-analytics {
    padding: 6rem 4rem;
    background-color: #dce6d3; /* Pale Green Background */
    display: flex;
    justify-content: center;
}

.analytics-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
}

.analytics-text {
    flex: 1;
}

.analytics-text h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-dark);
}

.analytics-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 500px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    font-family: var(--font-serif);
    font-size: 1.1rem;
    color: var(--accent-dark);
}

.analytics-visual {
    flex: 1;
    display: flex;
    justify-content: center;
}

.glass-card {
    width: 340px; /* Widened to fit 5 nav items comfortably */
    height: 420px;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 28px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
}

.glass-header {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.glass-chart {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    height: 150px;
}

.bar {
    flex: 1;
    background: rgba(255,255,255,0.5);
    border-radius: 4px;
}

.bar.active {
    background: var(--accent-dark);
}

.app-nav {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.3);
    margin-top: auto;
    position: relative; /* Ensure z-index works contextually */
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
    position: relative;
    cursor: pointer;
    min-width: 0; /* Allow shrinking */
}

.nav-icon {
    width: 24px;
    height: 24px;
    opacity: 0.6;
    transition: all 0.3s;
}

.nav-item:hover .nav-icon {
    opacity: 1;
    transform: translateY(-2px);
}

.nav-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: #555;
    opacity: 0.9;
    white-space: nowrap; /* Prevent wrapping */
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Central AI Action Button */
.nav-item.ai-action {
    flex: 0 0 70px; /* Fixed width for the button container */
    margin-top: -35px; /* Pull up to float */
    overflow: visible; /* Allow button to overflow container */
    align-items: center;
    justify-content: center;
}

/* Specificity Boost: Use .nav-icon.action-btn */
.nav-icon.action-btn {
    width: 65px;
    height: 65px;
    opacity: 1;
    background: #34d399; /* Emerald Green base */
    background: linear-gradient(135deg, #34d399 0%, #059669 100%); /* Emerald Gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(16, 185, 129, 0.4); /* Shadow to match */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 4px solid #edf3e6; /* Match card background for cutout effect */
    z-index: 10;
}

.action-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.6);
}

.nav-icon.action-btn img {
    width: 45%;
    height: 45%;
    filter: brightness(0); /* Black icon */
    display: block; /* Eliminate inline spacing */
}

/* Adjust labels for non-action items */
.nav-item:not(.ai-action) .nav-label {
    margin-top: 2px;
}

/* Use Cases Section */
.use-cases {
    padding: 6rem 4rem;
    background-color: white;
}

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

.uc-header h2 {
    font-family: var(--font-serif);
    font-size: 3rem;
    color: #1a1a1a;
}

.uc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.uc-card {
    padding: 2rem;
    background: #fcfcfc;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    transition: transform 0.3s;
}

.uc-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-light);
}

.uc-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent-dark);
}

.uc-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #666;
}

/* About */
.about {
    padding: 4rem;
    text-align: center;
    background-color: #fafafa;
}

.about-text {
    max-width: 600px;
    margin: 0 auto;
}

.about-text h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-style: italic;
    color: #888;
}

.about-text p {
    font-size: 0.9rem;
}

/* Footer */
footer {
    padding: 4rem;
    background-color: #1a1a1a;
    color: #fff;
    display: block; /* Override previous flex */
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 4rem;
    border-bottom: 1px solid #333;
    padding-bottom: 3rem;
}

.footer-brand .footer-logo {
    font-family: var(--font-serif);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.footer-brand p {
    color: #888;
    font-size: 0.9rem;
}

.footer-newsletter span {
    display: block;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #ccc;
}

.newsletter-input {
    display: flex;
    border-bottom: 1px solid #666;
}

.newsletter-input input {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    width: 200px;
    outline: none;
}

.newsletter-input button {
    background: transparent;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
}

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

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

.footer-links a {
    text-decoration: none;
    color: #888;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    font-size: 0.8rem;
    color: #444;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    header {
        padding: 1.5rem;
    }
    
    .main-title {
        font-size: 15vw; /* Fluid font size for title */
        line-height: 1.1;
    }
    
    .subtitle {
        font-size: 1rem;
    }

    nav {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(252, 252, 252, 0.98);
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        gap: 1.5rem;
        border-bottom: 1px solid #eee;
        
        /* Hidden state for simple toggle */
        display: none; 
    }
    
    nav.active {
        display: flex;
    }

    .menu-btn {
        display: block;
    }

    .gallery, .icons-display, .about, footer {
        padding: 3rem 1.5rem;
    }

    .collage-strip {
        flex-direction: column;
        height: auto;
    }

    .strip-item {
        height: 120px;
    }
    
    .icon-grid {
        gap: 1.5rem;
    }
    
    footer {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }

    .introduction {
        flex-direction: column;
        min-height: auto;
    }

    .intro-visual {
        min-height: 300px;
    }

    .intro-content {
        padding: 3rem 1.5rem;
    }

    .intro-title {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

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

    .tech-card {
        min-height: 300px;
        padding: 2rem;
    }

    .tech-header h2 {
        font-size: 2rem;
    }

    /* Mobile Updates for New Sections */
    .icons-display {
        padding: 3rem 1.5rem;
    }
    
    .icon-grid {
        gap: 1.5rem;
    }

    .analytics-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .analytics-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .uc-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
        align-items: center;
    }

    .newsletter-input {
        justify-content: center;
    }
}

/* Assets Page Styles */
.assets-page {
    padding-top: 100px;
    background-color: var(--bg-color);
    min-height: 100vh;
}

.assets-title {
    text-align: center;
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 4rem;
    color: var(--accent-dark);
}

.assets-section {
    max-width: 1000px;
    margin: 0 auto 6rem auto;
    padding: 0 2rem;
}

.assets-section h2 {
    font-family: var(--font-serif);
    font-size: 2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 1rem;
    margin-bottom: 3rem;
    color: #333;
}

/* Typography Assets */
.font-group {
    margin-bottom: 3rem;
}

.font-group h3 {
    font-family: var(--font-sans);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.font-meta {
    color: #888;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.font-demo.serif {
    font-family: var(--font-serif);
}

.font-demo.sans {
    font-family: var(--font-sans);
}

.font-demo h1, .font-demo h2, .font-demo h3 { margin-bottom: 0.5rem; }

/* Color Swatches */
.swatch-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

.swatch {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    font-size: 0.9rem;
}

.swatch span { font-weight: 500; display: block; margin-bottom: 5px; }
.swatch code { font-size: 0.75rem; opacity: 0.8; font-family: monospace; }

/* Gradient Grid */
.gradient-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.gradient-bar {
    width: 100%;
    height: 80px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    padding: 0 2rem;
    font-weight: 500;
}

/* Icon Grid */
.assets-icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 2rem;
}

.asset-icon-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    transition: transform 0.2s;
}

.asset-icon-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-green);
}

.asset-icon-card img {
    width: 50px;
    height: 50px;
}

.asset-icon-card span {
    font-size: 0.8rem;
    color: #666;
    font-family: monospace;
}
