:root {
    color-scheme: dark;
    --bg: #080b11;
    --bg-soft: #0d111a;
    --surface: rgba(18, 23, 34, 0.82);
    --surface-solid: #121722;
    --surface-hover: #171d29;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.17);
    --text: #f7f8fb;
    --muted: #a0a8b8;
    --muted-strong: #c2c8d3;
    --accent: #ff5c45;
    --accent-strong: #ff765f;
    --accent-soft: rgba(255, 92, 69, 0.14);
    --green: #69e6b7;
    --blue: #7e8cff;
    --danger: #ff7f91;
    --success: #69e6b7;
    --shadow: 0 26px 80px rgba(0, 0, 0, 0.38);
    --radius-lg: 30px;
    --radius-md: 20px;
    --radius-sm: 13px;
    --container: 1180px;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f5f3ef;
    --bg-soft: #ebe8e2;
    --surface: rgba(255, 255, 255, 0.84);
    --surface-solid: #ffffff;
    --surface-hover: #f8f6f2;
    --line: rgba(20, 24, 33, 0.1);
    --line-strong: rgba(20, 24, 33, 0.18);
    --text: #171a21;
    --muted: #686f7b;
    --muted-strong: #454b56;
    --accent-soft: rgba(240, 73, 50, 0.1);
    --shadow: 0 24px 65px rgba(38, 34, 27, 0.12);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: clip;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% -12%, rgba(126, 140, 255, 0.18), transparent 34rem),
        radial-gradient(circle at 12% 22%, rgba(255, 92, 69, 0.12), transparent 31rem),
        var(--bg);
    color: var(--text);
    transition: background-color 180ms ease, color 180ms ease;
}

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

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

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(126, 140, 255, 0.42);
    outline-offset: 3px;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    backdrop-filter: blur(22px);
}

.site-header.scrolled {
    border-bottom-color: var(--line);
}

.nav {
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
    font-size: 18px;
    font-weight: 860;
    letter-spacing: -0.035em;
}

.brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(255, 92, 69, 0.18));
}

.brand-word {
    white-space: nowrap;
}

