/* SecondLife Technologies Corporate Styling
 * Author: Antigravity Code Assistant
 * Date: June 2026
 */

/* ==========================================================================
   1. Theme System & Global Variables
   ========================================================================== */
:root {
    /* Color Palette (HSL tokens for color harmony) */
    --bg-primary: 230, 25%, 5%;       /* Deep charcoal/navy #06070a */
    --bg-secondary: 230, 20%, 9%;     /* Slate gray #0c0e14 */
    --bg-tertiary: 230, 18%, 14%;     /* Lighter gray #181b24 */
    
    --accent-cyan: 184, 100%, 50%;     /* Vibrant cyan #00f2fe */
    --accent-blue: 206, 100%, 65%;     /* Electric blue #4facfe */
    --accent-purple: 262, 80%, 60%;    /* Tech purple #9f3dfa */
    --accent-red: 358, 80%, 50%;       /* Accent red #e61919 */
    --accent-green: 145, 80%, 45%;     /* Eco green #18c262 */
    
    /* Text colors */
    --text-primary: 210, 20%, 95%;     /* Off-white #f0f2f5 */
    --text-secondary: 215, 15%, 70%;   /* Slate gray #a3acb9 */
    --text-muted: 215, 10%, 45%;       /* Darker slate #687280 */
    
    /* Glassmorphism settings */
    --glass-bg: rgba(12, 14, 20, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Structural variables */
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --max-width: 1200px;
    --header-height: 80px;
}

/* ==========================================================================
   2. Reset & General Setup
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: hsl(var(--bg-primary));
    color: hsl(var(--text-primary));
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--bg-primary));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--bg-tertiary));
    border: 2px solid hsl(var(--bg-primary));
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsla(var(--accent-cyan), 0.5);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    color: #ffffff;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Inline copy links styling */
p a, span a, .partner-logo a {
    color: hsl(var(--accent-cyan));
    border-bottom: 1px dashed hsla(var(--accent-cyan), 0.3);
    padding-bottom: 1px;
}
p a:hover, span a:hover, .partner-logo a:hover {
    color: #ffffff;
    border-bottom-color: #ffffff;
}

/* ==========================================================================
   3. Background Glow Accents
   ========================================================================== */
.glow-bg {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
    pointer-events: none;
    z-index: -1;
}
.glow-1 {
    top: 5%;
    left: -10%;
    background: radial-gradient(circle, hsla(var(--accent-cyan), 0.8) 0%, transparent 70%);
}
.glow-2 {
    top: 35%;
    right: -10%;
    background: radial-gradient(circle, hsla(var(--accent-purple), 0.8) 0%, transparent 70%);
}
.glow-3 {
    bottom: 10%;
    left: 20%;
    background: radial-gradient(circle, hsla(var(--accent-blue), 0.8) 0%, transparent 70%);
}

/* ==========================================================================
   4. Layout Helpers & Containers
   ========================================================================== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
}

.grid-2-simple {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

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

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

.text-green {
    color: hsl(var(--accent-green));
}

.text-gradient {
    background: linear-gradient(135deg, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-blue)) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   5. Buttons & Navigation
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--border-radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-fast);
    border: none;
    font-family: 'Outfit', sans-serif;
}

.btn-sm {
    padding: 8px 18px;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-blue)) 100%);
    color: hsl(var(--bg-primary));
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.45);
}
.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: hsla(230, 15%, 20%, 0.5);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}
.btn-secondary:hover {
    background: hsla(230, 15%, 25%, 0.7);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
    background: transparent;
    color: hsl(var(--accent-cyan));
    border: 1px solid hsla(var(--accent-cyan), 0.3);
}
.btn-outline:hover {
    background: hsla(var(--accent-cyan), 0.05);
    border-color: hsl(var(--accent-cyan));
}

.btn-glow {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}
.btn-glow:hover::before {
    transform: translateX(100%);
}
.btn-glow:hover {
    border-color: hsl(var(--accent-cyan));
    box-shadow: 0 0 10px hsla(var(--accent-cyan), 0.3);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* ==========================================================================
   6. Header Navigation CSS
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(12px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition-fast);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

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

.logo-icon {
    transition: transform var(--transition-smooth);
}
.logo-container:hover .logo-icon {
    transform: rotate(45deg);
}

.logo-text {
    display: flex;
    flex-direction: column;
    font-family: 'Outfit', sans-serif;
}
.brand-name {
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
    color: #ffffff;
    letter-spacing: -0.01em;
}
.brand-sub {
    font-size: 0.75rem;
    font-weight: 500;
    color: hsl(var(--text-secondary));
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: hsl(var(--text-secondary));
    position: relative;
    padding: 6px 0;
}
.nav-link:hover {
    color: #ffffff;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, hsl(var(--accent-cyan)), hsl(var(--accent-blue)));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--transition-fast);
}
.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.mobile-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 1001;
}
.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
    transition: var(--transition-fast);
}

/* ==========================================================================
   7. Hero Section
   ========================================================================== */
.hero-section {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.badge-new {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: hsla(var(--accent-cyan), 0.1);
    border: 1px solid hsla(var(--accent-cyan), 0.25);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    color: hsl(var(--accent-cyan));
    margin-bottom: 24px;
    font-family: 'Outfit', sans-serif;
}
.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: hsl(var(--accent-cyan));
    box-shadow: 0 0 8px hsl(var(--accent-cyan));
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 40px;
    max-width: 580px;
    font-weight: 400;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 32px;
}
.stat-item {
    display: flex;
    flex-direction: column;
}
.stat-num {
    font-size: 1.8rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
}
.stat-label {
    font-size: 0.8rem;
    color: hsl(var(--text-secondary));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 4px;
}

/* Hero visual / Dashboard mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.dashboard-mockup {
    width: 100%;
    max-width: 460px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: 0 20px 50px var(--glass-shadow);
    overflow: hidden;
    backdrop-filter: blur(16px);
    transition: transform var(--transition-smooth);
}
.dashboard-mockup:hover {
    transform: translateY(-8px) rotate(1deg);
}

.dashboard-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 14px 20px;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dashboard-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.dashboard-header .dot.red { background-color: #ff5f56; }
.dashboard-header .dot.yellow { background-color: #ffbd2e; }
.dashboard-header .dot.green { background-color: #27c93f; }
.dashboard-header .title {
    margin-left: 12px;
    font-size: 0.75rem;
    color: hsl(var(--text-secondary));
    font-family: monospace;
}

.dashboard-body {
    padding: 24px;
}

.db-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.db-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 16px;
}
.db-card.full {
    grid-column: span 2;
}
.db-card.col-2 {
    grid-column: span 2;
}

.db-card h3 {
    font-size: 0.95rem;
    margin-bottom: 12px;
    color: #ffffff;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, hsl(var(--accent-cyan)), hsl(var(--accent-blue)));
    border-radius: 10px;
}

.db-stats-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: hsl(var(--text-secondary));
}

.db-label {
    font-size: 0.75rem;
    color: hsl(var(--text-secondary));
    display: block;
    margin-bottom: 6px;
}

.db-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
}

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

.agent-avatar-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 12px 0;
    position: relative;
    width: 100%;
}

.human-avatar-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: hsl(var(--accent-purple));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    box-shadow: 0 0 10px hsla(var(--accent-purple), 0.4);
    z-index: 2;
}

.agent-link-line {
    flex-grow: 1;
    height: 2px;
    background: dashed rgba(255, 255, 255, 0.2);
    margin: 0 4px;
    border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.agent-avatar-circle {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: hsla(var(--accent-cyan), 0.15);
    color: hsl(var(--accent-cyan));
    border: 1px solid hsla(var(--accent-cyan), 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
    z-index: 2;
}

.agent-caption {
    font-size: 0.75rem;
    color: hsl(var(--text-muted));
}

/* ==========================================================================
   8. Studio Banner Section
   ========================================================================== */
.studio-banner {
    background: rgba(0, 0, 0, 0.2);
    border-y: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
}

.banner-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.banner-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.15em;
}
.logos-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
}
.partner-logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: hsl(var(--text-secondary));
    letter-spacing: -0.01em;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}
