:root {
    --font-sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, monospace;
    --bg: #f3f5f8;
    --ink: #0c1222;
    --muted: #5d6b82;
    --line: rgba(12, 18, 34, 0.1);
    --card: #ffffff;
    --teal: #0f766e;
    --teal-hover: #115e59;
    --teal-soft: #f0fdfa;
    --navy: #0c1222;
    --danger: #b42318;
    --shadow: 0 24px 60px rgba(12, 18, 34, 0.08);
    --radius: 22px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
    font-family: var(--font-sans);
    background:
        radial-gradient(980px 420px at 8% -8%, rgba(15, 118, 110, 0.16), transparent 58%),
        radial-gradient(760px 380px at 100% 0%, rgba(12, 18, 34, 0.06), transparent 52%),
        var(--bg);
    color: var(--ink);
    min-height: 100vh;
}
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-hover); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0.85rem max(1.25rem, calc((100% - 1120px) / 2));
    background: rgba(243, 245, 248, 0.82);
    backdrop-filter: saturate(140%) blur(16px);
    border-bottom: 1px solid rgba(12, 18, 34, 0.06);
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    color: var(--ink);
    font-weight: 700;
    letter-spacing: -0.03em;
    font-size: 1.05rem;
}
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 0.6rem; align-items: center; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 12px;
    padding: 0.72rem 1.1rem;
    font: inherit;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22); }
