/* Neural Studio Lab - Modern Tech Studio Design System
 * Design lenses applied:
 * - Visual Hierarchy: Size, Weight, Contrast, Color, Proximity, Whitespace, Alignment, Repetition
 * - Color Theory: Color Harmony, Contrast Ratios, WCAG accessibility, Brand Colors
 * - Typography: Type Hierarchy, Readability, Font Pairing, Type Scale, Line Height
 * - Composition: Balance, Rule of Thirds, Visual Flow, Focal Points, Negative Space
 * - Gestalt Principles: Proximity, Similarity, Continuity, Closure, Figure-Ground
 * - Brand Identity: Consistency, Visual Voice, Scalability
 * - Accessibility: WCAG AA contrast, color-independence, reduced motion support
 * - Technical Execution: Optimization, Responsive design, Format appropriateness
 */

/* CSS Variables - Modern Tech Studio Palette */
:root {
    /* Background System */
    --color-bg: #0a0b10;
    --color-bg-secondary: #111218;
    --color-bg-tertiary: #181920;
    --color-bg-glass: rgba(22, 23, 28, 0.7);
    
    /* Text System - WCAG AA compliant on dark backgrounds */
    --color-text: #f5f5f7;
    --color-text-secondary: #a1a1aa;
    --color-text-muted: #71717a;
    
    /* Accent Colors - Tech studio palette */
    --accent-teal: #14b8a6;
    --accent-blue: #3b82f6;
    --accent-violet: #8b5cf6;
    --accent-gold: #f59e0b;
    
    /* Gradient Systems - Soft radial glows */
    --gradient-primary: linear-gradient(135deg, #14b8a6 0%, #3b82f6 100%);
    --gradient-secondary: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --gradient-radial-teal: radial-gradient(circle at 30% 50%, rgba(20, 184, 166, 0.15) 0%, transparent 60%);
    --gradient-radial-blue: radial-gradient(circle at 70% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 60%);
    --gradient-radial-violet: radial-gradient(circle at 50% 30%, rgba(139, 92, 246, 0.1) 0%, transparent 65%);
    
    /* Border System - Subtle gradient borders */
    --border-color: #27273a;
    --border-color-light: #3f3f5a;
    --border-gradient: linear-gradient(135deg, rgba(20, 184, 166, 0.3) 0%, rgba(59, 130, 246, 0.3) 100%);
    
    /* Shadow System - Soft, layered shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(20, 184, 166, 0.15);
    
    /* Radius System */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing System - Consistent vertical rhythm */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;
    --space-4xl: 128px;
    
    /* Typography Scale - Modern tech studio */
    --font-display: 'Inter Tight', 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: 1.25rem;
    --text-2xl: 1.5rem;
    --text-3xl: 2rem;
    --text-4xl: 2.5rem;
    --text-5xl: 3.5rem;
    --text-6xl: 4.5rem;
    
    /* Type Scale for Headings */
    --heading-hero: clamp(36px, 5vw, 64px);
    --heading-h1: clamp(30px, 4vw, 48px);
    --heading-h2: clamp(24px, 3vw, 36px);
    --heading-h3: clamp(20px, 2vw, 28px);
    --heading-h4: 1.25rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Layout */
    --max-content-width: 1200px;
    --container-padding: 24px;
}

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

/* Google Fonts - Inter Tight for display, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Inter+Tight:wght@500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--text-base);
    line-height: 1.65;
    min-height: 100vh;
    opacity: 0;
    animation: pageFadeIn 0.6s var(--transition-smooth) forwards;
}

/* Typography Scale */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

h1 {
    font-size: var(--heading-h1);
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--heading-h2);
    letter-spacing: -0.025em;
}

h3 {
    font-size: var(--heading-h3);
    letter-spacing: -0.02em;
}

h4 {
    font-size: var(--heading-h4);
}

/* Hero/Display typography */
.hero-headline {
    font-size: var(--heading-hero);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

/* Body text - WCAG AA compliant */
p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text-secondary);
}

