/* ============================================
   Buddy OS — Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    --bg-main: #fbfbfd;
    --bg-secondary: #ffffff;
    --black: #1d1d1f;
    --dark-gray: #86868b;
    --light-gray: #f5f5f7;
    --accent: #FF7043;
    --accent-hover: #E64A19;
    --text-dim: #86868b;
    --border: #d2d2d7;
    --radius: 12px;
    --radius-lg: 20px;
    --shadow: 0 2px 12px rgba(0,0,0,0.07);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --transition: 0.2s ease;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-main);
    color: var(--black);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; }
ul { list-style: none; }

/* ---- Typography ---- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { color: var(--dark-gray); }

.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-dim { color: var(--text-dim); }

/* ---- Layout ---- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }

.section-light { background: var(--light-gray); }

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(255,112,67,0.35); }

.btn-secondary {
    background: transparent;
    color: var(--black);
    border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--black); }

.btn-lg { padding: 16px 36px; font-size: 1.1rem; }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }

.btn-group { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding: 12px 24px;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--black);
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { padding: 8px 16px; font-size: 0.9rem; font-weight: 500; color: var(--dark-gray); transition: var(--transition); }
.nav-links a:hover, .nav-links a.active { color: var(--black); }
.nav-demo { background: rgba(255,112,67,0.15) !important; border: 1px solid rgba(255,112,67,0.4) !important; color: var(--accent) !important; padding: 8px 16px !important; border-radius: 8px !important; display: inline-block !important; }
.nav-demo:hover { background: rgba(255,112,67,0.25) !important; }

/* ---- Hero ---- */
.hero {
    padding: 80px 0 60px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,112,67,0.1);
    color: var(--accent);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }
.hero-sub { font-size: 1.15rem; margin-bottom: 32px; max-width: 480px; }

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 420px;
}

/* Abstract canvas visualization */
.canvas-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.canvas-wrap canvas {
    width: 100%;
    height: 100%;
}

/* Floating cards around canvas */
.floating-card {
    position: absolute;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px 18px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: float 6s ease-in-out infinite;
}

.floating-card .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.fc-1 { top: 10%; left: 5%; animation-delay: 0s; }
.fc-2 { top: 5%; right: 10%; animation-delay: 1.5s; }
.fc-3 { bottom: 20%; left: 0; animation-delay: 3s; }
.fc-4 { bottom: 10%; right: 5%; animation-delay: 4.5s; }
.fc-5 { top: 45%; left: -5%; animation-delay: 2s; }

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

/* ---- Features ---- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: var(--transition);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,112,67,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.feature-card h3 { margin-bottom: 10px; color: var(--black); }

/* ---- How It Works ---- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 48px;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.66% + 20px);
    right: calc(16.66% + 20px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--border));
    z-index: 0;
}

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

.step-num {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 4px 16px rgba(255,112,67,0.3);
}

.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.9rem; }

/* ---- Pricing ---- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255,112,67,0.15), var(--shadow-lg);
    transform: scale(1.03);
}

.pricing-card:hover { box-shadow: var(--shadow-lg); }

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.pricing-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--black);
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--dark-gray);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--dark-gray);
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 28px;
    flex-grow: 1;
}

.pricing-card .btn {
    margin-top: auto;
    width: 100%;
    justify-content: center;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--dark-gray);
}

.pricing-feature .check {
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Testimonials ---- */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.testimonial-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.testimonial-card .stars {
    color: #FFB800;
    font-size: 0.9rem;
    margin-bottom: 14px;
    letter-spacing: 2px;
}

.testimonial-card blockquote {
    font-size: 0.95rem;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.5;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #FF8A65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.875rem;
}

.author-name { font-size: 0.875rem; font-weight: 600; color: var(--black); }
.author-role { font-size: 0.75rem; color: var(--dark-gray); }

/* ---- Footer ---- */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand p {
    font-size: 0.875rem;
    margin-top: 12px;
    max-width: 260px;
}

.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--dark-gray);
    margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: 0.875rem; color: var(--dark-gray); transition: var(--transition); }
.footer-col ul li a:hover { color: var(--black); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--dark-gray);
}

