:root {
    --bg: #07101d;
    --bg-deep: #050b15;
    --bg-soft: rgba(11, 18, 32, 0.82);
    --bg-card: rgba(10, 17, 30, 0.64);
    --bg-card-strong: rgba(10, 17, 30, 0.86);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --text: #eef4ff;
    --text-soft: #c7d2e7;
    --text-muted: #8ea0bb;
    --primary: #5ea0ff;
    --primary-strong: #3f82ff;
    --accent: #44d7c3;
    --accent-soft: rgba(68, 215, 195, 0.12);
    --success: #34d399;
    --warning: #f59e0b;
    --danger: #fb7185;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
    --radius-xl: 30px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --container: 1220px;
    --blur: 22px;
    --transition: 220ms ease;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(68, 215, 195, 0.11), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(94, 160, 255, 0.12), transparent 28%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 45%, #08111f 100%);
    overflow-x: hidden;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

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

[hidden] {
    display: none !important;
}

.container {
    width: min(calc(100% - 32px), var(--container));
    margin: 0 auto;
}

.page {
    padding-top: 30px;
    padding-bottom: 80px;
    position: relative;
    z-index: 1;
}

.bg-mesh {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(circle at center, black, transparent 78%);
    z-index: 0;
}

.orb {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    border-radius: 50%;
    filter: blur(74px);
    opacity: 0.56;
}

.orb--one {
    width: 340px;
    height: 340px;
    background: rgba(68, 215, 195, 0.16);
    top: -100px;
    left: -100px;
    animation: floatOrb 12s ease-in-out infinite;
}

.orb--two {
    width: 320px;
    height: 320px;
    background: rgba(94, 160, 255, 0.18);
    right: -90px;
    top: 140px;
    animation: floatOrb 14s ease-in-out infinite reverse;
}

.orb--three {
    width: 420px;
    height: 420px;
    background: rgba(86, 111, 255, 0.12);
    left: 50%;
    bottom: -160px;
    transform: translateX(-50%);
    animation: pulseGlow 14s ease-in-out infinite;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 12;
    backdrop-filter: blur(var(--blur));
    background: linear-gradient(180deg, rgba(5, 11, 21, 0.9), rgba(5, 11, 21, 0.58));
    border-bottom: 1px solid var(--line);
}

.topbar__inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand__glyph {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, rgba(68, 215, 195, 0.26), rgba(63, 130, 255, 0.28));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: var(--shadow);
}

.brand__text {
    font-size: 1.06rem;
}

.nav {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav__link {
    color: var(--text-soft);
    font-weight: 600;
    transition: color var(--transition), opacity var(--transition);
}

.nav__link:hover {
    color: var(--text);
}

.card,
.panel,
.file-card,
.not-found,
.stat-tile,
.glass-panel {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 17, 30, 0.74), rgba(10, 17, 30, 0.52));
    border: 1px solid var(--line);
    backdrop-filter: blur(var(--blur));
    box-shadow: var(--shadow);
}

.card,
.panel,
.not-found {
    border-radius: var(--radius-xl);
}

.card--hero {
    overflow: hidden;
}

.hero {
    display: grid;
    gap: 26px;
}

.hero--home {
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.92fr);
    padding: 42px;
    margin-bottom: 24px;
}

.hero--session {
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    padding: 34px;
    margin-bottom: 24px;
}

.hero__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
}

.hero__title {
    margin: 0;
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero__text {
    margin: 0;
    color: var(--text-soft);
    font-size: 1.02rem;
    line-height: 1.8;
    max-width: 760px;
}

.hero__actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
}

.hero-showcase {
    display: grid;
    gap: 18px;
    align-content: center;
}

.glass-panel {
    border-radius: 26px;
    padding: 22px;
}

.glass-panel--main {
    min-height: 280px;
}

.glass-panel--small {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.glass-panel__top {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-soft);
    margin-bottom: 18px;
    font-size: 0.95rem;
}

.showcase-list {
    display: grid;
    gap: 12px;
}