/* Text utilities */
.text-hero {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.text-lg {
    font-size: var(--text-lg);
}

.text-sm {
    font-size: var(--text-sm);
}

.text-muted {
    color: var(--color-text-muted);
}

@keyframes pageFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Container */
.container {
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Background System - Near-black with subtle patterns and glows */
.bg-primary {
    background-color: var(--color-bg);
}

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

/* Subtle grid/dot pattern background */
.bg-grid {
    background-color: var(--color-bg);
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Radial glow backgrounds for hero areas */
.bg-glow-teal {
    background: 
        var(--gradient-radial-teal),
        var(--color-bg);
}

.bg-glow-blue {
    background: 
        var(--gradient-radial-blue),
        var(--color-bg);
}

.bg-glow-violet {
    background: 
        var(--gradient-radial-violet),
        var(--color-bg);
}

/* Combined glows for hero sections */
.bg-hero-glow {
    background: 
        var(--gradient-radial-teal),
        var(--gradient-radial-blue),
        var(--gradient-radial-violet),
        var(--color-bg);
}

/* Card System - Glass-style panels with reusable classes */
.card {
    background: var(--color-bg-glass);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(10px);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-fast);
}

.card:hover {
    border-color: var(--border-color-light);
    box-shadow: var(--shadow-md);
}

/* Glass card with gradient border glow */
.card--glow {
    background: linear-gradient(
        135deg,
        rgba(22, 23, 28, 0.9) 0%,
        rgba(18, 19, 24, 0.95) 100%
    );
    border: 1px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.card--glow::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: var(--border-gradient);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
}

.card--glow:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-4px);
}

/* Badge component */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: var(--text-sm);
    font-weight: 600;
    background: rgba(20, 184, 166, 0.15);
    color: var(--accent-teal);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(20, 184, 166, 0.3);
}

.badge--secondary {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    border-color: rgba(59, 130, 246, 0.3);
}

.badge--accent {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-violet);
    border-color: rgba(139, 92, 246, 0.3);
}

/* Eyebrow text (small label above headings) */
.eyebrow {
    display: inline-block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

/* Section layout */
.section {
    padding: var(--space-3xl) 0;
    position: relative;
}

.section--compact {
    padding: var(--space-2xl) 0;
}

.section--flush {
    padding: 0;
}

/* Section header treatment */
.section-header {
    margin-bottom: var(--space-xl);
}

.section-header--center {
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__eyebrow {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent-teal);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}

.section-header__title {
    font-size: var(--heading-h2);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: var(--space-md);
}

.section-header__desc {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* Header & Navigation - Sticky, translucent with backdrop blur */
header {
    background: rgba(10, 11, 16, 0.85);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px) saturate(180%);
    transition: border-color var(--transition-fast), background var(--transition-normal);
}

header.scrolled {
    background: rgba(10, 11, 16, 0.95);
    border-bottom: 1px solid var(--border-color-light);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px var(--container-padding);
    max-width: var(--max-content-width);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    text-decoration: none;
}

.logo-icon {
    width: 32px;
    height: 32px;
    display: inline-block;
}

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width var(--transition-smooth);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-teal);
}

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

/* Buttons - Modern tech studio style with consistent sizing */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: var(--text-base);
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

/* Primary button - Gradient fill with subtle glow on hover */
.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 2px 8px rgba(20, 184, 166, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
    transition: all var(--transition-bounce);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 12px rgba(20, 184, 166, 0.25);
}

/* Secondary button - Outline/ghost style */
.btn-secondary {
    background: transparent;
    color: var(--accent-teal);
    border: 2px solid var(--accent-teal);
    position: relative;
}

.btn-secondary:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: var(--accent-teal);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Ghost button variant - no border, just text with hover background */
.btn-ghost {
    background: transparent;
    color: var(--accent-teal);
    padding: 12px 24px;
}

.btn-ghost:hover {
    background: rgba(20, 184, 166, 0.1);
    transform: translateY(-2px);
}

.btn-ghost:active {
    transform: translateY(0);
}

/* Button sizes */
.btn-sm {
    padding: 10px 20px;
    font-size: var(--text-sm);
}

.btn-lg {
    padding: 18px 36px;
    font-size: var(--text-lg);
}

.btn-block {
    width: 100%;
}

/* Assessment Header */
.assessment-header {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
}

.assessment-header h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero-tagline {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 30px;
}

.assessment-meta {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.assessment-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-radius: var(--radius-md);
}