.brand-word span {
    color: var(--accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-left: auto;
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.nav-links a,
.text-link {
    transition: color 160ms ease;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.control-button,
.button,
.tab-button,
.icon-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    font-weight: 760;
    transition:
        transform 160ms ease,
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.control-button {
    min-width: 44px;
    padding: 0 12px;
    color: var(--muted-strong);
    font-size: 12px;
}

.control-button:hover,
.icon-button:hover {
    border-color: var(--line-strong);
    background: var(--surface-hover);
    color: var(--text);
}

.theme-symbol {
    font-size: 16px;
}

.button {
    min-height: 48px;
    padding: 0 19px;
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.button.primary {
    border-color: rgba(255, 117, 94, 0.62);
    background: linear-gradient(135deg, var(--accent), #ff784d);
    color: #fff;
    box-shadow: 0 13px 34px rgba(255, 92, 69, 0.22);
}

.button.primary:hover {
    box-shadow: 0 17px 42px rgba(255, 92, 69, 0.3);
}

.button.secondary {
    background: var(--surface);
}

.button.small {
    min-height: 42px;
    padding-inline: 15px;
    font-size: 14px;
}

.button.danger {
    border-color: color-mix(in srgb, #ff657d 48%, var(--line));
    background: color-mix(in srgb, #ff657d 12%, var(--surface));
    color: #ff7188;
}

.button.danger:hover {
    border-color: #ff7188;
    background: color-mix(in srgb, #ff657d 19%, var(--surface));
}

.button.full {
    width: 100%;
}

.button[disabled] {
    transform: none;
    opacity: 0.55;
    cursor: not-allowed;
    box-shadow: none;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 5px var(--accent-soft);
    content: "";
}

.hero {
    display: grid;
    min-height: 690px;
    grid-template-columns: minmax(0, 1.05fr) minmax(400px, 0.95fr);
    align-items: center;
    gap: 70px;
    padding: 74px 0 82px;
}

.hero h1,
.page-hero h1,
.auth-copy h1 {
    margin: 0;
    font-size: clamp(48px, 7vw, 86px);
    line-height: 0.96;
    letter-spacing: -0.068em;
}

.hero h1 span,
.page-hero h1 span,
.auth-copy h1 span {
    color: var(--accent);
}

.hero-copy,
.section-copy,
.page-hero p,
.auth-copy > p {
    max-width: 660px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 31px;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 17px;
    margin: 26px 0 0;
    padding: 0;
    color: var(--muted-strong);
    font-size: 13px;
    list-style: none;
}

.hero-points li::before {
    margin-right: 7px;
    color: var(--green);
    content: "●";
}

.visual-card {
    position: relative;
    padding: 22px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(150deg, rgba(126, 140, 255, 0.12), transparent 40%),
        var(--surface);
    box-shadow: var(--shadow);
    transform: perspective(1100px) rotateY(-4deg) rotateX(2deg);
    transition: transform 160ms ease, border-color 180ms ease;
    animation: visual-float 6s ease-in-out infinite;
    will-change: transform;
}

.visual-card::after {
    position: absolute;
    inset: 14% -14% -17% 12%;
    z-index: -1;
    border-radius: 50%;
    background: rgba(255, 92, 69, 0.11);
    filter: blur(46px);
    content: "";
}

.visual-card.is-tilting {
    animation-play-state: paused;
}

.visual-top,
.visual-footer,
.metric-row,
.status-row,
.auth-card-head,
.dashboard-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.live-pill,
.soft-pill,
.plan-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(105, 230, 183, 0.25);
    border-radius: 999px;
    background: rgba(105, 230, 183, 0.08);
    color: var(--green);
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.06em;
}

.pipeline {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 10px;
    margin: 26px 0 20px;
}

.pipeline-step {
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface-solid) 75%, transparent);
    padding: 15px 11px;
    text-align: center;
}

.pipeline-step strong {
    display: block;
    overflow: hidden;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pipeline-step small {
    color: var(--muted);
    font-size: 10px;
}

.pipeline-arrow {
    color: var(--muted);
}

.waveform {
    display: flex;
    height: 210px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        linear-gradient(to bottom, rgba(126, 140, 255, 0.08), rgba(255, 92, 69, 0.05)),
        var(--bg-soft);
}

.waveform i {
    width: 5px;
    height: var(--height);
    max-height: 76%;
    border-radius: 999px;
    background: linear-gradient(to bottom, var(--blue), var(--accent));
    opacity: 0.78;
    animation: wave-pulse 2.7s ease-in-out infinite;
    animation-delay: var(--delay);
}

.visual-footer {
    margin-top: 18px;
}

.metric strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
}

.metric small {
    color: var(--muted);
    font-size: 11px;
}

.progress {
    width: 38%;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--line);
}

.progress span {
    display: block;
    width: 78%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), var(--green));
}

.section {
    padding: 94px 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 34px;
}

.section-heading h2,
.cta-card h2,
.auth-card h2,
.dashboard h2 {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 1.04;
    letter-spacing: -0.055em;
}

.section-heading .section-copy {
    max-width: 470px;
    margin: 0;
    font-size: 16px;
}

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

.feature-card,
.plan-card,
.faq-card,
.auth-card,
.auth-copy,
.dashboard,
.cta-card,
.model-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.09);
}

.feature-card,
.plan-card,
.model-card {
    position: relative;
    overflow: hidden;
    padding: 25px;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.feature-card:hover,
.plan-card:hover,
.model-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    background: var(--surface-hover);
}

.feature-number {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    margin-bottom: 40px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--bg-soft);
    color: var(--accent);
    font-weight: 850;
}

