/* web-ui/static/css/landing.css — OmniTri redesign 2026 */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
    --primary:       #4F46E5;
    --primary-dark:  #3730A3;
    --primary-light: #EEF2FF;
    --accent:        #F97316;
    --accent-dark:   #EA6E0B;
    --text:          #0F172A;
    --text-muted:    #64748B;
    --text-light:    #94A3B8;
    --bg:            #FFFFFF;
    --bg-subtle:     #FAFAFA;
    --bg-tint:       #F8F7FF;
    --border:        #E2E8F0;
    --border-subtle: #F1F5F9;
    --shopee:        #EE4D2D;
    --tiktok:        #010101;
    --lazada:        #0F146D;
    --tokopedia:     #00AA5B;
    --radius-sm:     8px;
    --radius:        14px;
    --radius-lg:     20px;
}

/* ── Dark theme overrides ───────────────────────────────────────────────── */
[data-theme="dark"] {
    --primary:        #6366F1;
    --primary-dark:   #4F46E5;
    --primary-light:  #1E1B4B;
    --text:           #F1F5F9;
    --text-muted:     #94A3B8;
    --text-light:     #64748B;
    --bg:             #0D1424;
    --bg-subtle:      #111827;
    --bg-tint:        #131E35;
    --border:         #1E293B;
    --border-subtle:  #0F172A;
}

