/* ==========================================================================
   TrenLab · Design System
   - Dark theme (default) on :root
   - Light theme overrides on :root[data-theme="light"]
   - Theme switch via <html data-theme="dark|light">
   ========================================================================== */

:root {
    color-scheme: dark;
    --bg: #050507;
    --bg-2: #0a0a10;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.06);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.14);
    --ink: #f5f5f7;
    --ink-2: rgba(245, 245, 247, 0.72);
    --ink-3: rgba(245, 245, 247, 0.48);
    --accent: #d8ff3a;
    --accent-2: #a3ffcb;
    --accent-strong: #c5f02a;
    --blue: #3b82f6;
    --cyan: #00d4ff;
    --violet: #a855f7;
    --grad-accent: linear-gradient(135deg, #d8ff3a 0%, #6ee7b7 100%);
    --grad-cool: linear-gradient(135deg, #3b82f6 0%, #00d4ff 100%);
    --grad-warm: linear-gradient(135deg, #d8ff3a 0%, #00d4ff 100%);
    --shadow-card: 0 18px 55px rgba(15, 23, 42, 0.07);
    --shadow-floating: 0 18px 50px rgba(0, 0, 0, 0.4);
    --grid-color: rgba(255, 255, 255, 0.03);
    --grid-mask: radial-gradient(ellipse 90% 60% at 50% 0%, #000 30%, transparent 80%);
    --header-bg: rgba(5, 5, 7, 0.7);
    --dropdown-bg: rgba(15, 15, 20, 0.92);
    --mobile-panel-bg: rgba(7, 13, 27, 0.985);
    --footer-divider: var(--line);
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-2xl: 40px;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f7f5ee;
    --bg-2: #eeece4;
    --surface: rgba(10, 10, 16, 0.025);
    --surface-2: rgba(10, 10, 16, 0.05);
    --line: rgba(10, 10, 16, 0.08);
    --line-strong: rgba(10, 10, 16, 0.14);
    --ink: #0a0a10;
    --ink-2: rgba(10, 10, 16, 0.72);
    --ink-3: rgba(10, 10, 16, 0.48);
    --accent: #4d7c0f;
    --accent-2: #15803d;
    --accent-strong: #3f6212;
    --grad-accent: linear-gradient(135deg, #65a30d 0%, #16a34a 100%);
    --grad-cool: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --shadow-card: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(15, 23, 42, 0.06);
    --shadow-floating: 0 12px 30px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.06);
    --grid-color: rgba(10, 10, 16, 0.05);
    --header-bg: rgba(247, 245, 238, 0.78);
    --dropdown-bg: rgba(255, 255, 255, 0.96);
    --mobile-panel-bg: rgba(247, 245, 238, 0.985);
}

/* Global transition for theme switch (skipped when user prefers reduced motion) */
@media (prefers-reduced-motion: no-preference) {

    html,
    body,
    .landing-shell,
    .landing-shell::before,
    .landing-shell::after,
    .landing-header,
    .nav-links a,
    .nav-links button,
    .dropdown-menu,
    .dropdown-menu a,
    .mobile-panel,
    .mobile-panel a,
    .button,
    .card,
    .price-card,
    .step,
    .how-step,
    .quote,
    .stats,
    .ba-card,
    .feature-shot,
    .product-mock,
    .floating-stat,
    .auth-side,
    .auth-side::before,
    .auth-main,
    .field input,
    .field select,
    .field textarea,
    .auth-result,
    .footer-row,
    .landing-footer {
        transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
    }
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body[data-landing-page] {
    background:
        radial-gradient(1200px 800px at 12% -10%, rgba(59, 130, 246, 0.18), transparent 60%),
        radial-gradient(1000px 700px at 92% 8%, rgba(216, 255, 58, 0.12), transparent 60%),
        radial-gradient(900px 600px at 50% 110%, rgba(168, 85, 247, 0.10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

:root[data-theme="light"] body[data-landing-page] {
    background:
        radial-gradient(1200px 800px at 12% -10%, rgba(59, 130, 246, 0.10), transparent 60%),
        radial-gradient(1000px 700px at 92% 8%, rgba(197, 240, 42, 0.18), transparent 60%),
        radial-gradient(900px 600px at 50% 110%, rgba(168, 85, 247, 0.06), transparent 60%),
        var(--bg);
}

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

img {
    max-width: 100%;
    display: block;
}

button {
    font: inherit;
}

/* ==========================================================================
   Shell
   ========================================================================== */

.landing-shell {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    isolation: isolate;
}

.landing-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: var(--grid-mask);
    mask-image: var(--grid-mask);
}

.landing-shell::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(216, 255, 58, 0.06), transparent 60%);
}

:root[data-theme="light"] .landing-shell::after {
    background:
        radial-gradient(ellipse 80% 40% at 50% 100%, rgba(197, 240, 42, 0.10), transparent 60%);
}

.landing-container {
    width: min(1200px, calc(100% - 32px));
    margin: 0 auto;
}

/* ==========================================================================
   Header & nav
   ========================================================================== */

.landing-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: var(--header-bg);
    backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.02em;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: #050507;
    background: var(--grad-accent);
    font-weight: 900;
    font-size: 16px;
    box-shadow: 0 0 24px rgba(216, 255, 58, 0.35);
}

:root[data-theme="light"] .brand-mark {
    box-shadow: 0 4px 14px rgba(168, 217, 32, 0.32);
}

.brand small {
    color: var(--ink-3);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-left: 4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
}

.nav-links a,
.nav-links button {
    color: var(--ink-2);
    font-size: 14px;
    font-weight: 500;
    background: transparent;
    border: 0;
    padding: 8px 0;
    cursor: pointer;
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links button:hover {
    color: var(--ink);
}

.dropdown {
    position: relative;
}

.dropdown::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 100%;
    z-index: 19;
    width: 300px;
    height: 18px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.001);
}

.dropdown-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.dropdown-button::after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-button::after,
.dropdown:focus-within .dropdown-button::after {
    transform: translateY(1px) rotate(225deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    z-index: 20;
    transform: translateX(-50%);
    min-width: 260px;
    padding: 8px;
    display: none;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--dropdown-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

:root[data-theme="light"] .dropdown-menu {
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    display: grid;
    gap: 2px;
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    color: var(--ink-2);
    transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-menu a:hover {
    color: var(--ink);
    background: var(--surface);
}

.dropdown-menu a strong {
    display: block;
    color: var(--ink);
    font-weight: 600;
}

.dropdown-menu a span {
    display: block;
    margin-top: 2px;
    color: var(--ink-3);
    font-size: 12px;
    font-weight: 400;
}

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

.mobile-menu-button {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

.mobile-menu-button:hover {
    background: var(--surface-2);
}

/* ==========================================================================
   Theme toggle (sun / moon)
   ========================================================================== */

.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
    overflow: hidden;
    flex-shrink: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.theme-toggle::before {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, var(--accent) 60deg, transparent 120deg);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
    animation: theme-orbit 6s linear infinite;
    animation-play-state: paused;
}

.theme-toggle:hover {
    background: var(--surface-2);
    transform: scale(1.05);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(216, 255, 58, 0.10);
}

.theme-toggle:hover::before {
    opacity: 0.6;
    animation-play-state: running;
}

.theme-toggle:active {
    transform: scale(0.94);
}

.theme-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@keyframes theme-orbit {
    to {
        transform: rotate(360deg);
    }
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    transition: opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), fill 0.3s ease;
}

.theme-toggle .icon-sun {
    color: var(--accent);
}

.theme-toggle .icon-moon {
    color: var(--ink);
}

.theme-toggle .icon-sun .ray {
    transform-origin: 12px 12px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

:root:not([data-theme="light"]) .theme-toggle .icon-sun {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

:root:not([data-theme="light"]) .theme-toggle .icon-moon {
    opacity: 0;
    transform: rotate(90deg) scale(0.3);
}

:root[data-theme="light"] .theme-toggle .icon-sun {
    opacity: 0;
    transform: rotate(-90deg) scale(0.3);
}

:root[data-theme="light"] .theme-toggle .icon-moon {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.theme-toggle:hover:not([aria-pressed="true"]) .icon-sun {
    transform: rotate(45deg) scale(1.08);
}

.theme-toggle:hover:not([aria-pressed="true"]) .icon-sun .ray {
    transform: scale(1.15);
}

.theme-toggle:hover[aria-pressed="true"] .icon-moon {
    transform: rotate(-12deg) scale(1.08);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.005em;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.button:hover {
    transform: translateY(-1px);
}

.button-primary {
    color: #050507;
    background: var(--grad-accent);
    box-shadow: 0 10px 30px rgba(216, 255, 58, 0.22);
}

:root[data-theme="light"] .button-primary {
    box-shadow: 0 6px 18px rgba(168, 217, 32, 0.28);
}

.button-primary:hover {
    box-shadow: 0 14px 40px rgba(216, 255, 58, 0.34);
}

.button-secondary {
    color: var(--ink);
    background: var(--surface);
    border-color: var(--line-strong);
}

.cta .button-secondary {
    color: #f5f5f7;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(245, 245, 247, 0.22);
}

.button-secondary:hover {
    background: var(--surface-2);
    border-color: rgba(255, 255, 255, 0.22);
}

.cta .button-secondary:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(245, 245, 247, 0.36);
}

:root[data-theme="light"] .button-secondary:hover {
    border-color: rgba(10, 10, 16, 0.22);
}

.button-ghost {
    color: var(--ink-2);
    background: transparent;
}

.button-ghost:hover {
    color: var(--ink);
}

.button-lg {
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
}

.button-sm {
    height: 36px;
    padding: 0 14px;
    font-size: 13px;
}

.button-arrow::after {
    content: "→";
    transition: transform 0.2s ease;
}

.button-arrow:hover::after {
    transform: translateX(3px);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    padding: 96px 0 80px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-2);
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hero-eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent);
}

:root[data-theme="light"] .hero-eyebrow .dot {
    box-shadow: 0 0 0 3px rgba(197, 240, 42, 0.25);
}

.hero h1 {
    margin: 24px 0 0;
    max-width: 1000px;
    font-size: clamp(44px, 7vw, 48px);
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 800;
    color: var(--ink);
}

.hero h1 .accent {
    background: linear-gradient(135deg, #d8ff3a 0%, #6ee7b7 50%, #00d4ff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

:root[data-theme="light"] .hero h1 .accent {
    background: linear-gradient(135deg, #4d7c0f 0%, #15803d 55%, #0e7490 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero h1 .underline {
    position: relative;
    display: inline-block;
}

.hero h1 .underline::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.08em;
    height: 0.16em;
    background: var(--grad-accent);
    border-radius: 999px;
    opacity: 0.7;
    z-index: -1;
}

.hero-sub {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--ink-2);
    font-size: 19px;
    line-height: 1.55;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    margin-top: 32px;
    color: var(--ink-3);
    font-size: 13px;
}

.hero-trust>div {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hero-trust svg {
    width: 16px;
    height: 16px;
    color: var(--accent);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 56px;
    align-items: center;
}

.hero-visual {
    position: relative;
    min-height: 540px;
}

.hero-orbit {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.hero-orbit::before,
.hero-orbit::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-orbit::before {
    width: 360px;
    height: 360px;
    background: var(--accent);
    top: 10%;
    left: 5%;
}

.hero-orbit::after {
    width: 320px;
    height: 320px;
    background: var(--cyan);
    bottom: 0;
    right: 0;
}

:root[data-theme="light"] .hero-orbit::before,
:root[data-theme="light"] .hero-orbit::after {
    opacity: 0.35;
}

:root[data-theme="light"] .hero-orbit::before {
    background: #d9f99d;
}

:root[data-theme="light"] .hero-orbit::after {
    background: #bae6fd;
}

/* ==========================================================================
   Product mock (kept dark for realism in both themes)
   ========================================================================== */

.product-mock {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    max-width: 520px;
    margin: 0 auto;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-2xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%),
        #0a0a10;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 40px 100px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(216, 255, 58, 0.08);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-6deg) rotateX(4deg);
    transition: transform 0.6s ease, box-shadow 0.6s ease;
}

:root[data-theme="light"] .product-mock {
    box-shadow:
        0 0 0 1px rgba(10, 10, 16, 0.08),
        0 40px 80px rgba(15, 23, 42, 0.18),
        0 12px 24px rgba(15, 23, 42, 0.08);
}

.product-mock:hover {
    transform: perspective(1200px) rotateY(-3deg) rotateX(2deg);
}

.mock-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mock-bar .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
}

.mock-bar .dot:first-child {
    background: #ff5f57;
}

.mock-bar .dot:nth-child(2) {
    background: #febc2e;
}

.mock-bar .dot:nth-child(3) {
    background: #28c840;
}

.mock-bar-title {
    margin-left: 8px;
    color: rgba(245, 245, 247, 0.6);
    font-size: 12px;
    font-weight: 500;
}

.mock-body {
    padding: 40px 20px 10px;
    display: grid;
    gap: 8px;
}

.mock-row {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.mock-row strong {
    display: block;
    color: #f5f5f7;
    font-size: 14px;
    font-weight: 600;
}

.mock-row .muted {
    color: rgba(245, 245, 247, 0.6);
    font-size: 12px;
    margin-top: 2px;
}

.mock-row .pill {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    background: rgba(216, 255, 58, 0.16);
    color: #d8ff3a;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.mock-row .pill.alt {
    background: rgba(0, 212, 255, 0.16);
    color: #00d4ff;
}

.mock-timer {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 16px;
    align-items: center;
    padding: 16px;
    border-radius: var(--radius);
    background:
        radial-gradient(circle at 0% 0%, rgba(216, 255, 58, 0.20), transparent 60%),
        linear-gradient(135deg, #0a0a14, #161628);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

.mock-timer .ring {
    position: relative;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background:
        conic-gradient(from -90deg, #d8ff3a 0deg, #d8ff3a 270deg, rgba(255, 255, 255, 0.1) 270deg);
    display: grid;
    place-items: center;
    font-size: 16px;
    font-weight: 800;
    color: #f5f5f7;
}

.mock-timer .ring::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: #0a0a14;
}

.mock-timer .ring span {
    position: relative;
    z-index: 1;
}

.mock-timer strong {
    display: block;
    color: #f5f5f7;
    font-size: 15px;
    font-weight: 700;
}

.mock-timer .muted {
    color: rgba(245, 245, 247, 0.6);
    font-size: 13px;
    margin-top: 4px;
}

/* ==========================================================================
   Floating stats
   ========================================================================== */

.floating-stat {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: rgba(15, 15, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-floating);
    font-size: 13px;
    color: var(--ink);
    animation: floaty 6s ease-in-out infinite;
}

:root[data-theme="light"] .floating-stat {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(10, 10, 16, 0.10);
}

.floating-stat .ico {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--grad-accent);
    color: #050507;
    font-weight: 900;
}

.floating-stat strong {
    display: block;
    font-weight: 700;
    color: var(--ink);
}

.floating-stat span {
    color: var(--ink-3);
    font-size: 11px;
}

.floating-stat.stat-1 {
    top: 2%;
    left: -36px;
    animation-delay: 0s;
}

.floating-stat.stat-2 {
    bottom: 7%;
    right: -42px;
    animation-delay: 1.5s;
}

@keyframes floaty {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

/* ==========================================================================
   Logo strip
   ========================================================================== */

.logos {
    padding: 32px 0 8px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    margin-top: 24px;
}

.logos-label {
    text-align: center;
    color: var(--ink-3);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 18px;
}

.logos-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 18px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--ink-2);
    font-size: 14.5px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.logos-row li {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.logos-row li:hover {
    opacity: 1;
}

.logos-row li .check {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 5px;
    background: var(--grad-accent);
    color: #050507;
    font-size: 10px;
    font-weight: 900;
    flex-shrink: 0;
}

/* ==========================================================================
   Section base
   ========================================================================== */

.section {
    padding: 72px 0;
    position: relative;
}

.section-eyebrow {
    display: inline-block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

:root[data-theme="light"] .section-eyebrow {
    color: #65a30d;
}

.section-title {
    margin: 0;
    max-width: 800px;
    font-size: clamp(32px, 4.6vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--ink);
}

.section-title .accent {
    background: linear-gradient(135deg, #d8ff3a 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

:root[data-theme="light"] .section-title .accent {
    background: linear-gradient(135deg, #4d7c0f 0%, #15803d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.section-lead {
    max-width: 640px;
    margin: 18px 0 0;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.6;
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 48px;
    align-items: end;
    margin-bottom: 32px;
}

.section-head .section-lead {
    margin: 0;
    justify-self: end;
    text-align: right;
}

@media (max-width: 720px) {
    .section {
        padding: 36px 0;
    }

    .section-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 20px;
        margin-bottom: 24px;
    }

    .section-head .section-lead {
        justify-self: start;
        text-align: left;
    }
}

/* ==========================================================================
   Grids & cards
   ========================================================================== */

.grid {
    display: grid;
    gap: 20px;
}

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

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

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

@media (max-width: 980px) {

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

@media (max-width: 620px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.card {
    position: relative;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 14px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

:root[data-theme="light"] .card {
    box-shadow: var(--shadow-card);
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.card .icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--accent);
    margin-bottom: 0;
    font-size: 20px;
    font-weight: 900;
}

:root[data-theme="light"] .card .icon {
    background: rgba(10, 10, 16, 0.04);
}

.card .icon svg {
    width: 22px;
    height: 22px;
}

.card.pain-card {
    grid-template-columns: 96px minmax(0, 1fr);
    column-gap: 16px;
    align-items: center;
}

.card .icon.icon-image {
    width: 96px;
    height: 96px;
    border: 0;
    border-radius: 0;
    background: transparent;
}

:root[data-theme="light"] .card .icon.icon-image {
    background: transparent;
}

.card .icon.icon-image img {
    display: block;
    width: 96px;
    height: 96px;
    object-fit: contain;
}

@media (max-width: 620px) {
    .card.pain-card {
        grid-template-columns: 82px minmax(0, 1fr);
        column-gap: 14px;
    }

    .card .icon.icon-image {
        width: 82px;
        height: 82px;
    }

    .card .icon.icon-image img {
        width: 82px;
        height: 82px;
    }
}

.card h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -0.015em;
    color: var(--ink);
}

.card p {
    grid-column: 1 / -1;
    margin: 16px 0 0;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.6;
}

.card .number {
    position: absolute;
    top: 24px;
    right: 28px;
    color: var(--ink-3);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
    font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

/* ==========================================================================
   Before / After
   ========================================================================== */

.ba {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 880px) {
    .ba {
        grid-template-columns: 1fr;
    }
}

.ba-card {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: relative;
    overflow: hidden;
}

:root[data-theme="light"] .ba-card {
    box-shadow: var(--shadow-card);
}

.ba-card.before {
    background:
        linear-gradient(180deg, rgba(255, 90, 95, 0.06), rgba(255, 90, 95, 0)),
        var(--surface);
}

:root[data-theme="light"] .ba-card.before {
    background:
        linear-gradient(180deg, rgba(255, 90, 95, 0.05), rgba(255, 90, 95, 0)),
        var(--surface);
}

.ba-card.after {
    background:
        linear-gradient(180deg, rgba(216, 255, 58, 0.07), rgba(216, 255, 58, 0)),
        var(--surface);
    border-color: rgba(216, 255, 58, 0.18);
}

:root[data-theme="light"] .ba-card.after {
    background:
        linear-gradient(180deg, rgba(197, 240, 42, 0.10), rgba(197, 240, 42, 0)),
        var(--surface);
    border-color: rgba(168, 217, 32, 0.32);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 40px rgba(168, 217, 32, 0.10);
}

.ba-card .tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 18px;
}

.ba-card.before .tag {
    color: #ff8b8e;
    background: rgba(255, 90, 95, 0.10);
}

.ba-card.after .tag {
    color: var(--accent);
    background: rgba(216, 255, 58, 0.12);
}

:root[data-theme="light"] .ba-card.after .tag {
    color: #4d7c0f;
    background: rgba(168, 217, 32, 0.18);
}

.ba-card h3 {
    margin: 0 0 12px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ink);
}

.ba-card p {
    color: var(--ink-2);
}

.ba-card ul {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ba-card li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.5;
}

.ba-card li svg {
    margin-top: 4px;
    width: 14px;
    height: 14px;
    color: var(--ink-3);
}

.ba-card.after li svg {
    color: var(--accent);
}

:root[data-theme="light"] .ba-card.after li svg {
    color: #4d7c0f;
}

/* ==========================================================================
   Big feature blocks
   ========================================================================== */

.feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}

@media (max-width: 880px) {
    .feature {
        grid-template-columns: 1fr;
    }
}

.feature-shot {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    min-height: 360px;
    display: grid;
    place-items: center;
}

:root[data-theme="light"] .feature-shot {
    box-shadow: var(--shadow-card);
}

.feature-shot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-shot .glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(216, 255, 58, 0.18), transparent 50%);
    pointer-events: none;
}

.feature-info {
    padding: 8px 8px 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-info .pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    align-self: flex-start;
    margin-bottom: 18px;
}

.feature-info h3 {
    margin: 0 0 14px;
    font-size: clamp(28px, 3.5vw, 40px);
    line-height: 1.1;
    letter-spacing: -0.025em;
    font-weight: 800;
    color: var(--ink);
}

.feature-info p {
    margin: 0 0 20px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.6;
}

.feature-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
}

.feature-list li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    color: var(--ink);
    font-size: 15px;
    line-height: 1.5;
}

.feature-list .check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--grad-accent);
    color: #050507;
    font-size: 11px;
    font-weight: 900;
    margin-top: 1px;
}

/* ==========================================================================
   Product walkthrough
   ========================================================================== */

.product-walkthrough {
    overflow: hidden;
}

.product-tour {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)),
        var(--surface);
    overflow: hidden;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.product-tour::before {
    content: "";
    position: absolute;
    inset: -24px;
    border-radius: calc(var(--radius-2xl) + 24px);
    background:
        radial-gradient(circle at 50% 0%, rgba(216, 255, 58, 0.13), transparent 42%),
        radial-gradient(circle at 90% 70%, rgba(0, 212, 255, 0.10), transparent 34%);
    pointer-events: none;
    z-index: -1;
}

:root[data-theme="light"] .product-tour {
    box-shadow: var(--shadow-card);
}

:root[data-theme="light"] .product-tour::before {
    background:
        radial-gradient(circle at 50% 0%, rgba(197, 240, 42, 0.20), transparent 42%),
        radial-gradient(circle at 90% 70%, rgba(56, 189, 248, 0.14), transparent 34%);
}

.product-carousel-track {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.product-carousel-track::-webkit-scrollbar {
    display: none;
}

.product-steps {
    gap: 16px;
}

.product-steps .product-carousel-slide {
    flex: initial;
    scroll-snap-align: none;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
}

.product-steps .product-step-card:nth-child(even) .screen-frame {
    order: 2;
}

.product-steps .telegram-step-card:nth-child(even) .telegram-phone {
    order: 2;
}

.product-step-kicker {
    align-self: flex-start;
    margin-bottom: 14px;
    padding: 7px 10px;
    border: 1px solid rgba(216, 255, 58, 0.26);
    border-radius: 999px;
    color: var(--accent);
    background: rgba(216, 255, 58, 0.08);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

:root[data-theme="light"] .product-step-kicker {
    border-color: rgba(105, 153, 24, 0.22);
    color: #47721e;
    background: rgba(197, 240, 42, 0.18);
}

.product-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-margin-top: 120px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
    gap: 16px;
    align-items: stretch;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(circle at 10% 0%, rgba(216, 255, 58, 0.08), transparent 34%),
        var(--surface-2);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.04),
        0 28px 80px rgba(0, 0, 0, 0.22);
}

:root[data-theme="light"] .product-carousel-slide {
    background:
        radial-gradient(circle at 10% 0%, rgba(197, 240, 42, 0.14), transparent 34%),
        rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.12);
}

.screen-frame {
    display: grid;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 20px;
    background:
        linear-gradient(135deg, rgba(248, 250, 252, 0.98), rgba(226, 232, 240, 0.92));
    overflow: hidden;
}

.screen-frame img {
    display: block;
    width: 90%;
    height: auto;
    object-fit: contain;
    object-position: top center;
    border-radius: 0;
    box-shadow: none;
    background: #f8fafc;
    cursor: zoom-in;
}

.product-carousel-slide figcaption {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-self: stretch;
    min-width: 0;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(216, 255, 58, 0.07), rgba(216, 255, 58, 0)),
        var(--surface);
}

:root[data-theme="light"] .product-carousel-slide figcaption {
    background:
        linear-gradient(180deg, rgba(197, 240, 42, 0.11), rgba(197, 240, 42, 0)),
        rgba(255, 255, 255, 0.76);
}

.product-carousel-slide strong {
    color: var(--ink);
    min-width: 0;
    font-size: clamp(24px, 2.6vw, 34px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.product-carousel-slide figcaption span:last-child {
    margin-top: 18px;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.6;
}

.product-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.product-carousel-dot {
    position: relative;
    width: 12px;
    height: 12px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ink-3);
    cursor: pointer;
    opacity: 0.55;
    transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-carousel-dot:hover {
    transform: scale(1.14);
    opacity: 0.85;
}

.product-carousel-dot:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

.product-carousel-dot.is-active {
    width: 34px;
    border-radius: 999px;
    border-color: rgba(216, 255, 58, 0.55);
    background: var(--grad-accent);
    box-shadow: 0 0 22px rgba(216, 255, 58, 0.28);
    opacity: 1;
}

:root[data-theme="light"] .product-carousel-dot.is-active {
    border-color: rgba(168, 217, 32, 0.58);
    box-shadow: 0 8px 22px rgba(168, 217, 32, 0.20);
}

.telegram-demo {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.65fr);
    gap: 18px;
    align-items: center;
    margin-top: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(circle at 85% 15%, rgba(0, 212, 255, 0.13), transparent 34%),
        radial-gradient(circle at 8% 80%, rgba(216, 255, 58, 0.08), transparent 32%),
        var(--surface);
}

:root[data-theme="light"] .telegram-demo {
    background:
        radial-gradient(circle at 85% 15%, rgba(56, 189, 248, 0.16), transparent 34%),
        radial-gradient(circle at 8% 80%, rgba(197, 240, 42, 0.14), transparent 32%),
        rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-card);
}

.telegram-demo-copy h3 {
    margin: 12px 0 0;
    color: var(--ink);
    font-size: clamp(26px, 3vw, 42px);
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.telegram-demo-copy p {
    max-width: 620px;
    margin: 18px 0 0;
    color: var(--ink-2);
    font-size: 17px;
    line-height: 1.65;
}

.telegram-phone {
    width: min(100%, 390px);
    justify-self: end;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.94), rgba(2, 6, 23, 0.96)),
        #0f172a;
    box-shadow:
        0 0 0 8px rgba(255, 255, 255, 0.03),
        0 30px 90px rgba(0, 0, 0, 0.34);
}

.telegram-step-card .telegram-phone {
    width: min(100%, 420px);
    justify-self: center;
    align-self: center;
}

.telegram-step-card .telegram-chat {
    min-height: 360px;
}

:root[data-theme="light"] .telegram-phone {
    border-color: rgba(15, 23, 42, 0.12);
    background:
        linear-gradient(180deg, #f8fafc, #e0f2fe),
        #f8fafc;
    box-shadow:
        0 0 0 8px rgba(15, 23, 42, 0.03),
        0 26px 70px rgba(15, 23, 42, 0.16);
}

.telegram-topbar {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
    align-items: center;
    padding: 18px 18px 14px;
    color: #f8fafc;
    background: rgba(2, 6, 23, 0.48);
}

:root[data-theme="light"] .telegram-topbar {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.62);
}

.telegram-avatar {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #020617;
    font-weight: 900;
    background: var(--grad-accent);
}

.telegram-topbar strong {
    display: block;
    font-size: 15px;
    line-height: 1.15;
}

.telegram-topbar span {
    display: block;
    margin-top: 3px;
    color: rgba(226, 232, 240, 0.72);
    font-size: 12px;
}

:root[data-theme="light"] .telegram-topbar span {
    color: rgba(15, 23, 42, 0.56);
}

.telegram-chat {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 420px;
    padding: 18px;
    background:
        radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.12), transparent 30%),
        radial-gradient(circle at 90% 70%, rgba(216, 255, 58, 0.09), transparent 28%);
}

