/* ==========================================
   CLEARIOLTA — DESIGN SYSTEM & LANDING PAGE
   Institutional Legal Aesthetic
   ========================================== */

/* ---- CSS RESET & BASE ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Primary Palette */
    --navy: #0F172A;
    --navy-light: #1E293B;
    --slate: #334155;
    --slate-light: #64748B;
    --slate-muted: #94A3B8;
    
    /* Accent */
    --gold: #B45309;
    --gold-light: #D97706;
    --gold-bg: #FEF3C7;
    
    /* Backgrounds */
    --bg-primary: #FAFAF8;
    --bg-secondary: #F1F0EC;
    --bg-card: #FFFFFF;
    
    /* Status */
    --success: #16A34A;
    --success-bg: #F0FDF4;
    --danger: #DC2626;
    --danger-bg: #FEF2F2;
    --danger-light: #991B1B;
    
    /* Typography */
    --font-serif: 'EB Garamond', Georgia, 'Times New Roman', serif;
    --font-sans: Georgia, 'EB Garamond', 'Times New Roman', serif;
    
    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1140px;
    --border-radius: 8px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 20px 60px rgba(15, 23, 42, 0.15), 0 8px 20px rgba(15, 23, 42, 0.08);
}

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

body {
    font-family: var(--font-sans);
    color: var(--navy);
    background-color: var(--bg-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    line-height: 1.2;
    font-weight: 600;
}

/* ---- UTILITY ---- */
.section-label {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 16px;
    padding: 6px 14px;
    background: var(--gold-bg);
    border-radius: 4px;
}

/* ==========================================
   NAVIGATION
   ========================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(250, 250, 248, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.3s ease;
}

.nav--scrolled {
    box-shadow: var(--shadow-sm);
}

.nav__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-sans);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.nav__logo strong {
    font-weight: 700;
}

.nav__logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--slate);
    transition: color 0.2s ease;
}

.nav__links a:hover {
    color: var(--navy);
}

.nav__cta-btn {
    padding: 10px 24px !important;
    background: var(--navy) !important;
    color: #fff !important;
    border-radius: 6px;
    font-weight: 600 !important;
    transition: background 0.2s ease, transform 0.15s ease !important;
}

.nav__cta-btn:hover {
    background: var(--navy-light) !important;
    transform: translateY(-1px);
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 140px 32px 100px;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(135deg, transparent 0%, rgba(254, 243, 199, 0.3) 100%);
    pointer-events: none;
}

.hero__container {
    max-width: var(--container-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 64px;
    align-items: start;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--gold-bg);
    border: 1px solid rgba(180, 83, 9, 0.15);
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--gold);
    margin-bottom: 28px;
}

.hero__headline {
    font-size: 3.2rem;
    font-weight: 600;
    line-height: 1.18;
    color: var(--navy);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}

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

.hero__subheadline {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--slate);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero__trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.hero__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate-light);
}

/* ---- HERO FORM CARD ---- */
.hero__form-wrapper {
    position: relative;
    z-index: 2;
}

.hero__form-card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 36px 32px 28px;
    box-shadow: var(--shadow-xl);
    position: relative;
}

.hero__form-header {
    margin-bottom: 28px;
    text-align: center;
}

.hero__form-header h3 {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 8px;
}

.hero__form-header p {
    font-size: 0.88rem;
    color: var(--slate-light);
    line-height: 1.5;
}

.hero__form-group {
    margin-bottom: 18px;
}

.hero__form-group label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 6px;
    letter-spacing: 0;
}

.hero__form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--navy);
    background: #FFFFFF;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
}

.hero__form-group input::placeholder {
    color: var(--slate-muted);
}

.hero__form-group input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.08);
}

.hero__form-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--navy);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    margin-top: 4px;
}

.hero__form-btn:hover {
    background: var(--navy-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
}

.hero__form-btn:active {
    transform: translateY(0);
}

.hero__form-note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--slate-muted);
    margin-top: 14px;
}

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

.hero__form-success-icon {
    margin-bottom: 16px;
}

.hero__form-success h3 {
    font-family: var(--font-serif);
    font-size: 1.6rem;
    color: var(--success);
    margin-bottom: 8px;
}

.hero__form-success p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.6;
}