/* Hero gradient */
[data-theme="dark"] .hero {
    background: linear-gradient(160deg, #0D1424 0%, #131E35 60%, #1a1b4b 100%);
}

[data-theme="dark"] .hero::before {
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
}

/* Nav — base state uses white frosted glass; override to dark */
[data-theme="dark"] .nav {
    background: rgba(13, 20, 36, 0.80);
}

/* Nav scrolled */
[data-theme="dark"] .nav.scrolled {
    background: rgba(13, 20, 36, 0.95);
    box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

/* Mobile nav menu — hard-coded white bg */
[data-theme="dark"] .nav-mobile-menu {
    background: var(--bg-subtle);
    border-top-color: var(--border);
}

/* Channel strip — hard-coded light backgrounds */
[data-theme="dark"] .channels-section {
    border-top-color: var(--border);
    border-bottom-color: var(--border);
}
[data-theme="dark"] .channel-badge.shopee    { background: rgba(238,77,45,0.12); }
[data-theme="dark"] .channel-badge.tiktok    { background: rgba(255,255,255,0.06); color: #E0E0E0; border-color: rgba(255,255,255,0.12); }
[data-theme="dark"] .channel-badge.lazada    { background: rgba(15,20,109,0.35); }
[data-theme="dark"] .channel-badge.tokopedia { background: rgba(0,170,91,0.12); }

/* Feature icon boxes — hard-coded light backgrounds */
[data-theme="dark"] .fi-blue   { background: rgba(99,102,241,0.15); }
[data-theme="dark"] .fi-orange { background: rgba(234,88,12,0.15); }
[data-theme="dark"] .fi-green  { background: rgba(22,163,74,0.15); }
[data-theme="dark"] .fi-purple { background: rgba(124,58,237,0.15); }
[data-theme="dark"] .fi-teal   { background: rgba(13,148,136,0.15); }
[data-theme="dark"] .fi-yellow { background: rgba(202,138,4,0.15); }

/* Featured price card — hard-coded gradient with light tint */
[data-theme="dark"] .price-card.featured {
    background: linear-gradient(160deg, rgba(99,102,241,0.15) 0%, var(--bg-subtle) 60%);
    box-shadow: 0 20px 48px rgba(99,102,241,0.12);
}

/* CTA section — uses var(--text) as bg in light mode (#0F172A).
   In dark mode --text becomes #F1F5F9 (white), which would break it.
   Override explicitly. */
[data-theme="dark"] .cta-section {
    background: #1a1f2e;
}

/* Footer — same problem as CTA section */
[data-theme="dark"] .footer {
    background: #0a0f1a;
    border-top-color: rgba(255,255,255,0.04);
}

/* Skeleton shimmer — hard-coded light greys */
[data-theme="dark"] .skeleton {
    background: linear-gradient(90deg, #1E293B 25%, #253347 50%, #1E293B 75%);
    background-size: 600px 100%;
}
[data-theme="dark"] .price-card-skeleton {
    background: var(--bg-subtle);
}
[data-theme="dark"] .skel-divider { background: var(--border); }

/* Pricing cycle toggle hover */
[data-theme="dark"] .cycle-tab:hover { background: var(--bg-tint); }

/* Step hover glow — adjust to lighter indigo */
[data-theme="dark"] .step:hover .step-num {
    box-shadow: 0 8px 24px rgba(99,102,241,0.3);
}

/* ── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

h1, h2, h3, .hero-title, .section-title, .cta-title, .price-amount {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 200;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.nav.scrolled {
    border-color: var(--border);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    flex-shrink: 0;
    letter-spacing: -0.02em;
}

.nav-logo { width: 30px; height: 30px; }

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

.nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.btn-nav-login {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}

.btn-nav-login:hover { color: var(--text); background: var(--bg-subtle); }

.btn-nav-cta {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--primary);
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-nav-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79,70,229,0.3);
}

.nav-user-area {
    display: flex;
    align-items: center;
    gap: 7px;
}

.nav-avatar-sm {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
    flex-shrink: 0;
}

.nav-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 20px;
    color: var(--text);
    margin-left: auto;
    padding: 6px;
}

.nav-mobile-menu {
    display: none;
    flex-direction: column;
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 4px;
}

.nav-mobile-menu.open { display: flex; }

.nav-mobile-menu a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    padding: 10px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: color 0.15s;
}

.nav-mobile-menu a:last-child { border-bottom: none; }
.nav-mobile-menu a:hover { color: var(--primary); }

.nav-mobile-menu .mobile-cta {
    margin-top: 8px;
    color: var(--primary);
    font-weight: 700;
    border-bottom: none;
}

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    background: linear-gradient(160deg, #FFFFFF 0%, #F8F7FF 60%, #EEF2FF 100%);
    display: flex;
    align-items: center;
    padding: 112px 24px 80px;
    position: relative;
    overflow: hidden;
}

/* Subtle decorative blobs */
.hero::before {
    content: '';
    position: absolute;
    top: -120px;
    right: -120px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(79,70,229,0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 600;
    padding: 5px 12px 5px 8px;
    border-radius: 100px;
    margin-bottom: 28px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22C55E;
    flex-shrink: 0;
    box-shadow: 0 0 0 3px rgba(34,197,94,0.2);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,0.2); }
    50%       { box-shadow: 0 0 0 5px rgba(34,197,94,0.1); }
}

.hero-title {
    font-size: clamp(40px, 5.5vw, 64px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--text);
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.hero-title-accent {
    color: var(--primary);
    display: block;
}

.hero-sub {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 480px;
}

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

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(249,115,22,0.25);
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(249,115,22,0.35);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1.5px solid var(--border);
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

/* ── Bento hero visual ──────────────────────────────────────────────────── */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bento-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    width: 100%;
    max-width: 460px;
}

.bento-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
}

/* Main status card spans 2 rows */
.bento-main {
    grid-row: 1 / 3;
    animation: float-a 5s ease-in-out infinite;
}

.bento-metric {
    animation: float-b 5s ease-in-out infinite;
}

.bento-products {
    animation: float-c 5.5s ease-in-out infinite;
}

@keyframes float-a {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-6px); }
}
@keyframes float-b {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-4px); }
}
@keyframes float-c {
    0%, 100% { transform: translateY(-2px); }
    50%       { transform: translateY(4px); }
}

.bento-eyebrow {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--text-light);
    margin-bottom: 14px;
}

/* Channel list inside main card */
.bento-channels-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.bento-ch {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
}

.bento-ch i {
    font-size: 13px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.bento-ch[data-ch="shopee"]    i { color: var(--shopee); }
.bento-ch[data-ch="tiktok"]    i { color: #333; }
.bento-ch[data-ch="lazada"]    i { color: var(--lazada); }
.bento-ch[data-ch="tokopedia"] i { color: var(--tokopedia); }

.bento-ch-name { flex: 1; }

.bento-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--text-light);
}

