:root {
    --bg: #07070f;
    --panel: rgba(14, 18, 34, 0.82);
    --panel-solid: #101423;
    --line: rgba(112, 244, 255, 0.22);
    --text: #edf7ff;
    --muted: #8fa7bc;
    --cyan: #23f7ff;
    --pink: #ff3df2;
    --violet: #8b5cff;
    --green: #52ffad;
    --danger: #ff6678;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    background:
        linear-gradient(135deg, rgba(35, 247, 255, 0.08), transparent 34%),
        linear-gradient(225deg, rgba(255, 61, 242, 0.1), transparent 38%),
        var(--bg);
    color: var(--text);
    margin: 0;
    min-height: 100vh;
}

a {
    color: inherit;
}

.site-shell {
    min-height: 100vh;
}

.nav {
    align-items: center;
    backdrop-filter: blur(18px);
    background: rgba(7, 7, 15, 0.78);
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    left: 0;
    padding: 18px clamp(18px, 4vw, 56px);
    position: sticky;
    right: 0;
    top: 0;
    z-index: 20;
}

.brand,
.nav-links {
    align-items: center;
    display: flex;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    gap: 10px;
    letter-spacing: 0;
    text-decoration: none;
}

.brand-logo {
    border-radius: 6px;
    display: block;
    height: 34px;
    object-fit: contain;
    width: 102px;
}

.nav-links {
    gap: 8px;
}

.language-switch {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    display: inline-flex;
    gap: 2px;
    padding: 2px;
}

.nav-links a {
    border: 1px solid transparent;
    border-radius: 6px;
    color: var(--muted);
    font-size: 14px;
    padding: 9px 12px;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
    border-color: var(--line);
    color: var(--text);
}

.nav-links .nav-cta {
    background: linear-gradient(135deg, var(--cyan), var(--violet));
    color: #061018;
    font-weight: 700;
}

.language-switch a {
    font-size: 12px;
    padding: 6px 8px;
}

.language-switch a.active {
    background: rgba(35, 247, 255, 0.13);
    color: var(--text);
}

.hero {
    min-height: min(760px, calc(100vh - 72px));
    overflow: hidden;
    padding: clamp(84px, 12vw, 136px) clamp(18px, 5vw, 72px) 64px;
    position: relative;
}

#mesh-canvas {
    inset: 0;
    opacity: 0.9;
    position: absolute;
    width: 100%;
    height: 100%;
}

.hero::after {
    background: linear-gradient(180deg, transparent, var(--bg));
    bottom: 0;
    content: "";
    height: 30%;
    left: 0;
    position: absolute;
    right: 0;
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 2;
}

.eyebrow {
    color: var(--cyan);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 0 12px;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

.hero h1 {
    font-size: clamp(64px, 14vw, 152px);
    line-height: 0.88;
    margin-bottom: 24px;
    text-shadow: 0 0 28px rgba(35, 247, 255, 0.5), 0 0 54px rgba(255, 61, 242, 0.34);
}

.hero-logo {
    background: transparent;
    border: 0;
    display: block;
    filter: drop-shadow(0 0 18px rgba(35, 247, 255, 0.26)) drop-shadow(0 0 28px rgba(255, 61, 242, 0.18));
    height: auto;
    margin-bottom: 26px;
    max-width: min(520px, 86vw);
    object-fit: contain;
    width: 100%;
}

.hero-copy,
.page-heading p,
.portal-heading p,
.feature p,
.service-list,
.form-note {
    color: var(--muted);
}

.hero-copy {
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
    max-width: 720px;
}

.hero-actions,
.portal-heading,
.ticket-meta {
    align-items: center;
    display: flex;
    gap: 12px;
}

.button {
    border: 1px solid var(--line);
    border-radius: 7px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    justify-content: center;
    min-height: 44px;
    padding: 12px 18px;
    text-decoration: none;
}

.button.primary {
    background: linear-gradient(135deg, var(--cyan), var(--pink));
    border-color: transparent;
    color: #071019;
}

.button.ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.button.small {
    min-height: 34px;
    padding: 7px 12px;
}

.signal-panel,
.feature,
.plan,
.auth-card,
.stat,
.table-card,
.ticket-card,
.conversation-card,
.download-card,
.contact-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.hero-signals {
    bottom: 74px;
    display: grid;
    gap: 14px;
    position: absolute;
    right: clamp(18px, 5vw, 72px);
    width: min(360px, calc(100vw - 36px));
    z-index: 2;
}

.signal-panel {
    padding: 18px;
}

.signal-panel span,
.signal-panel small,
.stat span,
.subtle {
    color: var(--muted);
}

.signal-panel strong {
    display: block;
    font-size: 26px;
    margin: 6px 0;
}

.section,
.page {
    margin: 0 auto;
    max-width: 1180px;
    padding: 56px clamp(18px, 4vw, 32px);
}

.beta-card {
    align-items: center;
    background:
        linear-gradient(135deg, rgba(35, 247, 255, 0.13), rgba(255, 61, 242, 0.1)),
        var(--panel);
    border: 1px solid rgba(112, 244, 255, 0.28);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-top: 32px;
}

.beta-card h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1;
    margin-bottom: 12px;
}

.beta-card p:last-child {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 0;
    max-width: 760px;
}

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

.feature,
.stat,
.download-card,
.contact-card {
    padding: 24px;
}

.icon {
    color: var(--green);
    font-weight: 900;
}

