/* =========================================================
   CaptchaPress / کپچاپرس — Landing Page
   Converted from Figma design to Bootstrap 5 + jQuery
   ========================================================= */

:root {
    --bg-deep: #0a0f1e;
    --bg-deep-2: #080d1a;
    --bg-deep-3: #040810;
    --panel: #111827;
    --panel-2: #1e293b;
    --panel-3: #0f172a;
    --cyan: #06b6d4;
    --cyan-2: #0891b2;
    --green: #22c55e;
    --amber: #f59e0b;
    --purple: #8b5cf6;
    --red: #ef4444;
    --text-bright: #f1f5f9;
    --text: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --text-dimmer: #475569;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'YekanBakh', sans-serif;
    background: var(--bg-deep);
    color: var(--text);
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

a {
    text-decoration: none;
}

.pt-5 {
    padding-top: 4rem;
}

.cp-mono {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

/* ---------- Gradient button ---------- */
.btn-cp {
    background: linear-gradient(135deg, var(--cyan-2), var(--cyan));
    color: #fff;
    border: none;
    border-radius: 0.9rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 32px rgba(6, 182, 212, 0.35);
}

.btn-cp:hover {
    transform: scale(1.05);
    color: #fff;
}

.btn-cp:active {
    transform: scale(0.96);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn-ghost:hover {
    transform: scale(1.03);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

/* ---------- Section pill / badge ---------- */
.cp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan);
    font-size: 0.8rem;
}

.section {
    padding: 6rem 0;
}

.section-title {
    font-weight: 700;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--text-bright);
    line-height: 1.5;
}

.section-sub {
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 36rem;
    margin: 0.75rem auto 0;
}

/* lucide icon sizing helper */
[data-lucide] {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
}

/* =========================================================
   NAVBAR
   ========================================================= */
.cp-navbar {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 1050;
    background: rgba(10, 15, 30, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cp-navbar .inner {
    max-width: 80rem;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cp-logo {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.cp-logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--cyan-2), var(--cyan));
    color: #fff;
}

.cp-logo-name {
    color: var(--text);
    font-weight: 700;
    font-size: 1.1rem;
}

.cp-version {
    padding: 0.1rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.25);
    color: var(--cyan);
}

.cp-nav-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.cp-nav-links a {
    color: var(--text-dim);
    font-size: 0.88rem;
    transition: color 0.2s;
}

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

.cp-menu-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    border-radius: 0.6rem;
    padding: 0.5rem;
    cursor: pointer;
    line-height: 0;
}

.cp-mobile-menu {
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(10, 15, 30, 0.98);
}