.btn-primary:hover { background: var(--teal-hover); color: #fff; }
.btn-ghost {
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    border: 1px solid var(--line);
}
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-wide { width: 100%; margin-top: 0.2rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; box-shadow: none; }

.hero {
    max-width: 1120px;
    margin: 0 auto;
    padding: 4.2rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.2rem;
    align-items: center;
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    color: var(--teal);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: rgba(15, 118, 110, 0.08);
    border-radius: 999px;
    padding: 0.32rem 0.7rem;
    margin: 0 0 1rem;
}
h1 {
    font-size: clamp(2.35rem, 4.6vw, 3.65rem);
    letter-spacing: -0.045em;
    line-height: 1.04;
    margin: 0 0 1.1rem;
    font-weight: 700;
}
.lede { color: var(--muted); font-size: 1.12rem; line-height: 1.65; max-width: 36rem; margin: 0; }
.hero-actions { display: flex; gap: 0.75rem; margin-top: 1.7rem; flex-wrap: wrap; }
.hero-card {
    background:
        radial-gradient(420px 180px at 100% 0%, rgba(45, 212, 191, 0.28), transparent 62%),
        linear-gradient(165deg, #0c1222 0%, #134e4a 100%);
    color: #e2e8f0;
    border-radius: 28px;
    padding: 1.7rem 1.55rem;
    min-height: 280px;
    box-shadow: 0 30px 70px rgba(12, 18, 34, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.hero-card h2 { margin: 0 0 0.85rem; color: #fff; font-size: 1.05rem; letter-spacing: -0.02em; }
.hero-card ul { margin: 0; padding-left: 1.15rem; line-height: 1.75; color: #d5e2ea; }

.section { max-width: 1120px; margin: 0 auto; padding: 0.5rem 1.5rem 4rem; }
.section h2 { letter-spacing: -0.04em; margin: 0 0 1.25rem; font-size: 1.7rem; }
.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.feature {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(12, 18, 34, 0.06);
    border-radius: 18px;
    padding: 1.3rem 1.3rem 1.35rem;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.feature:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(12, 18, 34, 0.06);
}
.feature h3 { margin: 0 0 0.45rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.feature p { margin: 0; color: var(--muted); line-height: 1.55; font-size: 0.95rem; }

.auth-shell {
    min-height: calc(100vh - 76px);
    display: grid;
    place-items: center;
    padding: 2.2rem 1.25rem 3rem;
}
.auth-card {
    width: min(440px, 100%);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 28px;
    padding: 2rem 1.85rem 1.55rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.8);
}
.auth-card h1 { font-size: 1.85rem; margin: 0 0 0.45rem; }
.auth-card .auth-lede { color: var(--muted); margin: 0 0 1.25rem; line-height: 1.55; font-size: 0.98rem; }
label { display: block; font-size: 0.78rem; font-weight: 650; letter-spacing: 0.01em; margin: 0 0 0.35rem; color: #243044; }
input {
    width: 100%;
    padding: 0.78rem 0.85rem;
    border: 1px solid rgba(12, 18, 34, 0.12);
    border-radius: 12px;
    font: inherit;
    margin-bottom: 0.95rem;
    background: #fff;
    color: var(--ink);
}
input:focus {
    outline: 3px solid rgba(15, 118, 110, 0.18);
    border-color: var(--teal);
}
.msg { min-height: 1.2rem; font-size: 0.9rem; margin: 0 0 0.75rem; line-height: 1.45; }
.msg.error { color: var(--danger); }
.hidden { display: none !important; }
.trial-callout {
    background: var(--teal-soft);
    border: 1px solid rgba(15, 118, 110, 0.12);
    border-radius: 16px;
    padding: 0.95rem 1rem;
    line-height: 1.55;
    font-size: 0.94rem;
    color: #33556a;
    margin: 0 0 1.15rem;
}
.method-panel { margin-top: 0.15rem; }
.method-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.92rem;
}
.method-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    margin: 0 0 0.85rem;
}
.method-btn {
    border: 1px solid rgba(12, 18, 34, 0.12);
    background: #fff;
    color: var(--ink);
    border-radius: 12px;
    padding: 0.75rem 0.55rem;
    font: inherit;
    font-weight: 650;
    cursor: pointer;
}
.method-btn.is-selected {
    border-color: var(--teal);
    background: var(--teal-soft);
    color: var(--teal-hover);
}
.method-btn:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    background: #f8fafc;
}
.method-hint { margin: 0 0 0.85rem; color: var(--muted); font-size: 0.88rem; line-height: 1.45; }
.text-btn {
    border: 0;
    background: transparent;
    color: var(--teal);
    font: inherit;
    font-weight: 650;
    padding: 0;
    cursor: pointer;
}
.text-btn:hover { color: var(--teal-hover); }

/* ── Login page (body.page-auth) ───────────────────────── */
body.page-auth {
    background:
        radial-gradient(900px 420px at 0% -10%, rgba(15, 118, 110, 0.10), transparent 60%),
        radial-gradient(700px 380px at 100% 0%, rgba(59, 130, 246, 0.07), transparent 55%),
        #f6f8fb;
}
.page-auth .site-header {
    background: rgba(255, 255, 255, 0.85);
    border-bottom-color: var(--line);
}
.page-auth .nav-links { gap: 0.9rem; }
.page-auth .nav-prompt { font-size: 0.9rem; color: var(--muted); }
.page-auth .btn-sm { padding: 0.5rem 0.95rem; font-size: 0.9rem; border-radius: 10px; }

.page-auth .auth-layout {
    max-width: 1040px;
    margin: 0 auto;
    min-height: calc(100vh - 66px);
    padding: 3.5rem 1.5rem 4rem;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 4.5rem;
    align-items: center;
}
.page-auth .eyebrow { margin-bottom: 0.9rem; }
.page-auth .auth-aside h1 {
    font-size: clamp(2rem, 3.6vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -0.035em;
    margin: 0 0 1rem;
}
.page-auth .auth-lede {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0 0 1.75rem;
    max-width: 30rem;
}
.page-auth .auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.85rem;
}
.page-auth .auth-points li {
    position: relative;
    padding-left: 2rem;
    color: var(--ink-2, #334155);
    font-size: 0.97rem;
    line-height: 1.5;
}
.page-auth .auth-points li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230f766e' stroke-width='3.5'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.7rem no-repeat;
    box-shadow: inset 0 0 0 1px rgba(15, 118, 110, 0.2);
}

.page-auth .auth-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 2.25rem 2rem 1.75rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 56px rgba(15, 23, 42, 0.09);
}
.page-auth .auth-card__head { margin-bottom: 1.5rem; }
.page-auth .auth-card__head h2 {
    margin: 0 0 0.3rem;
    font-size: 1.45rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.page-auth .auth-card__head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.page-auth .auth-card label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2, #334155);
    margin-bottom: 0.4rem;
}
.page-auth .auth-card input {
    height: 48px;
    padding: 0 0.95rem;
    border-radius: 11px;
    border-color: #cfd8e3;
    margin-bottom: 1.1rem;
    font-size: 0.98rem;
}
.page-auth .auth-card input::placeholder { color: #94a3b8; }
.page-auth .auth-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-ring); outline: none; }
.page-auth .auth-card .btn-wide {
    height: 48px;
    margin-top: 0.1rem;
    font-size: 0.98rem;
    border-radius: 11px;
}
.page-auth .auth-card .msg { margin: 0 0 1rem; min-height: 0; }
.page-auth .auth-card .msg:empty { display: none; }
.page-auth .auth-card .msg.error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
}

.page-auth .method-email {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.6rem 0.85rem;
    margin: 0 0 1.25rem;
    background: #f1f5f9;
    border-radius: 11px;
}
.page-auth .method-email__address {
    font-weight: 600;
    font-size: 0.93rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.page-auth .method-label {
    margin: 0 0 0.6rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ink-2, #334155);
}
.page-auth .method-toggle { grid-template-columns: 1fr 1fr; gap: 0.7rem; margin: 0 0 1rem; }
.page-auth .method-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    text-align: left;
    padding: 0.9rem 0.95rem;
    border-radius: 12px;
    border: 1.5px solid #dbe3ec;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.page-auth .method-btn strong { font-size: 0.95rem; }
.page-auth .method-btn span { font-size: 0.82rem; color: var(--muted); line-height: 1.4; font-weight: 500; }
.page-auth .method-btn:hover:not(:disabled) { border-color: #9fb3c8; }
.page-auth .method-btn.is-selected {
    border-color: var(--teal);
    background: var(--teal-soft);
    box-shadow: 0 0 0 3px var(--teal-ring);
}
.page-auth .method-btn.is-selected span { color: var(--teal-hover); }
.page-auth .method-hint {
    margin: 0 0 1rem;
    padding: 0.7rem 0.85rem;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 0.85rem;
}
.page-auth .field-hint { margin: -0.6rem 0 1.1rem; font-size: 0.85rem; color: var(--muted); }
.page-auth .text-btn { font-size: 0.9rem; }
.page-auth .auth-card__foot {
    margin: 1.5rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid var(--line);
    text-align: center;
    font-size: 0.92rem;
    color: var(--muted);
}
.page-auth .auth-card__foot a { font-weight: 600; }

@media (max-width: 880px) {
    .page-auth .auth-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        min-height: 0;
        padding: 2.25rem 1.25rem 3rem;
    }
    .page-auth .auth-card { max-width: 460px; margin: 0 auto; }
    .page-auth .auth-aside { text-align: left; }
}
@media (max-width: 480px) {
    .page-auth .nav-prompt { display: none; }
    .page-auth .auth-card { padding: 1.75rem 1.25rem 1.4rem; border-radius: 16px; }
    .page-auth .method-toggle { grid-template-columns: 1fr; }
    .page-auth .auth-aside h1 { font-size: 1.9rem; }
}
.dash-sections { margin-top: 1.2rem; }
.dash-span-2 { grid-column: span 2; }
.dash-kv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.85rem 1.2rem;
    margin-top: 0.5rem;
}
.dash-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 0.15rem;
}
.dash-code { font-size: 0.8rem; word-break: break-all; }
.device-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.device-table th,
.device-table td {
    text-align: left;
    padding: 0.5rem 0.35rem;
    border-bottom: 1px solid var(--line);
}

