/* ===== Scroll Progress Bar ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--amber);
    width: 0%;
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ===== Reveal Animations ===== */
.m-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.m-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.m-reveal-delay-1 { transition-delay: 0.15s; }
.m-reveal-delay-2 { transition-delay: 0.3s; }
.m-reveal-delay-3 { transition-delay: 0.45s; }
.m-reveal-delay-4 { transition-delay: 0.6s; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-cta {
    background: var(--amber);
    color: var(--black);
    padding: 1rem 2.5rem;
    border-radius: 100px;
    font-size: 1rem;
    font-weight: 500;
}

.btn-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px var(--amber-glow);
}

.btn-cta svg {
    transition: transform 0.3s;
}

.btn-cta:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    background: var(--amber);
    color: var(--black);
}

.btn-primary:hover {
    box-shadow: 0 4px 20px var(--amber-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--muted-light);
    border: 1px solid var(--border-light);
}

.btn-secondary:hover {
    background: rgba(240, 237, 232, 0.05);
    color: var(--white);
    border-color: var(--muted);
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
}

/* ===== Page Header (subpages) ===== */
.page-header {
    text-align: center;
    padding: 8rem 2rem 3rem;
}

.page-header h1 {
    font-family: 'Instrument Serif', serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    font-weight: 400;
}

.page-header p {
    color: var(--muted);
    font-size: 1.05rem;
}

/* ===== Status page ===== */
.status-page {
    padding: 10rem 2rem 5rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-container {
    max-width: 500px;
    margin: 0 auto;
}

.status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.status-icon.generating {
    background: rgba(240, 237, 232, 0.03);
    border: 4px solid var(--border-light);
    border-top-color: var(--amber);
    animation: spin 1s linear infinite;
}

.status-icon.ready {
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
    font-size: 2rem;
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.status-icon.error {
    background: rgba(220, 38, 38, 0.15);
    color: #f87171;
    font-size: 2rem;
    border: 1px solid rgba(220, 38, 38, 0.25);
}

.status-title {
    font-family: 'Instrument Serif', serif;
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.status-message {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.status-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.progress-steps {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.progress-step {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-light);
}

.progress-step.active {
    background: var(--amber);
    animation: pulse 1s ease-in-out infinite;
}

.progress-step.complete {
    background: var(--amber);
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.company-name {
    font-weight: 500;
    color: var(--amber);
}

/* ===== Confirmation page ===== */
.confirmation-page {
    padding: 10rem 2rem 5rem;
    text-align: center;
}

.confirmation-container {
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-icon {
    width: 80px;
    height: 80px;
    background: rgba(5, 150, 105, 0.15);
    color: #34d399;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    font-size: 2.5rem;
    border: 1px solid rgba(5, 150, 105, 0.25);
}

.confirmation-title {
    font-family: 'Instrument Serif', serif;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--white);
    font-weight: 400;
    letter-spacing: -0.02em;
}

.confirmation-message {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* Order details card */
.order-details,
.next-steps {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: left;
    margin-bottom: 2rem;
}

.order-details h3,
.next-steps h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--amber);
    font-weight: 400;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--muted-light);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--muted);
}

.next-steps ol {
    margin: 0;
    padding-left: 1.25rem;
}

.next-steps li {
    padding: 0.5rem 0;
    color: var(--muted);
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ===== Order page ===== */
.order-container {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem 5rem;
}

.order-summary {
    background: var(--black-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.order-summary h3 {
    font-family: 'Instrument Serif', serif;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--white);
    font-weight: 400;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--muted-light);
}

.summary-item.total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 1rem;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--white);
}

.summary-note {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(240, 237, 232, 0.02);
    border-radius: var(--radius-md);
    font-size: 0.84rem;
    color: var(--muted);
    border: 1px solid var(--border);
}

.summary-note strong {
    color: var(--muted-light);
}

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--amber);
    font-size: 0.9rem;
    margin-top: 0.75rem;
}

.preview-link:hover {
    color: var(--white);
}

@media (max-width: 800px) {
    .order-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 3rem;
    }

    .order-summary {
        position: static;
        order: -1;
    }
}
