/* =====================================================
   Cheburnet VPN — Landing Page Styles
   "Working artboard" dark-canvas system:
   pure-black surfaces, white display type, a single
   confident blue reserved for links/focus, and a small
   family of gradient spotlight cards as atmosphere.
   ===================================================== */

/* ── Variables ─────────────────────────────────────── */
:root {
    /* Surfaces (canvas → surface-1 → surface-2) */
    --bg: #090909;
    --bg-2: #0d0d0d;
    --card: #141414;
    --card-2: #1c1c1c;
    --hairline: #262626;
    --hairline-soft: #1a1a1a;
    --border: rgba(255, 255, 255, .08);
    --border-a: rgba(255, 255, 255, .18);

    /* Ink */
    --text: #ffffff;
    --text-2: #999999;
    --muted: #6b6b6b;

    /* Single chromatic accent — links / focus / selection only */
    --blue: #0099ff;

    /* Brand gradient family — used ONLY on spotlight cards / brand marks */
    --violet: #6a4cf5;
    --magenta: #d44df0;
    --orange: #ff7a3d;
    --coral: #ff5577;
    --grad: linear-gradient(135deg, #6a4cf5 0%, #d44df0 100%);
    --grad-c: linear-gradient(135deg, #6a4cf5 0%, #0099ff 100%);
    --grad-warm: linear-gradient(135deg, #ff7a3d 0%, #ff5577 100%);

    /* Icon / inline accents inside cards stay monochrome */
    --accent: #ffffff;
    --accent-l: #ffffff;
    --accent-d: #d4d4d4;

    /* Semantic */
    --green: #22c55e;
    --yellow: #f59e0b;
    --red: #ef4444;
    --cyan: #0099ff;

    --shadow: 0 24px 60px rgba(0, 0, 0, .55);
    --shadow-sm: 0 8px 30px rgba(0, 0, 0, .35);
    --glow: 0 0 0 1px var(--hairline);

    /* Radius scale (Framer): pill / xxl / xl / lg / md / sm */
    --r: 15px;
    --r-lg: 20px;
    --r-xl: 30px;
    --r-pill: 100px;
    --tr: .22s cubic-bezier(.4, 0, .2, 1);

    /* Fonts */
    --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    /* ── iOS / Telegram safe-area insets ──────────────── */
    --sat: env(safe-area-inset-top, 0px);
    --sab: env(safe-area-inset-bottom, 0px);
    --sal: env(safe-area-inset-left, 0px);
    --sar: env(safe-area-inset-right, 0px);

    /* Navbar height tokens (used for hero offset etc.) */
    --navbar-h: 60px;
    --navbar-top-offset: calc(var(--navbar-h) + var(--sat));
}

/* ── Reset / Base ──────────────────────────────────── */
*,
::before,
::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
    letter-spacing: -.011em;
    font-feature-settings: "cv11", "ss03", "cv05", "cv09";
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--blue);
    text-decoration: none;
    transition: color var(--tr), opacity var(--tr);
}

a:hover {
    color: var(--blue);
    opacity: .8;
}

::selection {
    background: rgba(0, 153, 255, .28);
    color: #fff;
}

/* ── Scrollbar ─────────────────────────────────────── */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* ── Typography helpers ────────────────────────────── */
.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5.2vw, 3.4rem);
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.045em;
    line-height: 1.02;
}

.section-subtitle {
    color: var(--text-2);
    font-size: 1.0625rem;
    letter-spacing: -.012em;
}

/* ── Navbar ────────────────────────────────────────── */
.custom-navbar {
    background: rgba(9, 9, 9, .6);
    backdrop-filter: blur(20px) saturate(140%);
    -webkit-backdrop-filter: blur(20px) saturate(140%);
    border-bottom: 1px solid transparent;
    transition: background var(--tr), border-color var(--tr);
    padding-top: calc(0.55rem + env(safe-area-inset-top, 0px));
    padding-bottom: .55rem;
    padding-left: calc(0.5rem + env(safe-area-inset-left, 0px));
    padding-right: calc(0.5rem + env(safe-area-inset-right, 0px));
}

