/* ==========================================================================
   Wynsense — app design system (dashboard / documents)
   Deliberately restrained: one accent, thin borders, tight type.
   ========================================================================== */

:root {
    --bg: #08090b;
    --panel: #0d0e11;
    --panel-2: #111216;
    --panel-3: #16181e;
    --line: #1b1d22;
    --line-2: #262931;
    --text: #eceef2;
    --text-2: #a8acb8;
    --muted: #6e7280;
    --accent: #6b7cff;
    --accent-dim: rgba(107, 124, 255, 0.12);
    --ok: #3ecf8e;
    --warn: #e5b567;
    --danger: #e5646e;
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.006em;
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    background: var(--accent-dim);
}

/* ------------------------------------------------------------------- nav */

.nav {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid var(--line);
    background: rgba(8, 9, 11, 0.78);
    backdrop-filter: saturate(180%) blur(12px);
}

.nav-in {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
    font-size: 13.5px;
    letter-spacing: -0.01em;
}

.mark {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: linear-gradient(160deg, #8f9dff, #5a6bf0);
    display: grid;
    place-items: center;
}

.mark svg {
    width: 12px;
    height: 12px;
    stroke: #0a0b0e;
    stroke-width: 2.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-links {
    display: flex;
    gap: 2px;
    margin-left: 26px;
}

.nav-links a {
    padding: 6px 11px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
    color: var(--text);
    background: var(--panel-2);
}

.nav-links a.on {
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    position: relative;
}

.chip {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px 4px 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 550;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.chip:hover {
    border-color: var(--line-2);
    background: var(--panel-2);
}

.chip .av {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: #2a2d38;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-2);
}

.icon-btn {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    border: 1px solid var(--line);
    color: var(--muted);
    transition: 0.15s ease;
    background: transparent;
    cursor: pointer;
}

.icon-btn:hover {
    color: var(--text);
    border-color: var(--line-2);
    background: var(--panel-2);
}

.menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 180px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel-2);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.9);
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.menu.open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.menu a,
.menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--text-2);
    font: inherit;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.13s ease, color 0.13s ease;
}

.menu a:hover,
.menu button:hover {
    background: var(--panel-3);
    color: var(--text);
}

/* ----------------------------------------------------------------- shell */