.partner-logo:hover {
    opacity: 1;
}

/* ==========================================================================
   9. General Sections & Global Cards
   ========================================================================== */
.section {
    padding: 100px 0;
    position: relative;
}

.bg-darker-grey {
    background-color: hsl(var(--bg-secondary));
}

.section-header {
    max-width: 650px;
    margin: 0 auto 60px auto;
}

.section-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--accent-cyan));
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 18px;
}

.section-lead {
    font-size: 1.1rem;
    color: hsl(var(--text-secondary));
}

.body-text {
    font-size: 1rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 20px;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 30px var(--glass-shadow);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.glass-card:hover {
    border-color: rgba(0, 242, 254, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 15px rgba(0, 242, 254, 0.05);
}

/* Feature cards in About Section */
.feature-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-card:hover {
    transform: translateY(-6px);
}
.card-icon {
    width: 48px;
    height: 48px;
    background: hsla(var(--accent-cyan), 0.1);
    color: hsl(var(--accent-cyan));
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid hsla(var(--accent-cyan), 0.2);
}

.feature-card h3 {
    font-size: 1.3rem;
}

.feature-card p {
    color: hsl(var(--text-secondary));
    font-size: 0.95rem;
}

/* ==========================================================================
   10. Operating Model Details
   ========================================================================== */
.model-split {
    display: flex;
    gap: 32px;
    margin-top: 32px;
}
.model-col {
    flex: 1;
}
.model-col h4 {
    font-size: 1rem;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
}

.clean-list {
    list-style: none;
}
.clean-list li {
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-icon {
    color: hsl(var(--accent-blue));
    font-weight: bold;
}
.agent-check {
    font-size: 1rem;
}

/* Flow diagram styles */
.flow-diagram-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flow-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 450px;
}

.flow-node {
    width: 100%;
    padding: 20px;
    border-radius: var(--border-radius-sm);
    text-align: center;
    border: 1px solid var(--glass-border);
    background-color: rgba(255, 255, 255, 0.02);
}

.human-node {
    background: rgba(159, 61, 250, 0.08);
    border-color: hsla(var(--accent-purple), 0.25);
    box-shadow: 0 0 20px rgba(159, 61, 250, 0.05);
}

.destination-node {
    background: rgba(0, 242, 254, 0.05);
    border-color: hsla(var(--accent-cyan), 0.25);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.05);
}

.flow-bus {
    display: flex;
    gap: 12px;
    width: 100%;
    position: relative;
}

.agent-node {
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.85rem;
    padding: 12px 8px;
    border-color: rgba(255, 255, 255, 0.08);
}
.agent-node:hover {
    border-color: hsla(var(--accent-cyan), 0.5);
    transform: scale(1.02);
    transition: var(--transition-fast);
}

.flow-arrow {
    width: 2px;
    height: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0.5) 100%);
    position: relative;
}