.bento-dot.synced { background: #22C55E; }

.bento-ch-tag {
    font-size: 10px;
    font-weight: 700;
    color: #16A34A;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    padding: 2px 8px;
    border-radius: 100px;
    white-space: nowrap;
}

/* Metric cards */
.bento-metric-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 36px;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 4px;
}

.bento-orders .bento-metric-num { color: var(--primary); }
.bento-products .bento-metric-num { color: var(--accent); }

.bento-trend {
    font-size: 11px;
    font-weight: 600;
    color: #16A34A;
}

.bento-metric-sub {
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
}

/* ── Channel strip ──────────────────────────────────────────────────────── */
.channels-section {
    padding: 52px 24px;
    background: var(--bg);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.channels-inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.channels-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-light);
    margin-bottom: 28px;
}

.channels-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.channel-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 22px;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 700;
    border: 1.5px solid transparent;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: default;
}

.channel-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.07);
}

.channel-badge.shopee    { background: #FFF1EE; color: var(--shopee);    border-color: rgba(238,77,45,0.18); }
.channel-badge.tiktok    { background: #F5F5F5; color: #1a1a1a;          border-color: #E5E5E5; }
.channel-badge.lazada    { background: #EEEFFE; color: var(--lazada);    border-color: rgba(15,20,109,0.15); }
.channel-badge.tokopedia { background: #EDFDF6; color: var(--tokopedia); border-color: rgba(0,170,91,0.18); }

.channel-badge i { font-size: 16px; }

.channels-more {
    margin-top: 20px;
    font-size: 13px;
    color: var(--text-light);
}

/* ── Section shell ──────────────────────────────────────────────────────── */
section { padding: 96px 24px; }

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

/* keep .section-tag for backwards compat */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--primary);
    background: var(--primary-light);
    padding: 5px 12px;
    border-radius: 100px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text);
    margin-bottom: 16px;
    line-height: 1.15;
}

.section-sub {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.75;
    max-width: 540px;
}

/* ── Features ───────────────────────────────────────────────────────────── */
#features { background: var(--bg-tint); }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 52px;
}

.feature-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(0,0,0,0.07);
    border-color: var(--primary);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 18px;
}

.fi-blue   { background: #EEF2FF; color: var(--primary); }
.fi-orange { background: #FFF7ED; color: #EA580C; }
.fi-green  { background: #F0FDF4; color: #16A34A; }
.fi-purple { background: #FAF5FF; color: #7C3AED; }
.fi-teal   { background: #F0FDFA; color: #0D9488; }
.fi-yellow { background: #FEFCE8; color: #CA8A04; }

.feature-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
}

.feature-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    background: #FFF7ED;
    color: #EA580C;
    padding: 2px 8px;
    border-radius: 4px;
    margin-top: 12px;
    border: 1px solid rgba(234,88,12,0.2);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-section { background: var(--bg); }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 56px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: calc(16.66% + 28px);
    right: calc(16.66% + 28px);
    height: 1px;
    background: linear-gradient(90deg, var(--border) 0%, var(--primary) 50%, var(--border) 100%);
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-num {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px;
    color: var(--primary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: all 0.25s;
}

.step:hover .step-num {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: scale(1.1);
    box-shadow: 0 8px 24px rgba(79,70,229,0.25);
}

.step-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 14px;
    line-height: 1.75;
    color: var(--text-muted);
}

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

.cycle-toggle {
    display: flex;
    justify-content: center;
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    padding: 4px;
    gap: 2px;
    margin: 0 auto 36px;
    width: fit-content;
}

.cycle-tab {
    background: none;
    border: none;
    border-radius: var(--radius-sm);
    padding: 8px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.cycle-tab:hover { color: var(--text); background: var(--bg-subtle); }

.cycle-tab.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 2px 8px rgba(79,70,229,0.25);
}

.cycle-save {
    font-size: 10px;
    font-weight: 700;
    color: #16A34A;
    background: #F0FDF4;
    border-radius: 6px;
    padding: 2px 6px;
}

.cycle-tab.active .cycle-save { background: rgba(255,255,255,0.25); color: #fff; }

.price-discount-badge {
    display: inline-flex;
    align-items: center;
    background: #16A34A;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
}

.pricing-load-error {
    width: 100%;
    text-align: center;
    padding: 48px 24px;
    color: var(--text-muted);
    font-size: 15px;
}
.pricing-load-error i { margin-right: 8px; color: var(--text-light); }

/* Slider */
.pricing-slider-wrap {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 52px;
}

.pricing-viewport {
    overflow: hidden;
    flex: 1;
    min-width: 0;
    padding: 4px 4px 12px;
}

.pricing-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: stretch;
}

.slider-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--bg);
    color: var(--text-muted);
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s;
}

.slider-btn:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.slider-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--border);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
}

.slider-dot.active {
    background: var(--primary);
    transform: scale(1.3);
}

/* Price cards */
.price-card {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.07);
}

