/* =============================================
   CRS365 AI Tool Matcher — Style Sheet
   Premium Consulting Aesthetic
   ============================================= */

:root {
    --bg-primary: #D4DFFF;
    --bg-gradient-start: #D4DFFF;
    --bg-gradient-end: #E8EDFF;
    --bg-hero-overlay: linear-gradient(135deg, #C8D6FF 0%, #D4DFFF 40%, #E4E8F8 100%);
    --navy: #1A3A5C;
    --navy-dark: #0F2744;
    --navy-light: #2A5580;
    --teal: #0D4F4F;
    --teal-hover: #0A3F3F;
    --teal-light: #0D6F6F;
    --white: #FFFFFF;
    --card-bg: #FFFFFF;
    --card-shadow: 0 2px 16px rgba(26, 58, 92, 0.08);
    --card-shadow-hover: 0 8px 32px rgba(26, 58, 92, 0.14);
    --border: #C8D4E8;
    --border-light: #E0E7F4;
    --text-primary: #1A3A5C;
    --text-secondary: #4A6580;
    --text-muted: #7A8FA4;
    --green: #0FA860;
    --green-bg: #E6F9EE;
    --yellow: #D4A017;
    --yellow-bg: #FFF8E1;
    --orange: #D46A17;
    --orange-bg: #FFF0E1;
    --red: #D43B17;
    --font-serif: 'DM Serif Display', Georgia, serif;
    --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--text-primary);
    background: var(--bg-hero-overlay);
    min-height: 100vh;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============ HEADER ============ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(212, 223, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(200, 212, 232, 0.5);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.logo-img-sm {
    width: 34px;
    height: 34px;
}

.logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
}

.logo-circle-sm {
    width: 32px;
    height: 32px;
    font-size: 11px;
}

.logo-text {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy);
}

.logo-365 {
    color: var(--teal);
}

.header-nav a {
    color: var(--navy);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.7;
    transition: opacity var(--transition);
}

.header-nav a:hover {
    opacity: 1;
}

/* ============ SECTIONS ============ */
.section {
    display: none;
    min-height: calc(100vh - 73px);
    padding: 60px 24px;
}

.section.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ============ HERO ============ */
.hero-section {
    gap: 60px;
    flex-wrap: wrap;
    padding-top: 40px;
}

.hero-content {
    max-width: 580px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(13, 79, 79, 0.1);
    border: 1px solid rgba(13, 79, 79, 0.2);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--teal);
    margin-bottom: 24px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
    color: var(--navy-dark);
    margin-bottom: 20px;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.hero-sub strong {
    color: var(--teal);
    font-weight: 600;
}

.social-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
    font-size: 14px;
    color: var(--text-muted);
}

.proof-avatars {
    display: flex;
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-right: -8px;
}

