/* ============================================
   PERSPECTIVES LANDING PAGE
   Refined, premium editorial aesthetic
   ============================================ */

/* CSS Variables - Only 4 colors */
:root {
    --color-background: #FAFAFA;
    --color-body: #1A1A1A;
    --color-muted: #6B6B6B;
    --color-accent: rgb(255, 51, 51);

    --font-logo: 'Syncopate', sans-serif;
    --font-body: 'DM Sans', sans-serif;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    --space-2xl: 12rem;

    --max-width: 1200px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-body);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Typography */
h1, h2, h3 {
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Logo */
.logo {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    color: var(--color-body);
}

.logo-underscore {
    color: var(--color-accent);
}

.logo-small {
    font-size: 0.75rem;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 250, 250, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(26, 26, 26, 0.06);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.nav-link {
    font-size: 0.9375rem;
    color: var(--color-muted);
    transition: color var(--transition);
}

.nav-link:hover {
    color: var(--color-body);
}

.nav-cta {
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    background: var(--color-body);
    color: var(--color-background);
    border-radius: 6px;
    transition: opacity var(--transition);
}

.nav-cta:hover {
    opacity: 0.85;
}

/* Buttons */
.btn {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all var(--transition);
}

.btn-primary {
    background: var(--color-accent);
    color: white;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    padding-top: calc(var(--space-xl) + 60px);
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 500;
    margin-bottom: var(--space-md);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.hero-subhead {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--color-muted);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.15s forwards;
}

.hero .btn {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease 0.3s forwards;
}

/* Proof Section */
.proof {
    padding: var(--space-xl) var(--space-md);
    background: var(--color-body);
    color: var(--color-background);
    text-align: center;
}

.proof > * {
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
}

.proof-context,
.proof-verdict {
    max-width: 900px;
}

.proof-context {
    font-size: 1.125rem;
    color: rgba(250, 250, 250, 0.7);
    margin-bottom: var(--space-lg);
}

.proof-comparison {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

.proof-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.proof-label {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(250, 250, 250, 0.5);
    margin-bottom: var(--space-sm);
}

.proof-number {
    font-size: clamp(5rem, 15vw, 9rem);
    font-weight: 300;
    line-height: 1;
    color: var(--color-accent);
    letter-spacing: -0.03em;
}

.proof-number-muted {
    color: rgba(250, 250, 250, 0.4);
}

.proof-result {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.proof-verdict {
    font-size: 1.125rem;
    color: rgba(250, 250, 250, 0.7);
    margin-bottom: var(--space-md);
}

.proof-link {
    font-size: 0.9375rem;
    color: var(--color-accent);
    transition: opacity var(--transition);
}

.proof-link:hover {
    opacity: 0.8;
}

/* Deliverables */
.deliverables {
    padding: var(--space-2xl) var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.deliverables-stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.deliverable {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: start;
    opacity: 0;
    transform: translateY(40px);
}

.deliverable-audio {
    align-items: center;
}

.deliverable.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.6s ease;
}

.deliverable-text {
    max-width: 480px;
}

.deliverable-title {
    font-size: 1.75rem;
    margin-bottom: var(--space-sm);
}

.deliverable-description {
    color: var(--color-muted);
    max-width: 500px;
}

/* Placeholder boxes for images */
.placeholder-box {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.03) 0%, rgba(26, 26, 26, 0.08) 100%);
    border: 1px dashed rgba(26, 26, 26, 0.15);
    border-radius: 12px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-box-short {
    height: 200px;
}

.placeholder-box-large {
    height: 500px;
}

.placeholder-label {
    font-size: 0.875rem;
    color: var(--color-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── Report Preview ── */
.report-preview {
    position: relative;
    max-width: 520px;
}

.report-card {
    background: var(--color-body);
    color: var(--color-background);
    border-radius: 12px;
    padding: 2rem 2rem 0;
    position: relative;
    overflow: hidden;
}

.report-card-header {
    margin-bottom: 1.5rem;
}

.report-card-logo {
    font-family: var(--font-logo);
    font-weight: 700;
    font-size: 0.6875rem;
    letter-spacing: 0.05em;
    color: var(--color-background);
}

.report-card-question {
    font-size: 1.125rem;
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
    max-width: 380px;
}

.report-card-divider {
    height: 1px;
    background: rgba(250, 250, 250, 0.1);
    margin-bottom: 1.25rem;
}

.report-card-prediction {
    margin-bottom: 1rem;
}

.report-card-label {
    display: block;
    font-size: 0.625rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 0.375rem;
}

.report-card-number {
    font-size: 3.5rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--color-background);
}

.report-card-percent {
    font-size: 2rem;
    font-weight: 300;
}

.report-card-likelihood {
    font-size: 1rem;
    font-weight: 400;
    color: var(--color-accent);
    margin-left: 0.125rem;
}

.report-card-summary {
    font-size: 0.8125rem;
    line-height: 1.55;
    color: rgba(250, 250, 250, 0.6);
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.report-card-table {
    font-size: 0.75rem;
}

.report-table-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(250, 250, 250, 0.1);
    margin-bottom: 0.25rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(250, 250, 250, 0.4);
    font-size: 0.625rem;
}

.report-table-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 1.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(250, 250, 250, 0.05);
    color: rgba(250, 250, 250, 0.7);
}

.report-range {
    font-weight: 600;
    color: var(--color-accent);
}

.report-table-row-fade {
    opacity: 0.45;
}

.report-table-row-fade-deep {
    opacity: 0.2;
}

.report-card-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, transparent, var(--color-body));
    pointer-events: none;
}

.report-preview-note {
    text-align: center;
    font-size: 0.8125rem;
    color: var(--color-muted);
    margin-top: 0.75rem;
    letter-spacing: 0.01em;
}

/* ── Audio Player ── */
.audio-player {
    background: var(--color-body);
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    color: var(--color-background);
    max-width: 520px;
    width: 100%;
}

.audio-player-top {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.audio-play-btn {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(250, 250, 250, 0.2);
    background: transparent;
    color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}

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

.audio-play-btn svg {
    width: 18px;
    height: 18px;
}

.audio-icon-play {
    margin-left: 2px;
}

.audio-info {
    display: flex;
    flex-direction: column;
    gap: 0.1875rem;
    min-width: 0;
}

.audio-title {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-background);
}

.audio-subtitle {
    font-size: 0.8125rem;
    color: rgba(250, 250, 250, 0.45);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.audio-controls {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.audio-time {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    color: rgba(250, 250, 250, 0.4);
    min-width: 2.5rem;
    user-select: none;
}

.audio-time:last-child {
    text-align: right;
}

.audio-progress-wrap {
    flex: 1;
    cursor: pointer;
    padding: 6px 0;
}

.audio-progress-track {
    height: 3px;
    background: rgba(250, 250, 250, 0.1);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.audio-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: var(--color-accent);
    border-radius: 2px;
    transition: width 0.1s linear;
}

/* Multi-outcome */
.multi-outcome {
    padding: var(--space-2xl) var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    align-items: center;
}

.multi-outcome-visual {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.polar-chart-image {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.section-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: 1.25rem;
    color: var(--color-muted);
    margin-bottom: var(--space-md);
}

.section-body {
    color: var(--color-muted);
    margin-bottom: var(--space-sm);
}

.section-body:last-of-type {
    margin-bottom: 0;
}

/* Use Cases */
.use-cases {
    padding: var(--space-2xl) var(--space-md);
    max-width: var(--max-width);
    margin: 0 auto;
}

.use-cases .section-title {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.use-case-card {
    padding: var(--space-lg);
    background: white;
    border-radius: 12px;
    border: 1px solid rgba(26, 26, 26, 0.06);
    transition: all var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

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

.use-case-card:hover {
    border-color: rgba(255, 51, 51, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(26, 26, 26, 0.08);
}

.use-case-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: var(--space-sm);
}

.use-case-examples {
    font-size: 1rem;
    color: var(--color-muted);
    line-height: 1.7;
}

/* Analysis Mode */
.analysis-mode {
    padding: var(--space-xl) var(--space-md);
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.section-title-small {
    font-size: 1.375rem;
    margin-bottom: var(--space-sm);
}

.analysis-mode .section-body {
    font-size: 1rem;
}

/* CTA */
.cta {
    padding: var(--space-2xl) var(--space-md);
    text-align: center;
    background: var(--color-body);
    color: var(--color-background);
}

.cta > * {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.cta-headline {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 500;
    margin-bottom: var(--space-lg);
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.btn-cta {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 2.5rem;
    background: var(--color-accent);
    color: white;
    border-radius: 8px;
    transition: all var(--transition);
}

.btn-cta:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.cta-note {
    font-size: 0.9375rem;
    color: rgba(250, 250, 250, 0.6);
}

.cta-login-link {
    color: var(--color-accent);
    transition: opacity var(--transition);
}

.cta-login-link:hover {
    opacity: 0.8;
}

/* Footer */
.footer {
    padding: var(--space-lg) var(--space-md);
    border-top: 1px solid rgba(26, 26, 26, 0.08);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-link {
    font-size: 0.9375rem;
    color: var(--color-muted);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--color-body);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .multi-outcome {
        grid-template-columns: 1fr;
    }

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

    .proof-comparison {
        gap: var(--space-lg);
    }

    .deliverables {
        padding: var(--space-xl) var(--space-md);
    }

    .multi-outcome {
        padding: var(--space-xl) var(--space-md);
    }

    .use-cases {
        padding: var(--space-xl) var(--space-md);
    }

    .use-cases .section-title {
        margin-bottom: var(--space-lg);
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
    }

    .cta {
        padding: var(--space-xl) var(--space-md);
    }

    .placeholder-box-large {
        height: 350px;
    }
}

@media (max-width: 600px) {
    .nav-links {
        gap: var(--space-sm);
    }

    .nav-link {
        display: none;
    }

    .nav-link:last-of-type,
    .nav-cta {
        display: block;
    }

    .hero {
        min-height: 100vh;
        padding: var(--space-lg) var(--space-sm);
        padding-top: calc(var(--space-lg) + 60px);
        padding-bottom: var(--space-xl);
    }

    .hero-subhead {
        font-size: 1.0625rem;
    }

    .proof {
        padding: var(--space-lg) var(--space-sm);
    }

    .proof-comparison {
        gap: var(--space-md);
    }

    .proof-number {
        font-size: 4rem;
    }

    .proof-result {
        font-size: 1.25rem;
    }

    .deliverables {
        padding: var(--space-lg) var(--space-sm);
    }

    .deliverables-stack {
        gap: var(--space-lg);
    }

    .deliverable-title {
        font-size: 1.5rem;
    }

    .placeholder-box {
        height: 220px;
    }

    .placeholder-box-short {
        height: 140px;
    }

    .report-card {
        padding: 1.5rem 1.5rem 0;
    }

    .report-card-question {
        font-size: 1rem;
    }

    .report-card-number {
        font-size: 2.75rem;
    }

    .report-card-percent {
        font-size: 1.5rem;
    }

    .audio-player {
        padding: 1.25rem;
    }

    .audio-play-btn {
        width: 42px;
        height: 42px;
        min-width: 42px;
    }

    .placeholder-box-large {
        height: 260px;
    }

    .multi-outcome {
        padding: var(--space-lg) var(--space-sm);
        gap: var(--space-md);
    }

    .section-title {
        font-size: 1.75rem;
    }

    .use-cases {
        padding: var(--space-lg) var(--space-sm);
    }

    .use-cases .section-title {
        margin-bottom: var(--space-md);
    }

    .use-cases-grid {
        gap: var(--space-sm);
    }

    .use-case-card {
        padding: var(--space-md);
    }

    .use-case-card:hover {
        transform: none;
        box-shadow: none;
    }

    .analysis-mode {
        padding: var(--space-lg) var(--space-sm);
    }

    .cta {
        padding: var(--space-lg) var(--space-sm);
    }

    .cta-headline {
        font-size: 1.5rem;
    }

    .footer {
        padding: var(--space-md) var(--space-sm);
    }

    .footer-inner {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}