.feature-card h3,
.plan-card h3,
.model-card h3 {
    margin: 0 0 10px;
    font-size: 21px;
    letter-spacing: -0.025em;
}

.feature-card p,
.plan-card p,
.model-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.steps {
    counter-reset: step;
}

.step-card {
    counter-increment: step;
}

.step-card .feature-number::after {
    content: "0" counter(step);
}

.models-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

.model-card {
    min-height: 170px;
}

.model-card strong {
    display: block;
    margin-bottom: 14px;
    color: var(--accent);
    font-size: 12px;
    text-transform: uppercase;
}

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

.plan-card {
    min-height: 390px;
    padding: 30px;
}

.plan-card.featured {
    border-color: rgba(255, 92, 69, 0.42);
    background:
        radial-gradient(circle at 100% 0, rgba(255, 92, 69, 0.16), transparent 18rem),
        var(--surface);
}

.plan-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.plan-card .plan-lead {
    min-height: 52px;
    margin-top: 18px;
}

.plan-list {
    display: grid;
    gap: 12px;
    margin: 26px 0 30px;
    padding: 0;
    color: var(--muted-strong);
    list-style: none;
}

.plan-list li::before {
    margin-right: 10px;
    color: var(--green);
    content: "✓";
}

.cta-card {
    position: relative;
    overflow: hidden;
    padding: 54px;
    background:
        radial-gradient(circle at 90% 10%, rgba(126, 140, 255, 0.2), transparent 22rem),
        radial-gradient(circle at 10% 90%, rgba(255, 92, 69, 0.17), transparent 24rem),
        var(--surface);
    text-align: center;
}

.cta-card p {
    max-width: 630px;
    margin: 18px auto 27px;
    color: var(--muted);
    line-height: 1.65;
}

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-row {
    display: flex;
    min-height: 92px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.page-hero {
    max-width: 820px;
    padding: 82px 0 42px;
}

.page-hero h1 {
    font-size: clamp(46px, 7vw, 74px);
}

.help-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    align-items: start;
    gap: 26px;
    padding-bottom: 90px;
}

.help-aside {
    position: sticky;
    top: 102px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.help-aside h3 {
    margin: 0 0 13px;
}

.help-aside p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

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

.faq-item {
    border: 1px solid var(--line);
    border-radius: 17px;
    background: var(--surface);
    transition: border-color 160ms ease, background-color 160ms ease;
}

.faq-item[open] {
    border-color: var(--line-strong);
    background: var(--surface-hover);
}

.faq-item summary {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 21px;
    cursor: pointer;
    font-weight: 780;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--muted);
    content: "+";
    transition: transform 160ms ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 21px 21px;
    color: var(--muted);
    line-height: 1.68;
}

.auth-page {
    display: grid;
    min-height: calc(100vh - 77px);
    place-items: center;
    padding: 48px 0 76px;
}

.auth-shell {
    display: grid;
    width: min(1030px, calc(100% - 40px));
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 18px;
}

.auth-shell.dashboard-mode {
    width: min(1240px, calc(100% - 40px));
    grid-template-columns: 1fr;
}

.auth-shell.dashboard-mode .auth-copy {
    display: none;
}

.auth-copy {
    display: flex;
    min-height: 610px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 38px;
    background:
        radial-gradient(circle at 20% 90%, rgba(255, 92, 69, 0.2), transparent 24rem),
        radial-gradient(circle at 100% 0, rgba(126, 140, 255, 0.18), transparent 22rem),
        var(--surface);
}

.auth-copy h1 {
    max-width: 500px;
    font-size: clamp(42px, 5vw, 63px);
}

.auth-copy-list {
    display: grid;
    gap: 12px;
    margin: 34px 0 0;
    padding: 0;
    color: var(--muted-strong);
    list-style: none;
}

.auth-copy-list li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-copy-list i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(105, 230, 183, 0.09);
}

.auth-card,
.dashboard {
    min-height: 610px;
    padding: 34px;
}