.price-card.featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, var(--primary-light) 0%, var(--bg) 60%);
    box-shadow: 0 20px 48px rgba(79,70,229,0.12);
}

.price-badge-slot {
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.price-popular {
    display: inline-flex;
    align-items: center;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
}

.price-header {
    height: 150px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.price-plan {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-bottom: 8px;
    flex-shrink: 0;
}

.price-card.featured .price-plan { color: var(--primary); }

.price-amount {
    font-size: 40px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.03em;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.price-amount-unit {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    margin-top: 4px;
    min-height: 20px;
    flex-shrink: 0;
}

.price-period {
    font-size: 12px;
    color: var(--text-light);
    margin-top: auto;
    line-height: 1.4;
}

.price-divider {
    height: 1px;
    background: var(--border);
    margin-bottom: 24px;
}

.price-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-bottom: 28px;
    flex: 1;
}

.price-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    color: var(--text);
    line-height: 1.5;
}

.price-features li i {
    color: #22C55E;
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}

.price-features li.muted { color: var(--text-light); }
.price-features li.muted i { color: var(--border); }

.btn-price {
    display: block;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 13px;
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}

.btn-price.outline {
    border: 1.5px solid var(--border);
    color: var(--text);
}

.btn-price.outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.btn-price.filled {
    background: var(--primary);
    color: #fff;
}

.btn-price.filled:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79,70,229,0.3);
}

/* ── CTA section ────────────────────────────────────────────────────────── */
.cta-section {
    background: var(--text);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(79,70,229,0.25), transparent 70%);
    pointer-events: none;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -60px;
    left: -60px;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(249,115,22,0.15), transparent 70%);
    pointer-events: none;
}

.cta-inner {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.025em;
    margin-bottom: 16px;
    line-height: 1.15;
}

.cta-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 32px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(249,115,22,0.3);
}

.btn-cta-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(249,115,22,0.4);
}

.btn-cta-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    font-size: 16px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.15);
    transition: all 0.2s;
}

.btn-cta-ghost:hover { background: rgba(255,255,255,0.14); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer {
    background: var(--text);
    padding: 56px 24px 32px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
    text-decoration: none;
}

.footer-brand img { width: 26px; height: 26px; }

.footer-brand span {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.footer-tagline {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    max-width: 220px;
    line-height: 1.65;
}

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

.footer-col-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: rgba(255,255,255,0.3);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    margin-bottom: 10px;
    transition: color 0.15s;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-copy {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
}

.footer-bottom-links { display: flex; gap: 20px; align-items: center; }

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-bottom-links a:hover { color: rgba(255,255,255,0.7); }

/* ── Status badge ───────────────────────────────────────────────────────── */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    margin-top: 12px;
}

.status-dot-sm {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #64748B;
    flex-shrink: 0;
}

.status-dot-sm.ok       { background: #22C55E; }
.status-dot-sm.degraded { background: #F59E0B; }
.status-dot-sm.down     { background: #EF4444; }

/* ── Skeleton loading ───────────────────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position:  600px 0; }
}

.skeleton {
    background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
    background-size: 600px 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
}

.price-card-skeleton {
    background: var(--bg);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.skel-line   { height: 14px; }
.skel-title  { height: 20px; width: 60%; }
.skel-price  { height: 40px; width: 50%; }
.skel-period { height: 12px; width: 70%; }
.skel-divider { height: 1px; background: var(--border); }
.skel-btn    { height: 48px; border-radius: var(--radius-sm); margin-top: 8px; }

/* ── Payment chips ──────────────────────────────────────────────────────── */
.payment-methods-row {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 28px;
}

.payment-methods-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
    white-space: nowrap;
}

.payment-chip {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-subtle);
    border: 1px solid var(--border);
    padding: 5px 12px;
    border-radius: 100px;
}

/* ── Theme toggle button ────────────────────────────────────────────────── */
.theme-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.35);
    font-size: 14px;
    border-radius: 6px;
    padding: 0;
    transition: color 0.15s, background 0.15s;
    flex-shrink: 0;
}

