        :root {
            --primary: #0a0e1a;
            --secondary: #1a1f2e;
            --accent: #06b6d4;
            --accent-gold: #f59e0b;
            --text-primary: #ffffff;
            --text-secondary: #94a3b8;
            --text-muted: #64748b;
            --border: rgba(255, 255, 255, 0.08);
            --success: #27ae60;
            --warning: #ef4444;
            --info: #3498db;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, 'Helvetica Neue', sans-serif;
            background: var(--primary);
            min-height: 100vh;
            color: var(--text-primary);
            position: relative;
            overflow-x: hidden;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
        }

        /* Background gradient effect */
        body::before {
            content: '';
            position: fixed;
            width: 350%;
            height: 350%;
            top: -50%;
            left: -50%;
            background: radial-gradient(circle at 70% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 50%);
            animation: gradientShift 20s ease-in-out infinite;
            z-index: 0;
        }

        @keyframes gradientShift {
            0%, 100% { transform: rotate(0deg); }
            50% { transform: rotate(180deg); }
        }

        /* Merged assessment nav — single fixed bar with brand + undertow rows */
        .assessment-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1100;
            background: rgba(10, 14, 26, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
        }

        .nav-row {
            max-width: 1440px;
            margin: 0 auto;
            padding: 16px 40px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .nav-back {
            font-size: 18px;
            font-weight: 300;
            letter-spacing: -0.5px;
            text-decoration: none;
            color: #ffffff;
        }

        .nav-contact {
            padding: 10px 24px;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #ffffff;
            text-decoration: none;
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0.5px;
            transition: all 0.3s ease;
        }

        .nav-contact:hover {
            border-color: rgba(255, 255, 255, 0.2);
        }

        /* Undertow meter row — inside nav on mobile, hidden on desktop */
        .nav-undertow-row {
            padding: 12px 20px;
            border-top: 1px solid var(--border);
            transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.3s ease, padding 0.4s ease;
            max-height: 80px;
            opacity: 1;
            overflow: hidden;
        }

        .nav-undertow-row.hidden {
            max-height: 0;
            opacity: 0;
            padding: 0 20px;
        }

        /* Nav spacer matches actual nav height */
        .nav-spacer {
            height: 110px;
        }

        @media (min-width: 1025px) {
            .nav-undertow-row {
                display: none;
            }
            .nav-spacer {
                height: 56px;
            }
            .nav-row {
                padding: 16px 40px;
            }
        }

        @media (max-width: 768px) {
            .nav-row {
                padding: 12px 16px;
            }
            .nav-back {
                font-size: 14px;
                font-weight: 500;
                padding: 8px 14px;
                border: 1px solid rgba(255, 255, 255, 0.2);
                letter-spacing: 0.3px;
            }
            .nav-back:hover {
                border-color: rgba(255, 255, 255, 0.4);
                background: rgba(255, 255, 255, 0.05);
            }
            .nav-contact {
                padding: 8px 14px;
                font-size: 12px;
            }
            .nav-undertow-row {
                padding: 10px 20px;
            }
            .nav-spacer {
                height: 100px;
            }
        }

        .undertow-header-content {
            display: flex;
            align-items: center;
            gap: 20px;
            max-width: 1440px;
            margin: 0 auto;
        }

        .compact-meter {
            flex: 1;
            min-width: 120px;
        }

        .meter-label-compact {
            font-size: 13px;
            font-weight: 400;
            color: var(--text-secondary);
            margin-bottom: 6px;
            display: flex;
            justify-content: space-between;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .meter-label-compact span:last-child {
            color: var(--accent);
            font-weight: 500;
        }

        .meter-bar-compact {
            height: 4px;
            background: var(--border);
            border-radius: 2px;
            overflow: hidden;
            position: relative;
        }

        .meter-fill-compact {
            height: 100%;
            background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
            width: 0%;
            transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border-radius: 2px;
        }

        .insights-toggle {
            background: transparent;
            color: var(--text-primary);
            border: 1px solid var(--border);
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 500;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            white-space: nowrap;
            position: relative;
            letter-spacing: 0.5px;
        }

        .insights-toggle:hover {
            background: var(--accent);
            border-color: var(--accent);
            color: var(--primary);
        }

        .insights-badge {
            position: absolute;
            top: -8px;
            right: -8px;
            background: var(--accent-gold);
            color: var(--primary);
            border-radius: 50%;
            width: 20px;
            height: 20px;
            font-size: 11px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
        }

        /* Main content */
        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 120px 80px 80px;
            position: relative;
            z-index: 1;
        }

        @media (max-width: 1024px) {
            .container { padding: 100px 40px 60px; }
        }

        @media (max-width: 768px) {
            .container { padding: 80px 24px 40px; }
        }

        .header {
            text-align: center;
            margin-bottom: 80px;
        }

        .header-label {
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 2px;
            text-transform: uppercase;
            color: var(--accent);
            margin-bottom: 32px;
        }

        .header h1 {
            font-size: clamp(48px, 8vw, 96px);
            font-weight: 200;
            line-height: 0.9;
            letter-spacing: -3px;
            margin-bottom: 40px;
        }

        .header h1 span {
            color: var(--accent-gold);
            font-weight: 300;
        }

        .header p {
            font-size: 20px;
            font-weight: 300;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto;
            line-height: 1.6;
        }

        /* Desktop layout */
        .diagnostic-layout {
            display: grid;
            grid-template-columns: 1fr 400px;
            gap: 40px;
            margin-top: 80px;
            align-items: start;
        }

        .form-panel {
            background: rgba(26, 31, 46, 0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            border-radius: 0;
            overflow: hidden;
        }

        .form-header {
            background: var(--secondary);
            padding: 48px;
            border-bottom: 1px solid var(--border);
        }

        .form-header h2 {
            font-size: 32px;
            font-weight: 300;
            letter-spacing: -1px;
            margin-bottom: 16px;
        }

        .form-header p {
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 300;
            line-height: 1.6;
        }

        .form-content {
            padding: 48px;
        }

        .section {
            margin-bottom: 48px;
            padding-bottom: 48px;
            border-bottom: 1px solid var(--border);
            position: relative;
        }

        .section:last-child {
            border-bottom: none;
            margin-bottom: 0;
        }

        .section-title {
            font-size: 24px;
            font-weight: 300;
            margin-bottom: 32px;
            display: flex;
            align-items: center;
            gap: 16px;
            letter-spacing: -0.5px;
        }

        .section-icon {
            width: 32px;
            height: 32px;
            background: linear-gradient(135deg, var(--accent) 0%, var(--accent-gold) 100%);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--primary);
            font-weight: 600;
            font-size: 14px;
        }

        /* Inline insight for mobile */
        .section-insight {
            background: rgba(6, 182, 212, 0.05);
            border-left: 2px solid var(--accent);
            padding: 20px;
            margin: 24px 0;
            display: none;
            animation: fadeInUp 0.5s ease;
        }

        .section-insight.visible {
            display: block;
        }

        .section-insight.warning {
            background: rgba(239, 68, 68, 0.05);
            border-left-color: var(--warning);
        }

        .section-insight.critical {
            background: rgba(239, 68, 68, 0.08);
            border-left-color: var(--warning);
            border-left-width: 3px;
        }

        @keyframes fadeInUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .insight-title-inline {
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 8px;
            font-size: 16px;
            letter-spacing: -0.3px;
        }

        .insight-text-inline {
            color: var(--text-secondary);
            line-height: 1.6;
            font-size: 14px;
            font-weight: 300;
        }

        .form-group {
            margin-bottom: 32px;
        }

        .form-label {
            display: block;
            margin-bottom: 12px;
            font-weight: 400;
            color: var(--text-primary);
            font-size: 16px;
            letter-spacing: -0.2px;
        }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 16px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.03);
            font-size: 15px;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            color: var(--text-primary);
            font-weight: 300;
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(6, 182, 212, 0.03);
        }

        .form-select {
            cursor: pointer;
        }

        .form-select option {
            background: var(--secondary);
            color: var(--text-primary);
        }

        .form-textarea {
            resize: vertical;
            min-height: 100px;
        }

        .radio-group {
            display: grid;
            gap: 12px;
        }

        .radio-option {
            display: flex;
            align-items: center;
            padding: 16px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.02);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 15px;
            font-weight: 300;
        }

        .radio-option:hover {
            border-color: var(--accent);
            background: rgba(6, 182, 212, 0.05);
        }

        .radio-option input[type="radio"] {
            margin-right: 16px;
            transform: scale(1.2);
            accent-color: var(--accent);
        }

        .radio-option.selected {
            border-color: var(--accent);
            background: rgba(6, 182, 212, 0.08);
        }

        .checkbox-group {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 12px;
        }

        .checkbox-option {
            display: flex;
            align-items: center;
            padding: 14px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.02);
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 15px;
            font-weight: 300;
        }

        .checkbox-option:hover {
            border-color: var(--accent);
            background: rgba(6, 182, 212, 0.05);
        }

        .checkbox-option input[type="checkbox"] {
            margin-right: 14px;
            transform: scale(1.2);
            accent-color: var(--accent);
        }

        .checkbox-option.selected {
            border-color: var(--accent);
            background: rgba(6, 182, 212, 0.08);
        }

        /* Desktop insights panel */
        .insights-panel {
            background: rgba(26, 31, 46, 0.4);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid var(--border);
            position: sticky;
            top: 20px;
            height: fit-content;
            max-height: 85vh;
            min-height: 300px;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            z-index: 10;
        }

        .insights-header {
            background: var(--secondary);
            padding: 32px;
            border-bottom: 1px solid var(--border);
        }

        .insights-header h3 {
            font-size: 24px;
            font-weight: 300;
            letter-spacing: -0.5px;
            margin-bottom: 8px;
        }

        .insights-header p {
            color: var(--text-secondary);
            font-size: 14px;
            font-weight: 300;
        }

        .insights-content {
            padding: 32px;
            overflow-y: auto;
            flex: 1;
        }

        .undertow-meter {
            margin-bottom: 40px;
        }

        .meter-label {
            display: flex;
            justify-content: space-between;
            margin-bottom: 12px;
            font-size: 14px;
            font-weight: 400;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            color: var(--text-secondary);
        }

        .meter-label span:last-child {
            color: var(--accent-gold);
            font-weight: 500;
        }

        .meter-bar {
            height: 8px;
            background: var(--border);
            overflow: hidden;
            position: relative;
        }

        .meter-fill {
            height: 100%;
            background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
            width: 0%;
            transition: width 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .insight-item {
            background: rgba(6, 182, 212, 0.05);
            border-left: 2px solid var(--accent);
            padding: 24px;
            margin-bottom: 20px;
            opacity: 0;
            transform: translateX(20px);
            transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .insight-item.visible {
            opacity: 1;
            transform: translateX(0);
        }

        .insight-item.warning {
            background: rgba(239, 68, 68, 0.05);
            border-left-color: var(--warning);
        }

        .insight-item.critical {
            background: rgba(239, 68, 68, 0.08);
            border-left-color: var(--warning);
            border-left-width: 3px;
        }

        .insight-title {
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 12px;
            font-size: 18px;
            letter-spacing: -0.3px;
        }

        .insight-text {
            color: var(--text-secondary);
            line-height: 1.6;
            margin-bottom: 16px;
            font-size: 14px;
            font-weight: 300;
        }

        .insight-impact {
            font-size: 12px;
            font-weight: 500;
            padding: 6px 14px;
            display: inline-block;
            letter-spacing: 0.5px;
            text-transform: uppercase;
        }

        .impact-low {
            background: rgba(39, 174, 96, 0.1);
            color: var(--success);
        }

        .impact-medium {
            background: rgba(245, 158, 11, 0.1);
            color: var(--accent-gold);
        }

        .impact-high {
            background: rgba(239, 68, 68, 0.1);
            color: var(--warning);
        }

        /* Mobile insights modal */
        .insights-modal {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(10, 14, 26, 0.95);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            z-index: 2000;
            display: none;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .insights-modal.visible {
            opacity: 1;
        }

        .insights-modal-content {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: var(--secondary);
            border-radius: 20px 20px 0 0;
            max-height: 80vh;
            transform: translateY(100%);
            transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            overflow: hidden;
            display: flex;
            flex-direction: column;
            border: 1px solid var(--border);
            border-bottom: none;
        }

        .insights-modal.visible .insights-modal-content {
            transform: translateY(0);
        }

        .insights-modal-header {
            background: linear-gradient(135deg, var(--secondary) 0%, rgba(6, 182, 212, 0.1) 100%);
            padding: 24px;
            text-align: center;
            position: relative;
            border-bottom: 1px solid var(--border);
        }

        .insights-modal-header h3 {
            font-size: 24px;
            font-weight: 300;
            letter-spacing: -0.5px;
            margin-bottom: 16px;
        }

        .insights-modal-close {
            position: absolute;
            top: 20px;
            right: 20px;
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            color: var(--text-secondary);
            width: 32px;
            height: 32px;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: color 0.3s ease;
        }

        .insights-modal-close:hover {
            color: var(--text-primary);
        }

        .insights-modal-body {
            padding: 24px;
            overflow-y: auto;
            flex: 1;
        }

        .submit-section {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
            margin: 48px -48px -48px -48px;
            padding: 48px;
            text-align: center;
            border-top: 1px solid var(--border);
        }

        .submit-section h3 {
            font-size: 32px;
            font-weight: 300;
            letter-spacing: -1px;
            margin-bottom: 16px;
        }

        .submit-section p {
            color: var(--text-secondary);
            font-size: 16px;
            font-weight: 300;
            margin-bottom: 32px;
        }

        .email-capture {
            max-width: 500px;
            margin: 32px auto;
            display: flex;
            gap: 16px;
        }

        .email-input {
            flex: 1;
            padding: 18px 24px;
            border: 1px solid var(--border);
            background: rgba(255, 255, 255, 0.05);
            font-size: 15px;
            color: var(--text-primary);
            font-weight: 300;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        .email-input::placeholder {
            color: var(--text-muted);
        }

        .email-input:focus {
            outline: none;
            border-color: var(--accent);
            background: rgba(6, 182, 212, 0.05);
        }

        .submit-btn {
            background: var(--accent);
            color: var(--primary);
            border: none;
            padding: 18px 40px;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            font-size: 15px;
            letter-spacing: 0.5px;
            position: relative;
            overflow: hidden;
        }

        .submit-btn::before {
            content: '';
            position: absolute;
            top: 50%;
            left: 50%;
            width: 0;
            height: 0;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            transform: translate(-50%, -50%);
            transition: width 0.6s ease, height 0.6s ease;
        }

        .submit-btn:hover::before {
            width: 300px;
            height: 300px;
        }

        .submit-btn:hover {
            transform: translateY(-2px);
        }

        /* Mobile-specific styles */
        @media (max-width: 1024px) {
            .diagnostic-layout {
                grid-template-columns: 1fr;
                gap: 0;
            }

            .insights-panel {
                display: none;
            }

            .header {
                margin-bottom: 60px;
            }

            .section-insight {
                display: block;
            }
        }

        @media (max-width: 768px) {
            .form-content {
                padding: 32px 24px;
            }

            .form-header {
                padding: 32px 24px;
            }

            .email-capture {
                flex-direction: column;
            }

            .submit-btn {
                width: 100%;
            }

            .checkbox-group {
                grid-template-columns: 1fr;
            }

            .header h1 {
                font-size: 36px;
            }

            .header p {
                font-size: 16px;
            }

            .undertow-header-content {
                padding: 0 10px;
            }

            .insights-toggle {
                padding: 8px 16px;
                font-size: 13px;
            }
        }

        /* Progress indicator — integrated into nav bottom edge, mobile only */
        .progress-indicator {
            position: absolute;
            bottom: 0;
            left: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--accent) 0%, var(--accent-gold) 100%);
            transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        }

        @media (min-width: 1025px) {
            .progress-indicator {
                display: none;
            }
        }

        /* Floating problems indicator for mobile */
        .floating-problems {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: var(--warning);
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3);
            z-index: 1500;
            display: none;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            border: none;
            letter-spacing: 0.3px;
        }

        .floating-problems:hover {
            transform: translateY(-2px);
            box-shadow: 0 15px 40px rgba(239, 68, 68, 0.4);
        }

        .floating-problems.visible {
            display: block;
        }