/* Progress Bar */
.progress-container {
    margin: 40px 0;
}

.progress-bar {
    height: 8px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* Form Styles */
.assessment-form {
    max-width: 800px;
    margin: 0 auto 60px;
}

fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

legend {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-teal);
    margin-bottom: 30px;
}

.section-intro {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 28px;
}

label {
    display: block;
    font-weight: 500;
    margin-bottom: 10px;
}

.question-hint {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 6px;
    font-weight: normal;
}

input[type="text"],
input[type="email"],
select {
    width: 100%;
    padding: 14px 16px;
    font-size: 1rem;
    background: var(--color-bg-tertiary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--color-text);
    transition: border-color var(--transition-fast);
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus {
    outline: none;
    border-color: var(--accent-teal);
    box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
    transition: all var(--transition-fast);
}

input.error {
    border-color: #ef4444;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

/* Rating Scale */
.rating-scale {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.rating-scale label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid transparent;
}

.rating-scale label:hover {
    background: var(--color-bg-secondary);
    transform: translateX(4px);
    border-color: var(--accent-teal);
}

.rating-scale input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-teal);
}

.rating-scale input[type="radio"]:checked + span {
    font-weight: 600;
    color: var(--accent-teal);
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 20px;
}

/* Submission Status */
.submission-status,
.submission-error {
    text-align: center;
    padding: 60px 20px;
}

.status-icon,
.error-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Results Page */
.results-header {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
}

.score-overview {
    display: flex;
    align-items: center;
    gap: 40px;
    padding: 60px 0;
    background: var(--color-bg-secondary);
    margin: 40px 0;
    border-radius: var(--radius-lg);
}

.score-circle {
    width: 200px;
    height: 200px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.score-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 8px;
}

.score-category {
    flex: 1;
}

.score-category h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.score-category p {
    color: var(--color-text-secondary);
    font-size: 1.1rem;
}

/* Dimension Breakdown */
.dimension-breakdown {
    padding: 60px 0;
}

.dimension-breakdown h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.dimension-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.dimension-card {
    background: var(--color-bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.dimension-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.dimension-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-teal);
}

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

.dimension-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.dimension-icon {
    font-size: 1.5rem;
}

.dimension-header h3 {
    font-size: 1.25rem;
}

.dimension-score {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.score-bar-container {
    flex: 1;
    height: 12px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.score-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 0.5s ease;
}

.dimension-hint {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Insights */
.key-insights {
    padding: 60px 0;
}

.key-insights h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.insight-card {
    background: var(--color-bg-secondary);
    padding: 24px;
    border-radius: var(--radius-lg);
    border-left: 4px solid var(--accent-teal);
    transition: all var(--transition-normal);
    position: relative;
}

.insight-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--transition-smooth);
}

.insight-card:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.insight-card:hover::after {
    width: 100%;
}

.insight-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

.insight-card p {
    color: var(--color-text-secondary);
}

/* Recommendations */
.recommendations {
    padding: 60px 0;
}

.recommendations h2 {
    font-size: 2rem;
    margin-bottom: 40px;
}

.recommendation-card {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    text-align: center;
}

.recommendation-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.recommendation-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.recommendation-card p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    max-width: 500px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.input-group input {
    flex: 1;
}

/* Scheduling */
.scheduling-section {
    padding: 80px 0;
    background: var(--color-bg-secondary);
    margin-top: 60px;
    border-radius: var(--radius-lg);
}

.scheduling-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.calendly-placeholder {
    background: var(--color-bg-tertiary);
    padding: 60px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 30px;
}

.calendly-placeholder p {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
}

.calendly-placeholder .hint {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-top: 12px;
}

/* Loading & Error States */
.loading-container,
.error-container {
    text-align: center;
    padding: 80px 20px;
}

.loading-spinner {
    font-size: 3rem;
    animation: spin 1s linear infinite;
}

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

.error-container .error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.error-container h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.error-container p {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

/* Footer */
footer {
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.footer-brand p {
    color: var(--color-text-secondary);
    margin-top: 16px;
}

.footer-links h4 {
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Footer Navigation */
.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: flex-end;
}

.footer-nav li {
    margin: 0;
}

.footer-nav a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    padding: 4px 0;
    position: relative;
}

.footer-nav a:hover {
    color: var(--accent-teal);
}

.footer-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width var(--transition-fast);
}

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