.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.page-head {
    padding: 46px 0 24px;
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-head h1 {
    font-size: 28px;
    font-weight: 640;
    letter-spacing: -0.028em;
}

.page-head p {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 5px;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

/* ----------------------------------------------------------------- cards */

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    animation: rise 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.card-head {
    padding: 17px 20px 0;
}

.card-head h2 {
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.card-head p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.card-body {
    padding: 16px 20px 20px;
}

.dash {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 72px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* --------------------------------------------------------------- sidebar */

.side {
    padding: 14px;
    align-self: start;
    position: sticky;
    top: 72px;
}

.side-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 2px 2px 14px;
    border-bottom: 1px solid var(--line);
}

.side-av {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #242734;
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 13px;
    color: #cfd3e0;
    flex: none;
}

.side-user b {
    display: block;
    font-size: 13px;
    font-weight: 600;
}

.side-user small {
    display: block;
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 1px;
}

.tag {
    font-size: 10px;
    font-weight: 600;
    padding: 1px 6px;
    border-radius: 5px;
    border: 1px solid var(--line-2);
    color: var(--text-2);
    margin-left: auto;
    white-space: nowrap;
    transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.tag.pill-accent,
.tag.pill-ok {
    border-color: rgba(107, 124, 255, 0.35);
    color: #9aa6ff;
    background: rgba(107, 124, 255, 0.1);
}

.tag.pill-warn {
    border-color: rgba(229, 181, 103, 0.3);
    color: var(--warn);
    background: rgba(229, 181, 103, 0.08);
}

.tag.pill-danger {
    border-color: rgba(229, 100, 110, 0.3);
    color: var(--danger);
    background: rgba(229, 100, 110, 0.08);
}

.side-label {
    padding: 14px 6px 6px;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.side-link {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 9px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    transition: 0.14s ease;
    width: 100%;
    border: 0;
    background: transparent;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
}

.side-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.75;
    flex: none;
}

.side-link:hover {
    background: var(--panel-2);
    color: var(--text);
}

.side-link.on {
    background: var(--panel-2);
    color: var(--text);
}

.side-help {
    margin-top: 14px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
}

.side-help b {
    font-size: 12px;
    font-weight: 600;
    display: block;
}

.side-help small {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
    margin-top: 2px;
}

.help-btns {
    display: flex;
    gap: 6px;
    margin-top: 10px;
}

.mini {
    flex: 1;
    text-align: center;
    padding: 6px 0;
    border: 1px solid var(--line);
    border-radius: 7px;
    font-size: 11.5px;
    font-weight: 550;
    color: var(--text-2);
    transition: 0.14s ease;
}

.mini:hover {
    border-color: var(--line-2);
    color: var(--text);
    background: var(--panel-2);
}

/* ------------------------------------------------------------------ rows */

.row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

.row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.row-l {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.row-l > svg {
    width: 15px;
    height: 15px;
    stroke: var(--muted);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: none;
}

.row-l b {
    font-size: 13px;
    font-weight: 550;
    display: block;
}

.row-l small {
    font-size: 11.5px;
    color: var(--muted);
    display: block;
    margin-top: 1px;
}

.grid3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    margin-top: 14px;
}

.cell small {
    display: block;
    font-size: 11px;
    color: var(--muted);
}

.cell b {
    display: block;
    font-size: 12.5px;
    font-weight: 550;
    margin-top: 2px;
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cell b.linked {
    color: var(--ok);
}

.cell b.hwid-value {
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11.5px;
    cursor: pointer;
    color: var(--accent);
}

.cell b.hwid-value:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* --------------------------------------------------------------- buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 7px 13px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    font-size: 12.5px;
    font-weight: 550;
    color: var(--text);
    background: var(--panel-2);
    transition: 0.15s ease;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
}

.btn:hover {
    border-color: #333744;
    background: var(--panel-3);
}

.btn-primary {
    background: #e8eaf2;
    border-color: #e8eaf2;
    color: #0a0b0e;
}

.btn-primary:hover {
    background: #fff;
    border-color: #fff;
}

.btn-block {
    width: 100%;
    padding: 9px 0;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.link-btn {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 11.5px;
    font-weight: 550;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 3px;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.link-btn:hover {
    color: var(--text-2);
    text-decoration-color: currentColor;
}

/* ---------------------------------------------------------------- fields */

.field {
    flex: 1;
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    font: inherit;
    font-size: 12.5px;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}

.field:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.field::placeholder {
    color: var(--muted);
}

.field-row {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 5px;
}

/* ------------------------------------------------------------ misc bits */

.big {
    font-size: 27px;
    font-weight: 640;
    letter-spacing: -0.03em;
    margin-top: 10px;
}

.sub-line {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(62, 207, 142, 0.25);
    color: var(--ok);
    background: rgba(62, 207, 142, 0.08);
    white-space: nowrap;
}

.badge::before {
    content: "";
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}

.badge.warn {
    border-color: rgba(229, 181, 103, 0.25);
    color: var(--warn);
    background: rgba(229, 181, 103, 0.08);
}

.badge.danger {
    border-color: rgba(229, 100, 110, 0.25);
    color: var(--danger);
    background: rgba(229, 100, 110, 0.08);
}

.sys {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.sys small {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
}

.sys b {
    display: block;
    font-weight: 550;
    margin-top: 1px;
    color: var(--text-2);
    font-size: 11.5px;
}

.license-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 7px 9px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
}

.license-row code {
    flex: 1;
    min-width: 0;
    font-family: ui-monospace, Consolas, monospace;
    font-size: 11.5px;
    letter-spacing: 0.03em;
    color: var(--text-2);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.alert {
    display: none;
    margin: 10px 0 0;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid rgba(229, 100, 110, 0.3);
    background: rgba(229, 100, 110, 0.08);
    color: #f3b3b8;
}

.alert.show {
    display: block;
}

.hidden {
    display: none !important;
}

.muted {
    color: var(--muted);
}

/* ---------------------------------------------------------------- toast */

.toast-stack {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 90;
}

.toast {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 13px;
    border-radius: 9px;
    border: 1px solid var(--line-2);
    background: var(--panel-2);
    font-size: 12.5px;
    font-weight: 500;
    box-shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.9);
    animation: rise 0.3s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.toast svg {
    width: 14px;
    height: 14px;
    stroke: var(--ok);
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.toast.err svg {
    stroke: var(--danger);
}

/* ------------------------------------------------------------ documents */

.doc {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 16px;
    padding-bottom: 72px;
}

.doc-list {
    padding: 8px;
    align-self: start;
    position: sticky;
    top: 72px;
}

.doc-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-2);
    transition: 0.14s ease;
}

.doc-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.7;
    flex: none;
}

.doc-item:hover {
    background: var(--panel-2);
    color: var(--text);
}

.doc-item.on {
    background: var(--panel-2);
    color: var(--text);
}

.doc-body {
    padding: 22px 26px 28px;
}

.doc-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-title h2 {
    font-size: 17px;
    font-weight: 620;
    letter-spacing: -0.02em;
}

.doc-title svg {
    width: 17px;
    height: 17px;
    stroke: var(--accent);
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.doc-sub {
    font-size: 12.5px;
    color: var(--muted);
    margin-top: 6px;
}

.doc-date {
    font-size: 11.5px;
    color: var(--muted);
    margin-top: 2px;
}

.doc-h {
    font-size: 13.5px;
    font-weight: 600;
    margin: 26px 0 8px;
}

.doc-p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
}

.doc-p + .doc-p {
    margin-top: 10px;
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 900px) {
    .dash,
    .doc {
        grid-template-columns: minmax(0, 1fr);
    }

    .side,
    .doc-list {
        position: static;
    }

    .grid2 {
        grid-template-columns: minmax(0, 1fr);
    }

    .nav-links {
        display: none;
    }
}

/* ==========================================================================
   Landing
   ========================================================================== */

.landing-body {
    overflow-x: hidden;
}

/* ------------------------------------------------------------------ hero */

.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 84px 24px 64px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 56px;
    align-items: center;
}

.hero-copy > * {
    opacity: 0;
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.04s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.1s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.22s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.28s; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--muted);
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-dim);
}

.hero h1 {
    margin: 16px 0 18px;
    font-size: clamp(36px, 4.6vw, 54px);
    font-weight: 660;
    letter-spacing: -0.038em;
    line-height: 1.06;
}

.hero h1 em {
    font-style: normal;
    color: var(--text-2);
}

.hero p {
    max-width: 460px;
    color: var(--text-2);
    font-size: 14.5px;
    line-height: 1.68;
}

.hero-actions {
    display: flex;
    gap: 10px;
    margin-top: 26px;
    flex-wrap: wrap;
}

.btn-lg {
    padding: 10px 18px;
    font-size: 13.5px;
    border-radius: 9px;
}

.hero-stats {
    display: flex;
    gap: 28px;
    margin-top: 40px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.hero-stats b {
    display: block;
    font-size: 19px;
    font-weight: 640;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.hero-stats small {
    font-size: 11.5px;
    color: var(--muted);
}

/* ------------------------------------------------------------- hero art */

.hero-art {
    position: relative;
    animation: rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.16s both;
}

.window {
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel);
    overflow: hidden;
    box-shadow: 0 40px 90px -50px rgba(0, 0, 0, 0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

.window:hover {
    transform: translateY(-4px);
    border-color: var(--line-2);
}

.window-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    background: var(--panel-2);
}

.window-bar i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2b2e38;
}

.window-bar span {
    margin-left: 8px;
    font-size: 11px;
    color: var(--muted);
    font-weight: 550;
}

.window-body {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    min-height: 232px;
}

.window-side {
    padding: 12px 9px;
    border-right: 1px solid var(--line);
}

.window-tab {
    padding: 6px 9px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 550;
    color: var(--muted);
    transition: 0.18s ease;
}

.window-tab.on {
    background: var(--panel-3);
    color: var(--text);
}

.window-main {
    padding: 12px 14px;
}

.module {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 2px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.035);
    font-size: 12px;
    color: var(--text-2);
}

.module:last-child {
    border-bottom: 0;
}

.module em {
    font-style: normal;
    flex: 1;
}

.sw {
    position: relative;
    width: 28px;
    height: 16px;
    border-radius: 999px;
    background: #23262f;
    flex: none;
    transition: background 0.24s ease;
}

.sw::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #7b7f8c;
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1), background 0.24s ease;
}

