:root {
    --bg: #f7f8fb;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-strong: #ffffff;
    --text: #111318;
    --muted: #5f6674;
    --line: rgba(17, 19, 24, 0.08);
    --line-strong: rgba(17, 19, 24, 0.14);
    --shadow: 0 20px 60px rgba(17, 19, 24, 0.08);
    --shadow-soft: 0 14px 36px rgba(17, 19, 24, 0.06);
    --radius-xl: 28px;
    --radius-lg: 22px;
    --radius-md: 18px;
    --primary: #111318;
    --primary-soft: #eef1f7;
    --accent: #dfe6ff;
    --success: #eaf6ee;
    --max: 1220px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--text);
    background:
    radial-gradient(circle at top left, rgba(223, 230, 255, 0.7), transparent 35%),
    radial-gradient(circle at top right, rgba(235, 244, 255, 0.8), transparent 30%),
    linear-gradient(180deg, #fbfcfe 0%, #f4f6fb 100%);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

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

svg,
video,
canvas {
    max-width: 100%;
    display: block;
}

.telegram-login-wrap iframe {
    max-width: 100%;
    display: block;
}

h1, h2, h3, p, span, strong, a, li {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.container {
    width: min(calc(100% - clamp(16px, 4vw, 32px)), var(--max));
    margin: 0 auto;
}

.page-shell {
    overflow: visible;
    position: relative;
}

.blur-orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(100px);
    opacity: 0.34;
    pointer-events: none;
    animation: drift 16s ease-in-out infinite;
}

.orb-1 {
    width: 260px;
    height: 260px;
    background: #dce8ff;
    top: 100px;
    left: -40px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: #eef2ff;
    top: 520px;
    right: -80px;
    animation-delay: -5s;
}

.orb-3 {
    width: 260px;
    height: 260px;
    background: #e6f4f1;
    bottom: 80px;
    left: 10%;
    animation-delay: -8s;
}

@keyframes drift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, -16px, 0) scale(1.04); }
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes fadeUp {
    from {
    opacity: 0;
    transform: translateY(24px);
    }
    to {
    opacity: 1;
    transform: translateY(0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1), transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

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

header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: rgba(247, 248, 251, 0.80);
    border-bottom: 1px solid rgba(17, 19, 24, 0.06);
}

.nav {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.brand-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: #fff;
    border: 1px solid rgba(17, 19, 24, 0.05);
    flex-shrink: 0;
}

.brand-copy {
    min-width: 0;
}

.brand-copy strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.brand-copy span {
    display: block;
    color: var(--muted);
    font-size: 0.92rem;
    white-space: nowrap;
}

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

.nav-links a {
    font-size: 0.94rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease;
    position: relative;
    padding-bottom: 2px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1.5px;
    background: var(--text);
    border-radius: 999px;
    transition: width 0.22s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.nav-burger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
    cursor: pointer;
}

.nav-burger span {
    width: 18px;
    height: 2px;
    border-radius: 99px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.nav-burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

.mobile-nav[hidden] {
    display: none !important;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: -0.01em;
    transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
    cursor: pointer;
    border: 1px solid transparent;
    user-select: none;
}

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

.button:active {
    transform: translateY(0);
    opacity: 0.88;
    transition-duration: 0.08s;
}

.button-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(17, 19, 24, 0.18), 0 2px 6px rgba(17, 19, 24, 0.12);
}

.button-primary:hover {
    box-shadow: 0 16px 36px rgba(17, 19, 24, 0.22), 0 4px 10px rgba(17, 19, 24, 0.14);
}
.button-secondary {
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    border-color: rgba(17, 19, 24, 0.10);
    box-shadow: 0 2px 8px rgba(17, 19, 24, 0.04);
}

.button-secondary:hover {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(17, 19, 24, 0.16);
    box-shadow: 0 6px 18px rgba(17, 19, 24, 0.07);
}

.hero {
    padding: 60px 0 32px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 34px;
    align-items: center;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 19, 24, 0.08);
    box-shadow: 0 2px 8px rgba(17, 19, 24, 0.05);
    color: var(--muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    margin-bottom: 20px;
}

.eyebrow-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #111318;
    opacity: 0.88;
}

