/* ============================================
   AblaView Design System — Titanium & Glass
   ============================================ */

/* --- Design Tokens --- */
:root {
    /* Colors */
    --color-bg: #F5F5F7;
    --color-surface: #FFFFFF;
    --color-text-primary: #1D1D1F;
    --color-text-secondary: #86868B;
    --color-accent: #0071E3;
    --color-accent-hover: #0077ED;
    --color-border: rgba(0,0,0,0.05);
    --color-nav-bg: rgba(255, 255, 255, 0.8);

    /* Spacing (8px grid) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    --space-section: 7rem;/* 112px — consistent section padding */

    /* Radii */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 100px;

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --container-width: 1200px;
    --grid-gap: 24px;

    /* Shadows */
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-md: 0 20px 40px rgba(0,0,0,0.08);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.1);
}

/* --- Dark Theme --- */
[data-theme="dark"] {
    --color-bg: #000000;
    --color-surface: #1D1D1F;
    --color-text-primary: #F5F5F7;
    --color-text-secondary: #A1A1A6;
    --color-accent: #2997FF;
    --color-accent-hover: #0071E3;
    --color-border: rgba(255,255,255,0.1);
    --color-nav-bg: rgba(29, 29, 31, 0.8);
    --shadow-sm: 0 10px 30px rgba(0,0,0,0.4);
    --shadow-md: 0 20px 40px rgba(0,0,0,0.5);
    --shadow-lg: 0 30px 60px rgba(0,0,0,0.6);
}

/* --- Reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* --- Skip Link (Accessibility) --- */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--color-accent);
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0 0 8px 0;
    transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Navigation (Floating Pill) --- */
.nav {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    max-width: 90%;
    height: 56px;
    background: var(--color-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-pill);
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 6px;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.nav-container { display: flex; align-items: center; gap: 2rem; padding: 0 1rem; }
.nav-logo { font-weight: 700; font-size: 1.125rem; color: var(--color-text-primary); text-decoration: none; letter-spacing: -0.02em; margin-right: 1rem; }
.nav-links { display: flex; gap: 4px; }
.nav-link {
    font-size: 0.8125rem;
    color: var(--color-text-primary);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: background 0.2s, color 0.2s;
    font-weight: 500;
}
.nav-link:hover { background: var(--color-border); }
.nav-link.active { background: var(--color-border); }
.nav-link.accent { color: var(--color-accent); }
.nav-cta {
    background: var(--color-text-primary);
    color: var(--color-bg);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 1rem;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-cta:hover { transform: scale(1.05); }

/* Theme Toggle */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    margin-left: 0.5rem;
}
.theme-toggle:hover { background: var(--color-border); }

/* --- Mobile Navigation --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    color: var(--color-text-primary);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--color-surface);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.active { transform: translateY(0); }

.mobile-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-primary);
    text-decoration: none;
}

/* --- Hero Section --- */
.hero {
    padding: 180px 0 var(--space-section);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(0, 113, 227, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: heroGlow 10s ease-in-out infinite;
}

@keyframes heroGlow {
    0% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.2); opacity: 0.8; }
    100% { transform: scale(1); opacity: 0.5; }
}

/* --- Typography --- */
.text-display {
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.text-subhead {
    font-size: 1.375rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.4;
}

.text-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: var(--space-sm);
    display: block;
}

.section-header { margin-bottom: var(--space-xl); text-align: center; }
.section-title { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.125rem; color: var(--color-text-secondary); }

/* --- Layout --- */
.container { max-width: var(--container-width); margin: 0 auto; padding: 0 2rem; }
.section { padding: var(--space-section) 0; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }
.grid-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }

/* --- Cards --- */
.card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s;
    border: 1px solid var(--color-border);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.bento-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    border: 1px solid var(--color-border);
}
.bento-card:hover { transform: scale(1.02); box-shadow: var(--shadow-md); z-index: 10; }
.bento-large { grid-column: span 2; }

.stat-card {
    background: var(--color-surface);
    padding: var(--space-xl) var(--space-lg);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--color-border);
}
.stat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stat-value { font-size: 3.5rem; font-weight: 700; color: var(--color-accent); line-height: 1; margin-bottom: 0.5rem; letter-spacing: -0.03em; }
.stat-label { font-weight: 600; color: var(--color-text-primary); font-size: 1.125rem; }
.stat-desc { font-size: 0.875rem; color: var(--color-text-secondary); margin-top: 0.5rem; }

/* --- Quote Card --- */
.quote-card {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s;
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.quote-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.quote-text {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    line-height: 1.6;
    flex-grow: 1;
}
.quote-attribution {
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-sm);
}
.quote-name { font-weight: 600; color: var(--color-text-primary); }
.quote-title { font-size: 0.875rem; color: var(--color-text-secondary); }

/* --- Chart --- */
.chart-container {
    background: var(--color-surface);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-2xl);
    border: 1px solid var(--color-border);
}
.bar-chart { display: flex; align-items: flex-end; gap: var(--space-2xl); height: 300px; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border); justify-content: center; }
.bar-group { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm); width: 100px; }
.bar { width: 60px; background: var(--color-border); border-radius: 8px 8px 0 0; transition: height 1s ease-out; position: relative; }
.bar.accent { background: var(--color-accent); box-shadow: 0 0 20px rgba(0, 113, 227, 0.3); }
.bar-value { position: absolute; top: -30px; left: 50%; transform: translateX(-50%); font-weight: 700; color: var(--color-text-primary); }