.node-label {
    display: block;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}
.agent-node .node-label {
    font-size: 0.85rem;
}

.node-desc {
    display: block;
    font-size: 0.75rem;
    color: hsl(var(--text-secondary));
    margin-top: 4px;
}

.flex-1 { flex: 1; }

/* ==========================================================================
   11. Brand Portfolio (Rollout Waves)
   ========================================================================== */
.wave-filters {
    display: inline-flex;
    background: hsla(230, 15%, 20%, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 40px;
    margin-bottom: 24px;
}

.wave-filter {
    background: transparent;
    color: hsl(var(--text-secondary));
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    font-size: 0.88rem;
    transition: var(--transition-fast);
}
.wave-filter:hover {
    color: #ffffff;
}
.wave-filter.active {
    background: linear-gradient(135deg, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-blue)) 100%);
    color: hsl(var(--bg-primary));
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.portfolio-card {
    display: flex;
    flex-direction: column;
    position: relative;
    padding-top: 40px;
}

.portfolio-card.hidden {
    display: none;
}

.card-wave-badge {
    position: absolute;
    top: 16px;
    left: 24px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}
.card-wave-badge.wave0 {
    background: hsla(var(--accent-cyan), 0.15);
    color: hsl(var(--accent-cyan));
    border: 1px solid hsla(var(--accent-cyan), 0.3);
}
.card-wave-badge.wave1 {
    background: hsla(var(--accent-blue), 0.15);
    color: hsl(var(--accent-blue));
    border: 1px solid hsla(var(--accent-blue), 0.3);
}
.card-wave-badge.wave2 {
    background: hsla(var(--accent-purple), 0.15);
    color: hsl(var(--accent-purple));
    border: 1px solid hsla(var(--accent-purple), 0.3);
}
.card-wave-badge.wave3 {
    background: hsla(var(--text-secondary), 0.15);
    color: hsl(var(--text-secondary));
    border: 1px solid hsla(var(--text-secondary), 0.3);
}