.custom-navbar.scrolled {
    background: rgba(9, 9, 9, .82);
    border-bottom-color: var(--hairline-soft);
}

/* ── Navbar toggler — left side ── */
.custom-navbar .navbar-toggler {
    margin-right: .5rem;
    margin-left: 0;
    border: 1px solid var(--hairline);
    padding: .35rem .5rem;
    border-radius: 10px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.custom-navbar .navbar-toggler:focus {
    box-shadow: 0 0 0 3px rgba(0, 153, 255, .35);
    outline: none;
}

.custom-navbar .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2c255%2c255%2c.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Expanded mobile menu — glass panel below the navbar */
@media (max-width: 991.98px) {

    .custom-navbar .navbar-collapse.show,
    .custom-navbar .navbar-collapse.collapsing {
        border-top: 1px solid var(--hairline-soft);
        margin-top: .5rem;
        padding-top: .5rem;
        padding-bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
    }

    .custom-navbar .navbar-nav .nav-link {
        padding: .65rem 1rem !important;
        border-radius: 10px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .custom-navbar .navbar-nav .nav-link:active {
        background: var(--card);
    }
}

.logo-shield {
    width: 34px;
    height: 34px;
    background: var(--grad);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    color: #fff;
    flex-shrink: 0;
}

.logo-text {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.0625rem;
    letter-spacing: -.04em;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

/* Brand wordmark logo (white SVG on the dark canvas) */
.brand-wordmark {
    height: 35px;
    width: auto;
    display: block;
}

.footer-brand .brand-wordmark {
    height: 55px;
}

.loading-wordmark {
    height: 30px;
    width: auto;
    display: block;
    margin: 0 auto;
}

.custom-navbar .nav-link {
    color: var(--text-2) !important;
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: -.012em;
    padding: .4rem .9rem !important;
    border-radius: 10px;
    transition: color var(--tr), background var(--tr);
}

.custom-navbar .nav-link:hover {
    color: var(--text) !important;
    background: var(--card);
}

/* ── Buttons (pill vocabulary) ─────────────────────── */
.btn {
    font-family: var(--font-body);
    letter-spacing: -.012em;
}

.hero-actions .btn {
    border-radius: var(--r-pill);
    font-weight: 500;
    padding: .8rem 1.6rem;
}

/* Primary CTA — white pill on dark */
.btn-primary {
    background: #ffffff !important;
    border: 1px solid #ffffff !important;
    color: #000000 !important;
    border-radius: var(--r-pill) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
    transition: transform var(--tr), background var(--tr), box-shadow var(--tr) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background: #ececec !important;
    border-color: #ececec !important;
    color: #000 !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, .12) !important;
}

.btn-primary:active {
    transform: scale(.98);
}

/* Secondary — charcoal pill */
.btn-outline-light,
.btn-secondary {
    background: var(--card-2) !important;
    border: 1px solid var(--hairline) !important;
    color: var(--text) !important;
    border-radius: var(--r-pill) !important;
    font-weight: 500 !important;
    transition: background var(--tr), border-color var(--tr), transform var(--tr) !important;
}

.btn-outline-light:hover,
.btn-secondary:hover {
    background: #242424 !important;
    border-color: var(--border-a) !important;
    color: var(--text) !important;
    transform: translateY(-1px);
}

/* Success — restrained semantic pill (copy feedback, "go to bot") */
.btn-success {
    background: rgba(34, 197, 94, .14) !important;
    border: 1px solid rgba(34, 197, 94, .45) !important;
    color: #4ade80 !important;
    border-radius: var(--r-pill) !important;
    font-weight: 500 !important;
}

.btn-success:hover {
    background: rgba(34, 197, 94, .22) !important;
    color: #86efac !important;
}

.btn-lg {
    font-size: 1rem;
}

.btn-sm {
    border-radius: var(--r-pill) !important;
}

/* ── Hero ──────────────────────────────────────────── */
.hero-new {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    padding-top: calc(80px + env(safe-area-inset-top, 0px));
    background:
        radial-gradient(60% 50% at 50% -8%, rgba(106, 76, 245, .22) 0%, transparent 68%),
        radial-gradient(45% 38% at 86% 4%, rgba(212, 77, 240, .12) 0%, transparent 70%),
        var(--bg);
}

.hero-new>.container {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    width: 100%;
}

/* Row must span the full container so the centered column truly centers */
.hero-new>.container>.row {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* faint dotted artboard texture */
.hero-new::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image: radial-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 32px 32px;
    -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
    mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
    pointer-events: none;
}

.hero-new::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    background-image: url('../img/brand-hero-bg.png');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    opacity: .76;
    mix-blend-mode: screen;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .95) 58%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .95) 58%, transparent 100%);
    pointer-events: none;
}