.split {
    align-items: start;
    display: grid;
    gap: 28px;
    grid-template-columns: 0.9fr 1.1fr;
}

.service-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.page-heading,
.portal-heading {
    justify-content: space-between;
    margin-bottom: 28px;
}

.page-heading h1,
.portal-heading h1,
.auth-card h1 {
    font-size: clamp(36px, 6vw, 64px);
    line-height: 1;
}

.pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card,
.contact-card {
    display: grid;
    gap: 16px;
}

.download-card p,
.contact-card p {
    color: var(--muted);
    line-height: 1.6;
}

.download-icon {
    align-items: center;
    background: linear-gradient(135deg, rgba(35, 247, 255, 0.16), rgba(255, 61, 242, 0.15));
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green);
    display: inline-flex;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.plan {
    display: flex;
    flex-direction: column;
    padding: 22px;
}

.plan.featured {
    border-color: rgba(255, 61, 242, 0.7);
    box-shadow: 0 0 44px rgba(255, 61, 242, 0.18);
}

.plan-badge {
    color: var(--cyan);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.price strong {
    display: block;
    font-size: 40px;
}

.price span,
.empty {
    color: var(--muted);
}

.plan ul {
    color: var(--muted);
    flex: 1;
    padding-left: 18px;
}

.auth-wrap {
    display: grid;
    min-height: calc(100vh - 160px);
    place-items: center;
    padding: 42px 18px;
}

.auth-wrap.wide {
    align-items: start;
}

.auth-card,
.ticket-card {
    max-width: 520px;
    padding: 28px;
    width: 100%;
}

.auth-wrap.wide .auth-card,
.auth-wrap.wide .ticket-card {
    max-width: 760px;
}

.form {
    display: grid;
    gap: 14px;
}

.form label {
    color: var(--muted);
    display: grid;
    font-size: 14px;
    gap: 7px;
}

input,
textarea,
select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--text);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
}

textarea {
    resize: vertical;
}

.setup-callout,
.flash {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 16px auto 0;
    max-width: 1180px;
    padding: 12px 16px;
}

.setup-callout {
    margin-bottom: 16px;
}

.flash.success {
    border-color: rgba(82, 255, 173, 0.55);
}

.flash.error {
    border-color: rgba(255, 102, 120, 0.65);
}

.flash.warning {
    border-color: rgba(255, 214, 102, 0.7);
}

.table-card {
    overflow-x: auto;
    padding: 4px;
}

table {
    border-collapse: collapse;
    min-width: 760px;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid rgba(112, 244, 255, 0.14);
    padding: 14px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.pill {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 9px;
}

.pill.open {
    background: rgba(82, 255, 173, 0.14);
    color: var(--green);
}

.pill.pending {
    background: rgba(255, 214, 102, 0.14);
    color: #ffd666;
}

.pill.closed {
    background: rgba(143, 167, 188, 0.14);
    color: var(--muted);
}

.ticket-message {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(112, 244, 255, 0.12);
    border-radius: 8px;
    color: var(--text);
    line-height: 1.6;
    margin: 22px 0;
    padding: 18px;
}

.ticket-list {
    display: grid;
    gap: 18px;
}

.conversation-card {
    padding: 22px;
}

.conversation-header {
    align-items: flex-start;
    border-bottom: 1px solid rgba(112, 244, 255, 0.14);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 16px;
}

.conversation-header h2 {
    font-size: clamp(24px, 4vw, 36px);
    line-height: 1.1;
    margin-bottom: 8px;
}

.message-thread {
    display: grid;
    gap: 12px;
    margin: 20px 0;
}

.message-bubble {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(112, 244, 255, 0.14);
    border-radius: 8px;
    line-height: 1.55;
    max-width: min(680px, 88%);
    padding: 14px 16px;
}

.message-bubble.admin {
    background: rgba(35, 247, 255, 0.08);
    border-color: rgba(35, 247, 255, 0.28);
}

.message-bubble.user {
    background: rgba(255, 61, 242, 0.08);
    border-color: rgba(255, 61, 242, 0.22);
    justify-self: end;
}

.message-meta {
    align-items: center;
    color: var(--muted);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    margin-bottom: 8px;
}

.message-meta strong {
    color: var(--text);
}

.message-bubble p {
    margin-bottom: 0;
}

.message-compose {
    border-top: 1px solid rgba(112, 244, 255, 0.14);
    display: grid;
    gap: 12px;
    padding-top: 16px;
}

.message-compose label {
    color: var(--muted);
    display: grid;
    font-size: 14px;
    gap: 7px;
}

.footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    padding: 24px clamp(18px, 4vw, 56px);
}

.footer div {
    display: grid;
    gap: 3px;
}

@media (max-width: 960px) {
    .grid-3,
    .pricing-grid,
    .download-grid,
    .contact-grid,
    .split {
        grid-template-columns: 1fr;
    }

    .nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .nav-links {
        flex-wrap: wrap;
    }

    .brand-logo {
        height: 32px;
        width: 96px;
    }

    .hero-logo {
        max-width: min(420px, 92vw);
    }

    .hero-signals {
        margin-top: 28px;
        position: relative;
        right: auto;
        bottom: auto;
        width: min(420px, 100%);
    }

    .hero {
        min-height: auto;
    }

    .portal-heading,
    .footer,
    .beta-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .conversation-header {
        flex-direction: column;
    }

    .message-bubble {
        max-width: 100%;
    }
}