.sw.on {
    background: var(--accent);
}

.sw.on::after {
    transform: translateX(12px);
    background: #fff;
}

/* --------------------------------------------------------------- strip */

.strip {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--panel);
}

.strip-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.strip-item {
    padding: 22px 20px 22px 0;
    border-right: 1px solid var(--line);
}

.strip-item:last-child {
    border-right: 0;
}

.strip-item b {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 3px;
}

.strip-item small {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.55;
}

/* ------------------------------------------------------------- section */

.section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 84px 24px;
}

.section-head {
    max-width: 560px;
    margin-bottom: 40px;
}

.section-head h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 650;
    letter-spacing: -0.03em;
    margin: 12px 0 10px;
}

.section-head p {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

/* --------------------------------------------------------------- steps */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}

.step {
    background: var(--panel);
    padding: 24px 22px;
    transition: background 0.2s ease;
}

.step:hover {
    background: var(--panel-2);
}

.step-n {
    font-size: 11px;
    font-weight: 650;
    color: var(--accent);
    letter-spacing: 0.04em;
}

.step h3 {
    font-size: 14px;
    font-weight: 600;
    margin: 10px 0 6px;
    letter-spacing: -0.01em;
}

.step p {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.65;
}

/* ------------------------------------------------------------- pricing */

