/* ──────────────────────────────────────────────────────────────────
   ROOT VARIABLES
────────────────────────────────────────────────────────────────── */
:root {
    --ink: #f7f7ff;
    --muted: #a7abc1;
    --surface: rgba(20, 23, 45, .78);
    --surface-strong: #171a31;
    --stroke: rgba(255, 255, 255, .1);
    --gold: #F4C430;
    --gold-light: #f8c17a;
    --gold-dark: #d4a020;
    --purple: #7c5cff;
    --purple-2: #a966ff;
    --cyan: #4ce0ff;
    --green: #63e6a5;
    --orange: #ffb45d;
    --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

/* ──────────────────────────────────────────────────────────────────
   BASE
────────────────────────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    min-height: 100vh;
    color: var(--ink);
    background: #090b17;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
    z-index: -2;
}

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

/* ──────────────────────────────────────────────────────────────────
   AMBIENT BACKGROUNDS
────────────────────────────────────────────────────────────────── */
.ambient {
    position: fixed;
    width: 38rem;
    height: 38rem;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .18;
    pointer-events: none;
    z-index: -1;
}
.ambient-one {
    background: #744cff;
    top: -18rem;
    left: -12rem;
}
.ambient-two {
    background: #00b5d8;
    right: -18rem;
    top: 28%;
}

/* ──────────────────────────────────────────────────────────────────
   GLASS NAVIGATION – GOLD THEME
────────────────────────────────────────────────────────────────── */
.glass-nav {
    background: rgba(9, 11, 23, .78);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

/* ─── BRAND – GOLD ────────────────────────────────────────────── */
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.03em;
}
.brand-mark {
    display: inline-grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: .75rem;
    color: #111;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    box-shadow: 0 0 28px rgba(244, 196, 48, .35);
}
.brand-mark i {
    font-size: 1.1rem;
}
.brand-text {
    color: var(--gold);
    font-weight: 800;
    letter-spacing: -.03em;
}
.brand-text .brand-accent {
    color: var(--gold-light);
}

/* ─── NAV LINKS ────────────────────────────────────────────────── */
.nav-link {
    color: #c4c8d8;
    font-weight: 650;
    border-radius: .7rem;
    padding: .55rem .8rem !important;
    transition: color .2s ease, background .2s ease;
    position: relative;
}
.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(244, 196, 48, .06);
}
.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 2px;
    border-radius: 4px;
    background: var(--gold);
}

/* ─── STATUS PILL ──────────────────────────────────────────────── */
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
    padding: .4rem .75rem;
    border-radius: 999px;
    color: #d0c8b0;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.status-dot {
    width: .48rem;
    height: .48rem;
    border-radius: 50%;
    background: #555a6b;
    transition: background .3s ease;
}
.status-dot.online {
    background: var(--gold);
    box-shadow: 0 0 0 5px rgba(244, 196, 48, .12);
}

/* ─── RESPONSIVE NAV ───────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .nav-link.active::after {
        display: none;
    }
}

/* ──────────────────────────────────────────────────────────────────
   ALERTS
────────────────────────────────────────────────────────────────── */
.alert-stack {
    position: relative;
    z-index: 20;
    margin-top: 1rem;
}
.alert {
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    backdrop-filter: blur(12px);
}
.alert-success {
    background: rgba(36, 114, 77, .5);
    color: #d9ffeb;
}
.alert-danger {
    background: rgba(126, 37, 55, .5);
    color: #ffe5ea;
}