.hero__form-spots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    font-size: 0.82rem;
    color: var(--slate-light);
}

.hero__form-spots-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--danger);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* ==========================================
   PROBLEM / REGULATORY REALITY
   ========================================== */
.problem {
    padding: var(--section-padding);
    padding-left: 32px;
    padding-right: 32px;
    background: var(--bg-secondary);
}

.problem__container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.problem__header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 56px;
}

.problem__header h2 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.problem__subtitle {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.7;
}

.problem__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 56px;
}

.problem__card {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--border-radius);
    padding: 36px 28px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.problem__card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem__card--danger {
    border-top: 3px solid var(--danger);
}

.problem__card-icon {
    margin-bottom: 20px;
}

.problem__card h3 {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--navy);
}

.problem__card p {
    font-size: 0.92rem;
    color: var(--slate);
    line-height: 1.6;
}

/* ---- STAT BAR ---- */
.problem__stat-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    background: var(--navy);
    border-radius: 12px;
    padding: 40px 48px;
}

.problem__stat {
    text-align: center;
}

.problem__stat-number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1;
}

.problem__stat-suffix {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold-light);
}

.problem__stat-label {
    display: block;
    font-size: 0.82rem;
    color: var(--slate-muted);
    margin-top: 8px;
    max-width: 200px;
}

.problem__stat-divider {
    width: 1px;
    height: 64px;
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how {
    padding: var(--section-padding);
    padding-left: 32px;
    padding-right: 32px;
    background: var(--bg-primary);
}

.how__container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.how__container > h2 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 56px;
    letter-spacing: -0.02em;
    max-width: 600px;
}

.how__steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.how__step {
    display: grid;
    grid-template-columns: 64px 1fr 380px;
    gap: 32px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 12px;
    padding: 40px 36px;
    transition: box-shadow 0.3s ease;
}

.how__step:hover {
    box-shadow: var(--shadow-md);
}

.how__step-number {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(15, 23, 42, 0.08);
    line-height: 1;
}

.how__step-content h3 {
    font-family: var(--font-serif);
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: var(--navy);
}

.how__step-content p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.65;
}

/* ---- Step Visuals ---- */
.how__step-visual {
    display: flex;
    justify-content: flex-end;
}

/* Upload Zone Mockup */
.how__upload-mockup {
    width: 100%;
    max-width: 320px;
}

.how__upload-zone {
    border: 2px dashed rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    padding: 32px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: var(--bg-primary);
}

.how__upload-zone span {
    font-size: 0.85rem;
    color: var(--slate-muted);
}

/* Reconcile Mockup */
.how__reconcile-mockup {
    width: 100%;
    max-width: 320px;
    background: var(--bg-primary);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.how__reconcile-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid rgba(15, 23, 42, 0.04);
}

.how__reconcile-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--slate);
}

.how__reconcile-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

.how__reconcile-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
}

.how__reconcile-status--match {
    color: var(--success);
    background: var(--success-bg);
}

.how__reconcile-status--mismatch {
    color: var(--danger);
    background: var(--danger-bg);
}

/* Report Mockup */
.how__report-mockup {
    width: 100%;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.how__report-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    background: var(--navy);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
}

.how__report-badge {
    padding: 3px 10px;
    background: var(--success);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.how__report-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.how__report-line {
    height: 10px;
    background: var(--bg-secondary);
    border-radius: 4px;
    width: 100%;
}

.how__report-line--short {
    width: 60%;
}

.how__report-line--medium {
    width: 80%;
}

/* ==========================================
   SAMPLE REPORT PREVIEW
   ========================================== */
.preview {
    padding: var(--section-padding);
    padding-left: 32px;
    padding-right: 32px;
    background: var(--bg-secondary);
}

.preview__container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.preview__container > h2 {
    font-size: 2.4rem;
    color: var(--navy);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.preview__subtitle {
    font-size: 1.05rem;
    color: var(--slate);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 40px;
}

.preview__report {
    background: var(--bg-card);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.preview__report-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--navy);
    color: #fff;
}

.preview__report-logo {
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.preview__report-meta {
    display: flex;
    gap: 24px;
    font-size: 0.82rem;
    color: var(--slate-muted);
}

.preview__report-section {
    padding: 28px 32px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.preview__report-section:last-child {
    border-bottom: none;
}

.preview__report-section h4 {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-light);
    margin-bottom: 18px;
}

.preview__table {
    width: 100%;
    border-collapse: collapse;
}

.preview__table th {
    text-align: left;
    font-family: var(--font-sans);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--slate-muted);
    padding: 10px 16px;
    border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}

.preview__table td {
    padding: 14px 16px;
    font-size: 0.92rem;
    color: var(--navy);
    border-bottom: 1px solid rgba(15, 23, 42, 0.04);
    font-variant-numeric: tabular-nums;
}

.preview__table-row--flagged {
    background: var(--danger-bg);
}

.preview__status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 700;
}