.hero-content-new {
    position: relative;
    z-index: 2;
}

.hero-content-new::before {
    content: '';
    position: absolute;
    inset: -3rem -4rem;
    z-index: -1;
    background: radial-gradient(ellipse at 50% 45%, rgba(9, 9, 9, .86) 0%, rgba(9, 9, 9, .58) 48%, transparent 76%);
    pointer-events: none;
}

.hero-title-new {
    font-family: var(--font-display);
    font-size: clamp(2.6rem, 8.2vw, 5.5rem);
    font-weight: 600;
    line-height: .92;
    letter-spacing: -.05em;
}

.title-main {
    display: block;
    color: var(--text);
}

.title-highlight {
    display: block;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.hero-subtitle-new {
    color: var(--text-2);
    font-size: 1.15rem;
    line-height: 1.4;
    max-width: 540px;
    margin: 0 auto;
    letter-spacing: -.014em;
}

/* Stat tiles */
.stat-item-new {
    padding: 1.4rem 1rem;
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r);
    transition: border-color var(--tr), background var(--tr);
}

.stat-item-new:hover {
    border-color: var(--hairline);
    background: var(--card-2);
}

.stat-number-new {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.stat-label-new {
    color: var(--text-2);
    font-size: .85rem;
    letter-spacing: -.01em;
}

/* Feature badges — charcoal pills */
.feature-badge {
    display: inline-flex;
    align-items: center;
    padding: .5rem 1rem;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-size: .875rem;
    font-weight: 500;
    letter-spacing: -.012em;
    transition: border-color var(--tr), color var(--tr);
}

.feature-badge:hover {
    border-color: var(--border-a);
    color: var(--text);
}

.feature-badge i {
    color: var(--text);
}

/* ── Demo Section ──────────────────────────────────── */
.demo {
    background: var(--bg);
}

.demo-instructions {
    padding: 2rem 0;
}

.instruction-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.step-number {
    width: 36px;
    height: 36px;
    background: var(--card-2);
    border: 1px solid var(--hairline);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .9rem;
}

.step-connector {
    width: 1px;
    height: 30px;
    background: var(--hairline);
    margin-top: 6px;
}

.step-title {
    font-weight: 600;
    margin-bottom: .25rem;
    letter-spacing: -.018em;
}

.step-description {
    color: var(--text-2);
    font-size: .9rem;
}

/* Hold button / demo key container */
.demo-key-container {
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-xl);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.key-content-wrapper {
    text-align: center;
}

.key-activation-area {
    padding: 2rem 1rem;
}

.activation-circle {
    position: relative;
    width: 130px;
    height: 130px;
    margin: 0 auto 1.5rem;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

/* SVG progress ring */
.circle-progress-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    pointer-events: none;
}

.circle-progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, .08);
    stroke-width: 4;
}

.circle-progress-fill {
    fill: none;
    stroke: url(#ringGrad);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 351;
    stroke-dashoffset: 351;
    transition: none;
}

/* Background fill glow */
.circle-fill {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--grad);
    opacity: 0;
    transform: scale(0.6);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.activation-circle.holding .circle-fill {
    transform: scale(1);
    opacity: .22;
    transition: none;
}

/* Idle pulse ring */
.circle-waves {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 1px solid rgba(106, 76, 245, .35);
    animation: pulse 2.2s ease-in-out infinite;
    pointer-events: none;
}

.activation-circle.holding .circle-waves {
    animation: none;
    opacity: 0;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: .5;
    }

    50% {
        transform: scale(1.1);
        opacity: .1;
    }
}