.plans {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    align-items: start;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.24s ease,
        background 0.24s ease;
}

.plan:hover {
    transform: translateY(-3px);
    border-color: var(--line-2);
    background: var(--panel-2);
}

.plan-hot {
    border-color: rgba(107, 124, 255, 0.35);
}

.plan-hot:hover {
    border-color: rgba(107, 124, 255, 0.55);
}

.plan-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}

.plan-top h3 {
    font-size: 14px;
    font-weight: 600;
}

.price b {
    display: block;
    font-size: 20px;
    font-weight: 650;
    letter-spacing: -0.02em;
    text-align: right;
}

.price small {
    font-size: 10.5px;
    color: var(--muted);
}

.plan ul {
    list-style: none;
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.plan li {
    position: relative;
    padding-left: 18px;
    font-size: 12.5px;
    color: var(--text-2);
}

.plan li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 6px;
    width: 9px;
    height: 5px;
    border-left: 1.6px solid var(--accent);
    border-bottom: 1.6px solid var(--accent);
    transform: rotate(-45deg);
}

/* -------------------------------------------------------------- footer */

.footer {
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

.footer-in {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 44px;
}

.footer-word {
    font-size: clamp(48px, 12vw, 128px);
    font-weight: 660;
    letter-spacing: -0.05em;
    line-height: 0.86;
    background: linear-gradient(180deg, rgba(236, 238, 242, 0.16), rgba(236, 238, 242, 0.02));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    user-select: none;
    margin-bottom: 28px;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}

.footer-links {
    display: flex;
    gap: 16px;
}

.footer-links a {
    color: var(--muted);
    font-weight: 550;
    transition: color 0.16s ease;
}

.footer-links a:hover {
    color: var(--text);
}

/* ------------------------------------------------------- reveal on scroll */

.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: minmax(0, 1fr);
        padding-top: 56px;
        gap: 36px;
    }

    .strip-in {
        grid-template-columns: repeat(2, 1fr);
    }

    .strip-item:nth-child(2n) {
        border-right: 0;
    }

    .steps,
    .plans {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ==========================================================================
   Auth pages (login / register) + download
   ========================================================================== */

/* slow drifting dot field — motion without the usual glowing blobs */
.bg-grid {
    position: fixed;
    inset: -20%;
    z-index: 0;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 26px 26px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 78%);
    animation: drift 60s linear infinite;
}

@keyframes drift {
    from {
        transform: translate3d(0, 0, 0);
    }
    to {
        transform: translate3d(-26px, -26px, 0);
    }
}

.auth-page {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 56px 20px;
}

