@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --brand-bg: #FAFBFA; /* Very light cool grey/green tint */
    --brand-surface: #FFFFFF;
    --brand-surface-alt: #F0F2F1; 
    
    /* EXOLAYER Brand Colors */
    --brand-primary: #3D7F67; /* Brand Green */
    --brand-secondary: #CC9F5F; /* Brand Gold */
    --brand-dark: #5F6368; /* Brand Grey */
    
    --brand-surface-dark: var(--brand-dark); 
    --brand-surface-dark-alt: #4d5155; 
    --brand-accent: var(--brand-primary);
    
    --text-primary: #212529;
    --text-secondary: #5F6368;
    --text-tertiary: #8E9296;
    --text-light: #FFFFFF;

    --border-color: #f5f5f4; /* stone-100 */
    --border-color-dark: rgba(255, 255, 255, 0.1);
    
    --transition-fast: 0.2s ease;
    --transition-medium: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

/* Base Reset & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--brand-bg);
    color: var(--text-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

.section-padding {
    padding-top: 100px;
    padding-bottom: 100px;
    scroll-margin-top: 80px;
}

.min-h-screen {
    min-height: 100vh;
}

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

/* Navigation */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    padding: 1rem 1.5rem;
    background: rgba(252, 250, 247, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition-medium);
}

.nav-container {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .nav-container {
        flex-direction: row;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    background-color: var(--brand-surface-dark);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-weight: 800;
    font-size: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.05em;
}

.logo-text span {
    font-weight: 300;
    color: var(--text-tertiary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links {
        gap: 2.5rem;
    }
}

.nav-link {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    transition: color var(--transition-fast), font-weight var(--transition-fast);
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

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

.nav-link.active {
    color: var(--brand-accent);
    font-weight: 800;
    border-bottom-color: var(--brand-accent);
}

/* Typography */
.heading-xl {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .heading-xl {
        font-size: 4.5rem;
    }
}

.heading-lg {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.heading-md {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 36rem;
    line-height: 1.6;
}

.overline {
    display: inline-block;
    padding: 0.25rem 1rem;
    background-color: var(--brand-surface-alt);
    border-radius: 9999px;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem 2.5rem;
    border-radius: 1rem;
    font-weight: 700;
    transition: all var(--transition-medium);
}

.btn-primary {
    background-color: var(--brand-primary);
    color: var(--text-light);
    box-shadow: 0 10px 20px rgba(61, 127, 103, 0.15);
}

.btn-primary:hover {
    background-color: #2F6350;
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(61, 127, 103, 0.2);
}

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

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

/* Hero Section Specifics */
.hero-visual {
    position: relative;
}

/* Interactive 3D Exploding Logo Toy */
.toy-container {
    position: relative;
    width: 100%;
    max-width: 600px;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    cursor: grab;
    z-index: 10;
}

.toy-container:active {
    cursor: grabbing;
}

.toy-svg {
    width: 100%;
    height: 100%;
    transform: scale(1.2);
    overflow: visible;
    pointer-events: none;
}

.toy-rotator {
    transform-style: preserve-3d;
    transform-origin: center center;
    transition: transform 0.1s ease-out; /* Fast, smooth follow for mousemove */
}

/* Returning to resting state smoothly */
.toy-container.resting .toy-rotator {
    transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Layer base styles */
.toy-layer {
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.6s ease;
    transform-origin: center center;
}

/* Default state: slightly stacked in Z space */
#layer-grey {
    transform: translateZ(-10px);
}
#layer-gold {
    transform: translateZ(0px);
}
#layer-green {
    transform: translateZ(10px);
}

/* Exploded State (triggered via JS) */
.toy-container.exploded #layer-grey {
    transform: translateZ(-80px) translateY(30px) scale(0.95);
    filter: drop-shadow(0 20px 20px rgba(0,0,0,0.3));
}
.toy-container.exploded #layer-gold {
    transform: translateZ(0px);
    filter: drop-shadow(0 40px 30px rgba(0,0,0,0.2));
}
.toy-container.exploded #layer-green {
    transform: translateZ(80px) translateY(-30px) scale(1.05);
    filter: drop-shadow(0 60px 40px rgba(0,0,0,0.1));
}

.core-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(61, 127, 103, 0.08) 0%, rgba(255,255,255,0) 70%);
    z-index: -1;
    animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(1); opacity: 0.5; }
}

.stat-floating {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    background-color: var(--brand-surface);
    padding: 1.5rem;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    display: none;
    animation: float 6s ease-in-out infinite;
}