.auth-card-head {
    margin-bottom: 26px;
}

.auth-card-head h2 {
    font-size: 35px;
}

.auth-card-head p {
    margin: 7px 0 0;
    color: var(--muted);
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 24px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--bg-soft);
}

.tab-button {
    min-height: 43px;
    border: 0;
    background: transparent;
    color: var(--muted);
    box-shadow: none;
}

.tab-button.active {
    background: var(--surface-solid);
    color: var(--text);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.12);
}

.form-grid {
    display: grid;
    gap: 15px;
}

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

.field label {
    color: var(--muted-strong);
    font-size: 13px;
    font-weight: 680;
}

.field input,
.field select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 0 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.field input:focus,
.field select:focus {
    border-color: rgba(126, 140, 255, 0.62);
    outline: none;
    box-shadow: 0 0 0 4px rgba(126, 140, 255, 0.12);
}

.password-wrap {
    position: relative;
}

.password-wrap input {
    padding-right: 55px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 38px;
    min-height: 36px;
    transform: translateY(-50%);
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.form-note {
    margin: 1px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.form-actions {
    display: grid;
    gap: 12px;
    margin-top: 5px;
}

.status-box {
    display: none;
    margin-top: 16px;
    border: 1px solid rgba(105, 230, 183, 0.24);
    border-radius: 13px;
    background: rgba(105, 230, 183, 0.08);
    color: var(--success);
    padding: 13px 14px;
    font-size: 14px;
    line-height: 1.55;
}

.status-box.visible {
    display: block;
}

.status-box.error {
    border-color: rgba(255, 127, 145, 0.3);
    background: rgba(255, 127, 145, 0.08);
    color: var(--danger);
}

.status-box.info {
    border-color: rgba(126, 140, 255, 0.3);
    background: rgba(126, 140, 255, 0.08);
    color: var(--muted-strong);
}

.resend-panel {
    display: none;
    grid-template-columns: 1fr auto;
    gap: 10px;
    margin-top: 12px;
}

.resend-panel.visible {
    display: grid;
}

.resend-panel input {
    min-width: 0;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 0 13px;
}

.dashboard {
    display: none;
}

.dashboard.visible {
    display: block;
    animation: panel-in 260ms ease both;
}

.auth-shell.dashboard-mode .dashboard {
    min-height: 720px;
}

.auth-card.hidden {
    display: none;
}

.dashboard-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 25px 0;
}

.summary-card {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--bg-soft);
    padding: 17px;
}

.summary-card small {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
}

.summary-card strong {
    overflow-wrap: anywhere;
}

.workspace-panel {
    margin-top: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--bg-soft);
    padding: 20px;
}

.workspace-panel h3 {
    margin: 0 0 8px;
}

.workspace-panel p {
    margin: 0 0 17px;
    color: var(--muted);
    line-height: 1.55;
}

.account-workspace {
    display: grid;
    grid-template-columns: 230px minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--bg-soft);
}

.workspace-tabs {
    display: grid;
    align-content: start;
    gap: 8px;
    padding: 14px;
    border-right: 1px solid var(--line);
    background: color-mix(in srgb, var(--surface-solid) 72%, transparent);
}

.workspace-tab {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    border: 1px solid transparent;
    border-radius: 15px;
    background: transparent;
    color: var(--muted);
    padding: 10px;
    text-align: left;
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.workspace-tab:hover {
    transform: translateX(2px);
    color: var(--text);
}

.workspace-tab.active {
    border-color: rgba(126, 140, 255, 0.28);
    background: linear-gradient(135deg, rgba(126, 140, 255, 0.14), rgba(105, 230, 183, 0.07));
    color: var(--text);
}

.workspace-tab-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--accent);
}

.workspace-tab span:last-child {
    display: grid;
    gap: 3px;
}

.workspace-tab b {
    font-size: 14px;
}

