/* ------------------------------------------
   GLOBAL VARIABLES
------------------------------------------- */
:root {
    --og-navy: #001F3F;
    --og-orange: #FF6200;
    --og-orange-hover: #e55a00;
    --max-width-content: 800px;

    /* Spacing scale */
    --space-xs: 12px;
    --space-sm: 20px;
    --space-md: 32px;
    --space-lg: 48px;
    --space-xl: 64px;
    --space-xxl: 96px;
}

/* ------------------------------------------
   GLOBAL BASE STYLES + TYPOGRAPHY (Consolidated)
------------------------------------------- */
html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: #ffffff;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    line-height: 1.6;
    color: #111;
}

* {
    box-sizing: border-box;
}

.hidden {
    display: none !important;
}

/* Consolidated Typography - One place for all fonts */
h1, .display-5 {
    font-size: clamp(2.2rem, 4.5vw, 3.3rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.035em;
    margin-bottom: 1.2rem;
}

h2, h3 {
    font-size: clamp(2.3rem, 5.5vw, 3.4rem);
    font-weight: 300;
    line-height: 1.08;
    letter-spacing: -0.022em;
    margin-bottom: 1.2rem;
}

p, .lead {
    font-size: 1.3rem;
    line-height: 1.55;
}

.small, .text-muted {
    font-size: 0.95rem;
}

.button-text-muted {
    font-size: 0.65rem;
    font-weight: 200;
}

/* Weight helpers */
.fw-bold { font-weight: 400; }
.fw-semibold { font-weight: 300; }
.fw-medium { font-weight: 200; }
.fw-thin { font-weight: 180; }

/* ------------------------------------------
   HERO SECTION
------------------------------------------- */


.hero-bg {
    min-height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    color: #111;
}

.hero-text-content {
    max-width: 800px;
    padding-right: 1.5rem;
}

@media (max-width: 992px) {
    .hero-text-content {
        padding-right: 1rem;
        max-width: 100%;
    }
}

.hero-trust-wrapper {
    padding-top: 4rem;
    padding-bottom: 8vh;
    width: 100%;
    text-align: center;
}


@media (max-width: 768px) {
    .hero-trust-wrapper {
        padding-bottom: 6vh;
    }
}

.hero-energy-bg-wrapper {
    position: absolute;
    top: 0;
    right: 0;
    width: 22vw;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

#heroMeshCanvas {
    mask-image: linear-gradient(
        to left,
        rgba(0,0,0,1) 20%,   /* fade starts earlier */
        rgba(0,0,0,0) 100%
    );
    -webkit-mask-image: linear-gradient(
        to left,
        rgba(0,0,0,1) 20%,
        rgba(0,0,0,0) 100%
    );
}





/* ------------------------------------------
   SCAN HERO
------------------------------------------- */
/* SCAN PAGE — FINAL HERO LAYOUT */
.scan-hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
    padding-top: 6rem;
    display: flex;
    align-items: center;
}



/* ------------------------------------------
   BUTTONS
------------------------------------------- */
.btn-og {
    background-color: var(--og-orange);
    color: white;
    font-weight: 600;
    border-radius: 0.5rem;
}
.btn-og:hover {
    background-color: var(--og-orange-hover);
    color: white;
}

.btn-responsive {
    padding: 0.75rem 2.5rem;
}
@media (max-width: 576px) {
    .btn-responsive {
        padding: 0.6rem 1.5rem;
        font-size: 1rem;
        max-width: 80%;
        width: 80%;
    }
}

#confirm-btn.disabled {
    opacity: 0.6;
    pointer-events: none;
}

.btn-nav {
    padding: 0.55rem 1.1rem;
    font-size: 0.95rem;
    border-radius: 6px;
}

/* ------------------------------------------
   DROPZONE & UPLOAD
------------------------------------------- */
.dropzone-box {
    border: 2px dashed var(--og-navy);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.dropzone-icon {
    font-size: 3.5rem;
    color: var(--og-orange);
}

.upload-svg {
    color: var(--og-orange);
    transition: color 0.25s ease;
}
.upload-svg:hover {
    color: var(--og-orange-hover);
}

body.dragging #dropzone {
    background-color: #fff4e6;
    border-color: #ff8a00;
}

#dropzone:hover {
    background-color: #fff4e6;
    border-color: #ff8a00;
}

.dropzone-strong {
    color: #FF6200;
    font-weight: inherit;
}

/* File Bubble */
.file-bubble {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f7f7f7;
    border: 1px solid #ddd;
    padding: 12px 16px;
    border-radius: 12px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    gap: 12px;
}

.file-bubble-clear:hover {
    color: #444;
}

.file-bubble-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 260px;
}

#selected-file-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-info-input {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

/* ------------------------------------------
   TERMS & CONDITIONSMODAL
------------------------------------------- */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-box {
    background: white;
    padding: 32px;
    border-radius: 12px;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}

.modal-title {
    font-size: 1.6rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

.modal-text {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.modal-actions.hidden {
    display: none;
}



/* ------------------------------------------
   NAVBAR
------------------------------------------- */
.navbar {
    background-color: var(--og-navy) !important;
}

.navbar-logo {
    height: 48px;
    width: auto;
    display: block;
}

/* ------------------------------------------
   CARDS, SECTIONS, FOOTER
------------------------------------------- */
.step-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid #ffe0b3;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    height: 100%;
}

.section {
    padding-top: var(--space-xxl);
    padding-bottom: var(--space-xxl);
}


@media (max-width: 768px) {
    .section {
        padding-top: var(--space-xl);
        padding-bottom: var(--space-xl);
    }
}

.section-scan-hero {
    padding-bottom: 0;
}

footer {
    background-color: #111;
    color: #ccc;
    margin-top: 3rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* ------------------------------------------
   AI / PROCESSING (kept as-is)
------------------------------------------- */
.ai-circle {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    border: 4px solid rgba(0, 123, 255, 0.2);
    border-top-color: #007bff;
    animation: spin 1.2s linear infinite;
    margin: 0 auto 20px auto;
}

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