.telegram-bubble {
    max-width: 82%;
    padding: 11px 13px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.42;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.telegram-bubble.bot {
    align-self: flex-start;
    border-bottom-left-radius: 6px;
    color: #e5e7eb;
    background: rgba(30, 41, 59, 0.92);
}

.telegram-bubble.user {
    align-self: flex-end;
    border-bottom-right-radius: 6px;
    color: #082f49;
    background: linear-gradient(135deg, #d9ff3a, #62e58d);
}

:root[data-theme="light"] .telegram-bubble.bot {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.94);
}

:root[data-theme="light"] .telegram-bubble.user {
    color: #052e16;
}

@media (max-width: 900px) {
    .product-carousel-slide {
        grid-template-columns: 1fr;
    }

    .product-steps .product-carousel-slide {
        grid-template-columns: 1fr;
    }

    .product-steps .product-step-card:nth-child(even) .screen-frame {
        order: initial;
    }

    .product-steps .telegram-step-card:nth-child(even) .telegram-phone {
        order: initial;
    }

    .telegram-demo {
        grid-template-columns: 1fr;
    }

    .telegram-phone {
        justify-self: center;
    }

    .product-carousel-slide figcaption {
        padding: 22px;
    }
}

@media (max-width: 680px) {
    .product-tour {
        padding: 12px;
        border-radius: var(--radius-xl);
    }

    .product-carousel-slide {
        padding: 8px;
        border-radius: var(--radius-lg);
    }

    .screen-frame {
        border-radius: 16px;
    }

    .screen-frame img {
        height: auto;
    }

    .product-carousel-slide figcaption span:last-child {
        font-size: 15px;
    }

    .telegram-demo {
        padding: 16px;
    }

    .telegram-chat {
        min-height: 360px;
    }
}

.landing-lightbox {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(5, 5, 7, 0.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

body.is-lightbox-open {
    overflow: hidden;
}

.landing-lightbox.is-open {
    display: flex;
}

.landing-lightbox img {
    display: block;
    max-width: min(96vw, 1440px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    box-shadow: 0 32px 120px rgba(0, 0, 0, 0.5);
    cursor: zoom-out;
}

.landing-lightbox-close {
    position: absolute;
    top: 18px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.landing-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* ==========================================================================
   How it works
   ========================================================================== */

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

@media (max-width: 980px) {
    .how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .how-grid {
        grid-template-columns: 1fr;
    }
}

.how-step {
    position: relative;
    padding: 28px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .how-step {
    box-shadow: var(--shadow-card);
}

.how-step .num {
    display: inline-block;
    font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

:root[data-theme="light"] .how-step .num {
    color: #65a30d;
}

.how-step h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.015em;
}

.how-step p {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.55;
}

.how-step::after {
    content: "";
    position: absolute;
    top: 38px;
    right: -10px;
    width: 20px;
    height: 1px;
    background: linear-gradient(90deg, var(--line-strong), transparent);
}

.how-step:last-child::after {
    display: none;
}

@media (max-width: 980px) {
    .how-step::after {
        display: none;
    }
}

/* ==========================================================================
   Pricing
   ========================================================================== */

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

@media (max-width: 980px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}

.price-card {
    position: relative;
    padding: 32px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

:root[data-theme="light"] .price-card {
    box-shadow: var(--shadow-card);
}

.price-card:hover {
    transform: translateY(-3px);
    border-color: var(--line-strong);
}

.price-card.featured {
    border-color: rgba(216, 255, 58, 0.32);
    background:
        linear-gradient(180deg, rgba(216, 255, 58, 0.06), rgba(216, 255, 58, 0)),
        var(--surface);
    box-shadow: 0 0 60px rgba(216, 255, 58, 0.08);
}

:root[data-theme="light"] .price-card.featured {
    border-color: rgba(168, 217, 32, 0.42);
    background:
        linear-gradient(180deg, rgba(197, 240, 42, 0.08), rgba(197, 240, 42, 0)),
        var(--surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 16px 50px rgba(168, 217, 32, 0.18);
}

.price-card .badge {
    position: absolute;
    top: -12px;
    left: 28px;
    height: 24px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--grad-accent);
    color: #050507;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
}

.price-card h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.price-card .price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin: 0;
}

.price-card .price b {
    font-size: 44px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ink);
    line-height: 1;
}

.price-card .price s {
    color: var(--ink-3);
    font-size: 18px;
    font-weight: 500;
    margin-right: 4px;
}

.price-card .price span {
    color: var(--ink-3);
    font-size: 15px;
    font-weight: 500;
}

.price-card .desc {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.55;
}

.price-card ul {
    margin: 6px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
    flex: 1;
    align-content: start;
}

.price-card li {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.5;
}

.price-card li svg {
    margin-top: 4px;
    color: var(--accent);
    width: 14px;
    height: 14px;
}

:root[data-theme="light"] .price-card li svg {
    color: #65a30d;
}

.price-card .button {
    margin-top: auto;
    width: 100%;
}

/* ==========================================================================
   Stats band
   ========================================================================== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    padding: 36px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(216, 255, 58, 0.08), transparent 50%),
        var(--surface);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

:root[data-theme="light"] .stats {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(197, 240, 42, 0.14), transparent 50%),
        var(--surface);
    box-shadow: var(--shadow-card);
}

@media (max-width: 880px) {
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.stat b {
    display: block;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.04em;
    background: linear-gradient(135deg, #ffffff 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

:root[data-theme="light"] .stat b {
    background: linear-gradient(135deg, #0a0a10 0%, #16a34a 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.stat span {
    display: block;
    margin-top: 4px;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.4;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */

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

@media (max-width: 880px) {
    .quotes {
        grid-template-columns: 1fr;
    }
}

.quote {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background: var(--surface);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

:root[data-theme="light"] .quote {
    box-shadow: var(--shadow-card);
}

.quote p {
    margin: 0 0 24px;
    font-size: 19px;
    line-height: 1.55;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.quote .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.quote .author .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--grad-cool);
    color: #050507;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
}

.quote .author strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

.quote .author span {
    display: block;
    color: var(--ink-3);
    font-size: 13px;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
    border-top: 1px solid var(--line);
}

.faq details {
    border-bottom: 1px solid var(--line);
    padding: 22px 4px;
}

.faq details[open] summary {
    color: var(--ink);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

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

.faq summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--line-strong);
    display: grid;
    place-items: center;
    color: var(--ink-2);
    font-size: 16px;
    font-weight: 400;
    flex-shrink: 0;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.faq details[open] summary::after {
    content: "−";
    background: var(--grad-accent);
    color: #050507;
    border-color: transparent;
}

.faq details p {
    margin: 14px 0 0;
    color: var(--ink-2);
    font-size: 15.5px;
    line-height: 1.6;
    max-width: 800px;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.cta {
    position: relative;
    padding: 64px 48px;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-2xl);
    background:
        radial-gradient(ellipse at 0% 0%, rgba(216, 255, 58, 0.18), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(0, 212, 255, 0.18), transparent 50%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
    overflow: hidden;
}

:root[data-theme="light"] .cta {
    background:
        radial-gradient(ellipse at 0% 0%, rgba(197, 240, 42, 0.22), transparent 50%),
        radial-gradient(ellipse at 100% 100%, rgba(56, 189, 248, 0.18), transparent 50%),
        linear-gradient(180deg, #0a0a10, #14253a);
    color: #f5f5f7;
    border-color: rgba(10, 10, 16, 0.12);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 24px 80px rgba(15, 23, 42, 0.18);
}

.cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
    pointer-events: none;
}

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

.cta h2 {
    margin: 0 auto 16px;
    max-width: 720px;
    font-size: clamp(32px, 4.6vw, 36px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: inherit;
}

.cta h2 .accent {
    background: linear-gradient(135deg, #d8ff3a 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

:root[data-theme="light"] .cta h2 .accent {
    background: linear-gradient(135deg, #d8ff3a 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.cta p {
    margin: 0 auto 28px;
    max-width: 540px;
    color: var(--ink-2);
    font-size: 18px;
    line-height: 1.55;
}

:root[data-theme="light"] .cta p {
    color: rgba(245, 245, 247, 0.78);
}

.cta .actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.landing-footer {
    padding: 56px 0 36px;
    border-top: 1px solid var(--footer-divider);
    margin-top: 32px;
}

.footer-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 32px;
}

@media (max-width: 720px) {
    .footer-row {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-col a {
    display: block;
    margin-bottom: 8px;
    color: var(--ink-2);
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--footer-divider);
    color: var(--ink-3);
    font-size: 13px;
}

/* ==========================================================================
   Desktop readability
   ========================================================================== */

@media (min-width: 1024px) {
    .nav-links a,
    .nav-links button,
    .dropdown-menu a {
        font-size: 15px;
    }

    .button {
        font-size: 15px;
    }

    .button-lg {
        font-size: 16px;
    }

    .hero-sub {
        max-width: 720px;
        font-size: 20px;
        line-height: 1.6;
    }

    .hero-trust {
        font-size: 14px;
    }

    .section-title,
    .cta h2 {
        max-width: 880px;
        font-size: clamp(34px, 3.6vw, 42px);
        line-height: 1.08;
    }

    .section-lead,
    .cta p {
        max-width: 720px;
        font-size: 20px;
        line-height: 1.62;
    }

    .section-head .section-lead {
        max-width: 560px;
    }

    .section-eyebrow,
    .product-step-kicker {
        font-size: 13px;
    }

    .card h3 {
        font-size: 21px;
    }

    .card p,
    .ba-card p,
    .feature-list li,
    .faq details p {
        font-size: 17px;
    }

    .ba-card h3 {
        font-size: 24px;
    }

    .ba-card li {
        font-size: 16.5px;
    }

    .feature-info p {
        font-size: 18.5px;
    }

    .product-carousel-slide strong {
        font-size: clamp(26px, 2.4vw, 36px);
    }

    .product-carousel-slide figcaption span:last-child {
        font-size: 18px;
    }

    .price-card h3 {
        font-size: 19px;
    }

    .price-card .desc,
    .price-card li {
        font-size: 16px;
    }

    .stat span {
        font-size: 14.5px;
    }

    .faq summary {
        font-size: 19px;
    }

    .footer-col a,
    .footer-bottom {
        font-size: 15px;
    }
}

/* ==========================================================================
   Mobile panel
   ========================================================================== */

.mobile-panel {
    display: none;
}

@media (max-width: 920px) {

    .nav-links,
    .nav-actions {
        display: none;
    }

    .theme-toggle--nav {
        display: none;
    }

    .mobile-menu-button {
        display: inline-flex;
    }

    .mobile-panel.is-open {
        position: absolute;
        top: calc(100% + 8px);
        left: 0;
        right: 0;
        z-index: 80;
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--mobile-panel-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    }

    :root[data-theme="light"] .mobile-panel.is-open {
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    }

    .mobile-panel a {
        display: flex;
        align-items: center;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        color: var(--ink);
        font-size: 14px;
        font-weight: 500;
    }

    .mobile-panel a.primary {
        background: var(--grad-accent);
        color: #050507;
        border-color: transparent;
    }

    .mobile-panel .theme-toggle-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 44px;
        padding: 0 14px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: var(--surface);
        color: var(--ink);
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        font-family: inherit;
        width: 100%;
        text-align: left;
    }

    .mobile-panel .theme-toggle-row .left {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-panel .theme-toggle-row svg {
        width: 18px;
        height: 18px;
        color: var(--accent);
    }

    .hero {
        padding-top: 64px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-visual {
        min-height: 480px;
        order: 2;
    }

    .floating-stat {
        display: none;
    }

    .product-mock {
        transform: none;
        aspect-ratio: 4 / 5;
    }

    .section {
        padding: 64px 0;
    }

    .hero {
        padding-bottom: 40px;
    }

    .cta {
        padding: 40px 24px;
    }
}

@media (max-width: 540px) {
    .hero h1 {
        font-size: 40px;
        letter-spacing: -0.035em;
    }

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

    .section-title {
        font-size: 30px;
    }

    .stat b {
        font-size: 30px;
    }

    .stats {
        padding: 24px;
    }
}

/* ==========================================================================
   Auth pages (login / signup)
   ========================================================================== */

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 980px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .auth-side {
        display: none;
    }
}

.auth-side {
    position: relative;
    padding: 56px 56px;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(circle at 20% 20%, rgba(216, 255, 58, 0.18), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.18), transparent 50%);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

:root[data-theme="light"] .auth-side {
    background:
        radial-gradient(circle at 20% 20%, rgba(197, 240, 42, 0.30), transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 189, 248, 0.20), transparent 50%),
        var(--bg);
    border-right-color: var(--line);
}

.auth-side::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
    pointer-events: none;
}

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

.auth-side-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.auth-side h2 {
    margin: 24px 0 16px;
    max-width: 460px;
    font-size: clamp(32px, 3.4vw, 44px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 800;
    color: var(--ink);
}

.auth-side h2 .accent {
    background: linear-gradient(135deg, #d8ff3a 0%, #6ee7b7 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

:root[data-theme="light"] .auth-side h2 .accent {
    background: linear-gradient(135deg, #4d7c0f 0%, #15803d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.auth-side p {
    max-width: 460px;
    color: var(--ink-2);
    font-size: 16px;
    line-height: 1.6;
}

.auth-bullets {
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 12px;
    max-width: 460px;
}

.auth-bullets li {
    display: grid;
    grid-template-columns: 22px 1fr;
    gap: 10px;
    color: var(--ink);
    font-size: 14.5px;
    line-height: 1.5;
}

.auth-bullets .check {
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--grad-accent);
    color: #050507;
    font-size: 11px;
    font-weight: 900;
    margin-top: 1px;
}

.auth-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    background: var(--bg);
}

.auth-card {
    width: 100%;
    max-width: 420px;
}

.auth-card h1 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 800;
    color: var(--ink);
}

.auth-card .lead {
    margin: 0 0 32px;
    color: var(--ink-2);
    font-size: 15px;
    line-height: 1.55;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 600;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    font-size: 14.5px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
    background: #ffffff;
}

.field textarea {
    height: auto;
    min-height: 96px;
    padding: 12px 14px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--accent);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(216, 255, 58, 0.18);
}

:root[data-theme="light"] .field input:focus,
:root[data-theme="light"] .field select:focus,
:root[data-theme="light"] .field textarea:focus {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(168, 217, 32, 0.22);
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-3);
}

.field .hint {
    margin-top: 6px;
    color: var(--ink-3);
    font-size: 12.5px;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 540px) {
    .field-row {
        grid-template-columns: 1fr;
    }
}

.auth-error {
    display: none;
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 90, 95, 0.32);
    border-radius: 12px;
    background: rgba(255, 90, 95, 0.08);
    color: #ff8b8e;
    font-size: 14px;
}

.auth-error.is-visible {
    display: block;
}

.auth-submit {
    width: 100%;
    margin-top: 6px;
}

.auth-foot {
    margin-top: 22px;
    text-align: center;
    color: var(--ink-2);
    font-size: 14px;
}

.auth-foot a {
    color: var(--accent);
    font-weight: 600;
}

:root[data-theme="light"] .auth-foot a {
    color: #4d7c0f;
}

.auth-foot a:hover {
    text-decoration: underline;
}

.auth-result {
    display: none;
    margin-top: 24px;
    padding: 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: var(--surface);
}

.auth-result.is-visible {
    display: block;
}

.auth-result h3 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}

.auth-result p {
    margin: 0 0 12px;
    color: var(--ink-2);
    font-size: 14px;
}

.auth-result textarea {
    width: 100%;
    min-height: 140px;
    padding: 12px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--ink);
    font: inherit;
    font-size: 13px;
    line-height: 1.5;
    font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
    resize: vertical;
}

:root[data-theme="light"] .auth-result textarea {
    background: #ffffff;
}

/* Form select needs custom chevron in both themes */
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23f5f5f7' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}

:root[data-theme="light"] .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%230a0a10' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Tom Select */
.field .ts-wrapper {
    margin: 0;
    font-size: 14.5px;
}

.field .ts-control {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 46px;
    padding: 0 38px 0 14px !important;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    box-shadow: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

:root[data-theme="light"] .field .ts-control {
    background: #ffffff;
}

.field .ts-wrapper.focus .ts-control,
.field .ts-wrapper.dropdown-active .ts-control {
    border-color: var(--accent);
    background: var(--surface-2);
    box-shadow: 0 0 0 3px rgba(216, 255, 58, 0.18);
}

:root[data-theme="light"] .field .ts-wrapper.focus .ts-control,
:root[data-theme="light"] .field .ts-wrapper.dropdown-active .ts-control {
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(168, 217, 32, 0.22);
}

.field .ts-control,
.field .ts-control .item {
    color: var(--ink);
}

.field .ts-wrapper.single .ts-control::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 16px;
    width: 8px;
    height: 8px;
    border-right: 1.5px solid var(--ink-2);
    border-bottom: 1.5px solid var(--ink-2);
    transform: translateY(-65%) rotate(45deg);
    transition: transform 0.2s ease;
}

.field .ts-wrapper.single.dropdown-active .ts-control::after {
    transform: translateY(-25%) rotate(225deg);
}

.field .ts-dropdown {
    margin-top: 6px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--dropdown-bg);
    color: var(--ink);
    overflow: hidden;
    box-shadow: var(--shadow-floating);
    z-index: 80;
}

:root[data-theme="light"] .field .ts-dropdown {
    background: #ffffff;
    box-shadow: var(--shadow-card);
}

.field .ts-dropdown .option {
    padding: 11px 14px;
    color: var(--ink);
    font-size: 14.5px;
}

.field .ts-dropdown .active {
    background: var(--surface-2);
    color: var(--ink);
}

:root[data-theme="light"] .field .ts-dropdown .active {
    background: rgba(197, 240, 42, 0.18);
}