.preview__status--pass {
    color: var(--success);
    background: var(--success-bg);
}

.preview__status--fail {
    color: var(--danger);
    background: var(--danger-bg);
}

.preview__variance {
    color: var(--danger) !important;
    font-weight: 700;
}

.preview__issue-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(220, 38, 38, 0.08);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--danger-light);
}

.preview__report-note {
    margin-top: 16px;
    padding: 16px 20px;
    background: var(--gold-bg);
    border-left: 4px solid var(--gold);
    border-radius: 0 6px 6px 0;
    font-size: 0.88rem;
    color: var(--slate);
    line-height: 1.6;
}

.preview__report-note strong {
    color: var(--navy);
}

/* ==========================================
   FINAL CTA
   ========================================== */
.cta {
    padding: 80px 32px;
    background: var(--navy);
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(217, 119, 6, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.cta__container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.cta__content {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
}

.cta__content h2 {
    font-size: 2.4rem;
    color: #fff;
    margin-bottom: 18px;
    letter-spacing: -0.02em;
}

.cta__content p {
    font-size: 1.08rem;
    color: var(--slate-muted);
    line-height: 1.7;
    margin-bottom: 36px;
}

.cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 36px;
    background: var(--gold);
    color: #fff;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 1.05rem;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.cta__btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(180, 83, 9, 0.3);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    padding: 64px 32px 32px;
    background: #080D19;
    color: var(--slate-muted);
}

.footer__container {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer__top {
    display: flex;
    justify-content: space-between;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 28px;
}

.footer__logo {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    color: #fff;
    display: block;
    margin-bottom: 12px;
}

.footer__brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--slate-light);
}

.footer__links {
    display: flex;
    gap: 80px;
}

.footer__col h4 {
    font-family: var(--font-sans);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--slate-muted);
    margin-bottom: 16px;
}

.footer__col a {
    display: block;
    font-size: 0.88rem;
    color: var(--slate-light);
    margin-bottom: 10px;
    transition: color 0.2s ease;
}

.footer__col a:hover {
    color: #fff;
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: var(--slate-light);
}

/* ==========================================
   SCROLL ANIMATIONS
   ========================================== */
.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
    .hero__container {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero__headline {
        font-size: 2.6rem;
    }
    
    .hero__form-card {
        max-width: 480px;
    }
    
    .how__step {
        grid-template-columns: 48px 1fr;
    }
    
    .how__step-visual {
        grid-column: 1 / -1;
        justify-content: center;
    }
    
    .how__upload-mockup,
    .how__reconcile-mockup,
    .how__report-mockup {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 20px 60px;
    }
    
    .hero__headline {
        font-size: 2rem;
    }
    
    .hero__badge {
        font-size: 0.7rem;
    }
    
    .problem__grid {
        grid-template-columns: 1fr;
    }
    
    .problem__stat-bar {
        flex-direction: column;
        gap: 28px;
        padding: 32px 24px;
    }
    
    .problem__stat-divider {
        width: 64px;
        height: 1px;
    }
    
    .problem__header h2,
    .how__container > h2,
    .preview__container > h2,
    .cta__content h2 {
        font-size: 1.8rem;
    }
    
    .nav__links a:not(.nav__cta-btn) {
        display: none;
    }
    
    .preview__report-topbar {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .preview__report-meta {
        flex-direction: column;
        gap: 4px;
    }
    
    .preview__table--detail th,
    .preview__table--detail td {
        font-size: 0.75rem;
        padding: 10px 8px;
    }
    
    .footer__top {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: 8px;
    }
    
    .hero__trust-row {
        flex-direction: column;
        gap: 10px;
    }
}