.workspace-tab small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.workspace-content {
    min-width: 0;
    padding: 26px;
}

.workspace-section {
    display: none;
}

.workspace-section.active {
    display: block;
    animation: panel-in 220ms ease both;
}

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

.section-head.compact h3 {
    margin: 5px 0 7px;
    font-size: 25px;
}

.section-head.compact p {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.plan-chip,
.subscription-state {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface-solid);
    color: var(--muted);
    padding: 5px 11px;
    font-size: 12px;
    font-weight: 800;
}

.plan-chip.active,
.subscription-state.active {
    border-color: rgba(105, 230, 183, 0.32);
    background: rgba(105, 230, 183, 0.09);
    color: var(--success);
}

.locked-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    border: 1px dashed rgba(126, 140, 255, 0.38);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(126, 140, 255, 0.1), rgba(105, 230, 183, 0.04));
    padding: 22px;
}

.locked-card h4,
.locked-card p {
    margin: 0;
}

.locked-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.locked-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 13px;
    color: var(--accent);
    font-size: 21px;
}

.upload-drop {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
    padding: 20px;
}

.upload-drop > .field {
    margin-bottom: 12px;
}

.upload-drop .upload-grid {
    grid-template-columns: 1fr 1fr;
}

.model-hint {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.history-block {
    margin-top: 30px;
}

.jobs-list {
    display: grid;
    gap: 9px;
}

.job-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface-solid);
    padding: 13px 14px;
}

.job-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 5px rgba(126, 140, 255, 0.08);
}

.job-row.ready .job-dot {
    background: var(--green);
    box-shadow: 0 0 0 5px rgba(105, 230, 183, 0.08);
}

.job-row.failed .job-dot {
    background: var(--danger);
}

.job-row.cancelled .job-dot {
    background: #a6afc4;
    box-shadow: 0 0 0 5px color-mix(in srgb, #a6afc4 14%, transparent);
}

.job-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.job-main {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.job-main strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.job-main small,
.job-row time {
    color: var(--muted);
    font-size: 12px;
}

.empty-state {
    border: 1px dashed var(--line);
    border-radius: 15px;
    color: var(--muted);
    padding: 26px;
    text-align: center;
}

.empty-state.error {
    color: var(--danger);
}

.subscription-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.subscription-card,
.activation-card {
    border: 1px solid var(--line);
    border-radius: 19px;
    background: var(--surface-solid);
    padding: 21px;
}

.subscription-card.featured {
    background: linear-gradient(145deg, rgba(126, 140, 255, 0.1), var(--surface-solid) 58%);
}

.subscription-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.plan-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    color: #07110f;
    font-weight: 950;
}

.plan-mark.light {
    background: var(--green);
}

.plan-mark.pro {
    background: var(--accent);
    color: #fff;
}

.subscription-card h3 {
    margin: 17px 0 7px;
}

.subscription-card > p {
    min-height: 46px;
    margin: 0 0 17px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.plan-details {
    display: grid;
    gap: 9px;
    margin: 0 0 18px;
}

.plan-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 9px;
}

.plan-details dt {
    color: var(--muted);
    font-size: 12px;
}

.plan-details dd {
    margin: 0;
    font-size: 12px;
    font-weight: 760;
    text-align: right;
}

.activation-card {
    margin-top: 14px;
}

.purchase-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.purchase-actions .button {
    justify-content: center;
    text-align: center;
}

.payment-card {
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(135deg, rgba(105, 230, 183, 0.055), var(--surface-solid));
    padding: 21px;
}

.payment-card h3,
.payment-card p {
    margin: 0;
}

.payment-card > div:first-child > p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.manual-payment-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.manual-payment-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    padding: 10px 11px;
}

.manual-payment-row b {
    color: var(--muted-strong);
    font-size: 12px;
}

.manual-payment-row code {
    min-width: 0;
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.activation-card h3,
.activation-card p {
    margin: 0;
}

.activation-card p {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}

.activation-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    margin-top: 17px;
}