.showcase-row {
    min-height: 54px;
    display: flex;
    align-items: center;
    gap: 14px;
    border-radius: 18px;
    padding: 0 14px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    color: var(--text-soft);
}

.showcase-row__icon {
    width: 34px;
    text-align: center;
    font-size: 1.15rem;
}

.mini-stat {
    border-radius: 18px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line);
    display: grid;
    gap: 8px;
    align-content: start;
}

.mini-stat__label {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.mini-stat__value {
    font-size: 1.55rem;
    letter-spacing: -0.04em;
}

.stats-strip {
    display: none;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.stat-tile {
    border-radius: 22px;
    padding: 18px;
    display: grid;
    gap: 10px;
}

.stat-tile__label {
    color: var(--text-muted);
    font-size: 0.88rem;
}

.stat-tile__value {
    font-size: 1.45rem;
    letter-spacing: -0.04em;
}

.panel {
    padding: 24px;
    margin-bottom: 24px;
}

.panel--home-privacy {
    max-width: 860px;
    margin-inline: auto;
    text-align: center;
    background: linear-gradient(180deg, rgba(10, 17, 30, 0.78), rgba(10, 17, 30, 0.62));
}

.section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-head--compact {
    margin-bottom: 0;
    justify-content: center;
}

.section-head h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.35rem, 3vw, 2rem);
    letter-spacing: -0.03em;
}

.section-head p {
    margin: 0;
    color: var(--text-soft);
    line-height: 1.7;
}

.feature-pills {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.pill {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    color: var(--text-soft);
    font-size: 0.92rem;
}

.btn {
    border: 0;
    border-radius: 16px;
    min-height: 50px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-weight: 700;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition),
        opacity var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.btn--primary {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    box-shadow: 0 16px 40px rgba(63, 130, 255, 0.24);
}

.btn--ghost {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--line-strong);
}

.btn--danger {
    color: white;
    background: linear-gradient(135deg, #fb7185, #e11d48);
}

.btn--xl {
    min-height: 58px;
    padding-inline: 24px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot--green {
    background: var(--success);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.6);
}

.timer-card {
    display: grid;
    gap: 10px;
    padding: 22px;
    border-radius: 24px;
    min-height: 150px;
    align-content: center;
    background: linear-gradient(180deg, rgba(94, 160, 255, 0.12), rgba(68, 215, 195, 0.06));
    border: 1px solid rgba(94, 160, 255, 0.18);
}

.timer-card__label {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.timer-card__value {
    font-size: clamp(1.7rem, 4vw, 3.1rem);
    letter-spacing: -0.05em;
}

.timer-card__value.is-danger {
    color: #fff1f2;
}

.inline-actions,
.stack-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stack-actions {
    flex-direction: column;
    justify-content: flex-end;
}

.dropzone {
    min-height: 180px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 14px;
    padding: 28px;
    border-radius: 24px;
    border: 1.5px dashed rgba(94, 160, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(94, 160, 255, 0.08), rgba(255, 255, 255, 0.02)),
        rgba(255, 255, 255, 0.03);
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
    outline: none;
}

.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-dragover {
    transform: translateY(-2px);
    border-color: rgba(68, 215, 195, 0.56);
    background:
        linear-gradient(180deg, rgba(68, 215, 195, 0.11), rgba(255, 255, 255, 0.05)),
        rgba(255, 255, 255, 0.03);
}

.dropzone__icon {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    font-size: 2rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.dropzone__text {
    display: grid;
    gap: 8px;
}

.dropzone__text strong {
    font-size: 1.12rem;
}

.dropzone__text span {
    color: var(--text-soft);
}

.progress-wrap {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.progress-wrap__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--text-soft);
}

.progress-bar {
    height: 14px;
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.progress-bar__value {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width 160ms linear;
}

.file-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.file-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    border-radius: 24px;
    overflow: hidden;
}

.file-card__preview {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(180deg, rgba(94, 160, 255, 0.08), rgba(5, 11, 21, 0.26)),
        rgba(255, 255, 255, 0.02);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.file-card__preview img,
.file-card__preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-card__body {
    display: grid;
    gap: 14px;
    padding: 18px;
    flex: 1;
}

.file-card__head {
    display: grid;
    gap: 8px;
}

.file-card__name {
    margin: 0;
    font-size: 1rem;
    line-height: 1.45;
    word-break: break-word;
}

.file-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-soft);
}

.file-card__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: auto;
}