/* ──────────────────────────────────────────────────────────────────
   HERO SECTION
────────────────────────────────────────────────────────────────── */
.hero-section {
    min-height: 650px;
    display: flex;
    align-items: center;
}
.py-lg-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    text-transform: uppercase;
    letter-spacing: .13em;
    font-size: .72rem;
    font-weight: 850;
    color: #b9afff;
}
.hero-title {
    max-width: 13ch;
    font-size: clamp(3.5rem, 8vw, 6.8rem);
    line-height: .94;
    letter-spacing: -.065em;
    font-weight: 850;
}
.gradient-text {
    background: linear-gradient(100deg, #fff 10%, #a58eff 48%, #57dffc 90%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-copy {
    max-width: 56rem;
    color: #b4b7c9;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}
.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2.4rem;
}
.hero-metrics div {
    display: flex;
    flex-direction: column;
}
.hero-metrics strong {
    font-size: 1.35rem;
}
.hero-metrics span {
    color: var(--muted);
    font-size: .82rem;
}

/* ─── HERO ORBIT ───────────────────────────────────────────────── */
.hero-orbit {
    position: relative;
    width: min(100%, 480px);
    aspect-ratio: 1;
    margin-inline: auto;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    box-shadow: inset 0 0 80px rgba(124,92,255,.08);
}
.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,.12);
    inset: 13%;
    animation: spin 30s linear infinite;
}
.hero-orbit::after {
    inset: 28%;
    animation-direction: reverse;
    animation-duration: 19s;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.orbit-core {
    position: absolute;
    inset: 35%;
    display: grid;
    place-items: center;
    border-radius: 38%;
    font-size: 3.4rem;
    background: radial-gradient(circle at 30% 20%, #a78cff, #5136ce 75%);
    box-shadow: 0 25px 80px rgba(98,73,231,.46);
    transform: rotate(-8deg);
}
.orbit-item {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .7rem .9rem;
    border: 1px solid var(--stroke);
    border-radius: 1rem;
    background: rgba(20,23,45,.86);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    font-weight: 750;
    animation: float 4s ease-in-out infinite;
}
.orbit-item i {
    color: #b9afff;
}
.orbit-video {
    top: 8%;
    left: 2%;
}
.orbit-photo {
    right: -1%;
    top: 20%;
    animation-delay: .5s;
}
.orbit-voice {
    right: 5%;
    bottom: 11%;
    animation-delay: 1s;
}
.orbit-face {
    left: -4%;
    bottom: 17%;
    animation-delay: 1.5s;
}
@keyframes float {
    50% { transform: translateY(-8px); }
}

/* ──────────────────────────────────────────────────────────────────
   BUTTONS
────────────────────────────────────────────────────────────────── */
.btn {
    border-radius: .9rem;
    font-weight: 750;
    padding: .72rem 1.15rem;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.btn:hover {
    transform: translateY(-2px);
}
.btn-primary {
    border: 0;
    background: linear-gradient(135deg, var(--purple), #5b7cff);
    box-shadow: 0 12px 32px rgba(103,83,255,.28);
}
.btn-success {
    border: 0;
    color: #07140d;
    background: linear-gradient(135deg, #51df97, #a4efb9);
}
.btn-info {
    border: 0;
    color: #061319;
    background: linear-gradient(135deg, #4ce0ff, #7da7ff);
}
.btn-warning {
    border: 0;
    color: #1c1205;
    background: linear-gradient(135deg, var(--orange), #ffe485);
}
.btn-outline-light {
    border-color: rgba(255,255,255,.24);
    background: rgba(255,255,255,.03);
}
.btn-ghost {
    width: 2.4rem;
    height: 2.4rem;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--stroke);
    background: rgba(255,255,255,.04);
    color: white;
}

/* ──────────────────────────────────────────────────────────────────
   SECTION HEADINGS
────────────────────────────────────────────────────────────────── */
.section-heading p {
    line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────────
   TOOL CARDS
────────────────────────────────────────────────────────────────── */
.tool-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 330px;
    padding: 1.5rem;
    border: 1px solid var(--stroke);
    border-radius: 1.4rem;
    text-decoration: none;
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.018));
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.tool-card::before {
    content: "";
    position: absolute;
    inset: auto -20% -50% -20%;
    height: 65%;
    border-radius: 50%;
    filter: blur(50px);
    opacity: .14;
}
.tool-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,255,255,.23);
    box-shadow: var(--shadow);
}
.tool-purple::before { background: var(--purple); }
.tool-green::before  { background: var(--green); }
.tool-blue::before   { background: var(--cyan); }
.tool-orange::before { background: var(--orange); }

.tool-icon {
    width: 3.2rem;
    height: 3.2rem;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    background: rgba(255,255,255,.08);
    font-size: 1.3rem;
}
.tool-number {
    position: absolute;
    right: 1.3rem;
    top: 1.35rem;
    color: rgba(255,255,255,.28);
    font-weight: 850;
}
.tool-card h3 {
    margin-top: 3.4rem;
    font-size: 1.45rem;
    font-weight: 800;
}
.tool-card p {
    color: var(--muted);
    line-height: 1.65;
}
.tool-link {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-weight: 750;
}

/* ──────────────────────────────────────────────────────────────────
   WORKFLOW BANNER
────────────────────────────────────────────────────────────────── */
.workflow-banner {
    border: 1px solid var(--stroke);
    border-radius: 1.6rem;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    background: radial-gradient(circle at 10% 10%, rgba(124,92,255,.2), transparent 36%), var(--surface);
    box-shadow: var(--shadow);
}
.workflow-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.workflow-steps > div {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .25rem;
}
.workflow-steps span {
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: rgba(124,92,255,.18);
    color: #bcb2ff;
    font-weight: 850;
}
.workflow-steps small {
    color: var(--muted);
    line-height: 1.5;
}
.workflow-steps > i {
    color: #686d82;
}

/* ──────────────────────────────────────────────────────────────────
   STUDIO SHELL
────────────────────────────────────────────────────────────────── */
.studio-shell {
    min-height: 720px;
}
.studio-intro {
    max-width: 800px;
}
.studio-intro p {
    font-size: 1.05rem;
    line-height: 1.7;
}

/* ──────────────────────────────────────────────────────────────────
   STUDIO & RESULT CARDS
────────────────────────────────────────────────────────────────── */
.studio-card,
.result-card {
    border: 1px solid var(--stroke);
    border-radius: 1.45rem;
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.studio-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}
.result-card {
    min-height: 620px;
    padding: clamp(1.25rem, 3vw, 2rem);
}

/* ──────────────────────────────────────────────────────────────────
   FORMS
────────────────────────────────────────────────────────────────── */
.form-label {
    color: #e5e6ef;
    font-size: .86rem;
    font-weight: 750;
}
.form-control,
.form-select {
    min-height: 3.05rem;
    color: white;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .85rem;
    background-color: rgba(7,9,20,.65);
}
textarea.form-control {
    min-height: auto;
}
.form-control:focus,
.form-select:focus {
    color: white;
    background-color: rgba(7,9,20,.9);
    border-color: var(--gold);
    box-shadow: 0 0 0 .25rem rgba(244, 196, 48, .14);
}
.form-control::placeholder {
    color: #74798d;
}
.form-select option {
    background: #111426;
}
.char-count {
    color: #7e8297;
    font-size: .75rem;
}
.invalid-feedback {
    font-size: .78rem;
}

/* ──────────────────────────────────────────────────────────────────
   UPLOAD ZONE
────────────────────────────────────────────────────────────────── */
.upload-zone {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: center;
    min-height: 110px;
    padding: 1.1rem;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: 1rem;
    background: rgba(255,255,255,.025);
    transition: .2s ease;
    overflow: hidden;
}
.upload-zone:hover,
.upload-zone.dragging {
    border-color: var(--gold);
    background: rgba(244, 196, 48, .08);
}
.upload-zone > i {
    width: 3rem;
    height: 3rem;
    display: grid;
    place-items: center;
    border-radius: .9rem;
    color: #b6abff;
    background: rgba(124,92,255,.13);
    font-size: 1.25rem;
}
.upload-zone small {
    display: block;
    color: var(--muted);
}
.upload-zone input[type=file] {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}
.file-name {
    grid-column: 2;
    color: #79e9ba;
    font-size: .8rem;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ──────────────────────────────────────────────────────────────────
   CONSENT BOX
────────────────────────────────────────────────────────────────── */
.consent-box {
    padding: 1rem 1rem 1rem 2.8rem;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: .9rem;
    background: rgba(255,255,255,.025);
}
.consent-box .form-check-input {
    margin-left: -1.75rem;
}
.consent-box .form-check-input:checked {
    background-color: var(--gold);
    border-color: var(--gold);
}
.form-footnote {
    display: flex;
    gap: .55rem;
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: .78rem;
    line-height: 1.5;
}

/* ──────────────────────────────────────────────────────────────────
   RESULT DISPLAY
────────────────────────────────────────────────────────────────── */
.result-header {
    min-height: 70px;
}
.media-stage {
    min-height: 420px;
    display: grid;
    place-items: center;
    border-radius: 1rem;
    overflow: hidden;
    background: rgba(3,5,12,.72);
    border: 1px solid rgba(255,255,255,.06);
}
.result-media {
    display: block;
    width: 100%;
    max-height: 570px;
    object-fit: contain;
}

/* ─── EMPTY STATE ────────────────────────────────────────────── */
.empty-state {
    min-height: 540px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
}
.empty-state p {
    max-width: 34ch;
}
.empty-icon {
    width: 5rem;
    height: 5rem;
    display: grid;
    place-items: center;
    margin-bottom: 1.4rem;
    border-radius: 1.4rem;
    font-size: 2rem;
    color: #c3baff;
    background: linear-gradient(145deg, rgba(124,92,255,.23), rgba(76,224,255,.08));
    border: 1px solid rgba(255,255,255,.1);
}

/* ─── AUDIO VISUALISER ────────────────────────────────────────── */
.audio-visual {
    width: 100%;
    min-height: 320px;
    display: grid;
    place-items: center;
    font-size: 6rem;
    color: #ffbf6f;
    background: radial-gradient(circle, rgba(255,180,93,.16), transparent 60%);
}
.audio-visual i {
    animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
    50% { transform: scale(1.08); opacity: .72; }
}

/* ──────────────────────────────────────────────────────────────────
   PROCESSING OVERLAY
────────────────────────────────────────────────────────────────── */
.processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(4,5,13,.82);
    backdrop-filter: blur(12px);
}
.processing-card {
    width: min(100%, 430px);
    padding: 2.4rem;
    border: 1px solid var(--stroke);
    border-radius: 1.5rem;
    background: #15182d;
    box-shadow: var(--shadow);
}

.orb-loader {
    position: relative;
    width: 72px;
    height: 72px;
}
.orb-loader span {
    position: absolute;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--purple);
    animation: orbit 1.6s ease-in-out infinite;
}
.orb-loader span:nth-child(2) {
    background: var(--cyan);
    animation-delay: -.53s;
}
.orb-loader span:nth-child(3) {
    background: var(--green);
    animation-delay: -1.06s;
}
@keyframes orbit {
    0%,100% { transform: translate(22px, 0) scale(.75); }
    33% { transform: translate(0, 38px) scale(1); }
    66% { transform: translate(44px, 38px) scale(.86); }
}

/* ──────────────────────────────────────────────────────────────────
   FOOTER
────────────────────────────────────────────────────────────────── */
.footer-card {
    border-top: 1px solid var(--stroke);
    padding-top: 2rem;
}

/* ─── HEART PULSE ────────────────────────────────────────────── */
.heart-icon {
    color: #ff6b6b;
    display: inline-block;
    animation: pulse-heart 1.5s ease-in-out infinite;
}
@keyframes pulse-heart {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ──────────────────────────────────────────────────────────────────
   ERROR PAGE
────────────────────────────────────────────────────────────────── */
.error-card {
    max-width: 700px;
    margin: 4rem auto;
    padding: 4rem 2rem;
    border: 1px solid var(--stroke);
    border-radius: 1.5rem;
    background: var(--surface);
}

/* ──────────────────────────────────────────────────────────────────
   RESPONSIVE
────────────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
    }
    .hero-title {
        font-size: clamp(3.2rem, 14vw, 5.4rem);
    }
    .hero-orbit {
        max-width: 390px;
    }
    .workflow-steps {
        align-items: flex-start;
    }
    .workflow-steps > i {
        display: none;
    }
    .result-card {
        min-height: 520px;
    }
}

@media (max-width: 575.98px) {
    .hero-metrics {
        justify-content: space-between;
        gap: 1rem;
    }
    .orbit-item span {
        display: none;
    }
    .orbit-item {
        padding: .8rem;
        border-radius: 50%;
    }
    .workflow-steps {
        flex-direction: column;
    }
    .workflow-steps > div {
        width: 100%;
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: .8rem;
    }
    .workflow-steps small {
        grid-column: 2;
    }
    .upload-zone {
        grid-template-columns: auto 1fr;
    }
}

/* ──────────────────────────────────────────────────────────────────
   UTILITY HELPERS
────────────────────────────────────────────────────────────────── */
.text-gold {
    color: var(--gold);
}
.text-gold-light {
    color: var(--gold-light);
}
.bg-gold {
    background: var(--gold);
}
.border-gold {
    border-color: var(--gold);
}
.shadow-gold {
    box-shadow: 0 0 28px rgba(244, 196, 48, .25);
}

.donation-provider-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.donation-provider {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #1e1e1e;
    border-radius: 12px;
    border: 1px solid #333;
    color: #c4b5a5;
    text-decoration: none;
    transition: border-color 0.3s, background 0.3s, transform 0.2s;
}

.donation-provider:hover {
    border-color: var(--yellow, #F4C430);
    background: #252525;
    transform: translateY(-2px);
}

.donation-provider .provider-icon {
    font-size: 1.5rem;
    width: 2.5rem;
    text-align: center;
    color: var(--yellow, #F4C430);
}

.donation-provider span {
    display: flex;
    flex-direction: column;
}

.donation-provider strong {
    color: #fff;
    font-weight: 600;
}

.donation-provider small {
    font-size: 0.7rem;
    color: #7a6b5e;
}

.donation-provider .fa-arrow-up-right-from-square {
    color: #555;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.donation-provider:hover .fa-arrow-up-right-from-square {
    color: var(--yellow, #F4C430);
}
