:root {
    color-scheme: dark;
    --bg: #030712;
    --panel: rgba(11, 18, 32, 0.68);
    --panel-strong: rgba(15, 23, 42, 0.78);
    --line: rgba(148, 163, 184, 0.22);
    --text: #f8fafc;
    --muted: #aebbd0;
    --soft: #dbeafe;
    --accent: #0ea5e9;
    --accent-2: #22c55e;
    --danger: #fb7185;
    --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 50% -20%, rgba(59, 130, 246, 0.28), transparent 34%),
        radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.18), transparent 24%),
        linear-gradient(180deg, #050914 0%, #07111f 48%, #050914 100%);
    color: var(--text);
}

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

.ambient {
    position: fixed;
    width: 36vw;
    aspect-ratio: 1;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(70px);
    opacity: 0.26;
    animation: floatAmbient 13s ease-in-out infinite alternate;
}

.ambient-a {
    left: -12vw;
    top: 14vh;
    background: #38bdf8;
}

.ambient-b {
    right: -10vw;
    bottom: 8vh;
    background: #22c55e;
    animation-delay: -4s;
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 32px));
    margin: 0 auto;
    padding: 22px 0 54px;
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    min-height: 58px;
    margin-bottom: 26px;
}

.brand-mark,
.nav-action,
.primary-link,
.secondary-link {
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 800;
    background: linear-gradient(90deg, #67e8f9 0%, #60a5fa 52%, #c084fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 24px rgba(96, 165, 250, 0.2);
}

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

.nav-action {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--soft);
    font-size: 13px;
    backdrop-filter: blur(18px);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
    gap: 42px;
    align-items: center;
    min-height: min(710px, calc(100vh - 106px));
}

.hero-wordmark {
    margin: 0 0 20px;
    font-size: clamp(32px, 5vw, 64px);
    line-height: 1;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: linear-gradient(90deg, #67e8f9 0%, #60a5fa 42%, #c084fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 28px rgba(103, 232, 249, 0.28);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    height: 28px;
    margin: 0 0 18px;
    padding: 0 12px;
    border: 1px solid rgba(125, 211, 252, 0.26);
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.12);
    color: #bae6fd;
    font-size: 12px;
    font-weight: 800;
}

h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(48px, 8vw, 94px);
    line-height: 0.92;
    letter-spacing: 0;
}

.hero-lede {
    max-width: 640px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: clamp(17px, 2vw, 22px);
    line-height: 1.55;
}

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

.primary-link,
.secondary-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    font-weight: 850;
}

.primary-link {
    background: #f8fafc;
    color: #07111f;
    box-shadow: 0 14px 38px rgba(248, 250, 252, 0.18);
}

.secondary-link {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.06);
    color: var(--soft);
}

.product-stage {
    perspective: 1200px;
}

.extension-mockup {
    --tilt-x: 5deg;
    --tilt-y: -8deg;
    position: relative;
    width: min(100%, 430px);
    margin-left: auto;
    padding: 18px;
    border: 1px solid rgba(191, 219, 254, 0.24);
    border-radius: 28px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(2, 6, 23, 0.7));
    box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(28px);
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transform-style: preserve-3d;
    transition: transform 160ms ease, box-shadow 220ms ease, border-color 220ms ease;
    animation: deviceFloat 7s ease-in-out infinite;
}

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

.extension-mockup.is-tilting {
    animation-play-state: paused;
    border-color: rgba(191, 219, 254, 0.44);
    box-shadow: 0 34px 110px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.mockup-toolbar {
    display: flex;
    gap: 7px;
    margin-bottom: 16px;
}

.mockup-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #64748b;
}

.mockup-session,
.mockup-status,
.mockup-analysis,
.mockup-result {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.72);
}

.mockup-session {
    padding: 15px;
}

.mockup-session p,
.mockup-analysis p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.mockup-session p + p {
    margin-top: 5px;
}

.mockup-status {
    margin-top: 12px;
    padding: 12px 14px;
    color: #e2e8f0;
    font-weight: 800;
}

.mockup-analysis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    padding: 14px;
}

.mockup-analysis h2 {
    margin: 0 0 5px;
    font-size: 18px;
}