.a1 { background: linear-gradient(135deg, #667eea, #764ba2); }
.a2 { background: linear-gradient(135deg, #f093fb, #f5576c); }
.a3 { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.a4 { background: linear-gradient(135deg, #43e97b, #38f9d7); }

.social-proof strong {
    color: var(--navy);
}

/* Hero Visual */
.hero-visual {
    position: relative;
    width: 340px;
    height: 340px;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-card {
    position: absolute;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    padding: 20px 28px;
    animation: float 6s ease-in-out infinite;
}

.hc1 {
    top: 20px;
    left: 40px;
    animation-delay: 0s;
}

.hc2 {
    top: 130px;
    right: 0;
    animation-delay: 2s;
}

.hc3 {
    bottom: 20px;
    left: 20px;
    animation-delay: 4s;
}

.hc-score {
    font-family: var(--font-serif);
    font-size: 48px;
    color: var(--green);
    line-height: 1;
}

.hc-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 4px;
}

.hc-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-top: 4px;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--teal);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(13, 79, 79, 0.3);
}

.btn-primary:hover {
    background: var(--teal-hover);
    box-shadow: 0 4px 16px rgba(13, 79, 79, 0.4);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--navy-light);
    box-shadow: 0 2px 8px rgba(26, 58, 92, 0.1);
}

.btn-large {
    padding: 16px 36px;
    font-size: 17px;
    border-radius: var(--radius);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-outline-teal {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline-teal:hover {
    background: var(--teal);
    color: var(--white);
}

/* ============ ASSESSMENT FORM ============ */
.assessment-section {
    flex-direction: column;
    gap: 0;
    padding-top: 40px;
}

.form-container {
    max-width: 640px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(26, 58, 92, 0.1);
    padding: 40px 48px 32px;
    animation: fadeInUp 0.5s ease-out;
}

.form-progress {
    margin-bottom: 36px;
}

.progress-bar {
    height: 6px;
    background: var(--border-light);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal), var(--teal-light));
    border-radius: 3px;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 16.67%;
}

.progress-text {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.form-step {
    display: none;
    animation: fadeInUp 0.4s ease-out;
}

.form-step.active {
    display: block;
}

.form-step h2 {
    font-family: var(--font-serif);
    font-size: 26px;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.form-hint {
    color: var(--text-muted);
    font-size: 15px;
    margin-bottom: 28px;
}

/* Radio Cards */
.radio-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 12px;
}

.radio-group-vertical {
    grid-template-columns: 1fr;
}

.radio-card {
    cursor: pointer;
}

.radio-card input {
    display: none;
}

.radio-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    background: var(--white);
}

.radio-card input:checked + .radio-card-inner {
    border-color: var(--teal);
    background: rgba(13, 79, 79, 0.04);
    box-shadow: 0 0 0 1px var(--teal);
}

.radio-card:hover .radio-card-inner {
    border-color: var(--navy-light);
}

.radio-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.radio-label {
    font-weight: 500;
    font-size: 15px;
}

.radio-card-wide .radio-card-inner {
    padding: 20px 24px;
}

.radio-text {
    display: flex;
    flex-direction: column;
}

.radio-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Checkbox Cards */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
}

.checkbox-card {
    cursor: pointer;
}

.checkbox-card input {
    display: none;
}

.checkbox-card-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    background: var(--white);
}

.checkbox-card input:checked + .checkbox-card-inner {
    border-color: var(--teal);
    background: rgba(13, 79, 79, 0.04);
    box-shadow: 0 0 0 1px var(--teal);
}

.checkbox-card:hover .checkbox-card-inner {
    border-color: var(--navy-light);
}

.cb-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.cb-label {
    font-size: 14px;
    font-weight: 500;
}

/* Select & Input */
.select-wrapper {
    position: relative;
}

.select-wrapper select {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition);
}

.select-wrapper select:focus {
    outline: none;
    border-color: var(--teal);
}

.select-wrapper::after {
    content: '▾';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.text-input {
    width: 100%;
    padding: 14px 18px;
    font-family: var(--font-sans);
    font-size: 15px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    transition: border-color var(--transition);
}

.text-input:focus {
    outline: none;
    border-color: var(--teal);
}

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

.other-input-wrapper {
    margin-top: 12px;
}

.hidden {
    display: none !important;
}

/* Form Nav */
.form-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

/* ============ EMAIL GATE ============ */
.email-section {
    flex-direction: column;
    align-items: center;
}

.email-container {
    max-width: 480px;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 40px rgba(26, 58, 92, 0.1);
    padding: 48px;
    animation: fadeInUp 0.5s ease-out;
}

.email-header {
    text-align: center;
    margin-bottom: 32px;
}

.checkmark-circle {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(13, 79, 79, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    animation: scaleIn 0.5s ease-out;
}

.email-header h2 {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.email-header p {
    color: var(--text-secondary);
    font-size: 15px;
}

.email-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
}

.required {
    color: var(--red);
}

.optional {
    color: var(--text-muted);
    font-weight: 400;
}

.newsletter-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.newsletter-check input {
    margin-top: 3px;
    accent-color: var(--teal);
}

.fine-print {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============ RESULTS DASHBOARD ============ */
.results-section {
    flex-direction: column;
    align-items: center;
    padding-top: 40px;
    min-height: auto;
}

.results-section.active {
    display: flex;
}

.results-container {
    max-width: 1200px;
    width: 100%;
    animation: fadeInUp 0.6s ease-out;
}

.results-header {
    text-align: center;
    margin-bottom: 48px;
}

.results-header h2 {
    font-family: var(--font-serif);
    font-size: 36px;
    color: var(--navy-dark);
    margin-bottom: 8px;
}

.results-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
}

/* Top Matches */
.top-matches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 48px;
}

.top-match-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--card-shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.top-match-card:hover {
    box-shadow: var(--card-shadow-hover);
    transform: translateY(-2px);
}

.top-match-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.top-match-card.rank-1::before { background: linear-gradient(90deg, var(--teal), #0D6F6F); }
.top-match-card.rank-2::before { background: linear-gradient(90deg, var(--navy), var(--navy-light)); }
.top-match-card.rank-3::before { background: linear-gradient(90deg, #4A6580, #7A8FA4); }
.top-match-card.rank-4::before { background: linear-gradient(90deg, #7A8FA4, #A0B0C0); }

.top-match-rank {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.top-match-name {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy-dark);
    margin-bottom: 4px;
}

.category-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.badge-automation { background: #E3F2FD; color: #1565C0; }
.badge-ai { background: #F3E5F5; color: #7B1FA2; }
.badge-crm { background: #E8F5E9; color: #2E7D32; }
.badge-analytics { background: #FFF3E0; color: #E65100; }

/* Score Gauge */
.score-gauge {
    width: 80px;
    height: 80px;
    margin: 0 auto 12px;
    position: relative;
}

.score-gauge svg {
    transform: rotate(-90deg);
}

.score-gauge-bg {
    fill: none;
    stroke: var(--border-light);
    stroke-width: 6;
}

.score-gauge-fill {
    fill: none;
    stroke-width: 6;
    stroke-linecap: round;
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-gauge-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
}

.top-match-why {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
}

.top-match-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
}

/* Filter Bar */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px 20px;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-tab {
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--white);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.filter-tab:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.filter-tab.active {
    background: var(--teal);
    border-color: var(--teal);
    color: var(--white);
}

.filter-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sort-select {
    padding: 8px 14px;
    font-family: var(--font-sans);
    font-size: 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    cursor: pointer;
}

/* Results Grid */
.results-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 48px;
}

.result-row {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all var(--transition);
}

.result-row:hover {
    box-shadow: var(--card-shadow-hover);
}

.result-row-main {
    display: grid;
    grid-template-columns: 40px 1.4fr 0.8fr 120px 100px 1fr 44px;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    cursor: pointer;
}

.result-checkbox {
    accent-color: var(--teal);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.result-name-col {
    display: flex;
    flex-direction: column;
}

.result-name {
    font-weight: 600;
    font-size: 15px;
    color: var(--navy-dark);
}

.result-category {
    font-size: 12px;
    color: var(--text-muted);
}

.result-score-col {
    display: flex;
    align-items: center;
    gap: 10px;
}

.score-bar-container {
    flex: 1;
    height: 8px;
    background: var(--border-light);
    border-radius: 4px;
    overflow: hidden;
}

.score-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.score-bar-value {
    font-weight: 700;
    font-size: 14px;
    min-width: 30px;
}

.result-pricing {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.result-ease {
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 100px;
    text-align: center;
    font-weight: 500;
}

.ease-easy { background: var(--green-bg); color: var(--green); }
.ease-moderate { background: var(--yellow-bg); color: var(--yellow); }
.ease-advanced { background: var(--orange-bg); color: var(--orange); }

.result-bestfor {
    font-size: 13px;
    color: var(--text-secondary);
}

.expand-icon {
    font-size: 18px;
    color: var(--text-muted);
    transition: transform var(--transition);
    text-align: center;
}

.result-row.expanded .expand-icon {
    transform: rotate(180deg);
}

.result-expanded {
    display: none;
    padding: 0 24px 24px;
    border-top: 1px solid var(--border-light);
    animation: slideDown 0.3s ease-out;
}

.result-row.expanded .result-expanded {
    display: block;
}

.expanded-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding-top: 20px;
}

.expanded-col h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.expanded-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.expanded-col li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.expanded-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.pros-list li::before {
    background: var(--green);
}

.cons-list li::before {
    background: var(--orange);
}

.integrations-list li::before {
    background: var(--navy-light);
}

/* Comparison Modal */
.comparison-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.comparison-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
}

.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 39, 68, 0.5);
    backdrop-filter: blur(4px);
}

.comparison-panel {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(26, 58, 92, 0.2);
    max-width: 900px;
    width: 95%;
    max-height: 85vh;
    overflow-y: auto;
    animation: scaleIn 0.3s ease-out;
}

.comparison-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 32px;
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 2;
}

.comparison-header h3 {
    font-family: var(--font-serif);
    font-size: 22px;
    color: var(--navy-dark);
}

.close-modal {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--border-light);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
}

.close-modal:hover {
    background: var(--border);
}

.comparison-body {
    padding: 32px;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    border-bottom: 2px solid var(--border-light);
}

.comparison-table td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-light);
    vertical-align: top;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table .tool-header {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--navy-dark);
}

.comparison-score {
    font-weight: 700;
    font-size: 20px;
}

/* Spotlight Section */
.spotlight-section {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 40px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.spotlight-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--teal), var(--navy-light), var(--teal));
}

.spotlight-badge {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(13, 79, 79, 0.1);
    color: var(--teal);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.spotlight-title {
    font-family: var(--font-serif);
    font-size: 28px;
    color: var(--navy-dark);
    margin-bottom: 12px;
}

.spotlight-desc {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
    max-width: 700px;
}

.spotlight-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.spotlight-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.spotlight-detail-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}

.spotlight-detail-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--navy);
}