.activation-row input {
    min-width: 0;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 0 14px;
}

.settings-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--surface-solid);
}

.settings-row {
    display: flex;
    min-height: 78px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 15px 18px;
}

.settings-row:last-child {
    border-bottom: 0;
}

.settings-row > span {
    display: grid;
    gap: 4px;
}

.settings-row small {
    color: var(--muted);
}

.danger-row {
    background: rgba(255, 127, 145, 0.025);
}

.support-widget {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 80;
}

.support-launcher {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    gap: 9px;
    border: 1px solid rgba(126, 140, 255, 0.42);
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), #6774ff);
    box-shadow: 0 14px 38px rgba(69, 82, 210, 0.34);
    color: #fff;
    padding: 8px 16px 8px 9px;
    font-weight: 820;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.support-launcher:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgba(69, 82, 210, 0.42);
}

.support-launcher-icon {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.17);
}

.support-window {
    position: absolute;
    right: 0;
    bottom: 62px;
    display: none;
    width: min(380px, calc(100vw - 28px));
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 21px;
    background: var(--surface-solid);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.support-window.open {
    display: grid;
    animation: panel-in 190ms ease both;
}

.support-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, rgba(126, 140, 255, 0.13), rgba(105, 230, 183, 0.06));
    padding: 15px 16px;
}

.support-head > div {
    display: grid;
    gap: 3px;
}

.support-head small {
    color: var(--muted);
}

.support-head button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    font-size: 23px;
    cursor: pointer;
}

.support-messages {
    display: grid;
    max-height: 360px;
    min-height: 220px;
    align-content: start;
    gap: 10px;
    overflow-y: auto;
    padding: 15px;
}

.support-messages:empty::before {
    color: var(--muted);
    padding: 28px 18px;
    text-align: center;
    content: attr(data-empty);
}

.support-message {
    display: grid;
    max-width: 86%;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 14px 14px 14px 4px;
    background: var(--bg-soft);
    padding: 10px 11px;
}

.support-message.customer {
    justify-self: end;
    border-color: rgba(126, 140, 255, 0.28);
    border-radius: 14px 14px 4px 14px;
    background: rgba(126, 140, 255, 0.11);
}

.support-message p {
    margin: 0;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.45;
}

.support-message small {
    color: var(--muted);
    font-size: 10px;
}

.support-compose {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 8px;
    border-top: 1px solid var(--line);
    padding: 11px;
}

.support-compose textarea {
    width: 100%;
    min-height: 44px;
    max-height: 110px;
    resize: vertical;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--bg-soft);
    color: var(--text);
    padding: 10px 11px;
    font: inherit;
}

.support-login {
    display: grid;
    justify-items: start;
    gap: 11px;
    padding: 22px;
}

.support-login p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
}

.support-note {
    min-height: 0;
    color: var(--success);
    padding: 0 12px 10px;
    font-size: 11px;
}

.support-note.warning {
    color: var(--muted);
}

.upload-grid {
    display: grid;
    grid-template-columns: 1.2fr repeat(2, 0.65fr);
    gap: 10px;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 14px 0;
    color: var(--muted-strong);
    font-size: 14px;
}

.check-row input {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}

.hidden {
    display: none !important;
}

.verify-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.verify-card {
    width: min(520px, 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow);
    padding: 38px;
    text-align: center;
}

.verify-logo {
    width: 76px;
    height: 76px;
    margin-bottom: 14px;
    object-fit: contain;
}

.verify-card h1 {
    margin: 0;
    font-size: 36px;
    letter-spacing: -0.04em;
}

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

@keyframes visual-float {
    0%,
    100% {
        transform: perspective(1100px) rotateY(-4deg) rotateX(2deg) translateY(-4px);
    }
    50% {
        transform: perspective(1100px) rotateY(-4deg) rotateX(2deg) translateY(6px);
    }
}