.circle-inner {
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    background: var(--grad);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #fff;
    box-shadow: 0 0 40px rgba(106, 76, 245, .45);
    transition: transform .15s ease, box-shadow .15s ease;
}

.activation-circle:hover .circle-inner {
    box-shadow: 0 0 56px rgba(106, 76, 245, .65);
}

.activation-circle.holding .circle-inner {
    transform: scale(.92);
    box-shadow: 0 0 64px rgba(212, 77, 240, .7);
}

.activation-circle:active .circle-inner {
    transform: scale(.9);
}

.activation-instruction {
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.018em;
}

.activation-hint {
    color: var(--text-2);
    font-size: .85rem;
}

.vless-key {
    text-align: left;
}

.key-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .5rem;
    font-weight: 600;
}

.key-warning {
    font-size: .75rem;
    color: var(--yellow);
}

.key-expiry {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: var(--text-2);
    font-size: .875rem;
    margin-bottom: 1rem;
}

#copyBtn,
#botBtn {
    border-radius: var(--r-pill) !important;
    font-weight: 500;
}

.demo-info {
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35rem;
    color: var(--text-2);
    font-size: .875rem;
}

.info-item i {
    font-size: 1.4rem;
    color: var(--text);
}

.demo-notice {
    background: var(--card-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    padding: .85rem 1rem;
    color: var(--text-2);
    font-size: .85rem;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
}

.demo-notice i {
    color: var(--text);
    flex-shrink: 0;
    margin-top: .1rem;
}

/* ── Pricing ───────────────────────────────────────── */
.pricing {
    background: var(--bg);
}

.pricing-card {
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-lg);
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform var(--tr), border-color var(--tr), background var(--tr);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: var(--hairline);
    background: var(--card-2);
}

/* Recommended = violet gradient spotlight card */
.pricing-card.recommended {
    background:
        radial-gradient(120% 90% at 0% 0%, rgba(212, 77, 240, .5) 0%, transparent 55%),
        linear-gradient(160deg, #6a4cf5 0%, #4b32c9 100%);
    border-color: transparent;
    border-radius: var(--r-xl);
    box-shadow: 0 24px 60px rgba(106, 76, 245, .32);
}

.pricing-card.recommended .pricing-label,
.pricing-card.recommended .price-currency,
.pricing-card.recommended ul {
    color: rgba(255, 255, 255, .82) !important;
}

.pricing-card.recommended ul i {
    color: #fff !important;
}

.pricing-card.recommended .price-amount {
    color: #fff;
    -webkit-text-fill-color: #fff;
}

.recommended-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    color: #000;
    font-size: .68rem;
    font-weight: 600;
    padding: .25rem .65rem;
    border-radius: var(--r-pill);
    letter-spacing: -.01em;
}

.pricing-label {
    color: var(--text-2);
    font-size: .8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: 1rem;
}

.pricing-price {
    margin-bottom: 1rem;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3.2rem;
    font-weight: 600;
    letter-spacing: -.05em;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.price-currency {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-2);
}

.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    width: 100%;
    padding: .7rem 1.4rem;
    background: #fff;
    color: #000 !important;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 500;
    letter-spacing: -.012em;
    transition: transform var(--tr), background var(--tr);
}

.pricing-btn:hover {
    transform: translateY(-1px);
    background: #ececec;
    color: #000 !important;
    opacity: 1;
}

/* ── Partnership / Calculator ──────────────────────── */
.partnership {
    background: var(--bg);
}

.calculator-tabs {
    display: flex;
    gap: .6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: .6rem 1.2rem;
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-pill);
    color: var(--text-2);
    font-weight: 500;
    font-size: .9rem;
    letter-spacing: -.012em;
    cursor: pointer;
    transition: all var(--tr);
}

.tab-button:hover {
    border-color: var(--hairline);
    color: var(--text);
}