.meta-chip {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
}

.file-icon {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    margin: auto;
    border-radius: 24px;
    font-size: 2.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
}

.file-icon--archive {
    color: #fbbf24;
}

.file-icon--document {
    color: #60a5fa;
}

.file-icon--code {
    color: #44d7c3;
}

.file-icon--generic {
    color: #c4b5fd;
}

.audio-preview {
    display: grid;
    gap: 18px;
    align-content: center;
    padding: 18px;
    height: 100%;
}

.audio-preview__icon {
    width: 76px;
    height: 76px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    margin: 0 auto;
    font-size: 1.8rem;
    background: rgba(68, 215, 195, 0.1);
    border: 1px solid rgba(68, 215, 195, 0.16);
}

.audio-preview audio {
    width: 100%;
}

.empty-state {
    min-height: 280px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 12px;
    color: var(--text-soft);
    border: 1px dashed var(--line-strong);
    border-radius: 26px;
    padding: 26px;
    background: rgba(255, 255, 255, 0.03);
}

.empty-state__icon {
    width: 80px;
    height: 80px;
    display: grid;
    place-items: center;
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--line);
    font-size: 2rem;
}

.empty-state h3 {
    margin: 0;
    font-size: 1.35rem;
    color: var(--text);
}

.empty-state p {
    margin: 0;
    max-width: 520px;
    line-height: 1.7;
}

.not-found {
    padding: 44px;
    text-align: center;
    display: grid;
    gap: 18px;
}

.footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 11, 21, 0.56);
    backdrop-filter: blur(var(--blur));
}

.footer__inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-wrap: wrap;
    padding-block: 10px;
}

.noscript {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(251, 113, 133, 0.18);
    border: 1px solid rgba(251, 113, 133, 0.35);
    color: #fff1f2;
    text-align: center;
}

.toast-stack {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 60;
    display: grid;
    gap: 10px;
}

.toast {
    min-width: min(360px, calc(100vw - 36px));
    max-width: 420px;
    padding: 14px 16px;
    border-radius: 18px;
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    background: rgba(10, 17, 30, 0.88);
    display: grid;
    gap: 6px;
    animation: toastIn 250ms ease;
}

.toast--success {
    border-color: rgba(52, 211, 153, 0.32);
}

.toast--error {
    border-color: rgba(251, 113, 133, 0.35);
}

.toast__title {
    font-weight: 800;
}

.toast__text {
    color: var(--text-soft);
    line-height: 1.5;
}

@keyframes floatOrb {
    0%, 100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(16px, 22px, 0);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.5;
        transform: translateX(-50%) scale(1);
    }
    50% {
        opacity: 0.72;
        transform: translateX(-50%) scale(1.08);
    }
}

@keyframes toastIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 1120px) {
    .hero--home,
    .hero--session,
    .file-grid {
        grid-template-columns: 1fr;
    }

    .hero__visual,
    .hero-showcase {
        order: -1;
    }

    .glass-panel--small {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .topbar__inner {
        min-height: 74px;
    }

    .nav {
        width: 100%;
        justify-content: space-between;
    }

    .hero--home,
    .hero--session,
    .panel,
    .not-found {
        padding: 22px;
    }

    .hero__title {
        font-size: clamp(1.9rem, 9vw, 2.8rem);
    }

    .section-head,
    .footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .dropzone {
        min-height: 160px;
        padding: 22px;
    }

    .file-card__actions,
    .hero__actions,
    .inline-actions,
    .stack-actions {
        width: 100%;
    }

    .file-card__actions .btn,
    .hero__actions .btn,
    .inline-actions .btn,
    .stack-actions .btn,
    .nav .btn {
        width: 100%;
    }

    .toast-stack {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .stats-strip {
        display: grid;
    }

    .glass-panel--small {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}