h1 {
    margin: 0;
    font-size: clamp(2.8rem, 5vw, 5.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
    max-width: 720px;
}

.hero-subtitle {
    margin: 22px 0 0;
    font-size: 1.06rem;
    line-height: 1.76;
    color: var(--muted);
    max-width: 580px;
}

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

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

.hero-actions .button {
    min-width: 180px;
}

.metric-card {
    padding: 20px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 19, 24, 0.07);
    border-radius: 18px;
    box-shadow: 0 2px 8px rgba(17, 19, 24, 0.04);
    backdrop-filter: blur(10px);
}

.metric-card strong {
    display: block;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.metric-card span {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.5;
}

.hero-visual {
    position: relative;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.hero-preview-stack {
    position: relative;
    width: min(100%, 520px);
    min-height: auto;
}

.hero-shot-card {
    overflow: hidden;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 19, 24, 0.08);
    box-shadow: 0 22px 54px rgba(17, 19, 24, 0.12);
}

.hero-shot-card img {
    display: block;
    width: 100%;
    height: auto;
}

.hero-shot-card video {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.hero-shot-main {
    width: min(100%, 390px);
    margin-left: 0;
}

.hero-shot-mobile {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 170px;
    border-radius: 28px;
}

.floating-note {
    position: absolute;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(17, 19, 24, 0.06);
    box-shadow: var(--shadow-soft);
    border-radius: 22px;
    padding: 16px 18px;
    width: min(240px, 42%);
    animation: floatCard 7s ease-in-out infinite;
    z-index: 3;
}

.note-1 {
    right: 14px;
    top: -22px;
}

.note-2 {
    left: 14px;
    bottom: -18px;
    animation-delay: -2s;
}

.floating-note strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
    letter-spacing: -0.02em;
}

.floating-note span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.55;
}

section {
    padding: 68px 0;
}

.section-heading {
    max-width: 760px;
    margin-bottom: 38px;
}

.section-heading .label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(17, 19, 24, 0.07);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 16px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
}

.section-heading p {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 680px;
}

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

.feature-card {
    padding: 28px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 19, 24, 0.07);
    box-shadow: 0 4px 16px rgba(17, 19, 24, 0.04), 0 1px 4px rgba(17, 19, 24, 0.03);
    backdrop-filter: blur(10px);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 44px rgba(17, 19, 24, 0.09), 0 4px 12px rgba(17, 19, 24, 0.05);
    border-color: rgba(17, 19, 24, 0.11);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(145deg, #f4f8ff 0%, #e8eef8 100%);
    border: 1px solid rgba(17, 19, 24, 0.07);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--muted);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin: 0;
    font-size: 1.12rem;
    letter-spacing: -0.025em;
    line-height: 1.3;
}

.feature-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.showcase-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 28px;
    border-radius: 32px;
    background: linear-gradient(180deg, rgba(255,255,255,0.84), rgba(255,255,255,0.72));
    border: 1px solid rgba(17, 19, 24, 0.08);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.showcase-card {
    background: #fff;
    border-radius: 24px;
    border: 1px solid rgba(17, 19, 24, 0.07);
    padding: 26px;
}

.showcase-card h3 {
    margin: 0 0 12px;
    font-size: 1.22rem;
    letter-spacing: -0.03em;
}

.showcase-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.72;
}

.showcase-list {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.showcase-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f7f9fc;
    border: 1px solid rgba(17, 19, 24, 0.05);
}

.showcase-item-badge {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #111318;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.showcase-item strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.98rem;
}

.showcase-item span {
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.93rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 420px));
    gap: 18px;
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    align-items: stretch;
    justify-content: center;
}

#pricing .section-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

#pricing .section-heading p {
    margin-left: auto;
    margin-right: auto;
}

.pricing-card {
    position: relative;
    width: 100%;
    min-width: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 19, 24, 0.07);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(17, 19, 24, 0.05);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.plan-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 12px;
    border-radius: 999px;
    background: #111318;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 10px 24px rgba(17, 19, 24, 0.16);
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 48px rgba(17, 19, 24, 0.08);
}