.portfolio-card h3 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.card-desc {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 24px;
    flex-grow: 1;
}

.card-metrics {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 16px;
    margin-bottom: 16px;
    gap: 16px;
}
.card-metrics .metric {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.card-metrics .metric .val {
    font-size: 1.15rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: #ffffff;
}
.card-metrics .metric .lbl {
    font-size: 0.7rem;
    color: hsl(var(--text-muted));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 2px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.card-tags span {
    font-size: 0.72rem;
    background: rgba(255, 255, 255, 0.04);
    padding: 4px 10px;
    border-radius: 30px;
    color: hsl(var(--text-secondary));
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.portfolio-notes {
    margin-top: 48px;
}
.caption {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
}

/* ==========================================================================
   12. Stakeholder Engagement Portal (Tabs)
   ========================================================================== */
.tab-system {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 40px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    color: hsl(var(--text-secondary));
    border: none;
    border-bottom: 2px solid transparent;
    padding: 16px 24px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: var(--transition-fast);
}
.tab-btn:hover {
    color: #ffffff;
}
.tab-btn.active {
    color: hsl(var(--accent-cyan));
    border-bottom-color: hsl(var(--accent-cyan));
}

.tab-content {
    min-height: 250px;
}

.tab-panel {
    display: none;
}
.tab-panel.active {
    display: block;
    animation: fadeIn var(--transition-smooth);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.panel-box-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.box-feature {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: 20px;
}

.feature-title {
    display: block;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #ffffff;
    font-size: 0.95rem;
    margin-bottom: 6px;
}
.box-feature p {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
}

/* ==========================================================================
   13. Team Section
   ========================================================================== */
.team-grid {
    margin-top: 48px;
}

.team-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: linear-gradient(135deg, hsl(var(--accent-purple)) 0%, hsl(var(--accent-cyan)) 100%);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(159, 61, 250, 0.25);
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}
.team-avatar.placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    box-shadow: none;
    overflow: visible;
}

.avatar-fallback {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
}
.placeholder .avatar-fallback {
    color: hsl(var(--text-muted));
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 4px;
}

.team-role {
    font-size: 0.88rem;
    color: hsl(var(--accent-cyan));
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
    display: block;
}

.team-bio {
    font-size: 0.9rem;
    color: hsl(var(--text-secondary));
    margin-bottom: 24px;
    flex-grow: 1;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: hsl(var(--text-secondary));
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
}
.linkedin-link:hover {
    color: #ffffff;
    border-color: #0077b5;
    background-color: rgba(0, 119, 181, 0.15);
    box-shadow: 0 0 10px rgba(0, 119, 181, 0.2);
}

.team-placeholder {
    border: 1px dashed rgba(255, 255, 255, 0.15);
    background: transparent;
}
.team-placeholder:hover {
    border-color: hsla(var(--accent-cyan), 0.3);
}

/* ==========================================================================
   14. Contact Form Section
   ========================================================================== */
.contact-info-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}
.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
}

.contact-form-card {
    padding: 40px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-sm);
    padding: 14px;
    color: #ffffff;
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-fast);
    outline: none;
    width: 100%;
}
.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: hsl(var(--accent-cyan));
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 0 10px hsla(var(--accent-cyan), 0.15);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23a3acb9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 16px;
    cursor: pointer;
}

.form-group select option {
    background-color: hsl(var(--bg-secondary));
    color: #ffffff;
}

.error-msg {
    color: hsl(var(--accent-red));
    font-size: 0.78rem;
    font-weight: 500;
    display: none;
    margin-top: 2px;
}
.form-group.invalid .error-msg {
    display: block;
}
.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
    border-color: hsl(var(--accent-red));
}