/* ---- Onboarding ---- */
.onboard-container {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 24px;
}

.onboard-progress {
    display: flex;
    align-items: center;
    gap: 0;
    margin-bottom: 48px;
    position: relative;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.progress-step::before {
    content: '';
    position: absolute;
    top: 18px;
    left: 50%;
    right: -50%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.progress-step:last-child::before { display: none; }

.progress-step.done::before { background: var(--accent); }

.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--dark-gray);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.progress-step.done .step-circle,
.progress-step.active .step-circle {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.step-label {
    font-size: 0.7rem;
    color: var(--dark-gray);
    margin-top: 8px;
    font-weight: 500;
    text-align: center;
}

.progress-step.active .step-label { color: var(--accent); font-weight: 600; }

.onboard-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
}

.onboard-card h2 { margin-bottom: 8px; }
.onboard-card .subtitle { margin-bottom: 32px; }

.plan-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.plan-option {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.plan-option:hover { border-color: var(--accent); }
.plan-option.selected { border-color: var(--accent); background: rgba(255,112,67,0.04); }

.plan-option .plan-name { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.plan-option .plan-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); }
.plan-option .plan-price span { font-size: 0.75rem; font-weight: 400; color: var(--dark-gray); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }

.form-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--bg-main);
    color: var(--black);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255,112,67,0.1);
}

.form-hint {
    font-size: 0.78rem;
    color: var(--dark-gray);
    margin-top: 6px;
}

.code-block {
    background: #1d1d1f;
    color: #e8e8ed;
    border-radius: var(--radius);
    padding: 16px 20px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    margin: 16px 0;
    overflow-x: auto;
    position: relative;
}

.code-block .copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #e8e8ed;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.code-block .copy-btn:hover { background: rgba(255,255,255,0.2); }

.telegram-setup {
    background: rgba(0,136,204,0.06);
    border: 1px solid rgba(0,136,204,0.2);
    border-radius: var(--radius);
    padding: 20px;
    margin-top: 16px;
}

.telegram-setup h4 {
    color: #0088cc;
    font-size: 0.9rem;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.telegram-setup ol {
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.telegram-setup ol li {
    font-size: 0.875rem;
    color: var(--dark-gray);
}

.telegram-setup ol li a { color: #0088cc; text-decoration: underline; }

.success-screen {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(76,175,80,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    margin: 0 auto 24px;
}

.onboard-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 28px;
}

/* ---- Dashboard ---- */
.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 0;
    align-items: start;
    width: 100%;
}

.sidebar { /* desktop sidebar */
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: visible;
    position: sticky;
    top: 24px;
    float: left;
    width: 260px;
    height: auto; min-height: 600px;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    z-index: 100;
}

.sidebar-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #FF8A65);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem;
}

.sidebar-name { font-weight: 700; font-size: 0.95rem; }
.sidebar-plan { font-size: 0.75rem; color: var(--accent); font-weight: 600; }

.sidebar-nav { padding: 12px; }
.sidebar-nav ul { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark-gray);
    transition: var(--transition);
}
.sidebar-nav ul li a:hover { background: var(--light-gray); color: var(--black); }
.sidebar-nav ul li a.active { background: rgba(255,112,67,0.08); color: var(--accent); font-weight: 600; }
.sidebar-nav ul li a .icon { font-size: 1.1rem; }

.dashboard-main {
    flex: 1;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    padding: 48px 24px 0;
}

