/* ============================================
   NoirWorx Score — Design System
   Dark, editorial, confident. Not generic.
   ============================================ */

:root {
    --bg-primary: #0a0a0f;
    --bg-card: #12121e;
    --bg-elevated: #1a1a2a;
    --text-primary: #e8e8f0;
    --text-secondary: #8888aa;
    --text-muted: #555570;
    --accent: #FF6B35;
    --accent-glow: rgba(255, 107, 53, 0.15);
    --green: #22c55e;
    --yellow: #eab308;
    --red: #ef4444;
    --border: #222238;
    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   HERO
   ============================================ */

#hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,107,53,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,107,53,0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 70%);
}

.hero-container {
    position: relative;
    text-align: center;
    max-width: 640px;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--accent);
    border: 1px solid rgba(255,107,53,0.3);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 32px;
    animation: fadeInUp 0.6s ease both;
}

.hero-title {
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.hero-accent {
    color: var(--accent);
    font-style: italic;
}

.hero-subtitle {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 36px;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

.feature-icon {
    font-size: 16px;
    color: var(--accent);
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    padding: 18px 44px;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease 0.4s both;
}

.hero-cta:hover {
    background: #e85a28;
    transform: translateY(-2px);
}

.cta-arrow { font-size: 20px; transition: transform 0.2s; }
.hero-cta:hover .cta-arrow { transform: translateX(4px); }

.hero-footnote {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 16px;
    animation: fadeInUp 0.6s ease 0.5s both;
}

.hero-bottom-fade {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 120px;
    background: linear-gradient(transparent, var(--bg-primary));
}

/* ============================================
   ASSESSMENT
   ============================================ */

#assessment-section {
    min-height: 100vh;
    padding: 30px 20px 60px;
}

.assessment-container {
    max-width: 640px;
    margin: 0 auto;
}

.assessment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.assessment-logo {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
}

.logo-noir { color: #fff; }
.logo-worx { color: #fff; font-weight: 300; }
.logo-score { color: var(--accent); font-weight: 700; margin-left: 6px; font-size: 14px; }

.back-btn {
    background: none;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s;
}

.back-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Progress */
.progress-container {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.progress-bar {
    flex: 1;
    height: 4px;
    background: var(--bg-elevated);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 4px;
    transition: width 0.4s ease;
    width: 0;
}

.progress-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Question Card */
.question-card {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
}

.question-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.question-meta {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--accent);
    margin-bottom: 16px;
}

.question-text {
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.question-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

/* Answers */
.answers-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
}

.answer-option {
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    font-family: var(--font-body);
    color: var(--text-primary);
    width: 100%;
}

.answer-option:hover {
    border-color: rgba(255,107,53,0.4);
    background: rgba(255,107,53,0.04);
}

.answer-option.selected {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.answer-letter {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 10px;
    background: var(--bg-elevated);
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.answer-option.selected .answer-letter {
    background: var(--accent);
    color: #fff;
}

.answer-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

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

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

/* ============================================
   RESULTS
   ============================================ */

#results-section {
    padding: 48px 20px 80px;
}

.results-container {
    max-width: 580px;
    margin: 0 auto;
}

/* Score Display */
.score-display {
    text-align: center;
    margin-bottom: 32px;
}

.score-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--accent);
    margin-bottom: 24px;
}

.score-ring-container {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
}

.score-ring {
    width: 100%;
    height: 100%;
}

.score-inner {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-number {
    font-family: var(--font-mono);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    color: var(--text-primary);
}

.score-of {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Tier */
.tier-info {
    text-align: center;
    margin-bottom: 32px;
}

.tier-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.tier-tagline {
    font-size: 16px;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.tier-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
}

/* Revenue Message */
.revenue-message {
    background: rgba(255,107,53,0.06);
    border: 1px solid rgba(255,107,53,0.2);
    border-radius: 14px;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    text-align: center;
    line-height: 1.5;
    margin-bottom: 36px;
}

/* Section headings */
.section-heading {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 2.5px;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 18px;
}

/* Pillar Bars */
.pillar-section {
    margin-bottom: 40px;
}

.pillar-row {
    margin-bottom: 20px;
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.pillar-icon {
    font-size: 16px;
    color: var(--accent);
    width: 20px;
}

.pillar-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.pillar-desc {
    font-size: 12px;
    color: var(--text-muted);
    flex: 1;
}

.pillar-pct {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}

.pillar-bar-bg {
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 8px;
    overflow: hidden;
}

.pillar-bar-fill {
    height: 100%;
    border-radius: 8px;
    transition: width 1s ease 0.3s;
}

/* Action Items */
.actions-section {
    margin-bottom: 40px;
}

.action-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 16px;
}

.action-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 700;
}

.action-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.action-pillar {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 1.5px;
    color: var(--accent);
    text-transform: uppercase;
}

.action-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
}

/* CTA Block */
.cta-block {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    margin-bottom: 36px;
}

.cta-rec-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cta-rec-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

.cta-primary {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding: 14px 36px;
    border-radius: 50px;
    transition: all 0.25s;
}

.cta-primary:hover { background: #e85a28; transform: translateY(-2px); }

.cta-secondary {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: underline;
    margin-top: 14px;
    transition: color 0.2s;
}

.cta-secondary:hover { color: var(--accent); }

/* PDF Gate */
.pdf-gate-box {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    margin-bottom: 40px;
}

.pdf-gate-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.pdf-gate-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin-bottom: 24px;
}

.email-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.email-field {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s;
}

.email-field::placeholder { color: var(--text-muted); }
.email-field:focus { border-color: var(--accent); }
.email-field.error { border-color: var(--red); }

.email-submit {
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    padding: 14px 24px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.email-submit:hover { background: #e85a28; }
.email-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.pdf-gate-privacy {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 12px;
}

.email-success {
    text-align: center;
    padding: 24px;
}

.email-success p {
    font-size: 14px;
    color: var(--green);
}

/* Footer */
.results-footer {
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 32px;
}

.footer-logo {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

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

.footer-links {
    font-size: 12px;
    margin-bottom: 10px;
}

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

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

.footer-sep {
    color: var(--text-muted);
    margin: 0 8px;
}

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

/* ============================================
   ANIMATIONS
   ============================================ */

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

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 600px) {
    .hero-features { flex-direction: column; gap: 12px; align-items: center; }
    .email-form { flex-direction: column; }
    .answer-option { padding: 14px 16px; }
    .pillar-header { flex-wrap: wrap; }
    .pillar-desc { display: none; }
    .cta-block { padding: 28px 20px; }
    .pdf-gate-box { padding: 28px 20px; }
}