.pricing-card.trial {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.pricing-note {
    margin: 16px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.plan-name {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    padding-right: 92px;
}

.pricing-card-featured {
    border: 1px solid rgba(17, 19, 24, 0.13);
    box-shadow: 0 12px 36px rgba(17, 19, 24, 0.09), 0 3px 10px rgba(17, 19, 24, 0.05);
    transform: translateY(-6px);
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.99), rgba(247, 250, 255, 0.96));
}

.pricing-card-featured:hover {
    transform: translateY(-12px);
    box-shadow: 0 28px 64px rgba(17, 19, 24, 0.13), 0 6px 16px rgba(17, 19, 24, 0.06);
}

.plan-saving {
    display: inline-flex;
    align-items: center;
    margin-bottom: 10px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #eef3fb;
    border: 1px solid rgba(17, 19, 24, 0.08);
    color: #111318;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.plan-price {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    margin-bottom: 6px;
}

.plan-price strong {
    font-size: 2.25rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.plan-price span {
    color: var(--muted);
    font-size: 0.94rem;
    padding-bottom: 4px;
}

.plan-caption {
    color: var(--muted);
    font-size: 0.94rem;
    line-height: 1.6;
    min-height: 48px;
    margin-bottom: 18px;
}

.plan-highlights {
    display: grid;
    gap: 10px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

.plan-highlights li {
    display: flex;
    gap: 10px;
    color: #2b313d;
    font-size: 0.94rem;
    line-height: 1.55;
}

.plan-highlights li::before {
    content: "•";
    color: #111318;
    opacity: 0.7;
    flex-shrink: 0;
}

.plan-footer {
    margin-top: auto;
}

.plan-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 999px;
    background: #f4f7fb;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.faq-heading {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.faq-heading p {
    margin-left: auto;
    margin-right: auto;
}

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

.faq-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 19, 24, 0.07);
    border-radius: 20px;
    padding: 22px 24px;
    box-shadow: 0 4px 14px rgba(17, 19, 24, 0.04);
    transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, border-color 0.22s ease;
}

.faq-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(17, 19, 24, 0.08);
    border-color: rgba(17, 19, 24, 0.11);
}

.faq-card h3 {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.faq-card p {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.95rem;
}

.cta-panel {
    border-radius: 32px;
    padding: 48px;
    background: linear-gradient(135deg, rgba(255,255,255,0.90), rgba(246,248,252,0.94));
    border: 1px solid rgba(17, 19, 24, 0.08);
    box-shadow: var(--shadow);
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: center;
    flex-wrap: wrap;
}

.cta-panel h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.06;
    letter-spacing: -0.045em;
    max-width: 700px;
}

.cta-panel p {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.75;
    max-width: 700px;
}

footer {
    padding: 36px 0 52px;
}

.footer-bar {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding-top: 18px;
    border-top: 1px solid rgba(17, 19, 24, 0.08);
    color: var(--muted);
    font-size: 0.94rem;
    flex-wrap: wrap;
}

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

.footer-links a {
    transition: color 0.18s ease;
}

.footer-links a:hover {
    color: var(--text);
}

.auth-modal[hidden] {
    display: none;
}

.auth-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
}

html.email-modal-open,
body.email-modal-open {
    overflow: hidden !important;
    height: 100% !important;
    overscroll-behavior: none;
}

body.email-modal-open {
    position: fixed !important;
    left: 0;
    right: 0;
    width: 100%;
}

#emailModal[hidden] {
    display: none !important;
}

#emailModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    overflow: hidden;
}

#emailModal:not([hidden]) {
    display: flex;
}

#emailModal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(17, 19, 24, 0.45);
    backdrop-filter: blur(8px);
}

#emailModal[hidden] {
    display: none !important;
}

#emailModal:not([hidden]) {
    display: block;
}