.dash {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}
.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.2rem;
}
.card h2 { margin: 0 0 0.65rem; font-size: 1.05rem; }
.muted { color: var(--muted); font-size: 0.92rem; }
.dl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
}
.dl-row:last-child { border-bottom: 0; }
.badge {
    display: inline-block;
    background: var(--teal-soft);
    color: var(--teal-hover);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    font-size: 0.75rem;
    font-weight: 700;
}
a.btn.is-disabled,
a.btn[aria-disabled="true"] {
    pointer-events: none;
    opacity: 0.45;
}
.support-form label { display: block; margin: 0.75rem 0; font-size: 0.9rem; }
.support-form input, .support-form select, .support-form textarea {
  display: block; width: 100%; margin-top: 0.35rem; padding: 0.5rem 0.65rem;
  border: 1px solid #cbd5e1; border-radius: 8px; font: inherit;
}
.support-form textarea { min-height: 6rem; resize: vertical; }
.support-form button { margin-top: 0.75rem; }
.dash-subhead { margin: 1rem 0 0.5rem; font-size: 1rem; }

.site-footer {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem 2.6rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.video-showcase {
    padding-top: 0;
    padding-bottom: 3.5rem;
}
.video-showcase-head {
    margin-bottom: 1.35rem;
}
.video-showcase-lede {
    margin: 0.35rem 0 0;
    color: var(--muted);
    line-height: 1.6;
    max-width: 40rem;
    font-size: 1.02rem;
}

.video-carousel {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 0.65rem;
    align-items: center;
}
.carousel-viewport {
    min-width: 0;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(12, 18, 34, 0.08);
    box-shadow: var(--shadow);
    overflow: hidden;
}
.carousel-track {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 1rem 1rem 1.1rem;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    opacity: 0.55;
    transform: scale(0.985);
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.carousel-slide.is-active {
    opacity: 1;
    transform: scale(1);
}
.carousel-media {
    border-radius: 16px;
    overflow: hidden;
    background: #0c1222;
    aspect-ratio: 16 / 9;
    line-height: 0;
}
.carousel-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #0c1222;
}
.carousel-caption h3 {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
.carousel-caption p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.95rem;
}
.carousel-btn {
    flex-shrink: 0;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.92);
    color: var(--ink);
    font-size: 1.65rem;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(12, 18, 34, 0.08);
    transition: background 0.15s ease, transform 0.15s ease;
}
.carousel-btn:hover {
    background: #fff;
    transform: translateY(-1px);
}
.carousel-btn:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.25);
    outline-offset: 2px;
}
.carousel-footer {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.35rem;
}
.carousel-dots {
    display: flex;
    gap: 0.45rem;
    flex-wrap: wrap;
    justify-content: center;
}
.carousel-dot {
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(12, 18, 34, 0.18);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}
.carousel-dot.is-active {
    width: 1.35rem;
    background: var(--teal);
}
.carousel-dot:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}
.carousel-hint {
    margin: 0;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
}

@media (min-width: 900px) {
    .carousel-slide {
        flex-basis: calc(100% - 0.5rem);
    }
}

@media (max-width: 720px) {
    .video-carousel {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .carousel-btn {
        display: none;
    }
    .carousel-viewport {
        border-radius: 18px;
    }
    .carousel-track {
        padding: 0.65rem;
        gap: 0.65rem;
    }
    .carousel-slide {
        flex-basis: 92%;
    }
}

@media (max-width: 860px) {
    .hero, .grid, .dash-grid { grid-template-columns: 1fr; }
    .hero { padding-top: 2.4rem; }
    .dash-span-2 { grid-column: span 1; }
    .method-toggle { grid-template-columns: 1fr; }
}