.auth-brand {
    position: fixed;
    top: 22px;
    left: 26px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-weight: 650;
    font-size: 13.5px;
    color: var(--text);
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 384px;
}

.auth-card > * {
    opacity: 0;
    animation: rise 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-card > *:nth-child(1) { animation-delay: 0.05s; }
.auth-card > *:nth-child(2) { animation-delay: 0.1s; }
.auth-card > *:nth-child(3) { animation-delay: 0.15s; }
.auth-card > *:nth-child(4) { animation-delay: 0.2s; }
.auth-card > *:nth-child(5) { animation-delay: 0.25s; }
.auth-card > *:nth-child(6) { animation-delay: 0.3s; }
.auth-card > *:nth-child(7) { animation-delay: 0.35s; }
.auth-card > *:nth-child(8) { animation-delay: 0.4s; }

.auth-title {
    margin: 14px 0 26px;
    font-size: 32px;
    font-weight: 660;
    letter-spacing: -0.036em;
    line-height: 1.1;
}

.auth-field {
    margin-bottom: 14px;
}

.auth-field label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
}

.auth-input {
    display: flex;
    align-items: center;
    gap: 9px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease,
        transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-input:hover {
    border-color: var(--line-2);
}

.auth-input:focus-within {
    border-color: var(--accent);
    background: var(--panel-2);
    box-shadow: 0 0 0 3px var(--accent-dim);
    transform: translateY(-1px);
}

.auth-input > svg {
    width: 15px;
    height: 15px;
    flex: none;
    stroke: var(--muted);
    stroke-width: 1.9;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.2s ease;
}

.auth-input:focus-within > svg {
    stroke: var(--accent);
}

.auth-input input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13.5px;
}

.auth-input input::placeholder {
    color: #565a66;
}

.pw-toggle {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.pw-toggle svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.9;
    fill: none;
}

.pw-toggle:hover {
    color: var(--text);
    background: var(--panel-3);
}

.auth-submit {
    position: relative;
    width: 100%;
    margin-top: 10px;
    padding: 11px 0;
    font-size: 13.5px;
    overflow: hidden;
}

.auth-submit::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.08), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.auth-submit:hover::after {
    transform: translateX(100%);
}

.auth-note {
    margin-top: 20px;
    text-align: center;
    font-size: 12.5px;
    color: var(--muted);
}

.auth-note a {
    color: var(--text);
    font-weight: 550;
    border-bottom: 1px solid var(--line-2);
    transition: border-color 0.16s ease;
}

.auth-note a:hover {
    border-color: var(--accent);
}

.auth-alert {
    display: none;
    margin: 0 0 12px;
    padding: 9px 11px;
    border-radius: 8px;
    font-size: 12px;
    border: 1px solid rgba(229, 100, 110, 0.3);
    background: rgba(229, 100, 110, 0.08);
    color: #f3b3b8;
}

.auth-alert.show {
    display: block;
    animation: shake 0.32s cubic-bezier(0.36, 0.07, 0.19, 0.97);
}

@keyframes shake {
    10%, 90% { transform: translateX(-1px); }
    20%, 80% { transform: translateX(2px); }
    30%, 50%, 70% { transform: translateX(-3px); }
    40%, 60% { transform: translateX(3px); }
}

/* --------------------------------------------------------------- download */

.dl-wrap {
    position: relative;
    max-width: 520px;
    margin: 0 auto;
    padding: 64px 24px 80px;
    z-index: 2;
}

.dl-card {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    animation: rise 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.dl-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--bg);
    margin: 18px 0;
}

.dl-meta b {
    font-size: 12.5px;
    font-weight: 600;
}

.dl-meta small {
    font-size: 11px;
    color: var(--muted);
}

.dl-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 16px 0 20px;
}

.dl-list li {
    position: relative;
    padding-left: 20px;
    font-size: 12.5px;
    color: var(--text-2);
}

.dl-list li::before {
    content: "";
    position: absolute;
    left: 3px;
    top: 6px;
    width: 9px;
    height: 5px;
    border-left: 1.6px solid var(--ok);
    border-bottom: 1.6px solid var(--ok);
    transform: rotate(-45deg);
}