.email-modal-shell {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.email-modal-panel {
    position: relative;
    width: min(100%, 720px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18);
    padding: 30px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.email-modal-panel h3 {
    margin: 0 0 10px;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
}

.email-modal-panel p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

.email-modal-panel input[type="email"] {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 14px;
    border: 1px solid rgba(17, 19, 24, 0.10);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 1rem;
    outline: none;
    margin-bottom: 14px;
}

.email-modal-panel input[type="email"]::placeholder {
    color: #8b93a1;
}

.email-modal-panel input[type="email"]:focus {
    border-color: rgba(17, 19, 24, 0.22);
    box-shadow: 0 0 0 4px rgba(17, 19, 24, 0.05);
}

.email-modal-panel .button {
    width: 100%;
    min-height: 52px;
}

.email-modal-panel .auth-message {
    min-height: 22px;
    margin-top: 12px;
    font-size: 0.94rem;
    color: #b42318;
}

@media (max-width: 560px) {
    .email-modal-shell {
        padding: 16px;
    }

    .email-modal-panel {
        padding: 22px 18px;
        border-radius: 22px;
        max-height: calc(100vh - 32px);
    }

    .email-modal-panel h3 {
        font-size: 1.4rem;
    }
}

.auth-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(17, 19, 24, 0.45);
    backdrop-filter: blur(6px);
}

.auth-dialog {
    position: relative;
    width: min(calc(100% - 24px), 420px);
    margin: 10vh auto 0;
    background: #fff;
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.18);
    padding: 22px;
    z-index: 1;
    max-height: calc(100vh - 40px);
    overflow-y: auto;
}

.auth-dialog h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
    letter-spacing: -0.03em;
}

.auth-dialog p {
    margin: 0 0 16px;
    color: var(--muted);
    line-height: 1.6;
}

.auth-dialog input:focus {
    border-color: rgba(17, 19, 24, 0.3);
}

.auth-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--muted);
}

.auth-message {
    min-height: 24px;
    margin-top: 12px;
    font-size: 0.94rem;
    color: #b42318;
}

.telegram-login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 56px;
}

