:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-card-hover: #222222;
    --bg-input: #1e1e1e;
    --border: #2a2a2a;
    --border-light: #333333;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #ffffff;
    --accent-dim: rgba(255, 255, 255, 0.1);
    --green: #22c55e;
    --green-bg: rgba(34, 197, 94, 0.1);
    --red: #ef4444;
    --red-bg: rgba(239, 68, 68, 0.1);
    --yellow: #eab308;
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-primary);
    text-decoration: none;
}

/* ── Layout ── */
.app-container {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
    padding-bottom: 80px;
}

/* ── Top bar ── */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    position: sticky;
    top: 0;
    background: var(--bg-primary);
    z-index: 100;
}

.top-bar__title {
    font-size: 18px;
    font-weight: 600;
}

.top-bar__actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 18px;
}

.icon-btn:hover {
    background: var(--bg-card-hover);
}

/* ── Balance Card ── */
.balance-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 20px 20px;
    padding: 32px 24px;
    text-align: center;
}

.balance-card__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--text-secondary);
}

.balance-card__amount {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.balance-card__pnl {
    font-size: 13px;
    color: var(--green);
}

.balance-card__pnl.negative {
    color: var(--red);
}

.balance-card__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: all 0.2s;
    text-decoration: none;
}

.btn:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn--primary {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn--primary:hover {
    background: #e0e0e0;
    border-color: #e0e0e0;
    color: var(--bg-primary);
}

.btn--green {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
}

.btn--green:hover {
    background: #1ba34e;
    border-color: #1ba34e;
}

.btn--red {
    background: transparent;
    color: var(--red);
    border-color: var(--red);
}

.btn--red:hover {
    background: var(--red-bg);
}

.btn--sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-xs);
}

.btn--full {
    width: 100%;
}

.btn--pill {
    border-radius: 50px;
}

/* ── Onboarding Card ── */
.onboarding {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 20px 20px;
    padding: 24px;
}

.onboarding__icon {
    font-size: 28px;
    color: var(--red);
    margin-bottom: 8px;
}

.onboarding__title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.onboarding__balance {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 16px;
}

.onboarding__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.onboarding__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

/* ── Toggle Switch ── */
.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle__slider {
    position: absolute;
    inset: 0;
    background: var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: background 0.3s;
}

.toggle__slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: var(--text-primary);
    border-radius: 50%;
    transition: transform 0.3s;
}

.toggle input:checked + .toggle__slider {
    background: var(--green);
}

.toggle input:checked + .toggle__slider::before {
    transform: translateX(22px);
}