/* selected = lift, not colour */
.tab-button.active {
    background: #fff;
    border-color: #fff;
    color: #000;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.calculator-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

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

.calculator-inputs,
.calculator-results {
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-lg);
    padding: 1.75rem;
}

.results-header h5 {
    font-weight: 600;
    color: var(--text);
    letter-spacing: -.02em;
    margin-bottom: .25rem;
}

.input-group-calc {
    margin-top: 1.4rem;
}

.input-group-calc label {
    font-weight: 500;
    color: var(--text-2);
    margin-bottom: .6rem;
    display: block;
    font-size: .9rem;
}

.input-range {
    width: 100%;
    accent-color: #fff;
    height: 5px;
    border-radius: 3px;
    cursor: pointer;
}

.range-value {
    text-align: right;
    color: var(--text);
    font-weight: 600;
    font-size: .9rem;
    margin-top: .5rem;
}

.result-card {
    background: var(--card-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    padding: 1.1rem 1.25rem;
    margin-top: 1rem;
}

.result-label {
    color: var(--text-2);
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 600;
}

.result-value {
    font-family: var(--font-display);
    font-size: 1.9rem;
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
    margin: .15rem 0;
}

.result-period {
    color: var(--muted);
    font-size: .8rem;
}

/* Program info */
.program-info {
    margin-top: 4rem;
}

.program-features {
    margin-top: 1.5rem;
}

.feature-item {
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-lg);
    padding: 1.6rem;
    text-align: center;
    transition: border-color var(--tr), transform var(--tr), background var(--tr);
}

.feature-item:hover {
    border-color: var(--hairline);
    background: var(--card-2);
    transform: translateY(-3px);
}

.feature-item i {
    font-size: 1.75rem;
    color: var(--text);
    display: block;
    margin-bottom: .85rem;
}

.feature-item h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.018em;
    margin-bottom: .4rem;
}

.feature-item p {
    color: var(--text-2);
    font-size: .875rem;
    margin: 0;
}

/* Program-info heading + CTA become a violet spotlight band */
.partnership-cta {
    text-align: center;
    margin-top: 2.5rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .9rem 2.2rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    border-radius: var(--r-pill);
    font-weight: 500;
    font-size: 1.0625rem;
    letter-spacing: -.014em;
    transition: transform var(--tr), background var(--tr);
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #ececec;
    color: #000;
    opacity: 1;
}

/* ── Footer ────────────────────────────────────────── */
.footer {
    background: var(--bg);
    border-top: 1px solid var(--hairline-soft);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}

.footer-brand p {
    color: var(--text-2);
    font-size: .9rem;
}

.footer-links h5 {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--text-2) !important;
}

.footer-links ul {
    padding-left: 0;
    list-style: none;
}

.footer-links li {
    margin-bottom: .5rem;
}

.footer-links a {
    color: var(--text-2) !important;
    text-decoration: none;
    font-size: .9rem;
    transition: color var(--tr);
}

.footer-links a:hover {
    color: var(--text) !important;
    opacity: 1;
}

.social-link {
    width: 38px;
    height: 38px;
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-2);
    font-size: 1rem;
    transition: all var(--tr);
}

.social-link:hover {
    background: var(--card-2);
    border-color: var(--border-a);
    color: #fff !important;
    opacity: 1;
}

/* ── Modals ────────────────────────────────────────── */
.modal-content {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r-xl);
    color: var(--text);
}

.modal-header {
    border-bottom: 1px solid var(--hairline-soft);
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--card);
    border-radius: var(--r-xl) var(--r-xl) 0 0;
}

.modal-title {
    letter-spacing: -.02em;
    font-weight: 600;
}

.modal-footer {
    border-top: 1px solid var(--hairline-soft);
    position: sticky;
    bottom: 0;
    z-index: 10;
    background: var(--card);
    border-radius: 0 0 var(--r-xl) var(--r-xl);
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.btn-close {
    filter: invert(1);
    opacity: .65;
}

.btn-close:hover {
    opacity: 1;
}

.text-primary {
    color: var(--text) !important;
}

/* Ensure modal body is scrollable on mobile / Telegram */
.modal-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: calc(80vh - 130px);
}