.dashboard-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-badge.online { background: rgba(76,175,80,0.1); color: #4CAF50; }
.status-badge.offline { background: rgba(244,67,54,0.1); color: #F44336; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    position: relative;
}

.stat-label { font-size: 0.78rem; color: var(--dark-gray); font-weight: 500; margin-bottom: 4px; }
.stat-value { font-size: 1.6rem; font-weight: 800; color: var(--black); }
.stat-sub { font-size: 0.75rem; color: var(--dark-gray); margin-top: 2px; }
.stat-value.accent { color: var(--accent); }

.buy-tasks-btn {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: var(--accent) !important;
    color: white !important;
    border: none !important;
    padding: 8px 14px !important;
    border-radius: 8px !important;
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    z-index: 10;
    min-height: 36px;
    min-width: 60px;
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.action-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
}

.action-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.action-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(255,112,67,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.action-card h4 { font-size: 0.9rem; }
.action-card p { font-size: 0.78rem; }

.recent-activity {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

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

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

.activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.activity-text { flex: 1; }
.activity-text .title { font-size: 0.875rem; font-weight: 500; color: var(--black); }
.activity-text .time { font-size: 0.75rem; color: var(--dark-gray); }

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .sidebar { display: none; }
    .sidebar.mobile-open { display: block; position: fixed; top: 0; left: 0; bottom: 0; width: 280px; z-index: 200; background: var(--bg-secondary); box-shadow: 2px 0 20px rgba(0,0,0,0.15); overflow-y: auto; }
    .dashboard-main { padding-left: 24px !important; padding-right: 24px !important; }
    .dashboard-grid { grid-template-columns: 1fr !important; }
    .features-grid, .steps, .pricing-grid, .testimonials-grid,
    .stats-row, .quick-actions { grid-template-columns: 1fr; }
    .plan-select-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    #hamburger-btn { display: block !important; }
    .footer-grid { grid-template-columns: 1fr; }
    .onboard-card { padding: 24px; }
    .hero { padding: 48px 0 36px; }
    .section { padding: 56px 0; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 900px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .features-grid, .steps, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .quick-actions { grid-template-columns: 1fr 1fr; }
}



/* ---- Trait Cards (Buddy Customization) ---- */
.trait-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
}

.trait-card {
    background: var(--bg-main);
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.trait-card:hover {
    border-color: var(--accent);
    background: rgba(255, 112, 67, 0.04);
    transform: translateY(-2px);
}

.trait-card.selected {
    border-color: var(--accent);
    background: rgba(255, 112, 67, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 112, 67, 0.15);
}

.trait-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.trait-name {
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 4px;
    color: var(--black);
}

.trait-desc {
    font-size: 0.75rem;
    color: var(--dark-gray);
    line-height: 1.4;
}

/* ---- Mobile Nav ---- */
@media (max-width: 768px) {
    #hamburger-btn { display: block !important; }
    #mobile-status { display: flex !important; }
    .navbar .nav-links { display: none !important; }
    .navbar .nav-links.open { display: flex !important; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg-secondary); border-bottom: 1px solid var(--border); padding: 16px; gap: 8px; z-index: 100; box-shadow: 0 8px 20px rgba(0,0,0,0.1); }
    .navbar .nav-links.open li { width: 100%; }
    .navbar .nav-links.open li a { width: 100%; padding: 12px 16px; }
    
    .sidebar-close { display: block; position: absolute; top: 12px; right: 12px; background: none; border: none; font-size: 20px; cursor: pointer; }
    .dashboard-main { padding-top: 60px !important; }
}
@media (max-width: 480px) {
    .quick-actions { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .action-card { padding: 16px 12px !important; }
    .action-card h4 { font-size: 0.85rem !important; }
    .action-card p { display: none; }
    .stat-card { padding: 16px !important; }
    .onboard-card { padding: 24px 16px !important; border-radius: 16px !important; }
}
/* === BLACK NAVBAR === */
.navbar {
    background: #000000 !important;
    border-bottom: 1px solid #333333 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

/* Logo - white text */
.navbar .nav-logo,
.navbar .nav-logo span {
    color: #ffffff !important;
}

/* Nav links - white text */
.navbar .nav-links a {
    color: #ffffff !important;
}
.navbar .nav-links a:hover,
.navbar .nav-links a.active {
    color: #FF7043 !important;
}

/* Get Started button stays orange */
.nav-demo {
    background: rgba(255,112,67,0.9) !important;
    border: 1px solid rgba(255,112,67,0.9) !important;
    color: #ffffff !important;
}
.nav-demo:hover {
    background: rgba(255,112,67,1) !important;
}

/* === BLACK FOOTER === */
.footer {
    background: #000000 !important;
    border-top: 2px solid #333333 !important;
    padding: 60px 0 30px;
}

/* Footer text - white */
.footer-brand p {
    color: rgba(255,255,255,0.7) !important;
}

.footer-col h4 {
    color: #ffffff !important;
}

.footer-col ul li a {
    color: rgba(255,255,255,0.7) !important;
}
.footer-col ul li a:hover {
    color: #ffffff !important;
}

.footer-bottom {
    color: rgba(255,255,255,0.5) !important;
    border-top: 1px solid #333333 !important;
}
.footer-bottom a {
    color: rgba(255,255,255,0.5) !important;
}
.footer-bottom a:hover {
    color: #ffffff !important;
}

/* Footer logo text */
.footer-brand .footer-logo {
    color: #ffffff !important;
}

/* Mobile hamburger menu background */
.navbar .nav-links.open {
    background: #111111 !important;
    border-bottom: 2px solid #333333 !important;
}
.navbar .nav-links.open li a {
    color: #ffffff !important;
}
/* === BLACK HOMEPAGE — index.html === */

/* Body and main content area */
.index-page body,
body:has(.hero) {
    background: #0a0a0a;
    color: #ffffff !important;
}

/* Hero section */
.hero {
    background: #0a0a0a;
    color: #ffffff !important;
    padding-top: 100px !important;
}

.hero h1 {
    color: #ffffff;
    -webkit-text-fill-color: transparent;
    background: linear-gradient(135deg, #FF7043, #FF8A65);
    -webkit-background-clip: text;
    background-clip: text;
}

.hero .subtitle {
    color: rgba(255,255,255,0.8) !important;
}

.hero .desc {
    color: rgba(255,255,255,0.7) !important;
}

/* Three options chips */
.three-options .option {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
}

.three-options .arrow {
    color: rgba(255,255,255,0.5) !important;
}

/* Comparison cards section */
.comparison {
    margin: 40px auto !important;
}

.comp-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

.comp-card .comp-title {
    color: #ffffff !important;
}

.comp-card .comp-name {
    color: rgba(255,255,255,0.7) !important;
}

.comp-card .comp-features {
    color: rgba(255,255,255,0.6) !important;
}

.comp-features .bad {
    color: #ff6b6b !important;
}

.comp-features .warn {
    color: #ffd93d !important;
}

/* Pass card highlight */
.comp-card.pass {
    background: #1a2a1a !important;
    border: 2px solid rgba(255,112,67,0.5) !important;
}

/* Features section */
.features-section {
    background: #0a0a0a;
    padding: 80px 0 !important;
}

.features-section h2 {
    color: #ffffff !important;
}

.feature-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: rgba(255,255,255,0.8) !important;
}

.feature-card h3 {
    color: #ffffff !important;
}

.feature-card:hover {
    background: #222222 !important;
    border-color: #555 !important;
}

/* How it works section */
.how-it-works {
    background: #111111 !important;
    padding: 80px 0 !important;
}

.how-it-works h2 {
    color: #ffffff !important;
}

.step {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.step-number {
    background: rgba(255,112,67,0.2) !important;
    color: #FF7043 !important;
}

.step-content h3 {
    color: #ffffff !important;
}

.step-content p {
    color: rgba(255,255,255,0.7) !important;
}

/* FAQ section */
.faq-section {
    background: #0a0a0a;
    padding: 80px 0 !important;
}

.faq-section h2 {
    color: #ffffff !important;
}

.faq-item {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.faq-item h3 {
    color: #ffffff !important;
}

.faq-item p {
    color: rgba(255,255,255,0.7) !important;
}

/* CTA / signup section */
.cta-section {
    background: #111111 !important;
    padding: 80px 0 !important;
}

.cta-section h2 {
    color: #ffffff !important;
}

.cta-section p {
    color: rgba(255,255,255,0.7) !important;
}

/* Footer — already black but ensure white text */
.footer {
    background: #000000 !important;
}

.footer-logo {
    color: #ffffff !important;
}

/* Ensure any generic section backgrounds are dark */
section {
    background: #0a0a0a;
}
/* === ANIMATED HERO BACKGROUND === */
.hero {
    position: relative;
    overflow: hidden;
    background: #0a0a0a;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(255,112,67,0.3) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 30%, rgba(255,183,77,0.15) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 80%, rgba(255,80,80,0.1) 0%, transparent 40%);
    animation: heroGlow 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(ellipse at 60% 20%, rgba(78,248,255,0.08) 0%, transparent 35%),
        radial-gradient(ellipse at 20% 70%, rgba(255,112,67,0.12) 0%, transparent 45%);
    animation: heroGlow2 12s ease-in-out infinite reverse;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroGlow {
    0%, 100% {
        transform: translate(0%, 0%) rotate(0deg);
        opacity: 1;
    }
    33% {
        transform: translate(2%, -2%) rotate(1deg);
        opacity: 0.85;
    }
    66% {
        transform: translate(-1%, 3%) rotate(-1deg);
        opacity: 0.95;
    }
}

@keyframes heroGlow2 {
    0%, 100% {
        transform: translate(0%, 0%) scale(1);
        opacity: 0.8;
    }
    50% {
        transform: translate(-3%, 2%) scale(1.05);
        opacity: 1;
    }
}

/* Ensure hero content sits above the animated background */
.hero > * {
    position: relative;
    z-index: 1;
}

/* Floating particles effect */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.hero-particles span {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255,112,67,0.6);
    animation: floatParticle linear infinite;
}

.hero-particles span:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.hero-particles span:nth-child(2) { left: 20%; animation-duration: 18s; animation-delay: 2s; width: 2px; height: 2px; background: rgba(78,248,255,0.5); }
.hero-particles span:nth-child(3) { left: 35%; animation-duration: 15s; animation-delay: 4s; }
.hero-particles span:nth-child(4) { left: 50%; animation-duration: 20s; animation-delay: 1s; width: 3px; height: 3px; background: rgba(255,183,77,0.5); }
.hero-particles span:nth-child(5) { left: 65%; animation-duration: 14s; animation-delay: 3s; }
.hero-particles span:nth-child(6) { left: 75%; animation-duration: 16s; animation-delay: 5s; width: 2px; height: 2px; background: rgba(78,248,255,0.4); }
.hero-particles span:nth-child(7) { left: 85%; animation-duration: 19s; animation-delay: 2s; }
.hero-particles span:nth-child(8) { left: 92%; animation-duration: 13s; animation-delay: 6s; width: 3px; height: 3px; background: rgba(255,112,67,0.4); }

@keyframes floatParticle {
    0% {
        transform: translateY(100vh) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-10vh) scale(1);
        opacity: 0;
    }
}

/* Subtle shimmer on the Buddy OS pill */
.three-options .option.buddy {
    animation: buddyPulse 3s ease-in-out infinite;
}

@keyframes buddyPulse {
    0%, 100% {
        box-shadow: 0 0 10px rgba(255,112,67,0.3), 0 0 20px rgba(255,112,67,0.1);
    }
    50% {
        box-shadow: 0 0 20px rgba(255,112,67,0.6), 0 0 40px rgba(255,112,67,0.3);
    }
}
/* === FULL SITE BLACK — ALL PAGES === */

/* Fix body backgrounds */
body {
    background: #0a0a0a;
    color: #ffffff !important;
}

html {
    background: #0a0a0a;
}

section,
.section-light {
    background: #0a0a0a;
}

/* === PRICING.PAGE === */
.pricing-card,
.pricing-card.featured {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

.pricing-card.featured {
    border: 2px solid rgba(255,112,67,0.4) !important;
}

/* === COMMUNITY.HTML === */
.auth-bar,
.forum-search {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

.forum-search {
    color: #ffffff !important;
}

.btn {
    background: #333 !important;
    color: #ffffff !important;
    border: 1px solid #555 !important;
}

.btn:hover {
    background: #444 !important;
}

.modal {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

/* === HOW-BUDDY-WORKS.HTML === */
.rule-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
}

/* === DOCS.HTML === */
.doc-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: rgba(255,255,255,0.8) !important;
}

.doc-card:hover {
    background: #222 !important;
    border-color: #555 !important;
}

/* === GENERAL: ALL WHITE CARD OVERRIDES === */
.card,
.feature-card,
.pricing-card,
.testimonial-card,
.doc-card,
.rule-card,
.changelog-item,
.post-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
    color: rgba(255,255,255,0.85) !important;
}

/* Any generic white-on-white text elements */
h1, h2, h3, h4, h5, h6,
p, li, span, label {
    color: #ffffff !important;
}

/* Grey/subtle text */
.text-muted,
.subtitle,
.sub-text {
    color: rgba(255,255,255,0.6) !important;
}

/* Links in dark cards */
.card a,
.feature-card a,
.rule-card a {
    color: rgba(255,255,255,0.85) !important;
}

/* Border overrides for any light borders */
*:not(i):not(em):not(strong) {
    border-color: #333 !important;
}

/* Fix CSS variables used by inline styles */
:root {
    --bg-main: #0a0a0a !important;
    --bg-secondary: #1a1a1a !important;
    --bg-tertiary: #222222 !important;
    --border: #333333 !important;
    --text-primary: #ffffff !important;
    --text-secondary: rgba(255,255,255,0.7) !important;
    --text-muted: rgba(255,255,255,0.5) !important;
}

/* Community form elements */
select, input, textarea {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

select option {
    background: #1a1a1a !important;
    color: #ffffff !important;
}

/* Table styling for how-buddy-works */
th {
    background: #1a1a1a !important;
    color: #ffffff !important;
    border: 1px solid #333333 !important;
}

td {
    background: #0a0a0a;
    color: rgba(255,255,255,0.85) !important;
    border: 1px solid #333333 !important;
}

tr:nth-child(even) td {
    background: #111111 !important;
}

/* Hero comparison option pills - keep their distinct product colors */
.option.chatgpt,
.option.openclaw {
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.15) !important;
}

/* Feature cards */
.feat-card {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

/* Blog featured post */
.featured-post {
    background: #1a1a1a !important;
    border: 1px solid #333 !important;
}

/* Secondary buttons - subtle dark grey (not white) */
.btn-secondary {
    background: rgba(255,255,255,0.1) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

.btn-secondary:hover {
    background: rgba(255,255,255,0.15) !important;
}

/* Hero comparison pills - keep their signature colors */
.hero .option.chatgpt,
.hero .option.openclaw,
.hero .option.buddy,
span.option.chatgpt,
span.option.openclaw,
span.option.buddy {
    background: rgba(255,255,255,0.06) !important;
    border: 2px solid rgba(255,255,255,0.12) !important;
    color: #ffffff !important;
}

/* All secondary buttons everywhere */
a.btn-secondary,
a.btn.btn-secondary,
button.btn-secondary,
button.btn.btn-secondary {
    background: rgba(255,255,255,0.08) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
}

a.btn-secondary:hover,
button.btn-secondary:hover {
    background: rgba(255,255,255,0.15) !important;
}
/* === DARKNESS SLIDER === */
.darkness-slider {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.15);
}

.darkness-slider label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
}

.darkness-slider input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 80px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(to right, #0a0a0a, #f5f5f7);
    outline: none;
    cursor: pointer;
}

.darkness-slider input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    cursor: pointer;
    border: 2px solid #333;
}

.darkness-slider input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 4px rgba(0,0,0,0.5);
    cursor: pointer;
    border: 2px solid #333;
}

/* Dark mode (slider at 0) */
:root {
    --dark-bg: #0a0a0a;
    --dark-bg-secondary: #1a1a1a;
    --dark-bg-tertiary: #222222;
    --dark-border: #333333;
    --dark-text: #ffffff;
    --dark-text-muted: rgba(255,255,255,0.6);
    --darkness: 0;
}

/* Slider-controlled dark/light system */
body {
    background: var(--dark-bg);
    color: var(--dark-text) !important;
}

.navbar {
    background: var(--dark-bg);
    border-bottom: 1px solid var(--dark-border) !important;
}

.footer {
    background: var(--dark-bg);
}

section, .section-light {
    background: var(--dark-bg);
}

.card, .feature-card, .pricing-card, .doc-card, .rule-card {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
}

.btn-secondary {
    background: rgba(255,255,255, calc(0.08 + var(--darkness) * 0.15)) !important;
    color: var(--dark-text) !important;
    border: 1px solid rgba(255,255,255, calc(0.2 + var(--darkness) * 0.1)) !important;
}

/* Light mode overrides when slider is at max */
body.light-mode,
body.light-mode .navbar,
body.light-mode .footer,
body.light-mode section {
    --dark-bg: #f5f5f7;
    --dark-bg-secondary: #ffffff;
    --dark-bg-tertiary: #f0f0f5;
    --dark-border: #dcdce0;
    --dark-text: #1a1a1a;
    --dark-text-muted: rgba(26,26,26,0.6);
    background: var(--dark-bg);
    color: var(--dark-text) !important;
}

body.light-mode .navbar,
body.light-mode .footer {
    border-color: var(--dark-border) !important;
}

body.light-mode .card,
body.light-mode .feature-card,
body.light-mode .pricing-card,
body.light-mode .doc-card,
body.light-mode .rule-card {
    background: var(--dark-bg-secondary) !important;
    border: 1px solid var(--dark-border) !important;
}

body.light-mode h1, 
body.light-mode h2, 
body.light-mode h3, 
body.light-mode h4, 
body.light-mode p,
body.light-mode li,
body.light-mode a {
    color: var(--dark-text) !important;
}

body.light-mode .footer-logo,
body.light-mode .footer-brand p,
body.light-mode .footer-col h4,
body.light-mode .footer-col ul li a {
    color: var(--dark-text) !important;
}

body.light-mode .nav-links a {
    color: var(--dark-text) !important;
}

body.light-mode .nav-logo {
    color: #1a1a1a !important;
}

/* Enhanced slider visibility */
.darkness-slider {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 4px 12px !important;
    background: rgba(255,255,255,0.05) !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.darkness-slider label {
    font-size: 14px !important;
    filter: grayscale(0) !important;
}

.darkness-slider input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    width: 70px !important;
    height: 6px !important;
    border-radius: 3px !important;
    background: linear-gradient(to right, #000000 0%, #888888 50%, #f5f5f7 100%) !important;
    outline: none !important;
    cursor: pointer !important;
    border: none !important;
}

.darkness-slider input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #FF7043 !important;
    cursor: pointer !important;
    box-shadow: 0 0 6px rgba(255,112,67,0.6) !important;
}

.darkness-slider input[type=range]::-moz-range-thumb {
    width: 18px !important;
    height: 18px !important;
    border-radius: 50% !important;
    background: #FF7043 !important;
    cursor: pointer !important;
    border: none !important;
}

/* Fix near-black text on dark backgrounds */
.pricing-card .price-amount,
.pricing-card .price,
.pricing-card h2[class*="price"],
[class*=pricing] [class*=price],
div[class*=price] {
    color: #ffffff !important;
}

/* Price number visibility */
.pricing-card .amount,
.pricing-card .price-number,
div[class*=price] {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Testimonial attribution text */
.testimonial .author,
.testimonial .attribution,
[class*=testimonial] [class*=author],
[class*=testimonial] [class*=attribution] {
    color: rgba(255,255,255,0.8) !important;
}

/* Global fix: any near-black text on dark backgrounds */
body, body * {
    color: var(--dark-text) !important;
}

/* Ensure white text everywhere on dark bg */
.pricing-card,
.pricing-card *,
.testimonial-card,
.testimonial-card *,
[class*=pricing] [class*=price],
[class*=pricing] [class*=price] * {
    color: rgba(255,255,255,0.95) !important;
}

/* CRITICAL: Pricing card prices must be WHITE */
.pricing-price,
.pricing-price *,
div.pricing-price {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Any price-related element */
[class*=pricing] .price,
[class*=pricing] .amount,
[class*=pricing] .pricing-price {
    color: #ffffff !important;
}

/* Specific inline styled price fix */
.pricing-price {
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 2.5rem !important;
}
