@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&display=swap");

:root {
    --bg: #030606;
    --bg-2: #071011;
    --panel: rgba(13, 19, 22, 0.78);
    --panel-strong: #0b1114;
    --panel-soft: rgba(255, 255, 255, 0.025);
    --cyan: #00e5ff;
    --cyan-2: #13f4e8;
    --cyan-soft: rgba(0, 229, 255, 0.12);
    --white: #f5f7f8;
    --fg: #f5f7f8;
    --muted: #a7b0b7;
    --muted-2: #6f7b83;
    --card: rgba(13, 19, 22, 0.78);
    --accent: #00e5ff;
    --accent-light: rgba(0, 229, 255, 0.12);
    --border: rgba(255, 255, 255, 0.1);
    --line: rgba(255, 255, 255, 0.1);
    --line-cyan: rgba(0, 229, 255, 0.28);
    --danger: #ff6b6b;
    --success: #6dffb1;
    --warning: #ffd166;
    --radius: 24px;
    --max: 1240px;
    --shadow: 0 34px 120px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--white);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 76% 8%, rgba(0, 229, 255, 0.18), transparent 31%),
        radial-gradient(circle at 16% 58%, rgba(0, 229, 255, 0.09), transparent 28%),
        linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
    background-size: auto, auto, 54px 54px, 54px 54px;
    z-index: -5;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.44) 100%);
    z-index: -4;
}

.watermark-layer,
.noise-layer,
.cursor-orb {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.watermark-layer {
    overflow: hidden;
    z-index: -3;
}

.wm-word {
    position: absolute;
    font-size: clamp(76px, 13vw, 220px);
    font-weight: 900;
    letter-spacing: -0.08em;
    color: transparent;
    -webkit-text-stroke: 1px rgba(0, 229, 255, 0.06);
    text-transform: uppercase;
    white-space: nowrap;
}

.wm-word.one {
    left: 3%;
    top: 12%;
    transform: rotate(-7deg);
}

.wm-word.two {
    right: -16%;
    top: 48%;
    transform: rotate(7deg);
}

.wm-word.three {
    left: 13%;
    bottom: 4%;
    color: rgba(255, 255, 255, 0.018);
    -webkit-text-stroke: 0;
    transform: rotate(-2deg);
}

.noise-layer {
    opacity: 0.14;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
    z-index: -2;
}

.cursor-orb {
    width: 430px;
    height: 430px;
    inset: auto;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.18), transparent 68%);
    filter: blur(18px);
    transform: translate(-50%, -50%);
    z-index: -1;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a:hover {
    color: #72f4ff;
}

.danger-link {
    color: var(--danger);
    border-color: rgba(255, 107, 107, 0.42);
}

.danger-link:hover {
    color: #ff9a9a;
    border-color: rgba(255, 107, 107, 0.72);
}

h1,
h2,
h3,
h4,
p {
    overflow-wrap: anywhere;
}

h1 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.98;
    font-weight: 600;
}

h2 {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    line-height: 1.08;
}