.cp-mobile-menu .inner-m {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cp-mobile-menu a {
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
    background: linear-gradient(135deg, #0a0f1e 0%, #0d1a2e 40%, #0a1628 100%);
}

.hero-grid {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: linear-gradient(rgba(6, 182, 212, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 1) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    max-width: 100%;
    height: 400px;
    opacity: 0.2;
    pointer-events: none;
    background: radial-gradient(ellipse at center, var(--cyan) 0%, transparent 70%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 80rem;
    width: 100%;
    padding: 5rem 1.5rem;
}

.hero h1 {
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3.5rem);
    color: var(--text-bright);
    line-height: 1.4;
    max-width: 56rem;
    margin: 0 auto;
}

.hero-sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: var(--text-muted);
    line-height: 1.9;
    max-width: 42rem;
    margin: 0 auto;
}

.trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.9rem;
}

.trust-item .ico {
    color: var(--cyan);
    display: inline-flex;
}

/* ---------- Browser mockup ---------- */
.mockup {
    max-width: 64rem;
    margin: 0 auto;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(6, 182, 212, 0.1);
    background: var(--panel-2);
}

.mockup-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--panel-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.mockup-url {
    flex: 1;
    margin: 0 1rem;
    padding: 0.25rem 1rem;
    border-radius: 0.4rem;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    font-size: 0.72rem;
    text-align: left;
    direction: ltr;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.wp-shell {
    display: flex;
    min-height: 380px;
}

.wp-sidebar {
    width: 12rem;
    flex-shrink: 0;
    padding: 0.75rem;
    background: #1e1e1e;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.wp-side-head {
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
}

.wp-side-logo {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.35rem;
    background: var(--cyan);
    margin-bottom: 0.35rem;
}

.wp-side-label {
    color: #a0aec0;
    font-size: 0.7rem;
}

.wp-side-item {
    padding: 0.5rem 0.75rem;
    border-radius: 0.6rem;
    margin-bottom: 0.25rem;
    color: #718096;
    font-size: 0.75rem;
}

.wp-side-item.active {
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
}

.wp-side-item.cp {
    margin-top: 0.5rem;
    background: rgba(6, 182, 212, 0.25);
    border: 1px solid rgba(6, 182, 212, 0.4);
    color: var(--cyan);
}

.wp-main {
    flex: 1;
    padding: 1.5rem;
    background: #f0f0f1;
    direction: rtl;
}

.wp-title {
    font-size: 0.85rem;
    color: #1d2327;
    font-weight: 700;
    margin-bottom: 1rem;
}

.wp-tabs {
    display: flex;
    border-bottom: 1px solid #c3c4c7;
    margin-bottom: 1rem;
}

.wp-tab {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    color: #787c82;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.wp-tab.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
}

.wp-card {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 0.5rem;
    padding: 1rem;
}

.wp-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.wp-row:last-of-type {
    margin-bottom: 0;
}

.wp-label {
    color: #3c434a;
    font-size: 0.8rem;
}

.wp-chip {
    background: #2271b1;
    color: #fff;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 0.3rem;
}

.wp-val {
    color: #2271b1;
    font-size: 0.8rem;
}

.wp-toggle {
    width: 2rem;
    height: 1rem;
    border-radius: 999px;
    background: #2271b1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 2px;
}

.wp-toggle span {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background: #fff;
    display: block;
}

.wp-save {
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f0f0f1;
}

.wp-save button {
    background: #2271b1;
    color: #fff;
    border: none;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border-radius: 0.3rem;
    cursor: pointer;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.cmp-wrap {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.cmp-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.cmp-head {
    background: var(--panel-3);
}

.cmp-head > div {
    padding: 1rem 1.5rem;
}

.cmp-head .feat {
    color: var(--text-dim);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cmp-head .cp {
    text-align: center;
    background: rgba(6, 182, 212, 0.08);
    border-bottom: 2px solid var(--cyan);
    border-right: 1px solid rgba(6, 182, 212, 0.15);
}

.cmp-head .cp .t {
    color: var(--cyan);
    font-weight: 700;
}

.cmp-head .cp .s {
    color: var(--text-muted);
    font-size: 0.7rem;
}

.cmp-head .gg {
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.cmp-head .gg .t {
    color: var(--text-muted);
    font-weight: 600;
}

.cmp-head .gg .s {
    color: var(--text-dimmer);
    font-size: 0.7rem;
}

.cmp-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cmp-row:last-child {
    border-bottom: none;
}

.cmp-row.even {
    background: var(--panel-2);
}

.cmp-row.odd {
    background: #172033;
}

.cmp-row .feat {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.cmp-cell {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    text-align: center;
}

.cmp-cell.cp {
    background: rgba(6, 182, 212, 0.04);
    border-right: 1px solid rgba(6, 182, 212, 0.1);
}

.cmp-cell .line {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cmp-cell .v {
    font-size: 0.82rem;
}

.cmp-cell.cp .v.good {
    color: var(--text);
    font-weight: 600;
}

.cmp-cell.cp .v.plain {
    color: var(--text-muted);
}

.cmp-cell.gg .v {
    color: var(--text-dim);
}

.cmp-cell .note {
    font-size: 0.7rem;
}

.cmp-cell.cp .note {
    color: var(--text-dimmer);
}

.cmp-cell.gg .note {
    color: #374151;
}

/* =========================================================
   CHALLENGE SHOWCASE
   ========================================================= */
.challenges-bg {
    background: linear-gradient(180deg, #0a0f1e 0%, #0d1528 100%);
}

.ch-card {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: var(--panel);
    height: 100%;
}

.ch-head {
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ch-emoji {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.ch-title {
    color: var(--text);
    font-weight: 600;
    font-size: 0.95rem;
}

.ch-sub {
    font-size: 0.72rem;
    opacity: 0.8;
}

.ch-tag {
    margin-right: auto;
    padding: 0.1rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.72rem;
}

.ch-body {
    padding: 1rem;
}

.ch-inner {
    border-radius: 0.75rem;
    padding: 1.25rem;
    background: var(--panel-2);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.ch-inner-label {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.ch-hint {
    color: var(--text-dimmer);
    font-size: 0.75rem;
    text-align: center;
}

.ch-ok {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    color: var(--green);
    font-size: 0.8rem;
}

/* range slider challenge */
.range-track {
    position: relative;
    width: 100%;
    height: 0.75rem;
    border-radius: 999px;
    background: var(--panel-3);
    overflow: hidden;
}

.range-zone {
    position: absolute;
    top: 0;
    height: 100%;
    left: 60%;
    width: 18%;
    background: rgba(6, 182, 212, 0.25);
    border: 1px solid rgba(6, 182, 212, 0.5);
    border-radius: 999px;
}

.range-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 30%;
    border-radius: 999px;
    background: var(--cyan);
    transition: width 0.05s linear, background 0.2s;
}

.range-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 0.75rem;
    opacity: 0;
    cursor: pointer;
    margin: 0;
}

.range-holder {
    position: relative;
}

/* puzzle challenge */
.puzzle-track {
    position: relative;
    height: 60px;
    border-radius: 0.5rem;
    overflow: hidden;
    background: linear-gradient(135deg, #1e3a5f, #1a4a6e);
}

.puzzle-hole {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 60%;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background: rgba(0, 0, 0, 0.4);
    border: 2px dashed rgba(6, 182, 212, 0.5);
}

.puzzle-piece {
    position: absolute;
    top: 50%;
    left: 12%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cyan);
    box-shadow: 0 4px 12px rgba(6, 182, 212, 0.4);
    color: #fff;
    transition: left 0.05s linear, background 0.2s;
}

.cp-slider {
    width: 100%;
    cursor: pointer;
    accent-color: var(--cyan);
}

/* shapes challenge */
.shape-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.shape-btn {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 2px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.shape-btn.sel {
    background: rgba(6, 182, 212, 0.2);
    border-color: var(--cyan);
}

.shape-circle {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 50%;
}

.shape-square {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 0.15rem;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
}

.shape-verify {
    width: 100%;
    padding: 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.78rem;
    background: rgba(6, 182, 212, 0.15);
    color: var(--cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    cursor: pointer;
}

/* text challenge */
.text-captcha {
    height: 60px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.text-captcha .noise {
    position: absolute;
    width: 100%;
    height: 1px;
    background: rgba(6, 182, 212, 0.15);
}

.text-captcha .code {
    font-family: monospace;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: 0.3em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    transform: skew(-5deg);
}

.text-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: var(--panel-3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text);
    font-family: monospace;
    letter-spacing: 0.2em;
    text-align: center;
    direction: ltr;
    outline: none;
}

.text-input.ok {
    border-color: var(--green);
    color: var(--green);
}

/* not-a-robot */
.robot-box {
    border-radius: 1rem;
    padding: 1.5rem;
    min-width: 324px;
    max-width: 100%;
    margin: 0 auto;
    background: var(--panel-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.robot-check-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    margin-bottom: 1rem;
    width: 300px;
}

.robot-check {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 2px solid #c8c8c8;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    flex-shrink: 0;
    color: #fff;
}

.robot-check.on {
    background: var(--cyan);
    border-color: var(--cyan);
}

.robot-check [data-lucide] {
    display: none;
}

.robot-check.on [data-lucide] {
    display: inline;
}

.robot-label {
    color: #3c434a;
    font-size: 0.9rem;
    font-weight: 500;
}

.robot-icon {
    margin-right: auto;
    font-size: 1.5rem;
    cursor: pointer;
    user-select: none;
    line-height: 0;
}

.robot-icon img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    display: block;
}

/* =========================================================
   SETTINGS PANEL
   ========================================================= */
.settings-bg {
    background: #080d1a;
}

.logo-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.logo-strip .lead {
    color: var(--text-dimmer);
    font-size: 0.82rem;
}

.logo-chip {
    padding: 0.5rem 1rem;
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.logo-chip .dot2 {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.settings-panel {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.sp-head {
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--panel-3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-head-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--cyan);
}

.sp-head-title {
    color: var(--text);
    font-weight: 600;
}

.sp-status {
    margin-right: auto;
    padding: 0.1rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    background: rgba(34, 197, 94, 0.1);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.sp-tabs {
    display: flex;
    overflow-x: auto;
    background: var(--panel);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sp-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    white-space: nowrap;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim);
    font-family: 'YekanBakh', sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    flex-shrink: 0;
}

.sp-tab.active {
    background: rgba(6, 182, 212, 0.1);
    border-bottom-color: var(--cyan);
    color: var(--cyan);
}

.sp-body {
    padding: 1.5rem;
    background: #0d1117;
    min-height: 320px;
}

.sp-pane {
    display: none;
}

.sp-pane.active {
    display: block;
    animation: fadeX 0.25s ease;
}

@keyframes fadeX {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.sp-save {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* general tab */
.gen-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.gen-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.gen-val {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: space-between;
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(6, 182, 212, 0.08);
    border: 1px solid rgba(6, 182, 212, 0.2);
    color: var(--cyan);
    font-size: 0.82rem;
    min-width: 140px;
}

/* appearance tab */
.ap-label {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: block;
    margin-bottom: 0.75rem;
}

.chip-select {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-opt {
    padding: 0.35rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    cursor: pointer;
    font-family: 'YekanBakh', sans-serif;
}

.chip-opt.active {
    background: rgba(6, 182, 212, 0.15);
    border-color: var(--cyan);
    color: var(--cyan);
}

.font-preview {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--cyan);
    font-size: 1rem;
}

.mode-select {
    display: flex;
    gap: 0.5rem;
}

.mode-select .chip-opt {
    flex: 1;
    text-align: center;
}

.robot-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
    gap: 0.4rem;
}

.robot-grid .robot-opt {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
}

.robot-grid .robot-opt.active {
    background: rgba(6, 182, 212, 0.15);
    border: 2px solid var(--cyan);
}

/* integrations tab */
.int-group-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.int-group-title .hr {
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.06);
}

.int-group-title span {
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 600;
}

.int-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 0.5rem;
}

.int-row.on {
    background: rgba(6, 182, 212, 0.05);
    border-color: rgba(6, 182, 212, 0.15);
}

.int-left {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.int-logo {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #fff;
    font-family: monospace;
    flex-shrink: 0;
}

.int-name {
    color: var(--text);
    font-size: 0.85rem;
    font-weight: 500;
}

.int-name-en {
    color: var(--text-dimmer);
    font-size: 0.7rem;
    font-family: monospace;
}

.sw {
    position: relative;
    width: 40px;
    height: 22px;
    border-radius: 999px;
    background: #d1d5db;
    border: none;
    cursor: pointer;
    padding: 2px;
    flex-shrink: 0;
    transition: background 0.3s;
}

.sw.on {
    background: #2271b1;
}

.sw span {
    display: block;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s;
}

.sw.on span {
    transform: translateX(-18px);
}

/* shortcode tab */
.sc-intro {
    color: var(--text-dim);
    font-size: 0.85rem;
    line-height: 1.8;
}

.sc-intro code {
    color: var(--cyan);
    background: rgba(6, 182, 212, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.sc-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    margin-bottom: 0.75rem;
}

.sc-row.copied {
    border-color: var(--green);
}

.sc-code {
    font-family: monospace;
    color: var(--cyan);
    font-size: 0.85rem;
    direction: ltr;
    display: block;
}

.sc-desc {
    color: var(--text-dim);
    font-size: 0.75rem;
}

.sc-btn {
    padding: 0.25rem 0.5rem;
    border-radius: 0.35rem;
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-dimmer);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.sc-row.copied .sc-btn {
    background: rgba(34, 197, 94, 0.15);
    color: var(--green);
    border-color: rgba(34, 197, 94, 0.2);
}

/* help tab */
.faq-card {
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 1rem;
}

.faq-q {
    color: var(--cyan);
    font-weight: 600;
    font-size: 0.88rem;
    margin-bottom: 0.35rem;
}

.faq-a {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.8;
}

/* =========================================================
   FEATURES SECTION
   ========================================================= */
.features-bg {
    background: linear-gradient(180deg, #080d1a 0%, #0a0f1e 100%);
}

.feat-card {
    border-radius: 1rem;
    padding: 1.5rem;
    background: var(--panel);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.feat-ico {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.feat-title {
    color: var(--text-bright);
    font-weight: 700;
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.feat-sub {
    font-family: monospace;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 0.75rem;
}

.feat-desc {
    color: var(--text-dim);
    font-size: 0.82rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.feat-items {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feat-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feat-item-ico {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

.feat-item-label {
    color: var(--text);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.feat-item-desc {
    color: var(--text-dimmer);
    font-size: 0.72rem;
    line-height: 1.6;
}

.stat-card {
    border-radius: 1rem;
    padding: 1.25rem;
    text-align: center;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 100%;
}

.stat-val {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.1;
}

.stat-label {
    color: var(--text-dim);
    font-size: 0.8rem;
    margin-top: 0.4rem;
    line-height: 1.5;
}

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #060d1c 0%, #0a1628 50%, #060d1c 100%);
}

.final-glow {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 70%);
}

.final-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.03;
    background-image: linear-gradient(rgba(6, 182, 212, 1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 182, 212, 1) 1px, transparent 1px);
    background-size: 80px 80px;
}

.final-inner {
    position: relative;
    z-index: 2;
    max-width: 56rem;
    margin: 0 auto;
    text-align: center;
}

.final-inner h2 {
    font-weight: 800;
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    color: var(--text-bright);
    line-height: 1.4;
}

.final-inner p {
    color: var(--text-dim);
    font-size: 1.05rem;
    line-height: 1.9;
    max-width: 42rem;
    margin: 0 auto;
}

.final-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.final-trust .ti {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-dimmer);
    font-size: 0.85rem;
}

.final-trust .ti .ico {
    color: var(--cyan);
    display: inline-flex;
}

/* =========================================================
   FOOTER
   ========================================================= */
.cp-footer {
    padding: 3rem 0;
    background: var(--bg-deep-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.foot-top {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.foot-brand {
    max-width: 20rem;
}

.foot-brand p {
    color: var(--text-dimmer);
    font-size: 0.82rem;
    line-height: 1.9;
}

.foot-cols {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.foot-col-title {
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.foot-col a {
    display: block;
    color: var(--text-dimmer);
    font-size: 0.82rem;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.foot-col a:hover {
    color: var(--text-muted);
}

.foot-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.foot-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.foot-badge span:last-child {
    color: var(--text-dimmer);
    font-size: 0.75rem;
}

.foot-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.foot-bottom .copy {
    color: #334155;
    font-size: 0.8rem;
}

.foot-bottom .social {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #334155;
}

.foot-bottom .social a {
    color: #334155;
    display: inline-flex;
}

.foot-bottom .social a:hover {
    color: var(--text-dim);
}

.foot-bottom .rights {
    color: #1e293b;
    font-size: 0.75rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 991px) {
    .cp-nav-links, .nav-cta-desktop {
        display: none !important;
    }
}

@media (min-width: 992px) {
    .cp-menu-btn {
        display: none;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 4rem 0;
    }

    .wp-sidebar {
        display: none;
    }

    .cmp-grid, .cmp-row {
        grid-template-columns: 1.1fr 1fr 1fr;
    }

    .cmp-head > div, .cmp-cell, .cmp-row .feat {
        padding: 0.75rem 0.5rem;
    }

    .cmp-cell .v, .cmp-row .feat {
        font-size: 0.75rem;
    }

    .cmp-cell .note {
        display: none;
    }

    .robot-grid {
        grid-template-columns: repeat(6, 1fr);
    }

    .foot-cols {
        gap: 2rem;
    }
}

@media (max-width: 575px) {
    .hero-inner {
        padding: 3rem 1rem;
    }

    .mockup-url {
        font-size: 0.6rem;
    }
}

/* =========================================================
   FRONT-PAGE INLINE-STYLE REPLACEMENTS
   ========================================================= */

/* lucide icon sizes */
.cp-ico-12 {
    width: 12px;
    height: 12px;
}

.cp-ico-13 {
    width: 13px;
    height: 13px;
}

.cp-ico-14 {
    width: 14px;
    height: 14px;
}

.cp-ico-15 {
    width: 15px;
    height: 15px;
}

.cp-ico-16 {
    width: 16px;
    height: 16px;
}

.cp-ico-18 {
    width: 18px;
    height: 18px;
}

.cp-ico-20 {
    width: 20px;
    height: 20px;
}

/* button text sizes */
.btn-hero {
    font-size: 1rem;
}

.btn-save-sm {
    font-size: 0.88rem;
}

.btn-final-primary {
    font-size: 1.1rem;
    border-radius: 1rem;
}

.btn-final-secondary {
    font-size: 0.95rem;
    border-radius: 1rem;
}

/* container widths */
.container-64 {
    max-width: 64rem;
}

.container-72 {
    max-width: 72rem;
}

/* compare section background */
.compare-bg {
    background: var(--bg-deep);
}

/* =========================================================
   Global font: force YekanBakh everywhere
   ========================================================= */
:root {
    --bs-font-sans-serif: 'YekanBakh', sans-serif;
    --bs-body-font-family: 'YekanBakh', sans-serif;
}

*,
*::before,
*::after,
input,
button,
textarea,
select,
h1, h2, h3, h4, h5, h6 {
    font-family: 'YekanBakh', sans-serif !important;
}

/* mockup window dots */
.dot-red {
    background: var(--red);
}

.dot-amber {
    background: var(--amber);
}

.dot-green {
    background: var(--green);
}

/* challenge accent variants */
.ch-emoji-cyan {
    background: #06b6d418;
}

.ch-emoji-purple {
    background: #8b5cf618;
}

.ch-emoji-amber {
    background: #f59e0b18;
}

.ch-emoji-green {
    background: #22c55e18;
}

.ch-sub-cyan {
    color: #06b6d4;
}

.ch-sub-purple {
    color: #8b5cf6;
}

.ch-sub-amber {
    color: #f59e0b;
}

.ch-sub-green {
    color: #22c55e;
}

.ch-tag-cyan {
    background: #06b6d415;
    color: #06b6d4;
    border: 1px solid #06b6d430;
}

.ch-tag-purple {
    background: #8b5cf615;
    color: #8b5cf6;
    border: 1px solid #8b5cf630;
}

.ch-tag-amber {
    background: #f59e0b15;
    color: #f59e0b;
    border: 1px solid #f59e0b30;
}

.ch-tag-green {
    background: #22c55e15;
    color: #22c55e;
    border: 1px solid #22c55e30;
}

/* challenge reset icon */
.ch-reset {
    width: 13px;
    height: 13px;
    color: var(--text-dimmer);
    cursor: pointer;
}

/* text captcha noise lines */
.noise-1 {
    top: 15%;
    transform: rotate(-4.5deg);
}

.noise-2 {
    top: 35%;
    transform: rotate(-1.5deg);
}

.noise-3 {
    top: 55%;
    transform: rotate(1.5deg);
}

.noise-4 {
    top: 75%;
    transform: rotate(4.5deg);
}

/* shapes challenge highlighted word */
.shape-hl {
    color: var(--cyan);
    font-weight: 600;
}

/* not-a-robot block */
.robot-heading {
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 500;
}

.robot-subheading {
    color: var(--text-dimmer);
    font-size: 0.85rem;
}

.robot-hint {
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* integration logo chips */
.logo-chip-woo {
    background: #7f54b310;
    border: 1px solid #7f54b330;
    color: #7f54b3;
}

.logo-chip-woo .dot2 {
    background: #7f54b3;
}

.logo-chip-digits {
    background: #0073aa10;
    border: 1px solid #0073aa30;
    color: #0073aa;
}

.logo-chip-digits .dot2 {
    background: #0073aa;
}

.logo-chip-gravity {
    background: #ff6b3510;
    border: 1px solid #ff6b3530;
    color: #ff6b35;
}

.logo-chip-gravity .dot2 {
    background: #ff6b35;
}

.logo-chip-cf7 {
    background: #d6363810;
    border: 1px solid #d6363830;
    color: #d63638;
}

.logo-chip-cf7 .dot2 {
    background: #d63638;
}

/* feature stat values */
.stat-val-cyan {
    color: #06b6d4;
}

.stat-val-purple {
    color: #8b5cf6;
}

.stat-val-amber {
    color: #f59e0b;
}

.stat-val-green {
    color: #22c55e;
}

.ch-inner form {
    display: block;
    width: 300px;
    margin: auto;
    text-align: center;
    position: relative;
}