@media (max-width: 768px) {
    .modal-dialog {
        margin: calc(0.5rem + env(safe-area-inset-top, 0px)) 0.5rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem);
    }

    .modal-content {
        max-height: calc(100dvh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 1rem);
        display: flex;
        flex-direction: column;
    }

    .modal-body {
        flex: 1 1 auto;
        max-height: none;
    }
}

/* Platform selection */
.platform-card {
    background: var(--card-2);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all var(--tr);
}

.platform-card.active {
    border-color: var(--border-a);
    background: #242424;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

.platform-card:hover {
    border-color: var(--border-a);
}

.platform-icon {
    font-size: 2.5rem;
    color: var(--text);
    margin-bottom: .5rem;
}

/* Instruction cards */
.instruction-card {
    background: var(--card-2);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r);
    padding: 1.25rem;
}

.step-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.step-number-circle {
    width: 32px;
    height: 32px;
    background: var(--card);
    border: 1px solid var(--hairline);
    color: var(--text);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: .85rem;
    flex-shrink: 0;
}

.substeps {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.substep {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    font-size: .9rem;
}

.substep-number {
    background: var(--card);
    border: 1px solid var(--hairline);
    color: var(--text-2);
    font-size: .75rem;
    font-weight: 600;
    padding: .15rem .45rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* App options */
.app-option {
    background: var(--card);
    border: 1px solid var(--hairline);
    border-radius: var(--r);
    padding: 1rem;
}

.app-option.recommended {
    border-color: rgba(34, 197, 94, .4);
}

.app-info {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.app-icon {
    font-size: 1.5rem;
    color: var(--text);
}

.badge.bg-success {
    background: rgba(34, 197, 94, .16) !important;
    color: #4ade80 !important;
    font-weight: 600;
    border-radius: var(--r-pill);
}

.alert-warning {
    background: rgba(245, 158, 11, .1);
    border: 1px solid rgba(245, 158, 11, .3);
    color: #fbbf24;
    border-radius: var(--r);
}

/* Manual modal */
.manual-nav .manual-link {
    display: block;
    padding: .45rem .65rem;
    color: var(--text-2);
    text-decoration: none;
    border-radius: 8px;
    font-size: .9rem;
    transition: all var(--tr);
}

.manual-nav .manual-link:hover,
.manual-nav .manual-link.active {
    background: var(--card-2);
    color: var(--text);
    opacity: 1;
}

.manual-section {
    display: none;
}

.manual-section.active {
    display: block;
}

.manual-content h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -.03em;
}

.manual-step {
    margin-bottom: 1.25rem;
}

.manual-step h4 {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -.018em;
}

/* Device tabs */
.device-info {
    display: none;
}

.device-info.active {
    display: block;
}

.btn-outline-primary {
    border: 1px solid var(--hairline) !important;
    color: var(--text-2) !important;
    background: var(--card-2) !important;
    border-radius: var(--r-pill) !important;
    font-weight: 500 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary.active {
    background: #fff !important;
    border-color: #fff !important;
    color: #000 !important;
}

/* FAQ */
.faq-categories {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.faq-item {
    display: none;
}

.faq-item.show {
    display: block;
}

.accordion-item {
    background: var(--card-2) !important;
    border: 1px solid var(--hairline) !important;
    border-radius: var(--r) !important;
    margin-bottom: .5rem;
    overflow: hidden;
}

.accordion-button {
    background: var(--card-2) !important;
    color: var(--text) !important;
    font-weight: 500;
    letter-spacing: -.014em;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
    color: #fff !important;
    background: #242424 !important;
}

.accordion-body {
    background: var(--card-2);
    color: var(--text-2);
}

.accordion-button::after {
    filter: invert(1) brightness(.85);
}

/* Trouble / feature lists in manual */
.trouble-item,
.feature-list,
.security-info {
    margin-top: 1rem;
}

.trouble-item h4,
.security-info h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.feature-item-small {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
    font-size: .9rem;
}

/* ── Loading Screen ────────────────────────────────── */
.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    transition: opacity .6s ease, visibility .6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
}

.loading-logo {
    font-size: 2.6rem;
    color: var(--text);
    animation: preloader-pulse 2s ease-in-out infinite;
}

@keyframes preloader-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: .6;
    }
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -.03em;
    color: var(--text);
    -webkit-text-fill-color: var(--text);
}

.loading-dots {
    display: flex;
    gap: .45rem;
    align-items: center;
    height: 1rem;
}

.loading-dots span {
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-2);
    animation: dot-bounce .9s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: .15s;
}