.pricing-user-state {
    max-width: 860px;
    margin: 0 auto 16px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(17, 19, 24, 0.08);
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hero-bot-link {
    width: 100%;
    margin-top: 2px;
}

.hero-bot-link a {
    color: var(--muted);
    font-size: 0.95rem;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 820px) {
    .pricing-card-featured,
    .pricing-card-featured:hover {
        transform: none;
    }
}

@media (max-width: 1120px) {
    .hero-grid,
    .showcase-panel {
        grid-template-columns: 1fr;
    }

    .hero-copy,
    .section-heading {
        max-width: 100%;
    }

    .hero-visual {
        justify-content: center;
    }

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

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

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

    .floating-note {
        display: none;
    }

    .hero-preview-stack {
        min-height: auto;
        width: min(100%, 560px);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        gap: 18px;
    }

    .hero-shot-main {
        width: min(100%, 320px);
        margin-left: 0;
    }

    .hero-shot-mobile {
        position: static;
        width: 140px;
    }
}

@media (max-width: 980px) {
    .nav {
        height: auto;
        padding: 16px 0;
        flex-wrap: wrap;
    }

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

    .nav-burger {
        display: inline-flex;
        margin-left: auto;
    }

    .brand-copy span {
        display: none;
    }

    .brand-copy .beta-badge {
        display: inline-block;
    }

    .brand-copy strong {
        display: inline-flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
    }

    .beta-badge {
        display: inline-block;
        font-size: 12px !important;
        white-space: nowrap;
    }

    .mobile-nav {
        order: 4;
        width: 100%;
        margin-top: 12px;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: var(--shadow-soft);
    }

    .mobile-nav.is-open {
        display: block;
    }

    .mobile-nav-links {
        display: grid;
        gap: 8px;
    }

    .mobile-nav-links a {
        padding: 8px 4px;
        color: var(--text);
        font-weight: 600;
    }

    .mobile-nav-actions {
        margin-top: 12px;
        display: grid;
        gap: 10px;
    }

    .mobile-nav-actions .button {
        width: 100%;
    }
}

@media (max-width: 820px) {
    .hero-grid,
    .showcase-panel,
    .feature-grid,
    .pricing-grid,
    .faq-grid {
        grid-template-columns: 1fr;
    }

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

    .nav {
        height: auto;
        padding: 16px 0;
    }

    .hero {
        padding-top: 32px;
    }

    .hero-subtitle,
    .section-heading p,
    .cta-panel p {
        font-size: 1rem;
        line-height: 1.7;
    }

    .cta-panel {
        padding: 32px;
    }

    .plan-name {
        padding-right: 84px;
    }
}

@media (max-width: 768px) {
    .button {
        width: 100%;
    }

    .hero-actions,
    .nav-actions {
        width: 100%;
    }

    .hero-actions .button,
    .nav-actions .button {
        flex: 1 1 100%;
    }

    .auth-dialog {
        margin: 8vh auto 0;
        width: min(calc(100% - 20px), 460px);
    }
}

@media (max-width: 560px) {
    .container {
        width: min(calc(100% - 20px), var(--max));
    }

    section {
        padding: 48px 0;
    }

    h1 {
        font-size: clamp(2.1rem, 10vw, 2.8rem);
        line-height: 1.04;
        letter-spacing: -0.045em;
    }

    .section-heading h2,
    .cta-panel h2 {
        font-size: clamp(1.7rem, 8vw, 2.2rem);
        line-height: 1.08;
    }

    .eyebrow,
    .section-heading .label,
    .plan-badge,
    .plan-saving {
        font-size: 0.75rem;
    }

    .button {
        min-height: 46px;
        padding: 0 16px;
    }

    .nav {
        flex-wrap: wrap;
    }

    .brand {
        width: auto;
        min-width: 0;
        flex: 1 1 auto;
    }

    .brand-copy span {
        white-space: normal;
    }

    .brand-mark {
        width: 48px;
        height: 48px;
        border-radius: 16px;
    }

    .hero-metrics,
    .feature-grid,
    .pricing-grid,
    .showcase-list {
        gap: 12px;
    }

    .hero-metrics {
        grid-template-columns: 1fr;
    }

    .metric-card,
    .feature-card,
    .showcase-card,
    .pricing-card,
    .cta-panel {
        padding: 20px;
        border-radius: 22px;
    }

    .showcase-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .showcase-item-badge {
        width: 28px;
        height: 28px;
        font-size: 0.82rem;
    }

    .plan-name {
        padding-right: 0;
    }

    .plan-badge {
        position: static;
        margin-bottom: 12px;
    }

    .plan-price {
        flex-wrap: wrap;
    }

    .plan-price strong {
        font-size: 2rem;
    }

    .footer-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 12px;
    }

   .hero-preview-stack {
    width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    justify-items: center;
    }

    .hero-shot-main {
        position: static;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
    }

    .hero-shot-mobile {
        position: static;
        width: 100%;
        max-width: 160px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .auth-dialog {
        margin: 0;
        width: 100%;
        border-radius: 20px;
        padding: 18px;
        max-height: calc(100vh - 24px);
    }

    .telegram-login-wrap iframe {
        max-width: 100%;
    }
}

@media (max-width: 380px) {
    .container {
        width: min(calc(100% - 16px), var(--max));
    }

    .metric-card,
    .feature-card,
    .showcase-card,
    .pricing-card,
    .cta-panel {
        padding: 16px;
    }

    .plan-price strong {
        font-size: 1.8rem;
    }

    .brand-copy strong {
        font-size: 0.95rem;
    }

    .brand-copy span {
        font-size: 0.84rem;
    }

    .hero-shot-card,
    .hero-shot-mobile {
        border-radius: 22px;
    }

    .hero-shot-main {
        max-width: 280px;
    }

    .hero-shot-mobile {
        max-width: 140px;
    }

    .button {
        min-height: 44px;
        font-size: 0.94rem;
    }

    .processing-card {
        padding: 20px 16px;
        border-radius: 20px;
    }
}

@media (max-height: 700px) {
    .email-modal-panel {
        max-height: calc(100vh - 24px);
    }

    .auth-dialog {
        margin-top: 12px;
        max-height: calc(100vh - 24px);
    }
}

#processingOverlay[hidden] {
    display: none !important;
}

#processingOverlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(247, 248, 251, 0.82);
    backdrop-filter: blur(10px);
}

.processing-card {
    width: min(100%, 460px);
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(17, 19, 24, 0.08);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(17, 19, 24, 0.12);
    padding: 28px;
    text-align: center;
}

.processing-spinner {
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 999px;
    border: 4px solid rgba(17, 19, 24, 0.10);
    border-top-color: #111318;
    animation: processingSpin 0.9s linear infinite;
}

.processing-card h3 {
    margin: 0 0 10px;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
}