@media (min-width: 768px) {
    .stat-floating {
        display: block;
    }
}

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

.stat-value {
    font-size: 1.875rem;
    font-weight: 800;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Products Section */
.bg-alt {
    background-color: var(--brand-surface-alt);
}

.tabs-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
}

.tab-btn {
    padding: 0.75rem 2rem;
    border-radius: 1rem;
    font-weight: 700;
    font-size: 0.875rem;
    background-color: var(--brand-surface);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    border-color: var(--text-tertiary);
}

.tab-btn.active {
    background-color: var(--brand-accent);
    color: var(--text-light);
    border-color: var(--brand-accent);
    box-shadow: var(--shadow-md);
}

.mode-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--border-color);
}

.mode-btn {
    padding-bottom: 1rem;
    font-weight: 700;
    color: var(--text-tertiary);
    border-bottom: 2px solid transparent;
    transition: all var(--transition-fast);
}

.mode-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

.mode-btn:hover:not(.active) {
    color: var(--text-secondary);
}

.viewport-content {
    min-height: 500px;
}

.chart-wrapper {
    background-color: var(--brand-surface);
    padding: 2rem;
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    position: relative;
    width: 100%;
    height: 350px;
    max-height: 400px;
}

.feature-list {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.feature-check {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.project-card {
    padding: 2.5rem;
    background-color: var(--brand-surface);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all var(--transition-medium);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-client {
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.project-divider {
    width: 3rem;
    height: 0.25rem;
    background-color: var(--brand-surface-alt);
    margin-bottom: 1rem;
}

.project-impact {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2rem;
}

.project-link {
    font-size: 0.875rem;
    font-weight: 700;
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 0.25rem;
    transition: border-color var(--transition-fast);
}

.project-card:hover .project-link {
    border-bottom-color: transparent;
}

/* About Section */
.about-divider {
    width: 5rem;
    height: 0.25rem;
    background-color: var(--text-primary);
    margin-bottom: 2rem;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.75;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.dna-box {
    background: linear-gradient(145deg, var(--brand-surface-dark), var(--brand-surface-dark-alt));
    border-radius: 3rem;
    padding: 3rem;
    color: var(--text-light);
    box-shadow: var(--shadow-xl);
}

.dna-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}

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

.dna-item {
    display: flex;
    gap: 1rem;
}

.dna-number {
    color: var(--text-secondary);
    font-weight: 800;
}

.dna-content h4 {
    font-weight: 700;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.dna-content p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Contact Section */
.bg-dark {
    background-color: var(--brand-surface-dark);
    color: var(--text-light);
}

.contact-card {
    background-color: var(--brand-surface-dark-alt);
    border-radius: 3rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
}

@media (min-width: 1024px) {
    .contact-card {
        flex-direction: row;
    }
}

.contact-info {
    padding: 4rem;
    flex: 1;
}

.contact-info p {
    color: var(--text-tertiary);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contact-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.contact-method h4 {
    font-weight: 700;
}

.contact-method p {
    color: var(--text-tertiary);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.contact-form-container {
    padding: 4rem;
    background-color: var(--brand-surface);
    color: var(--text-primary);
    flex: 1;
}

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

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.5rem;
}

.form-input {
    width: 100%;
    background-color: var(--brand-surface-alt);
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.75rem;
    outline: none;
    transition: all var(--transition-fast);
}

.form-input:focus {
    border-color: var(--brand-surface-dark);
    box-shadow: 0 0 0 2px rgba(28, 25, 23, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--brand-surface-dark);
    color: var(--text-light);
    font-weight: 700;
    border-radius: 1rem;
    margin-top: 1rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-md);
}

.btn-submit:hover {
    background-color: #333;
    transform: scale(1.02);
}

.btn-submit:active {
    transform: scale(0.98);
}

/* Footer Redesign */
.footer {
    padding: 4rem 1.5rem;
    border-top: 1px solid var(--border-color);
    background-color: var(--brand-surface);
}

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

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-heading {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.footer-text, .footer-link {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-link {
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

.footer-socials {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: var(--text-secondary);
    transition: fill var(--transition-fast);
    transform: translateY(0);
}

.social-icon:hover {
    fill: var(--brand-primary);
    transform: translateY(-2px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Product Section Enhancements */
.product-tagline {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    background-color: rgba(61, 127, 103, 0.08);
    border: 1px solid rgba(61, 127, 103, 0.25);
    color: var(--brand-primary);
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

/* Projects portfolio grid — flexbox so cards always center */
.projects-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Enhanced project cards — 3 per row, centered */
.project-card {
    background-color: var(--brand-surface);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    max-width: 420px;
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(61, 127, 103, 0.2);
}

.project-image {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-color: var(--brand-surface-alt);
}

.project-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1c1f1e, #2a3330);
    color: rgba(255,255,255,0.4);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.project-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.project-divider {
    height: 1px;
    background-color: var(--border-color);
    margin: 0.75rem 0;
}

.project-impact {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-detail {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    line-height: 1.5;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-color);
}

/* Overview visual panel — image on top, small chart below */
.overview-visual-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.overview-image-wrap {
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    flex: 1;
}

.overview-image {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-medium);
}

.overview-image-wrap:hover .overview-image {
    transform: scale(1.04);
}

.overview-chart {
    height: 200px !important;
    max-height: 200px;
    border-radius: 1.25rem;
}

/* Founder Cards */
.founder-card {
    background-color: var(--brand-surface);
    border-radius: 1.5rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all var(--transition-medium);
    display: flex;
    flex-direction: column;
    flex: 0 1 calc(50% - 1.5rem);
    min-width: 280px;
    max-width: 500px;
}

.founder-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: rgba(61, 127, 103, 0.2);
}

.founder-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    background-color: var(--brand-surface-alt);
}

.founder-info {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.founder-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.founder-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.founder-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

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

/* Accessibility: Keyboard Focus Styles */
:focus-visible {
    outline: 3px solid var(--brand-primary);
    outline-offset: 2px;
    border-radius: 4px;
}

.btn:focus-visible {
    outline-color: var(--brand-secondary);
}

/* Form UX Styles */
.required {
    color: #e53e3e;
    font-weight: bold;
    margin-left: 2px;
}

.form-success-msg {
    background-color: rgba(61, 127, 103, 0.1);
    border: 1px solid var(--brand-primary);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeIn 0.4s ease-out;
}

.form-success-msg .success-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background-color: var(--brand-primary);
    color: white;
    font-size: 1.5rem;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.form-success-msg h4 {
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.form-success-msg p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* Button Loading State */
.btn-submit.loading .btn-text {
    opacity: 0;
}

.btn-submit.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-top: -10px;
    margin-left: -10px;
    border: 3px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Hero Sectors & Capabilities Pills */
.hero-pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: 0.5rem;
}

.hero-pill {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: var(--brand-surface);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.hero-pill.solid {
    background-color: rgba(61, 127, 103, 0.05);
    border: 1px solid rgba(61, 127, 103, 0.2);
    color: var(--brand-primary);
}

.hero-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* --- MOBILE RESPONSIVE OVERRIDES --- */
@media (max-width: 768px) {
    /* 1. Spacing & Grids */
    .section-padding {
        padding-top: 60px;
        padding-bottom: 60px;
    }
    
    .grid-2 {
        gap: 2rem;
    }

    /* 2. Typography Scaling */
    .heading-xl {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }
    
    .heading-lg {
        font-size: 2rem;
    }
    
    .heading-md {
        font-size: 1.75rem;
    }
    
    .subtitle {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    /* 3. Header & Navigation */
    .header {
        padding: 0.75rem 1rem;
    }
    
    .nav-container {
        gap: 0.75rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.75rem;
    }
    
    .nav-link {
        font-size: 0.65rem;
    }

    /* 4. Hero Section */
    #home .grid-2 > div:first-child {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-group {
        justify-content: center;
        width: 100%;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
        padding: 1rem 1.5rem;
    }
    
    /* Shrink the 3D toy so it fits the screen */
    .toy-container {
        max-width: 280px;
        margin: 0 auto;
    }

    /* 5. Contact Section */
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-card {
        flex-direction: column;
    }
    
    /* 6. Tabs & Products */
    .tabs-container {
        gap: 0.5rem;
    }
    
    .tab-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-card {
        flex: 1 1 100%;
        max-width: 100%;
    }

    /* Founders grid usually flex wraps, but let's ensure it stacks */
    .founders-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

/* --- LEGAL MODAL --- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

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

.modal-container {
    background-color: var(--brand-surface);
    width: 90%;
    max-width: 700px;
    max-height: 85vh;
    border-radius: 1.5rem;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    transform: translateY(30px);
    transition: transform var(--transition-fast);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--bg-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-tertiary);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.modal-close:hover {
    color: var(--brand-primary);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.modal-body h3 {
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.modal-body p {
    margin-bottom: 1rem;
}