.loading-dots span:nth-child(3) {
    animation-delay: .30s;
}

@keyframes dot-bounce {

    0%,
    80%,
    100% {
        transform: translateY(0);
        opacity: .4;
    }

    40% {
        transform: translateY(-8px);
        opacity: 1;
    }
}

.loading-hint {
    font-size: .78rem;
    color: var(--muted);
    letter-spacing: -.01em;
}

.loading-bar {
    width: 200px;
    height: 3px;
    background: var(--card-2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0;
    background: var(--grad);
    border-radius: 2px;
    animation: load-bar 4s cubic-bezier(.4, 0, .2, 1) forwards;
}

@keyframes load-bar {
    0% {
        width: 0;
    }

    60% {
        width: 75%;
    }

    90% {
        width: 92%;
    }

    100% {
        width: 100%;
    }
}

/* ── Pricing card entrance ──────────────────────────── */
@keyframes card-slide-up {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card-enter {
    opacity: 0;
    animation: card-slide-up .5s cubic-bezier(.22, 1, .36, 1) forwards;
}

/* ── Legal pages ───────────────────────────────────── */
.legal-page {
    padding-top: calc(100px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(60px + env(safe-area-inset-bottom, 0px));
}

.legal-page h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: -.04em;
    color: var(--text);
    margin-bottom: 1rem;
}

.legal-page h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -.025em;
    color: var(--text);
    margin: 2rem 0 .75rem;
}

.legal-page p,
.legal-page li {
    color: var(--text-2);
    line-height: 1.75;
}

.legal-page a {
    color: var(--blue);
}

.legal-page ul {
    padding-left: 1.5rem;
}

.legal-card {
    background: var(--card);
    border: 1px solid var(--hairline-soft);
    border-radius: var(--r-xl);
    padding: 2.5rem;
}

.text-muted {
    color: var(--muted) !important;
}

/* ── Utilities / Animations ────────────────────────── */
.animate-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-in .6s ease forwards;
}

@keyframes fade-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Responsive ────────────────────────────────────── */

/* ── Small phones ──────────────────────────────────── */
@media(max-width:576px) {
    .hero-actions .btn {
        width: 100%;
        margin: 0 0 .75rem !important;
    }

    .demo-key-container {
        padding: 1.25rem;
    }

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .hero-new {
        padding-top: calc(70px + env(safe-area-inset-top, 0px));
    }

    .hero-new::after {
        opacity: .58;
        background-position: center top;
    }

    .hero-content-new::before {
        inset: -2rem -1.25rem;
        background: radial-gradient(ellipse at 50% 42%, rgba(9, 9, 9, .88) 0%, rgba(9, 9, 9, .62) 52%, transparent 78%);
    }

    .hero-subtitle-new {
        font-size: 1.02rem;
    }

    .section-subtitle {
        font-size: .95rem;
    }

    .activation-circle {
        width: 130px !important;
        height: 130px !important;
    }

    .demo-info .row {
        flex-direction: column;
    }

    .calculator-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap !important;
        padding-bottom: .5rem;
    }

    .tab-button {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .program-features .col-12.col-sm-6.col-lg-3 {
        width: 50%;
    }

    .hero-features-new .col-auto {
        padding: .2rem;
    }

    .feature-badge {
        font-size: .78rem;
        padding: .4rem .8rem;
    }

    .footer .row>div {
        margin-bottom: 1.5rem;
    }

    .demo-notice {
        font-size: .82rem;
    }

    .cta-button {
        width: 100%;
        justify-content: center;
        font-size: .95rem;
        padding: .85rem 1.5rem;
    }

    .legal-card {
        padding: 1.5rem;
    }
}