/* ==========================================================================
   15. Footer Section
   ========================================================================== */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background-color: rgba(0, 0, 0, 0.3);
    padding: 80px 0 40px 0;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 320px;
}
.footer-tagline {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
    margin-top: 16px;
}

.footer-links-group {
    display: flex;
    gap: 64px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.footer-links-col h4 {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #ffffff;
    margin-bottom: 6px;
}
.footer-links-col a {
    font-size: 0.88rem;
    color: hsl(var(--text-secondary));
}
.footer-links-col a:hover {
    color: hsl(var(--accent-cyan));
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}
.footer-bottom p {
    font-size: 0.8rem;
    color: hsl(var(--text-muted));
}

/* ==========================================================================
   16. Modals
   ========================================================================== */
.modal {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}
.modal.open {
    display: flex;
    animation: fadeIn var(--transition-fast);
}

.modal-dialog {
    background: hsl(var(--bg-secondary));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    overflow: hidden;
    margin: 0 20px;
    transform: scale(0.95);
    transition: transform var(--transition-fast);
}
.modal.open .modal-dialog {
    transform: scale(1);
}

.modal-header {
    background: rgba(255,255,255,0.02);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.modal-header h3 {
    font-size: 1.25rem;
}
.modal-close {
    background: transparent;
    border: none;
    color: hsl(var(--text-secondary));
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}
.modal-close:hover {
    color: #ffffff;
}

.modal-body {
    padding: 24px;
}
.modal-body p {
    font-size: 0.95rem;
    color: hsl(var(--text-secondary));
}

.modal-footer {
    padding: 16px 24px;
    background: rgba(0,0,0,0.15);
    border-top: 1px solid rgba(255,255,255,0.05);
    display: flex;
    justify-content: flex-end;
}

/* ==========================================================================
   17. Responsive Design Media Queries
   ========================================================================== */
@media (max-width: 992px) {
    html {
        font-size: 15px;
    }
    
    .grid-2 {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr 1fr;
    }
    
    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
    
    .grid-2-simple {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .model-split {
        text-align: left;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
    }
    
    .mobile-nav-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: hsl(var(--bg-primary));
        flex-direction: column;
        padding: 40px 0;
        gap: 24px;
        transform: translateX(100%);
        transition: transform var(--transition-smooth);
        z-index: 999;
        border-top: 1px solid rgba(255,255,255,0.05);
    }
    
    .nav-links.open {
        transform: translateX(0);
    }
    
    .header-actions {
        display: none;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .grid-3, .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-links-group {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.3rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    .hero-ctas .btn {
        width: 100%;
    }
    
    .hero-stats {
        gap: 24px;
        width: 100%;
        justify-content: space-between;
    }
    
    .wave-filters {
        flex-direction: column;
        border-radius: var(--border-radius-md);
        width: 100%;
    }
    .wave-filter {
        width: 100%;
    }
    
    .tab-buttons {
        flex-direction: column;
    }
}

/* ==========================================================================
   18. Scroll Reveal Animations
   ========================================================================== */
.scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   19. Sustainability & Climate Impact Mockup Styles
   ========================================================================== */
.sustainability-card .db-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.db-caption {
    font-size: 0.72rem;
    color: hsl(var(--text-secondary));
    margin-top: 8px;
    line-height: 1.35;
}

.chart-row {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.chart-label-col {
    width: 120px;
    font-size: 0.78rem;
    color: hsl(var(--text-secondary));
    font-weight: 600;
}

.chart-bar-col {
    flex-grow: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-bar {
    height: 12px;
    border-radius: 4px;
    transition: width 1s ease-out;
}

.chart-bar.new-product {
    background: linear-gradient(90deg, hsl(var(--accent-purple)) 0%, hsl(var(--accent-red)) 100%);
}

.chart-bar.repaired-product {
    background: linear-gradient(90deg, hsl(var(--accent-cyan)) 0%, hsl(var(--accent-green)) 100%);
}

.chart-value {
    font-size: 0.8rem;
    font-weight: 600;
    font-family: monospace;
    white-space: nowrap;
}

.chart-footer {
    display: block;
    font-size: 0.72rem;
    color: hsl(var(--text-muted));
    margin-top: 16px;
    line-height: 1.4;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 12px;
}