/* --- Timeline Cards --- */
.timeline-card {
    background: var(--color-surface);
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    border-top: 4px solid var(--color-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}
.timeline-phase { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-secondary); margin-bottom: 0.5rem; }
.timeline-title { font-size: 1.5rem; font-weight: 600; margin-bottom: var(--space-sm); }
.timeline-list { list-style: none; padding: 0; color: var(--color-text-secondary); font-size: 0.9375rem; }
.timeline-list li { margin-bottom: 0.5rem; display: flex; gap: 0.5rem; }
.timeline-list li::before { content: "\2022"; color: var(--color-accent); }

/* --- Specs --- */
.specs-container {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.specs-row { display: flex; justify-content: space-between; padding: var(--space-md) 0; border-bottom: 1px solid var(--color-border); }
.specs-row:last-child { border-bottom: none; }
.specs-label { font-weight: 600; color: var(--color-text-secondary); }
.specs-value { font-weight: 600; color: var(--color-text-primary); text-align: right; }

/* --- Team Cards --- */
.team-card {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-border);
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.team-content { padding: var(--space-lg); flex: 1; display: flex; flex-direction: column; }

.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.5rem;
    color: #fff;
    flex-shrink: 0;
}

.avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: var(--space-md);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    background-color: var(--color-bg);
    flex-shrink: 0;
}

.team-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 0.25rem; }
.team-role { font-size: 0.875rem; color: var(--color-accent); font-weight: 600; margin-bottom: var(--space-sm); text-transform: uppercase; letter-spacing: 0.05em; }
.team-bio { font-size: 0.9375rem; color: var(--color-text-secondary); line-height: 1.6; margin-bottom: var(--space-md); flex-grow: 1; }
.team-exp { font-size: 0.75rem; color: var(--color-text-primary); border-top: 1px solid var(--color-border); padding-top: var(--space-sm); }
.team-exp ul { padding-left: 1rem; margin: 0.5rem 0 0; }

/* Advisor Cards */
.advisor-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    transition: transform 0.2s;
    border: 1px solid var(--color-border);
}
.advisor-card:hover { transform: translateY(-2px); }

.advisor-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    color: #fff;
    flex-shrink: 0;
}

.advisor-info h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.25rem; }
.advisor-role { font-size: 0.75rem; color: var(--color-accent); font-weight: 600; text-transform: uppercase; margin-bottom: 0.25rem; }
.advisor-loc { font-size: 0.875rem; color: var(--color-text-secondary); line-height: 1.4; }

/* --- Form --- */
.form-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    background: var(--color-surface);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}
.form-group { margin-bottom: var(--space-sm); text-align: left; }
.form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 0.375rem;
}
.input-field {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-size: 1rem;
    background: var(--color-bg);
    color: var(--color-text-primary);
    transition: border-color 0.2s, background 0.2s;
}
.input-field:focus { outline: none; background: var(--color-surface); border-color: var(--color-accent); }
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-pill);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: var(--space-sm);
}
.btn:hover { transform: scale(1.03); box-shadow: 0 4px 16px rgba(0, 113, 227, 0.3); }

/* --- Scroll Reveal Animations (Performance Optimized) --- */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.visible {
    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; }

/* --- Footer --- */
.site-footer {
    background: #1D1D1F;
    color: #fff;
    padding: var(--space-2xl) 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--grid-gap);
    margin-bottom: var(--space-2xl);
}

.footer-brand a {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    display: block;
    margin-bottom: var(--space-sm);
}
.footer-tagline {
    color: #86868B;
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #86868B;
    margin-bottom: var(--space-sm);
}

.footer-links { list-style: none; padding: 0; }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }

/* Footer compliance badges */
.footer-badges {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
    flex-wrap: wrap;
}
.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #444;
    border-radius: 6px;
    font-size: 0.6875rem;
    color: #A1A1A6;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: var(--space-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-sm);
}
.footer-copyright { color: #86868B; font-size: 0.75rem; }
.footer-legal { display: flex; gap: var(--space-md); }
.footer-legal a { color: #86868B; text-decoration: none; font-size: 0.75rem; transition: color 0.2s; }
.footer-legal a:hover { color: #A1A1A6; }

/* --- Responsive --- */
@media (max-width: 1024px) {
    .grid-3, .grid-bento { grid-template-columns: 1fr; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .bento-large { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
}

@media (max-width: 768px) {
    .nav-links { display: none; }
    .nav-cta { display: none; }
    .mobile-menu-btn { display: block; }
    .nav { width: 90%; justify-content: space-between; padding: 0 20px; }
    .grid-4 { grid-template-columns: 1fr; }
    .hero { padding: 140px 0 var(--space-2xl); }
    .text-display { font-size: clamp(2.5rem, 10vw, 3.5rem); }
    .text-subhead { font-size: 1.125rem; }
    .section { padding: var(--space-2xl) 0; }
    .footer-grid { grid-template-columns: 1fr; }
    .bar-chart { gap: var(--space-lg); }
}