@keyframes wave-pulse {
    0%,
    100% {
        transform: scaleY(0.78);
        opacity: 0.55;
    }
    50% {
        transform: scaleY(1);
        opacity: 0.9;
    }
}

@keyframes panel-in {
    from {
        transform: translateY(8px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (max-width: 960px) {
    .nav-links {
        display: none;
    }

    .hero {
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 55px;
        padding-top: 62px;
    }

    .visual-card {
        width: min(620px, 94%);
        margin-inline: auto;
    }

    .models-strip {
        grid-template-columns: repeat(3, 1fr);
    }

    .auth-shell {
        grid-template-columns: 1fr;
        max-width: 680px;
    }

    .auth-copy {
        min-height: auto;
    }

    .auth-copy-list {
        display: none;
    }

    .auth-card,
    .dashboard {
        min-height: auto;
    }

    .account-workspace {
        grid-template-columns: 1fr;
    }

    .workspace-tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .workspace-tab {
        grid-template-columns: auto 1fr;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, var(--container));
    }

    .nav {
        min-height: 68px;
        gap: 10px;
    }

    .brand-word {
        display: none;
    }

    .brand img {
        width: 36px;
        height: 36px;
    }

    .nav-actions {
        margin-left: auto;
    }

    .nav-actions .button.small {
        min-width: 42px;
        padding-inline: 11px;
        font-size: 0;
    }

    .nav-actions .button.small::before {
        font-size: 17px;
        content: "↗";
    }

    .control-button {
        min-width: 40px;
        min-height: 40px;
        padding-inline: 10px;
    }

    .theme-text {
        display: none;
    }

    .hero {
        padding: 48px 0 58px;
    }

    .hero h1 {
        font-size: clamp(45px, 15vw, 66px);
    }

    .hero-copy {
        font-size: 16px;
    }

    .visual-card {
        width: 100%;
        padding: 15px;
        transform: none;
        animation: none;
    }

    .pipeline {
        gap: 5px;
    }

    .pipeline-step {
        padding-inline: 6px;
    }

    .pipeline-step small {
        display: none;
    }

    .waveform {
        height: 150px;
        gap: 3px;
    }

    .waveform i {
        width: 4px;
    }

    .section {
        padding: 70px 0;
    }

    .section-heading {
        display: block;
    }

    .section-heading .section-copy {
        margin-top: 16px;
    }

    .cards-grid,
    .plans-grid {
        grid-template-columns: 1fr;
    }

    .models-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-card {
        padding: 37px 22px;
    }

    .footer-row {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding: 25px 0;
    }

    .help-layout {
        grid-template-columns: 1fr;
    }

    .help-aside {
        position: static;
    }

    .auth-page {
        padding-top: 28px;
    }

    .auth-shell {
        width: min(100% - 24px, 680px);
    }

    .auth-copy {
        padding: 28px;
    }

    .auth-copy h1 {
        font-size: 42px;
    }

    .auth-card,
    .dashboard {
        padding: 25px 20px;
    }

    .dashboard-summary,
    .upload-grid {
        grid-template-columns: 1fr;
    }

    .workspace-tabs {
        grid-template-columns: 1fr;
    }

    .workspace-tab {
        min-height: 54px;
    }

    .workspace-content {
        padding: 18px;
    }

    .section-head.compact,
    .settings-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .locked-card {
        grid-template-columns: auto 1fr;
    }

    .locked-card .button {
        grid-column: 1 / -1;
    }

    .upload-drop .upload-grid,
    .subscription-grid,
    .activation-row,
    .purchase-actions {
        grid-template-columns: 1fr;
    }

    .manual-payment-row {
        grid-template-columns: 1fr auto;
    }

    .manual-payment-row code {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .job-row {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .job-row time,
    .job-actions {
        grid-column: 2;
        justify-self: start;
    }

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

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