/* Responsive footer navigation */
@media (max-width: 768px) {
    .footer-nav ul {
        justify-content: center;
        gap: 16px;
    }
    
    .footer-nav a {
        font-size: 0.9rem;
    }
}

/* Homepage Styles */
.hero {
    background:
        url('../images/hero-neural-bg.svg') center center / cover no-repeat,
        var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-eyebrow {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.9);
}

.hero-headline {
    font-size: 2.75rem;
    margin-bottom: 24px;
    color: white;
    line-height: 1.2;
}

.hero-subhead {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin: 0 auto 30px;
}

.hero-support {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    max-width: 500px;
    margin: 20px auto 0;
}

/* Section Divider Styles - Design lenses: Visual Hierarchy (clear separation), Gestalt (boundary definition) */
.section-divider {
    width: 100%;
    display: block;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

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

/* Divider variants */
.divider-wave {
    height: 80px;
    background: url('../images/section-divider-wave.svg') center center / cover repeat-x;
}

.divider-geometric {
    height: 60px;
    background: url('../images/section-divider-geometric.svg') center center / cover repeat-x;
}

.divider-hero {
    height: 100px;
    background: url('../images/section-divider-hero.svg') center center / cover repeat-x;
}

/* Enhanced section spacing and separation */
section {
    position: relative;
}

/* Add subtle top border to all sections for consistent separation */
section > .container {
    position: relative;
    z-index: 2;
}

/* Section header treatments for better hierarchy */
section h2 {
    position: relative;
    display: inline-block;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Center section headings with underline */
section.text-center h2::after,
section h2[style*="text-align: center"]::after {
    left: 50%;
    transform: translateX(-50%);
}

.problem-section,
.how-section,
.proof-section,
.fit-section {
    padding: 80px 0;
    position: relative;
}

/* Abstract geometric background patterns for sections */
/* Design lenses: Visual Hierarchy (subtle depth), Gestalt (pattern repetition), Accessibility (low contrast, non-distracting) */

.problem-section {
    background: 
        radial-gradient(circle at 20% 30%, rgba(20, 184, 166, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 50%),
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 40px,
            rgba(20, 184, 166, 0.04) 40px,
            rgba(20, 184, 166, 0.04) 80px
        ),
        var(--color-bg-secondary);
    border-top: 1px solid rgba(20, 184, 166, 0.15);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.how-section {
    background:
        radial-gradient(circle at 15% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 85% 20%, rgba(245, 158, 11, 0.06) 0%, transparent 60%),
        linear-gradient(
            135deg,
            transparent 0%,
            rgba(59, 130, 246, 0.04) 25%,
            transparent 50%,
            rgba(139, 92, 246, 0.04) 75%,
            transparent 100%
        ),
        var(--color-bg);
    border-top: 1px solid rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.proof-section {
    background:
        radial-gradient(circle at 50% 0%, rgba(20, 184, 166, 0.1) 0%, transparent 70%),
        repeating-radial-gradient(
            circle at 50% 50%,
            transparent 0%,
            transparent 60px,
            rgba(59, 130, 246, 0.04) 60px,
            rgba(59, 130, 246, 0.04) 62px
        ),
        var(--color-bg-secondary);
    border-top: 1px solid rgba(20, 184, 166, 0.15);
    border-bottom: 1px solid rgba(20, 184, 166, 0.1);
}

.fit-section {
    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(20, 184, 166, 0.05) 20%,
            transparent 40%,
            rgba(139, 92, 246, 0.05) 60%,
            transparent 80%,
            rgba(245, 158, 11, 0.04) 100%
        ),
        radial-gradient(
            ellipse at 30% 40%,
            rgba(20, 184, 166, 0.06) 0%,
            transparent 50%
        ),
        radial-gradient(
            ellipse at 70% 60%,
            rgba(139, 92, 246, 0.06) 0%,
            transparent 50%
        ),
        var(--color-bg);
    border-top: 1px solid rgba(139, 92, 246, 0.12);
    border-bottom: 1px solid rgba(139, 92, 246, 0.08);
}

.problem-heading {
    font-size: 2rem;
    margin-bottom: 24px;
}

.problem-body {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
}

.problem-list {
    margin: 40px 0;
}

.problem-list h3 {
    font-size: 1.25rem;
    margin-bottom: 24px;
}

.problem-item {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--color-bg-tertiary);
    border-radius: var(--radius-md);
    border-left: 3px solid var(--accent-teal);
    display: flex;
    gap: 20px;
    align-items: flex-start;
    transition: all var(--transition-normal);
}

.problem-item:hover {
    background: var(--color-bg-secondary);
    transform: translateX(4px);
}

.problem-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(20, 184, 166, 0.3));
}