.eyebrow {
    margin-bottom: 1rem;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

p,
li,
dd,
td,
th {
    line-height: 1.58;
}

.site-nav {
    position: sticky;
    top: 14px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(var(--max), calc(100% - 32px));
    margin: 14px auto 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(3, 6, 6, 0.72);
    color: var(--white);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(18px);
}

.site-nav.scrolled {
    border-color: var(--line-cyan);
    background: rgba(3, 6, 6, 0.9);
    box-shadow: 0 0 34px rgba(0, 229, 255, 0.12);
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: var(--white);
}

.nav-brand img {
    width: 138px;
    max-width: 42vw;
    height: 32px;
    object-fit: contain;
}

.nav-brand .nav-brand-icon {
    width: 34px;
    height: 34px;
    max-width: none;
    border-radius: 8px;
    object-fit: contain;
}

.nav-brand-name {
    color: var(--white);
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
}

.nav-brand-name span {
    color: var(--cyan);
}

.brand-kicker {
    display: inline-block;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.org-switcher {
    position: relative;
    min-width: 170px;
}

.org-switcher summary {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    width: 100%;
    padding: 0 34px 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    cursor: pointer;
    list-style: none;
}

.org-switcher summary::-webkit-details-marker {
    display: none;
}

.org-switcher summary::after {
    content: "v";
    position: absolute;
    right: 13px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

.org-switcher[open] summary {
    border-color: var(--line-cyan);
    background: rgba(0, 229, 255, 0.07);
}

.org-switcher summary span,
.org-option {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.org-switcher strong,
.org-option strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    line-height: 1.1;
}

.org-switcher small,
.org-option small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.org-switcher-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 80;
    display: grid;
    gap: 6px;
    width: min(300px, calc(100vw - 36px));
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(3, 6, 6, 0.96);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.org-option {
    min-height: 44px;
    padding: 9px 11px;
    border: 1px solid transparent;
    border-radius: 12px;
    color: var(--white);
}

.org-option:hover,
.org-option.active {
    border-color: var(--line-cyan);
    background: rgba(0, 229, 255, 0.07);
}

.org-option.create {
    border-color: var(--line);
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--white);
    font: inherit;
    font-size: 20px;
    cursor: pointer;
}

.site-nav nav ul {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu {
    position: relative;
}

.nav-menu summary {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 28px 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.nav-menu summary::-webkit-details-marker {
    display: none;
}

.nav-menu summary::after {
    content: "v";
    position: absolute;
    right: 11px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
}

.nav-menu[open] summary,
.nav-menu summary:hover {
    border-color: var(--line-cyan);
    background: rgba(0, 229, 255, 0.07);
    color: var(--white);
}

.nav-menu-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 80;
    display: grid;
    gap: 6px;
    width: 210px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(3, 6, 6, 0.96);
    box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
}

.site-nav nav a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.nav-menu-list a {
    justify-content: flex-start;
    border-color: transparent;
    border-radius: 12px;
    color: var(--white);
}

.site-nav nav a:hover,
.site-nav nav a.active {
    border-color: var(--line-cyan);
    background: rgba(0, 229, 255, 0.07);
    color: var(--white);
}

.feedback-button {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 70;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line-cyan);
    border-radius: 999px;
    background: rgba(3, 6, 6, 0.88);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    box-shadow: 0 12px 42px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.feedback-button:hover {
    background: rgba(0, 229, 255, 0.12);
}

main.page {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 42px 0 72px;
}

.page-shell {
    position: relative;
}

.hero,
.app-hero {
    position: relative;
}

.hero::after,
.app-hero::after {
    content: attr(data-watermark);
    position: absolute;
    right: 2%;
    bottom: -0.2em;
    z-index: -1;
    color: rgba(255, 255, 255, 0.024);
    font-size: clamp(64px, 12vw, 180px);
    font-weight: 900;
    letter-spacing: -0.08em;
    line-height: 1;
    white-space: nowrap;
    pointer-events: none;
}

.card,
.job-row,
.stat-card,
.brand-strip,
.drive-tile,
.panel,
.format-card,
.case-main,
.case-side,
.result-card {
    border: 1px solid var(--line) !important;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(0, 229, 255, 0.035)) !important;
    color: var(--white);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22) !important;
}

.card {
    position: relative;
    margin-bottom: 1.5rem;
    padding: clamp(1.1rem, 2.5vw, 1.75rem);
    border-radius: var(--radius) !important;
    overflow: hidden;
}

.card::after {
    content: "";
    position: absolute;
    right: -72px;
    bottom: -72px;
    width: 170px;
    height: 170px;
    border: 28px solid rgba(0, 229, 255, 0.045);
    border-radius: 50%;
    pointer-events: none;
}

.card > * {
    position: relative;
    z-index: 1;
}

.card h1,
.card h2,
.card h3 {
    color: var(--white);
}

.hint,
.muted,
.empty,
.job-summary,
.stat-card span,
.drive-wrap .muted,
.summary-grid dt,
.field small,
small {
    color: var(--muted) !important;
}

.pill,
.badge,
.status,
.value-pill,
.tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 24px;
    border: 1px solid var(--line-cyan) !important;
    border-radius: 999px !important;
    background: rgba(0, 229, 255, 0.08) !important;
    color: var(--cyan) !important;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1;
}

.pill,
.badge,
.status {
    padding: 0.25rem 0.58rem !important;
}

.status.ok,
.status.success,
.flash.success {
    border-color: rgba(109, 255, 177, 0.3) !important;
    background: rgba(109, 255, 177, 0.08) !important;
    color: var(--success) !important;
}

.status.warn,
.status.queued,
.flash.info {
    border-color: rgba(255, 209, 102, 0.3) !important;
    background: rgba(255, 209, 102, 0.08) !important;
    color: var(--warning) !important;
}

