/* ================================================
   BRIDGE — Light Horizontal Modern
   ================================================ */

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

:root {
    --charcoal: #1C1C1E;
    --steel-blue: #4A7FA5;
    --steel-blue-hover: #3A6585;
    --steel-blue-deep: #2D5270;
    --ivory: #FAF8F4;
    --ivory-dark: #F0EDE7;
    --white: #FFFFFF;
    --gray: #6B7280;
    --gray-light: #9CA3AF;
    --border: #E5E0D8;
    --green: #22C55E;
    --green-dark: #16A34A;
    --red: #E53E3E;

    --shadow-xs: 0 1px 2px rgba(28, 28, 30, 0.03);
    --shadow-sm: 0 1px 3px rgba(28, 28, 30, 0.05), 0 1px 2px rgba(28, 28, 30, 0.03);
    --shadow-md: 0 4px 16px rgba(28, 28, 30, 0.06), 0 1px 4px rgba(28, 28, 30, 0.03);
    --shadow-lg: 0 12px 48px rgba(28, 28, 30, 0.08), 0 4px 16px rgba(28, 28, 30, 0.04);
    --shadow-xl: 0 24px 64px rgba(28, 28, 30, 0.1), 0 8px 24px rgba(28, 28, 30, 0.04);
}

html {
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ivory);
    color: var(--charcoal);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* --- Background Elements --- */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(74, 127, 165, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74, 127, 165, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    z-index: 0;
}

.bg-gradient {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(74, 127, 165, 0.06), transparent),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(45, 82, 112, 0.05), transparent);
    z-index: 0;
}

.float-shape {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(74, 127, 165, 0.05), transparent 65%);
    top: -150px;
    right: -100px;
    animation: shapeFloat 14s ease-in-out infinite;
}

.shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(45, 82, 112, 0.04), transparent 65%);
    bottom: -100px;
    left: -50px;
    animation: shapeFloat 18s ease-in-out infinite reverse;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(74, 127, 165, 0.04), transparent 65%);
    top: 60%;
    right: 20%;
    animation: shapeFloat 10s ease-in-out infinite 2s;
}

@keyframes shapeFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(15px, -20px) scale(1.05); }
    66% { transform: translate(-10px, 10px) scale(0.97); }
}

/* --- Page --- */
.page {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 880px;
    padding: 24px;
    animation: pageIn 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes pageIn {
    0% { opacity: 0; transform: translateY(16px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* --- Card --- */
.card {
    display: flex;
    background: var(--white);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(229, 224, 216, 0.6);
    overflow: hidden;
    min-height: 420px;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(74, 127, 165, 0.06);
}

/* --- Left Column --- */
.card-left {
    flex: 1;
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: linear-gradient(160deg, var(--white) 0%, var(--ivory) 100%);
    border-right: 1px solid var(--border);
    position: relative;
}

.card-left::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.brand-icon svg {
    width: 100%;
    height: 100%;
}

.brand-shield, .brand-check {
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-check.hidden {
    opacity: 0;
    transform: scale(0.5);
}

.brand-check:not(.hidden) {
    opacity: 1;
    transform: scale(1);
}

.brand-shield.hidden {
    opacity: 0;
    transform: scale(0.5);
}

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

.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--charcoal);
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.brand-tag {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray);
    letter-spacing: 0.02em;
}

.left-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--charcoal);
    line-height: 1.25;
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    transition: color 0.4s ease;
}

.subtitle {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
    max-width: 320px;
    transition: color 0.4s ease;
}

/* Trust badges */
.trust-badges {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--gray);
    padding: 6px 12px;
    background: var(--ivory);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.badge svg {
    color: var(--steel-blue);
    flex-shrink: 0;
}

/* --- Right Column --- */
.card-right {
    flex: 0 0 380px;
    padding: 44px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.right-inner {
    width: 100%;
    max-width: 300px;
}

/* --- Step Indicator --- */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 32px;
}

.step {
    display: flex;
    align-items: center;
    gap: 8px;
}

.step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 600;
    border: 1.5px solid var(--border);
    color: var(--gray-light);
    background: var(--white);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.step.active .step-num {
    background: var(--steel-blue);
    border-color: var(--steel-blue);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(74, 127, 165, 0.3);
}

.step.done .step-num {
    background: var(--green);
    border-color: var(--green);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(34, 197, 94, 0.3);
}

.step-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray-light);
    transition: color 0.4s ease;
}