.problem-content {
    flex: 1;
}

.problem-item strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.problem-item p {
    color: var(--color-text-secondary);
}

.problem-close {
    margin-top: 30px;
    font-size: 1.1rem;
}

.how-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.step {
    background: var(--color-bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.step h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--accent-teal);
}

.step p {
    color: var(--color-text-secondary);
}

.how-close {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}

.proof-section {
    background: var(--color-bg-secondary);
}

.proof-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.proof-body {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin-bottom: 40px;
}

.proof-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.proof-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.proof-item p {
    color: var(--color-text-secondary);
}

.text-link {
    display: inline-block;
    color: var(--accent-teal);
    font-weight: 600;
    text-decoration: none;
    margin-top: 20px;
}

.text-link:hover {
    text-decoration: underline;
}

.fit-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.fit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.fit-good,
.fit-bad {
    padding: 32px;
    border-radius: var(--radius-lg);
}

.fit-good {
    background: rgba(20, 184, 166, 0.1);
    border: 1px solid var(--accent-teal);
}

.fit-bad {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
}

.fit-good h3,
.fit-bad h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.fit-good p,
.fit-bad p {
    color: var(--color-text-secondary);
}

.fit-close {
    text-align: center;
    margin-top: 30px;
    font-size: 1.1rem;
}

.cta-section {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
    width: 100%;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 16px;
    color: white;
}

.cta-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Consulting Page Styles */
.consulting-header {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
}

.tier {
    background: var(--color-bg-secondary);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 40px 0;
}

.tier h2 {
    font-size: 2rem;
    margin: 20px 0 16px;
}

.tier-eyebrow {
    font-size: 1rem;
    color: var(--accent-teal);
    font-weight: 600;
}

.tier-price {
    font-size: 1.5rem;
    margin: 20px 0;
}

.tier-timeline {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.tier-summary {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.tier h3 {
    font-size: 1.25rem;
    margin: 30px 0 16px;
}

.tier-list {
    margin-left: 20px;
    margin-bottom: 20px;
}

.tier-list li {
    margin-bottom: 10px;
    color: var(--color-text-secondary);
}

.tier-risk {
    background: var(--color-bg-tertiary);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 30px;
}

.tier-risk h3 {
    margin-top: 0;
    color: var(--accent-teal);
}

.tier-risk p {
    color: var(--color-text-secondary);
}

.founding-section {
    background: var(--gradient-primary);
    padding: 40px;
    border-radius: var(--radius-lg);
    margin: 60px 0;
    color: white;
}

.founding-section h2 {
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.founding-section p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.founding-counter {
    font-style: italic;
    margin-top: 20px;
    opacity: 0.9;
}

.decline-section {
    padding: 60px 0;
}

.decline-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.decline-section > p {
    color: var(--color-text-secondary);
    margin-bottom: 40px;
}

.decline-items {
    display: grid;
    gap: 32px;
}

.decline-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--accent-teal);
}

.decline-item p {
    color: var(--color-text-secondary);
}

/* About Page Styles */
.about-header {
    background: var(--gradient-primary);
    padding: 80px 0;
    text-align: center;
}

.about-section {
    padding: 60px 0;
}

.about-section h2 {
    font-size: 2rem;
    margin-bottom: 24px;
}

.about-section p {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    max-width: 800px;
}

.rules-list {
    margin-top: 40px;
}

.rule {
    margin-bottom: 32px;
}

.rule h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--accent-teal);
}

.rule p {
    color: var(--color-text-secondary);
}