.mockup-analysis button {
    width: auto;
    min-height: 38px;
    margin: 0;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #22c55e;
    color: #ecfdf5;
    font-weight: 850;
}

.mockup-result {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
    padding: 12px 14px;
    color: #bbf7d0;
    font-size: 13px;
    font-weight: 850;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 rgba(34, 197, 94, 0.58);
    animation: pulse 1.8s infinite;
}

.signup-band {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
    gap: 28px;
    align-items: start;
    margin-top: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(15, 23, 42, 0.64);
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.product-demo {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: 26px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.68), rgba(2, 6, 23, 0.42));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.demo-copy h2 {
    max-width: 560px;
    margin: 0;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1;
    letter-spacing: 0;
}

.demo-copy p:not(.eyebrow) {
    max-width: 520px;
    min-height: 58px;
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.demo-board {
    display: grid;
    gap: 16px;
}

.demo-video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    padding: 10px;
    border: 1px solid rgba(191, 219, 254, 0.22);
    border-radius: 28px;
    background:
        radial-gradient(circle at 74% 14%, rgba(56, 189, 248, 0.18), transparent 28%),
        rgba(15, 23, 42, 0.52);
    overflow: hidden;
}

.demo-video {
    display: block;
    width: 100%;
    height: 100%;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 20px;
    background: #020617;
    object-fit: cover;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.32);
}

.signup-intro h2,
.info-grid h2 {
    margin: 0 0 12px;
    font-size: 26px;
    letter-spacing: 0;
}

.signup-intro p:not(.eyebrow) {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

.auth-forms {
    display: grid;
    gap: 16px;
}

.signup-form {
    padding: 20px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 22px;
    background: rgba(2, 6, 23, 0.44);
}

.reset-password-form {
    background: rgba(15, 23, 42, 0.36);
}

.verification-panel[hidden],
#signup-fields[hidden],
#reset-request-fields[hidden],
#reset-confirm-fields[hidden] {
    display: none;
}

.verification-panel p {
    margin: 0 0 14px;
    color: var(--soft);
    font-weight: 800;
    line-height: 1.45;
}

.reset-password-form h3 {
    margin: 0 0 14px;
    color: var(--soft);
    font-size: 18px;
    line-height: 1.2;
}

label {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

label:first-child {
    margin-top: 0;
}

input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border-radius: 14px;
    border: 1px solid rgba(148, 163, 184, 0.24);
    background: rgba(15, 23, 42, 0.84);
    color: var(--text);
    font-size: 15px;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus {
    outline: 0;
    border-color: rgba(56, 189, 248, 0.86);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.18);
    transform: translateY(-1px);
}

button {
    width: 100%;
    min-height: 48px;
    margin-top: 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #f8fafc, #c7d2fe);
    color: #07111f;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    box-shadow: 0 16px 36px rgba(199, 210, 254, 0.18);
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(199, 210, 254, 0.24);
}

button:disabled {
    opacity: 0.65;
    cursor: default;
}

.secondary-button {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(15, 23, 42, 0.82);
    color: var(--soft);
    box-shadow: none;
}

.secondary-button:hover {
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.28);
}

#signup-status,
#reset-status {
    min-height: 18px;
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.45;
}

#signup-status.success,
#reset-status.success {
    color: #86efac;
}

#signup-status.error,
#reset-status.error {
    color: var(--danger);
}

.credits-band {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 22px;
    align-items: center;
    margin-top: 18px;
    padding: 24px 26px;
    border: 1px solid rgba(125, 211, 252, 0.24);
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 18%, rgba(34, 197, 94, 0.16), transparent 28%),
        linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.5));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.credits-band h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 4vw, 46px);
    line-height: 1;
    letter-spacing: 0;
}

.credits-band p:not(.eyebrow) {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: 720px;
    margin-top: 18px;
    margin-bottom: 0;
    padding: 0;
    list-style: none;
}

.pricing-grid li {
    display: grid;
    gap: 6px;
    min-height: 82px;
    padding: 14px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 18px;
    background: rgba(2, 6, 23, 0.38);
}

.pricing-grid strong {
    color: #f8fafc;
    font-size: 14px;
}

.pricing-grid span {
    color: #bae6fd;
    font-size: 22px;
    font-weight: 950;
}