.step.active .step-label {
    color: var(--charcoal);
}

.step.done .step-label {
    color: var(--green-dark);
}

.step-line {
    flex: 1;
    height: 2px;
    background: var(--border);
    margin: 0 12px;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.step-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    border-radius: 2px;
}

.step-line.complete::after {
    transform: scaleX(1);
}

/* --- Verify Section --- */
.verify-section {
    margin-bottom: 24px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 6px;
    transition: color 0.4s ease;
}

.section-desc {
    font-size: 0.8rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 20px;
    transition: color 0.4s ease;
}

.turnstile-wrapper {
    min-height: 65px;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.turnstile-wrapper.verified {
    opacity: 0;
    height: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

/* --- Button --- */
.btn-primary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    outline: none;
}

.btn-primary:disabled {
    background: var(--ivory-dark);
    color: var(--gray-light);
    cursor: not-allowed;
    box-shadow: none;
    border: 1px solid var(--border);
}

.btn-primary:not(:disabled) {
    background: linear-gradient(135deg, var(--steel-blue), var(--steel-blue-deep));
    color: var(--white);
    box-shadow: 0 4px 16px rgba(74, 127, 165, 0.3);
    border: 1px solid transparent;
    animation: btnActivate 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes btnActivate {
    0% { transform: scale(0.97); opacity: 0.7; }
    60% { transform: scale(1.02); }
    100% { transform: scale(1); opacity: 1; }
}

.btn-primary:not(:disabled):hover {
    background: linear-gradient(135deg, var(--steel-blue-hover), var(--steel-blue-deep));
    box-shadow: 0 6px 24px rgba(74, 127, 165, 0.4);
    transform: translateY(-1px);
}

.btn-primary:not(:disabled):active {
    transform: translateY(0) scale(0.99);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}

.btn-arrow {
    transition: transform 0.3s ease;
}

.btn-primary:not(:disabled):hover .btn-arrow {
    transform: translateX(3px);
}

.btn-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
}

.btn-primary:not(:disabled) .btn-shimmer {
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* --- Status Text --- */
.status-text {
    text-align: center;
    font-size: 0.7rem;
    color: var(--gray-light);
    margin-top: 14px;
    transition: all 0.4s ease;
}

.status-text.verified {
    color: var(--green);
}

/* --- Footer --- */
.page-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    font-size: 0.7rem;
    color: var(--gray-light);
}

.footer-dot {
    opacity: 0.4;
}

/* --- Verified Card States --- */
.card.verified .title {
    color: var(--charcoal);
}

.card.verified .badge svg {
    color: var(--green);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .card {
        flex-direction: column;
        min-height: auto;
    }

    .card-left {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 32px 28px 28px;
    }

    .card-left::after {
        display: none;
    }

    .card-right {
        flex: none;
        padding: 28px;
    }

    .right-inner {
        max-width: 100%;
    }

    .title {
        font-size: 1.4rem;
    }

    .title br {
        display: none;
    }

    .trust-badges {
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .brand-area {
        margin-bottom: 24px;
    }

    .float-shape {
        display: none;
    }
}

@media (max-width: 480px) {
    .page {
        padding: 16px;
    }

    .card {
        border-radius: 18px;
    }

    .card-left {
        padding: 24px 20px 20px;
    }

    .card-right {
        padding: 20px;
    }

    .title {
        font-size: 1.2rem;
    }

    .step-indicator {
        margin-bottom: 24px;
    }
}