/* Profile Section */
.profile-section {
    display: flex;
    gap: 48px;
    align-items: center;
    margin-top: 40px;
    padding: 40px;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.profile-image-container {
    flex-shrink: 0;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--accent-teal);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.profile-image:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.profile-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    color: var(--accent-teal);
}

.profile-role {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.profile-bio {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }
}

/* Resources Page Styles */
.resources-header {
    background: var(--gradient-secondary);
    padding: 80px 0;
    text-align: center;
}

.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin: 40px 0;
}

.resource-item {
    background: var(--color-bg-secondary);
    padding: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.resource-item h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.resource-item p {
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.faq-section {
    padding: 60px 0;
    background: var(--color-bg-secondary);
    border-radius: var(--radius-lg);
    margin: 40px 0;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 40px;
    text-align: center;
}

.faq-item {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--accent-teal);
}

.faq-item p {
    color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .assessment-header h1,
    .consulting-header h1,
    .about-header h1,
    .resources-header h1 {
        font-size: 2rem;
    }
    
    .hero-headline {
        font-size: 28px;
    }
    
    .score-overview {
        flex-direction: column;
        text-align: center;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .form-navigation {
        flex-direction: column;
    }
    
    .steps-grid,
    .proof-items,
    .fit-grid,
    .resources-grid {
        grid-template-columns: 1fr;
    }

    .tier {
        padding: 24px;
    }

    .problem-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }

    .problem-icon {
        width: 56px;
        height: 56px;
    }
    
    /* Mobile spacing adjustments */
    .section {
        padding: var(--space-2xl) 0;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        gap: 12px;
    }
}

/* Small mobile - ensure no horizontal scroll at 375px */
@media (max-width: 400px) {
    :root {
        --container-padding: 16px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    .hero-headline {
        font-size: 24px;
    }
    
    .card {
        padding: 16px;
    }
    
    .section {
        padding: 48px 0;
    }
}

/* Scroll Reveal Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

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

.fade-in {
    opacity: 0;
    transition: opacity 0.6s var(--transition-smooth);
}

.fade-in.visible {
    opacity: 1;
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger animations for multiple elements */
.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }
.stagger-5 { transition-delay: 0.5s; }

/* Pulse animation for call-to-action elements */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Loading shimmer effect */
.shimmer {
    background: linear-gradient(
        90deg,
        var(--color-bg-tertiary) 0%,
        var(--color-bg-secondary) 50%,
        var(--color-bg-tertiary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Smooth score bar animation */
.score-bar {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    transition: width 0.8s var(--transition-smooth);
}

/* Progress bar smooth transition */
.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    transition: width 0.5s var(--transition-smooth);
}

/* Button ripple effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:active::after {
    width: 200px;
    height: 200px;
    transition: width 0.3s, height 0.3s;
}

/* Card hover lift effect */
.step,
.tier,
.resource-item,
.proof-item {
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.step:hover,
.tier:hover,
.resource-item:hover,
.proof-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* Footer link hover glow */
.footer-links a {
    position: relative;
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent-teal);
}

.footer-links a::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-teal);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.footer-links a:hover::before {
    opacity: 1;
}

/* Accessibility: Respect user preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    body {
        opacity: 1;
        animation: none;
    }
    
    .fade-in-up,
    .fade-in,
    .slide-in-left,
    .slide-in-right {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   WORKFLOW DIAGRAMS
   ============================================ */

.workflow-diagram {
    margin: 48px 0;
    text-align: center;
}

.workflow-diagram figure {
    margin: 0;
    display: inline-block;
    max-width: 100%;
}

.workflow-diagram img {
    max-width: 100%;
    height: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    background: #ffffff;
}

.workflow-diagram figcaption {
    margin-top: 16px;
    font-size: 0.95rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    text-align: left;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.workflow-diagram figcaption strong {
    color: var(--color-text);
}

/* Responsive diagram container */
@media (max-width: 920px) {
    .workflow-diagram img {
        width: 100%;
        height: auto;
    }
    
    .workflow-diagram figcaption {
        font-size: 0.9rem;
        padding: 0 12px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .workflow-diagram img {
        border: 2px solid var(--color-text);
    }
}

/* LinkedIn link in footer */
.footer-nav a.footer-linkedin { display: inline-flex; align-items: center; gap: 6px; }
.footer-nav a.footer-linkedin svg { flex: none; }