/* ── Tabs ── */
.tabs {
    display: flex;
    gap: 0;
    padding: 0 20px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.tab {
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
}

.tab:hover {
    color: var(--text-secondary);
}

.tab.active {
    color: var(--text-primary);
    border-bottom-color: var(--text-primary);
}

/* ── Trade List ── */
.trades-list {
    padding: 0 20px;
}

.trade-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.trade-item:last-child {
    border-bottom: none;
}

.trade-item__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

.trade-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trade-item__info {
    flex: 1;
    min-width: 0;
}

.trade-item__market {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.trade-item__meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.trade-item__values {
    text-align: right;
    flex-shrink: 0;
}

.trade-item__amount {
    font-size: 14px;
    font-weight: 600;
}

.trade-item__pnl {
    font-size: 12px;
    margin-top: 2px;
}

.trade-item__pnl.positive {
    color: var(--green);
}

.trade-item__pnl.negative {
    color: var(--red);
}

/* ── Section nav buttons ── */
.nav-buttons {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* ── Bot Card ── */
.bot-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 20px 16px;
    padding: 24px;
    transition: border-color 0.2s;
}

.bot-card:hover {
    border-color: var(--border-light);
}

.bot-card.connected {
    border-color: var(--green);
    border-width: 2px;
}

.bot-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.bot-card__platform {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.bot-card__name {
    font-size: 18px;
    font-weight: 700;
}

.bot-card__stats {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.bot-card__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bot-card__stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.bot-card__stat-value {
    font-size: 14px;
    font-weight: 600;
}

.bot-card__stat-value.highlight {
    color: var(--green);
    font-size: 16px;
}

.bot-card__description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 20px;
}

/* ── Form elements ── */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus {
    border-color: var(--text-secondary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

/* ── Auth pages ── */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 400px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px 32px;
}

.auth-card__logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-card__logo-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 28px;
}

.auth-card__logo-text {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.auth-card__logo-sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.auth-card__form {
    margin-bottom: 24px;
}

.auth-card__footer {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.auth-card__footer a {
    color: var(--text-primary);
    font-weight: 500;
}

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

/* ── Messages ── */
.messages {
    padding: 0 20px;
    margin-bottom: 12px;
}

.message {
    padding: 12px 16px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    margin-bottom: 8px;
}

.message--success {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.message--error {
    background: var(--red-bg);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.message--warning {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.message--info {
    background: var(--accent-dim);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ── Bottom nav ── */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 100;
}

.bottom-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 11px;
    padding: 4px 12px;
    text-decoration: none;
    transition: color 0.2s;
}

.bottom-nav__item:hover {
    color: var(--text-secondary);
}

.bottom-nav__item.active {
    color: var(--text-primary);
}

.bottom-nav__icon {
    font-size: 22px;
}

/* ── Profile page ── */
.profile-section {
    padding: 0 20px;
    margin-bottom: 24px;
}

.profile-section__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.api-key-display {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin-bottom: 12px;
}

.api-key-display__value {
    flex: 1;
    font-family: 'SF Mono', monospace;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.api-key-display__status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.api-key-display__status.active {
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

.api-key-display__status.inactive {
    background: var(--red);
}

/* ── PnL Chart Placeholder ── */
.pnl-section {
    padding: 0 20px;
    margin-bottom: 20px;
}

.pnl-section__title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.pnl-bars {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
    padding: 8px 0;
}

.pnl-bar {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.pnl-bar__fill {
    width: 100%;
    min-height: 4px;
    border-radius: 4px 4px 0 0;
    background: var(--green);
    transition: height 0.3s;
}

.pnl-bar__fill.negative {
    background: var(--red);
}

.pnl-bar__label {
    font-size: 10px;
    color: var(--text-muted);
}

/* ── Connected bot badge ── */
.user-bots {
    padding: 0 20px;
    margin-bottom: 16px;
}

.user-bots__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.user-bot-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-size: 13px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.user-bot-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
}

.user-bot-chip__dot.paused {
    background: var(--yellow);
}

.user-bot-chip__dot.stopped {
    background: var(--red);
}

/* ── Instruction block ── */
.instruction {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 20px 20px;
    padding: 20px 24px;
}

.instruction__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
}

.instruction__steps {
    list-style: none;
    counter-reset: step;
}

.instruction__step {
    counter-increment: step;
    padding: 8px 0;
    padding-left: 32px;
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.instruction__step::before {
    content: counter(step);
    position: absolute;
    left: 0;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-primary);
}

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

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 2px;
}

/* ── Page header ── */
.page-header {
    padding: 8px 20px 20px;
}

.page-header__title {
    font-size: 24px;
    font-weight: 700;
}

.page-header__sub {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── Error list from forms ── */
.form-errors {
    list-style: none;
    margin-bottom: 16px;
}

.form-errors li {
    padding: 8px 12px;
    background: var(--red-bg);
    color: var(--red);
    border-radius: var(--radius-xs);
    font-size: 13px;
    margin-bottom: 4px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Platform badges (profile) ── */
.platform-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 14px;
}

.platform-badge--free {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.platform-badge--paid {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ── Platform tags (bot cards) ── */
.platform-tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.platform-tag--vm {
    background: var(--green-bg);
    color: var(--green);
}

.platform-tag--pm {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
}

/* ── Risk control ── */
.risk-control {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 4px;
}

.risk-control__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.risk-control__label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.risk-control__value {
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.risk-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--border);
    outline: none;
    cursor: pointer;
}

.risk-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.15s;
}

.risk-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.risk-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 2px solid var(--bg-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.risk-control__scale {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

.risk-control__rec {
    color: var(--green);
    font-weight: 600;
}

/* ── Referral page ── */
.ref-conditions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin: 0 20px 20px;
    padding: 24px;
}

.ref-condition {
    text-align: center;
}

.ref-condition__level {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.ref-condition__percent {
    font-size: 32px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -1px;
}

.ref-condition__desc {
    font-size: 13px;
    color: var(--text-secondary);
}

.ref-condition__divider {
    width: 1px;
    height: 56px;
    background: var(--border);
}

.ref-link-box {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ref-link-input {
    font-size: 12px !important;
    padding: 10px 12px !important;
}

.ref-team {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ref-member {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.ref-member:last-child {
    border-bottom: none;
}

.ref-member__info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ref-member__uid {
    font-size: 13px;
    font-weight: 600;
    font-family: 'SF Mono', monospace;
    color: var(--text-primary);
}

.ref-member__email {
    font-size: 12px;
    color: var(--text-muted);
}

.ref-member__pnl {
    font-size: 14px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.ref-member__pnl.positive {
    color: var(--green);
}

.ref-member__pnl.negative {
    color: var(--red);
}

/* ══════════════════════════════════════
   Landing Page
   ══════════════════════════════════════ */

/* ── Nav ── */
.land-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
}

.land-nav__inner {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.land-nav__logo {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.land-nav__logo-icon {
    font-size: 20px;
}

.land-nav__links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.land-nav__link {
    font-size: 14px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.land-nav__link:hover {
    color: var(--text-primary);
}

/* ── Hero ── */
.hero {
    padding: 160px 32px 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero__inner {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
}

.hero__badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.3px;
}

.hero__title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
}

.hero__title-accent {
    background: linear-gradient(135deg, #ffffff 0%, #666666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 40px;
}

.hero__actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 64px;
}

.hero__btn {
    padding: 14px 32px;
    font-size: 15px;
}

.hero__stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.hero__stat {
    text-align: center;
}

.hero__stat-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hero__stat-label {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero__stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* ── Section ── */
.land-section {
    padding: 100px 32px;
}

.land-section--dark {
    background: var(--bg-secondary);
}

.land-section__inner {
    max-width: 960px;
    margin: 0 auto;
}

.land-section__label {
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.land-section__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 48px;
}

/* ── Steps ── */
.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.step:last-child {
    border-bottom: none;
}

.step__num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
}

.step__title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step__text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Features ── */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.feature {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.2s;
}

.feature:hover {
    border-color: var(--border-light);
}

.feature__icon {
    font-size: 28px;
    margin-bottom: 16px;
}

.feature__title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature__text {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── Landing bots / pricing ── */
.land-platform {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    margin-bottom: 20px;
}

.land-platform__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.land-platform__badge {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
}

.land-platform__badge--free {
    background: var(--green-bg);
    color: var(--green);
    border: 1px solid rgba(34, 197, 94, 0.2);
}

.land-platform__badge--paid {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

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

@media (max-width: 640px) {
    .land-bots {
        grid-template-columns: 1fr;
    }
}

.land-bot {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 20px;
    transition: border-color 0.2s;
}

.land-bot:hover {
    border-color: var(--border-light);
}

.land-bot__name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.land-bot__desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.land-bot__stats {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.land-bot__stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.land-bot__stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.land-bot__stat-value {
    font-size: 14px;
    font-weight: 600;
}

.land-bot__stat-value.highlight {
    color: var(--green);
}

/* ── Landing referral levels ── */
.ref-levels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .ref-levels {
        grid-template-columns: 1fr;
    }
}

.ref-level {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 24px;
    text-align: center;
    transition: border-color 0.2s;
}

.ref-level:hover {
    border-color: var(--border-light);
}

.ref-level__badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--accent-dim);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    margin-bottom: 20px;
}

.ref-level__percent {
    font-size: 56px;
    font-weight: 800;
    color: var(--green);
    letter-spacing: -2px;
    line-height: 1;
}

.ref-level__label {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.ref-level__desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.ref-level__example {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    text-align: left;
}

.ref-level__example-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

/* ── Landing referral rules ── */
.ref-rules {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .ref-rules {
        grid-template-columns: 1fr;
    }
}

.ref-rule {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.2s;
}

.ref-rule:hover {
    border-color: var(--border-light);
}

.ref-rule__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-xs);
    background: var(--bg-input);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--text-secondary);
}

.ref-rule__title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
}

.ref-rule__text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ── CTA ── */
.land-cta {
    padding: 100px 32px;
    text-align: center;
}

.land-cta__inner {
    max-width: 560px;
    margin: 0 auto;
}

.land-cta__title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
}

.land-cta__text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

/* ── Footer ── */
.land-footer {
    border-top: 1px solid var(--border);
    padding: 32px;
}

.land-footer__inner {
    max-width: 1080px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.land-footer__logo {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.land-footer__links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.land-footer__link {
    font-size: 13px;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.land-footer__link:hover {
    color: var(--text-primary);
}

.land-footer__copy {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 640px) {
    .hero {
        padding: 120px 20px 60px;
    }

    .hero__stats {
        gap: 20px;
    }

    .hero__stat-divider {
        display: none;
    }

    .land-section {
        padding: 60px 20px;
    }

    .step {
        gap: 16px;
    }

    .land-nav__inner {
        padding: 14px 20px;
    }

    .land-footer__inner {
        flex-direction: column;
        text-align: center;
    }
}

/* ── Helpers ── */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-sm { font-size: 13px; }