.status.error,
.status.failed,
.flash.error,
.drive-wrap .error {
    border-color: rgba(255, 107, 107, 0.3) !important;
    background: rgba(255, 107, 107, 0.08) !important;
    color: var(--danger) !important;
}

.inline-status.failed {
    color: var(--danger) !important;
}

.inline-status.processing {
    color: var(--cyan) !important;
}

.flash-stack {
    display: grid;
    gap: 0.6rem;
    margin-bottom: 1.25rem;
}

.flash {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    font-weight: 700;
}

button,
.button-primary,
.button-secondary,
.actions a,
.header-actions a,
.drive-toolbar button,
.drive-wrap .actions button,
.drive-wrap .rename button {
    min-height: 40px;
    border: 1px solid var(--line-cyan) !important;
    border-radius: 999px !important;
    background: rgba(255, 255, 255, 0.035) !important;
    color: var(--white) !important;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 800 !important;
    cursor: pointer;
}

.button-primary,
.actions a.primary,
.drive-toolbar button.active,
.drive-toolbar .view-toggle button.active,
button[type="submit"]:not(.button-secondary) {
    background: var(--cyan) !important;
    color: #001113 !important;
}

button:hover,
.button-primary:hover,
.button-secondary:hover,
.actions a:hover,
.header-actions a:hover,
.drive-toolbar button:hover,
.drive-wrap .actions button:hover,
.drive-wrap .rename button:hover {
    border-color: var(--cyan) !important;
    color: var(--cyan) !important;
    box-shadow: 0 0 28px rgba(0, 229, 255, 0.14);
}

button[type="submit"]:not(.button-secondary):hover,
.button-primary:hover,
.actions a.primary:hover {
    color: #001113 !important;
}

input,
select,
textarea {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, 0.28) !important;
    color: var(--white) !important;
    font: inherit;
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--muted-2);
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--line-cyan) !important;
    box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.08);
}

input[type="range"] {
    accent-color: var(--cyan);
}

table,
.drive-table {
    width: 100%;
    border-collapse: separate !important;
    border-spacing: 0;
    overflow: hidden;
    border: 1px solid var(--line) !important;
    border-radius: 18px !important;
    background: rgba(0, 0, 0, 0.22) !important;
}

th,
td,
.drive-table th,
.drive-table td {
    border: 0 !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 0.72rem 0.85rem !important;
    color: var(--white);
    vertical-align: top;
}

th,
.drive-table th {
    background: rgba(255, 255, 255, 0.035) !important;
    color: var(--muted) !important;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

tbody tr:hover,
.drive-table tr:hover {
    background: rgba(0, 229, 255, 0.04) !important;
}

pre {
    border: 1px solid var(--line) !important;
    border-radius: 14px !important;
    background: rgba(0, 0, 0, 0.34) !important;
    color: var(--white) !important;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 1.4rem 0;
}

details {
    color: var(--muted);
}

summary {
    color: var(--cyan);
    cursor: pointer;
    font-weight: 700;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 980px) {
    .site-nav {
        align-items: flex-start;
        border-radius: 24px;
        flex-wrap: wrap;
    }

    .org-switcher {
        order: 3;
        width: 100%;
        margin-top: 10px;
    }

    .org-switcher-menu {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .site-nav nav {
        display: none;
        width: 100%;
        padding-top: 12px;
    }

    .site-nav.nav-open nav {
        display: block;
    }

    .site-nav nav ul {
        display: grid;
        gap: 8px;
    }

    .site-nav nav a {
        justify-content: center;
        border-color: var(--line);
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-menu summary {
        justify-content: center;
        width: 100%;
        border-color: var(--line);
        background: rgba(255, 255, 255, 0.03);
    }

    .nav-menu summary::after {
        right: 18px;
    }

    .nav-menu-list {
        position: static;
        width: 100%;
        margin-top: 8px;
    }

    .nav-menu-list a {
        justify-content: center;
        border-color: var(--line);
    }
}

@media (max-width: 680px) {
    main.page {
        width: min(100% - 28px, var(--max));
        padding-top: 28px;
    }

    .wm-word {
        font-size: clamp(58px, 20vw, 110px);
    }

    .feedback-button {
        right: 14px;
        bottom: 14px;
    }

    table {
        font-size: 0.86rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
    }

    .cursor-orb {
        display: none;
    }
}