.theme-toggle:hover {
    color: rgba(255,255,255,0.75);
    background: rgba(255,255,255,0.08);
}

.theme-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
}

.theme-toggle:hover .theme-tooltip { opacity: 1; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .nav-container { gap: 24px; }
    .hero-inner    { gap: 48px; }
    .pricing-track { gap: 16px; }
    .price-card    { padding: 24px; }
}

@media (max-width: 900px) {
    .nav-links, .nav-actions { display: none; }
    .nav-mobile-toggle { display: flex; }

    .hero-inner  { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { max-width: 440px; margin: 0 auto; }
    .hero-sub    { max-width: 100%; }

    .steps-grid { grid-template-columns: 1fr; gap: 24px; }
    .steps-grid::before { display: none; }
    .step { max-width: 440px; margin: 0 auto; }

    .pricing-slider-wrap { gap: 10px; }
    .slider-btn          { width: 36px; height: 36px; font-size: 12px; }

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

    .footer-top { flex-direction: column; gap: 28px; }
}

@media (max-width: 640px) {
    .hero { padding: 96px 20px 56px; }
    .hero-title { font-size: 36px; }
    .hero-sub   { font-size: 15px; }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-primary, .btn-ghost {
        text-align: center;
        justify-content: center;
    }

    section { padding: 64px 20px; }
    .section-sub { font-size: 15px; }

    .features-grid { grid-template-columns: 1fr; }
    .channels-row  { gap: 10px; }

    .cta-actions { flex-direction: column; align-items: stretch; }
    .btn-cta-primary, .btn-cta-ghost { text-align: center; justify-content: center; }

    .footer-links  { gap: 24px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
    .hero-visual { display: none; }
    .hero        { padding: 88px 16px 52px; min-height: auto; }
    .hero-title  { font-size: 32px; }
    .hero-badge  { font-size: 11px; }

    section       { padding: 52px 16px; }
    .section-title { font-size: 26px; }
    .section-sub   { font-size: 14px; }

    .channels-section { padding: 44px 16px; }
    .channel-badge { padding: 10px 16px; font-size: 13px; }

    .feature-card  { padding: 22px; }
    .price-card    { padding: 22px 18px; }
    .price-amount  { font-size: 32px; }

    .footer        { padding: 40px 16px 24px; }
    .footer-links  { flex-direction: column; gap: 20px; }
    .footer-bottom-links { flex-direction: column; gap: 8px; }

    .btn-primary, .btn-ghost       { padding: 14px 20px; font-size: 15px; }
    .btn-cta-primary, .btn-cta-ghost { padding: 15px 24px; }
    .nav-mobile-menu a { padding: 13px 0; min-height: 44px; display: flex; align-items: center; }
}

@media (max-width: 360px) {
    .hero-title    { font-size: 28px; }
    .section-title { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .bento-main, .bento-metric, .bento-products { animation: none; }
    .badge-dot { animation: none; }
}

@media (max-width: 640px) {
    .cycle-toggle { flex-wrap: wrap; justify-content: center; }
    .cycle-tab    { padding: 7px 12px; font-size: 12px; }
}

/* ── Mobile pricing: vertical stack, bypass JS slider ── */
@media (max-width: 767px) {
    .pricing-slider-wrap {
        flex-direction: column;
        gap: 0;
        margin-top: 32px;
    }
    .slider-btn  { display: none !important; }
    .slider-dots { display: none !important; }

    .pricing-viewport {
        overflow: visible;
        padding: 4px 0 12px;
    }
    .pricing-track {
        flex-direction: column;
        transform: none !important;
        gap: 16px;
    }
    .price-card {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
    }
}
