/**
 * Verity Genesis Live Demo - Page-Specific Styles
 * Uses global.css for nav, footer, and base styles
 * Credasis AI Inc. | 2026
 */

/* ═══════════════════════════════════════════════════════════════════════════
   CSS Variables - matching main site (in case global.css doesn't define them)
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
    --credible: #2D8A6E;
    --credible-dim: rgba(45, 138, 110, 0.15);
    --caution: #D4A847;
    --caution-dim: rgba(212, 168, 71, 0.15);
    --deep-black: #0D0D0D;
    --charcoal: #1A1A1A;
    --warm-white: #F5F3EF;
    --sand: #E8E4DC;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Base Styles
   ═══════════════════════════════════════════════════════════════════════════ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background-color: var(--deep-black) !important;
    color-scheme: dark;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--deep-black);
    color: var(--warm-white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

.font-serif { font-family: 'Cormorant Garamond', serif; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

a {
    color: var(--warm-white);
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Main Content
   ═══════════════════════════════════════════════════════════════════════════ */
main {
    padding-top: 80px;
    min-height: calc(100vh - 300px);
}

.screen {
    display: none;
}

.screen.active {
    display: block;
}

.section-inner {
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-label {
    font-size: 0.65rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 1rem;
    text-align: center;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1.3;
    text-align: center;
}

.section-description {
    font-size: 1.05rem;
    opacity: 0.7;
    max-width: 42rem;
    line-height: 1.8;
    margin: 0 auto 2rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Hero Section
   ═══════════════════════════════════════════════════════════════════════════ */
.hero {
    min-height: 50vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 4rem 2rem;
    position: relative;
    background: var(--deep-black);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    animation: fadeUp 1.2s ease-out;
}

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

.hero h1 {
    font-size: 4rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.hero-tagline {
    font-size: 1.25rem;
    opacity: 0.6;
    letter-spacing: 0.1em;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.7;
    max-width: 38rem;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Page Header
   ═══════════════════════════════════════════════════════════════════════════ */
.page-header {
    padding: 4rem 0 2rem;
    background: var(--deep-black);
}

/* ═══════════════════════════════════════════════════════════════════════════
   Cards
   ═══════════════════════════════════════════════════════════════════════════ */
.card {
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.access-card {
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 3rem;
    max-width: 32rem;
    margin: 0 auto 4rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Buttons
   ═══════════════════════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--warm-white);
    color: var(--deep-black);
}

.btn-primary:hover {
    background: var(--sand);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    background: rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
}

.btn-secondary {
    background: transparent;
    color: var(--warm-white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.btn-outline {
    background: transparent;
    color: var(--warm-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.btn-outline:hover {
    border-color: var(--credible);
    background: var(--credible-dim);
}

.btn-lg {
    padding: 1rem 3rem;
    font-size: 0.9rem;
}

.btn-sm {
    padding: 0.4rem 1rem;
    font-size: 0.7rem;
}

.btn-danger {
    background: transparent;
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.btn-danger:hover {
    background: rgba(231, 76, 60, 0.1);
    border-color: #e74c3c;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.2);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

.hidden {
    display: none !important;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Forms
   ═══════════════════════════════════════════════════════════════════════════ */
.access-form {
    margin: 2rem 0;
}

.input-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

input[type="text"],
textarea {
    background: var(--deep-black);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.875rem 1.25rem;
    font-size: 1rem;
    font-family: 'Outfit', sans-serif;
    color: var(--warm-white);
    transition: border-color 0.3s, background 0.3s;
    width: 100%;
}

input[type="text"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--credible);
    background: rgba(45, 138, 110, 0.05);
}

input[type="text"]::placeholder,
textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.error-message {
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(231, 76, 60, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.contact-info {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-top: 2rem;
}

.contact-info a {
    color: var(--credible);
    opacity: 1;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Upload Zone
   ═══════════════════════════════════════════════════════════════════════════ */
.upload-actions-top {
    margin-bottom: 1.5rem;
    text-align: center;
}

.upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--credible);
    background: var(--credible-dim);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.6;
}

.upload-text {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.upload-subtext {
    font-size: 0.85rem;
    opacity: 0.5;
    margin-bottom: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   File Info
   ═══════════════════════════════════════════════════════════════════════════ */
.file-info {
    background: var(--deep-black);
    border: 1px solid rgba(45, 138, 110, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
}

.file-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.file-name {
    font-weight: 500;
    color: var(--credible);
}

.file-stats {
    display: flex;
    gap: 2rem;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Validation Results
   ═══════════════════════════════════════════════════════════════════════════ */
.validation-results {
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border: 1px solid;
}

.validation-results.success {
    background: var(--credible-dim);
    border-color: rgba(45, 138, 110, 0.3);
}

.validation-results.error {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.3);
}

.validation-results.warning {
    background: var(--caution-dim);
    border-color: rgba(212, 168, 71, 0.3);
}

.validation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.validation-messages {
    list-style: none;
    font-size: 0.85rem;
    opacity: 0.8;
}

.validation-messages li {
    margin: 0.25rem 0;
    padding-left: 1rem;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Preview Table
   ═══════════════════════════════════════════════════════════════════════════ */
.preview-container {
    margin: 1.5rem 0;
}

.preview-container h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.preview-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    font-family: 'JetBrains Mono', monospace;
}

.preview-table th,
.preview-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-table th {
    background: var(--deep-black);
    font-weight: 500;
    opacity: 0.7;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
}

.preview-table td {
    opacity: 0.8;
}

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

.upload-actions {
    margin-top: 2rem;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Metrics Grid
   ═══════════════════════════════════════════════════════════════════════════ */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.metric-card {
    background: var(--charcoal);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s;
}

.metric-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.15);
}

.metric-card.highlight {
    border-color: rgba(45, 138, 110, 0.3);
}

.metric-value {
    font-size: 2rem;
    font-weight: 500;
    color: var(--credible);
    margin-bottom: 0.5rem;
}

.metric-label {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.metric-desc {
    font-size: 0.75rem;
    opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Calibration Info
   ═══════════════════════════════════════════════════════════════════════════ */
.calibration-info h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.info-label {
    opacity: 0.6;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Assessment Section
   ═══════════════════════════════════════════════════════════════════════════ */
.assessment-section h3 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.assessment-section > p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin-bottom: 1rem;
}

.assessment-form {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.assessment-form textarea {
    flex: 1;
    resize: vertical;
    min-height: 80px;
}

.assessment-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: var(--deep-black);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.verdict-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.verdict-badge.commit {
    background: var(--credible-dim);
    color: var(--credible);
    border: 1px solid rgba(45, 138, 110, 0.3);
}

.verdict-badge.escalate {
    background: var(--caution-dim);
    color: var(--caution);
    border: 1px solid rgba(212, 168, 71, 0.3);
}

.assessment-details {
    display: flex;
    gap: 2rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.results-actions {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 992px) {
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    main {
        padding-top: 60px;
    }
    
    .hero {
        min-height: 40vh;
        padding: 3rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .section-inner {
        padding: 0 1.5rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .card {
        padding: 1.5rem;
    }
    
    .access-card {
        padding: 2rem 1.5rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .assessment-form {
        flex-direction: column;
    }
    
    .assessment-result {
        flex-direction: column;
        text-align: center;
    }
    
    .assessment-details {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .file-stats {
        flex-direction: column;
        gap: 0.5rem;
    }
}