/* ── Tablets (576–768px) ───────────────────────────── */
@media(min-width:576px) and (max-width:768px) {
    .hero-new {
        padding-top: calc(76px + env(safe-area-inset-top, 0px));
    }

    .program-features .col-12.col-sm-6 {
        width: 50%;
    }
}

/* ── All mobile (≤768px) ───────────────────────────── */
@media(max-width:768px) {
    .hero-stats-new {
        margin-top: 1.5rem;
    }

    .stat-item-new {
        padding: .9rem .5rem;
    }

    .stat-number-new {
        font-size: 1.7rem;
    }

    .demo-instructions {
        margin-bottom: 1.5rem;
    }

    .instruction-step {
        align-items: flex-start;
    }

    .pricing-grid .col-lg-4,
    .pricing-grid .col-md-6 {
        margin-bottom: 1rem;
    }

    .calculator-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .program-features .col-lg-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    .feature-item {
        padding: 1.2rem;
    }

    .feature-item i {
        font-size: 1.5rem;
    }

    .footer-brand {
        text-align: center;
    }

    .footer-brand .d-flex {
        justify-content: center;
    }

    .footer-brand .social-links {
        justify-content: center;
        display: flex;
    }

    .footer .footer-links h5,
    .footer .footer-links ul {
        text-align: left;
    }

    .partnership-cta .cta-button {
        display: flex;
        width: fit-content;
        margin: 0 auto;
    }
}

/* ── Landscape phones ──────────────────────────────── */
@media(max-width:768px) and (orientation:landscape) {
    .hero-new {
        min-height: auto;
        padding-top: calc(80px + env(safe-area-inset-top, 0px));
        padding-bottom: 3rem;
    }

    .hero-stats-new {
        display: none !important;
    }
}

/* ── Touch-friendly tap targets ────────────────────── */
@media(hover: none) {
    .tab-button {
        padding: .6rem 1.1rem;
    }

    .pricing-btn {
        padding: .8rem 1.5rem;
    }

    .cta-button {
        padding: .9rem 2rem;
    }

    .nav-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .pricing-card:hover {
        transform: none;
    }

    .feature-item:hover {
        transform: none;
    }
}

/* ── Motion & micro-interactions ───────────────────── */
/* Animated nav underline */
.custom-navbar .nav-link {
    position: relative;
}

@media (min-width: 992px) {
    .custom-navbar .nav-link::after {
        content: '';
        position: absolute;
        left: .9rem;
        right: .9rem;
        bottom: .2rem;
        height: 1px;
        background: currentColor;
        transform: scaleX(0);
        transform-origin: left;
        opacity: .6;
        transition: transform var(--tr);
    }

    .custom-navbar .nav-link:hover::after {
        transform: scaleX(1);
    }
}

/* Tactile press on pills */
.btn-primary:active,
.btn-outline-light:active,
.btn-secondary:active,
.pricing-btn:active,
.cta-button:active,
.tab-button:active {
    transform: scale(.97);
}

/* Logo shield subtle float on hover */
.navbar-brand:hover .logo-shield {
    transform: translateY(-1px) rotate(-3deg);
    transition: transform var(--tr);
}

/* Reveal-on-scroll base state (elements opted-in via JS) */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s cubic-bezier(.22, 1, .36, 1), transform .6s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

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

/* ── Telegram in-app browser / iOS WebApp fixes ──── */
a,
button,
[role="button"] {
    -webkit-tap-highlight-color: transparent;
}

.pricing-tabs,
.calculator-tabs,
.navbar-collapse {
    -webkit-overflow-scrolling: touch;
}

/* Prevent over-scroll bounce showing wrong bg on iOS */
body::before {
    content: '';
    position: fixed;
    top: -50vh;
    left: 0;
    right: 0;
    height: 50vh;
    background: var(--bg);
    z-index: -1;
}