.processing-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.processing-bar {
    width: 100%;
    height: 10px;
    margin-top: 18px;
    border-radius: 999px;
    background: #eef1f7;
    overflow: hidden;
}

.processing-bar-fill {
    width: 38%;
    height: 100%;
    border-radius: 999px;
    background: #111318;
    animation: processingSlide 1.2s ease-in-out infinite;
}

@keyframes processingSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes processingSlide {
    0% {
        transform: translateX(-140%);
    }
    100% {
        transform: translateX(360%);
    }
}

.beta-badge {
  display: inline;
  font-size: 11px !important;
  font-weight: 700;
  color: #5f6674;
}

.beta-label {
  font-size: 8px;
  opacity: 0.8;
}

.hero-trust-line {
    margin: 16px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.6;
}

.security-dialog {
    width: min(calc(100% - 24px), 520px);
}

.security-list {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 0.96rem;
}

.security-list li + li {
    margin-top: 8px;
}

.legal-main {
    padding-bottom: 28px;
}

.legal-hero {
    padding: 40px 0 18px;
}

.legal-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.legal-updated {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-content-section {
    padding-top: 20px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 22px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 104px;
}

.legal-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 19, 24, 0.07);
    border-radius: 24px;
    padding: 22px;
    box-shadow: 0 12px 28px rgba(17, 19, 24, 0.05);
    backdrop-filter: blur(10px);
}

.legal-toc .legal-card {
    display: grid;
    gap: 10px;
}

.legal-toc .legal-card strong {
    font-size: 1rem;
    letter-spacing: -0.02em;
    margin-bottom: 2px;
}

.legal-toc .legal-card a {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.legal-toc .legal-card a:hover {
    color: var(--text);
}

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-content .legal-card h2 {
    margin: 0 0 12px;
    font-size: 1.34rem;
    letter-spacing: -0.03em;
}

.legal-content .legal-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.78;
    font-size: 0.98rem;
}

.legal-content .legal-card p + p {
    margin-top: 14px;
}

.legal-content .legal-card ul {
    margin: 14px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.legal-content .legal-card li {
    line-height: 1.75;
}

.legal-content .legal-card li + li {
    margin-top: 8px;
}

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

    .legal-toc {
        position: static;
    }
}

.legal-consent-box {
    max-width: 860px;
    margin: 16px auto 14px;
    padding: 14px 16px;
    border: 1px solid rgba(17, 19, 24, 0.09);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 8px 24px rgba(17, 19, 24, 0.05);
    backdrop-filter: blur(8px);
}

.legal-consent-label {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    font-size: 0.96rem;
    line-height: 1.5;
    color: var(--text);
    cursor: pointer;
}

.legal-consent-label input[type="checkbox"] {
    margin: 2px 0 0;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    accent-color: var(--primary);
}

.legal-consent-label span {
    display: inline;
    color: var(--muted);
}

.legal-consent-label a {
    color: var(--text);
    text-decoration: underline;
    font-weight: 700;
    text-underline-offset: 2px;
}

.legal-consent-note {
    margin: 8px auto 0;
    min-height: 0;
    font-size: 0.86rem;
    line-height: 1.35;
    color: #b42318;
    text-align: center;
}

.legal-consent-note:empty {
    display: none;
}

@media (max-width: 560px) {
    .legal-consent-box {
        padding: 12px 14px;
        border-radius: 14px;
    }

    .legal-consent-label input[type="checkbox"] {
        width: 18px;
        height: 18px;
    }

    .legal-consent-note {
        margin-left: 0;
    }
}

.price-note {
  font-size: 16px;
  font-weight: 500;
  opacity: 0.75;
  margin-left: 4px;
}

.small-note {
  font-size: 14px;
  opacity: 0.75;
  margin-top: 12px;
}

.pricing-coupon-note {
    max-width: 860px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(17, 19, 24, 0.10);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.95rem;
  text-align: center;
}

.pricing-coupon-note strong {
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.04em;
}

.credits-note {
    max-width: 860px;
  margin: 24px auto 0;
  padding: 14px 16px;
  border: 1px solid rgba(17, 19, 24, 0.10);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
  text-align: center;
}

.credits-note strong {
  color: var(--text);
  font-weight: 800;
}