.pricing-grid .featured-price {
    border-color: rgba(125, 211, 252, 0.46);
    background: linear-gradient(145deg, rgba(14, 165, 233, 0.2), rgba(168, 85, 247, 0.14));
}

.credits-note {
    margin-top: 14px !important;
    color: #cbd5e1 !important;
    font-size: 14px !important;
}

.telegram-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 210px;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #67e8f9, #60a5fa 54%, #c084fc);
    color: #06111f;
    text-decoration: none;
    font-weight: 900;
    box-shadow: 0 18px 44px rgba(96, 165, 250, 0.24);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.telegram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 54px rgba(96, 165, 250, 0.32);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.info-grid article {
    min-height: 188px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: rgba(15, 23, 42, 0.56);
    backdrop-filter: blur(20px);
    transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.info-grid article:hover {
    transform: translateY(-5px);
    border-color: rgba(191, 219, 254, 0.38);
    background: rgba(15, 23, 42, 0.74);
}

.step-number {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.16);
    color: #bae6fd;
    font-weight: 950;
}

.info-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 28px;
    align-items: start;
    margin-top: 26px;
    padding: 22px 4px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
}

.footer-brand {
    display: inline-flex;
    margin-bottom: 8px;
    background: linear-gradient(90deg, #67e8f9 0%, #60a5fa 52%, #c084fc 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-weight: 900;
    text-decoration: none;
}

.site-footer p {
    margin: 0;
    line-height: 1.5;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.footer-links a,
.legal-page a {
    color: #bae6fd;
    text-decoration: none;
}

.footer-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-links a:hover,
.legal-page a:hover {
    color: #e0f2fe;
    text-decoration: underline;
}

.footer-copy {
    grid-column: 1 / -1;
    color: #7f8ca3;
    font-size: 13px;
}

.legal-shell {
    width: min(980px, calc(100% - 32px));
}

.legal-page {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.7), rgba(2, 6, 23, 0.48));
    box-shadow: var(--shadow);
    backdrop-filter: blur(24px);
}

.legal-page h1 {
    max-width: 760px;
    font-size: clamp(40px, 7vw, 76px);
    line-height: 0.95;
}

.legal-updated {
    margin: 18px 0 0;
    color: #cbd5e1;
    font-weight: 800;
}

.legal-page section {
    margin-top: 30px;
}

.legal-page h2 {
    margin: 0 0 10px;
    font-size: 22px;
    letter-spacing: 0;
}

.legal-page p,
.legal-page li {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.7;
}

.legal-page p {
    margin: 0;
}

.legal-page ul {
    display: grid;
    gap: 8px;
    margin: 12px 0 0;
    padding-left: 22px;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes deviceFloat {
    0%,
    100% {
        transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(0);
    }

    50% {
        transform: rotateX(calc(var(--tilt-x) - 2deg)) rotateY(calc(var(--tilt-y) + 3deg)) translateY(-14px);
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.56);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(34, 197, 94, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

@keyframes floatAmbient {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(32px, -24px, 0) scale(1.08);
    }
}

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

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

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(100% - 24px, 620px);
        padding: 18px 0 32px;
    }

    .topbar {
        margin-bottom: 18px;
    }

    .nav-actions {
        justify-content: flex-end;
        flex-wrap: wrap;
        gap: 8px;
    }

    .hero,
    .product-demo,
    .signup-band,
    .credits-band {
        grid-template-columns: 1fr;
    }

    .hero {
        gap: 28px;
        min-height: auto;
        padding-top: 20px;
    }

    .extension-mockup {
        margin: 0 auto;
        transform: none;
    }

    .signup-band {
        padding: 18px;
        border-radius: 22px;
    }

    .product-demo {
        padding: 18px;
        border-radius: 22px;
    }

    .credits-band {
        padding: 18px;
        border-radius: 22px;
    }

    .telegram-link {
        width: 100%;
    }

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

    .demo-video-frame {
        border-radius: 22px;
        padding: 8px;
    }

    .info-grid {
        grid-template-columns: 1fr;
    }

    .site-footer {
        grid-template-columns: 1fr;
        padding-top: 18px;
    }

    .footer-links {
        justify-content: flex-start;
    }

    .legal-page {
        padding: 20px;
        border-radius: 22px;
    }
}

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