.spotlight-note {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-muted);
    font-style: italic;
}

/* Results CTA */
.results-cta {
    background: linear-gradient(135deg, var(--navy-dark), var(--navy));
    border-radius: var(--radius-lg);
    padding: 52px 48px;
    text-align: center;
    color: var(--white);
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
}

.results-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 79, 79, 0.3), transparent 70%);
    border-radius: 50%;
}

.results-cta::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(212, 223, 255, 0.1), transparent 70%);
    border-radius: 50%;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-match-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.7;
    margin-bottom: 8px;
}

.cta-match-title {
    font-family: var(--font-serif);
    font-size: 32px;
    margin-bottom: 16px;
}

.cta-match-title .cta-score {
    color: #4ADE80;
}

.cta-desc {
    font-size: 16px;
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto 32px;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    background: var(--teal);
    color: var(--white);
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius);
    border: none;
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(13, 79, 79, 0.4);
}

.btn-cta-primary:hover {
    background: var(--teal-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(13, 79, 79, 0.5);
}

.btn-cta-secondary {
    background: transparent;
    color: var(--white);
    padding: 16px 32px;
    font-size: 16px;
    border-radius: var(--radius);
    border: 2px solid rgba(255, 255, 255, 0.3);
    font-family: var(--font-sans);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-cta-secondary:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

/* ============ FOOTER ============ */
.site-footer {
    background: rgba(26, 58, 92, 0.05);
    border-top: 1px solid var(--border-light);
    padding: 40px 24px;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-brand p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============ ANIMATIONS ============ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 500px; }
}

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

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

/* ============ LOADING SPINNER ============ */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(212, 223, 255, 0.9);
    z-index: 500;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.loading-overlay.active {
    display: flex;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-light);
    border-top-color: var(--teal);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.loading-text {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--navy);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
    .hero-section {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 40px 20px;
    }

    .hero-visual {
        width: 280px;
        height: 280px;
        margin: 0 auto;
    }

    .social-proof {
        justify-content: center;
    }

    .form-container {
        padding: 28px 24px 24px;
    }

    .radio-group {
        grid-template-columns: 1fr;
    }

    .checkbox-group {
        grid-template-columns: 1fr;
    }

    .email-container {
        padding: 32px 24px;
    }

    .result-row-main {
        grid-template-columns: 32px 1fr 80px 32px;
        gap: 10px;
        padding: 14px 16px;
    }

    .result-category-col,
    .result-ease,
    .result-bestfor {
        display: none;
    }

    .expanded-grid {
        grid-template-columns: 1fr;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-actions {
        flex-direction: column;
    }

    .results-cta {
        padding: 36px 24px;
    }

    .cta-match-title {
        font-size: 24px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-cta-primary, .btn-cta-secondary {
        justify-content: center;
    }

    .spotlight-section {
        padding: 28px 24px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }

    .comparison-panel {
        width: 98%;
        max-height: 90vh;
    }

    .comparison-body {
        padding: 16px;
        overflow-x: auto;
    }

    .top-matches {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 32px;
    }
    
    .form-step h2 {
        font-size: 22px;
    }

    .top-match-card {
        padding: 20px;
    }
}

/* ============ ADMIN PANEL ============ */
.admin-trigger {
    cursor: pointer;
    opacity: 0.3;
    font-size: 14px;
    transition: opacity var(--transition);
    user-select: none;
}

.admin-trigger:hover {
    opacity: 0.7;
}

.admin-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 39, 68, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-panel {
    background: var(--white);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 80px rgba(15, 39, 68, 0.25);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 28px;
    border-bottom: 1px solid var(--border-light);
}

.admin-header h3 {
    font-family: var(--font-serif);
    color: var(--navy);
    font-size: 20px;
}

.admin-login {
    padding: 48px 28px;
    text-align: center;
}

.admin-login p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.admin-content {
    padding: 20px 28px 28px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.admin-count {
    font-weight: 600;
    color: var(--navy);
    font-size: 14px;
    margin-right: auto;
}

.admin-table-wrap {
    overflow: auto;
    flex: 1;
    min-height: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    white-space: nowrap;
}

.admin-table thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

.admin-table th {
    background: var(--navy);
    color: var(--white);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.admin-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-table tr:nth-child(even) {
    background: #F5F8FF;
}

.admin-table tr:hover {
    background: #EBF0FF;
}

.admin-table .challenges-cell {
    white-space: normal;
    max-width: 250px;
    font-size: 12px;
    line-height: 1.4;
}

.admin-table .tools-cell {
    white-space: normal;
    max-width: 180px;
    font-size: 12px;
}

.admin-badge-yes {
    background: var(--green-bg);
    color: var(--green);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}

.admin-badge-no {
    background: #FEE;
    color: var(--red);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 600;
}
