/* ==================== BUILTBYJO GLOBAL STYLES ==================== */

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #0a0a0a;
    --bg-card: #1a1a1a;
    --bg-card-hover: #1a1a1a;
    --bg-white: #0a0a0a;
    --bg-light: #0a0a0a;

    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-dark: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --accent-glow-strong: rgba(59, 130, 246, 0.3);

    --text-primary: #f0f0f2;
    --text-secondary: #8a8a9a;
    --text-muted: #5a5a6a;
    --text-dark: #f0f0f2;
    --text-dark-secondary: #8a8a9a;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.08);
    --border-accent: rgba(59, 130, 246, 0.2);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);

    --transition: 0.2s ease;
}

/* Light Mode */
[data-theme="light"] {
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f8f9fa;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;

    --text-primary: #1a1a2e;
    --text-secondary: #4a4a5a;
    --text-muted: #8a8a9a;
    --text-dark: #1a1a2e;
    --text-dark-secondary: #4a4a5a;

    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.06);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .grid-bg {
    opacity: 0.3;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
}

[data-theme="light"] .card {
    border-color: var(--border);
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid var(--border);
}

[data-theme="light"] .section-dark {
    background: var(--bg-secondary);
}

[data-theme="light"] .section-light {
    background: var(--bg-primary);
}

/* Theme Toggle Button */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
    margin-right: 12px;
}

.theme-toggle:hover {
    background: var(--accent-glow);
    border-color: var(--accent);
}

[data-theme="light"] .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun,
:root:not([data-theme]) .theme-toggle .icon-sun {
    display: none;
}

[data-theme="light"] .theme-toggle .icon-sun,
[data-theme="dark"] .theme-toggle .icon-moon,
:root:not([data-theme]) .theme-toggle .icon-moon {
    display: block;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ==================== TYPOGRAPHY ==================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-secondary);
}

a {
    color: inherit;
    text-decoration: none;
}

/* ==================== LAYOUT ==================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.section-light {
    background: var(--bg-white);
    color: var(--text-dark);
}

.section-light p {
    color: var(--text-dark-secondary);
}

.section-light .text-muted {
    color: var(--text-dark-secondary);
}

/* ==================== GRID BACKGROUND ==================== */

.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 50%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 60px 60px, 60px 60px;
}

.content-wrap {
    position: relative;
    z-index: 1;
}

/* ==================== NAVIGATION ==================== */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

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

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

.nav-links a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color var(--transition);
}

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

.nav-cta {
    background: var(--accent);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    transition: all var(--transition);
}

.nav-cta:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-right: 8px;
}

.nav-lang a {
    text-decoration: none;
    transition: color var(--transition);
}

.nav-lang a.active {
    color: var(--accent) !important;
}

.nav-lang a:not(.active) {
    color: var(--text-muted) !important;
    font-weight: 500;
}

.nav-lang a:not(.active):hover {
    color: var(--text-primary) !important;
}

.nav-lang span {
    color: var(--border-light);
    font-weight: 400;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: rgba(6, 6, 8, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        pointer-events: all;
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        border-bottom: 1px solid var(--border);
    }

    /* Fix text contrast in light mode mobile menu */
    [data-theme="light"] .nav-links a {
        color: var(--text-primary);
    }

    [data-theme="light"] .nav-links a:hover,
    [data-theme="light"] .nav-links a.active {
        color: var(--accent);
    }

    [data-theme="light"] .nav-lang span {
        color: var(--text-secondary);
    }

    /* Ensure CTA button remains readable */
    [data-theme="light"] .nav-links .nav-cta {
        color: white !important;
        background: var(--accent);
    }

    .nav-links a {
        font-size: 1.1rem;
        padding: 8px 0;
    }
}

/* ==================== BUTTONS ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow-strong);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

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

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--accent);
}

.btn-outline:hover {
    background: var(--accent);
    color: white;
}

.btn-white {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-white:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

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

.btn-sm {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* ==================== CARDS ==================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-accent);
    transform: translateY(-4px);
}

.card-light {
    background: #1a1a1a;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.card-light:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    background: #1a1a1a;
    /* Ensure it stays the same on hover, just shadow/lift changes */
}

/* ==================== HERO SECTIONS ==================== */

.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-glow);
    border: 1px solid var(--border-accent);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--accent-light);
    margin-bottom: 24px;
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==================== FEATURE GRID ==================== */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.grid-3-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

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

.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 600px) {
    .grid-2-cols {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    padding: 32px;
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.feature-card h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ==================== PRICING CARDS ==================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 48px;
}

.pricing-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.pricing-card.featured {
    border-color: var(--accent);
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(59, 130, 246, 0.05) 100%);
    position: relative;
}

.pricing-card.featured::before {
    content: 'Most Popular';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-badge {
    display: inline-block;
    background: var(--accent-glow);
    color: var(--accent-light);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.pricing-card h3 {
    margin-bottom: 8px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0;
}

.pricing-card .price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-secondary);
}

.pricing-features {
    list-style: none;
    margin: 24px 0;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.pricing-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 600;
}

/* ==================== TESTIMONIALS ==================== */

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
}

.testimonial-card {
    padding: 32px;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    margin-bottom: 24px;
    color: var(--text-primary);
}

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

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--accent);
}

.testimonial-info h5 {
    color: var(--text-primary);
    font-size: 1rem;
}

.testimonial-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==================== FAQ ==================== */

.faq-list {
    max-width: 800px;
    margin: 48px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--accent);
    transition: transform var(--transition);
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding-bottom: 24px;
}

/* ==================== 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: 48px;
    margin-bottom: 48px;
}

.footer-brand p {
    margin-top: 16px;
    max-width: 300px;
}

.footer-col h5 {
    color: var(--text-primary);
    margin-bottom: 20px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    padding: 8px 0;
    transition: color var(--transition);
}

.footer-col a:hover {
    color: var(--accent);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-langs {
    display: flex;
    gap: 16px;
}

.footer-langs a {
    color: var(--text-muted);
}

.footer-langs a:hover,
.footer-langs a.active {
    color: var(--text-primary);
}

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

    .footer-brand {
        grid-column: 1 / -1;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ==================== SECTION HEADERS ==================== */

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 48px;
}

.section-header h2 {
    margin-bottom: 16px;
}

/* ==================== STEPS / HOW IT WORKS ==================== */

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.step-card {
    text-align: center;
    padding: 32px;
}

.step-number {
    width: 56px;
    height: 56px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin: 0 auto 20px;
}

.step-card h4 {
    margin-bottom: 12px;
    color: var(--text-primary);
}

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

/* ==================== DEMO SHOWCASE ==================== */

.demo-section {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 48px;
    margin-top: 48px;
}

.demo-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.demo-tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: inherit;
    font-size: 0.95rem;
}

.demo-tab:hover,
.demo-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.demo-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.demo-phone {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 32px;
    padding: 16px;
    max-width: 320px;
    margin: 0 auto;
}

.demo-phone-screen {
    background: #075e54;
    border-radius: 20px;
    min-height: 400px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.demo-placeholder {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    text-align: center;
}

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

    .demo-section {
        padding: 24px;
    }
}

/* ==================== CONTACT FORM ==================== */

.contact-form {
    max-width: 500px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

/* ==================== UTILITIES ==================== */

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

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

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

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

.mt-1 {
    margin-top: 8px;
}

.mt-2 {
    margin-top: 16px;
}

.mt-3 {
    margin-top: 24px;
}

.mt-4 {
    margin-top: 32px;
}

.mt-5 {
    margin-top: 48px;
}

.mb-1 {
    margin-bottom: 8px;
}

.mb-2 {
    margin-bottom: 16px;
}

.mb-3 {
    margin-bottom: 24px;
}

.mb-4 {
    margin-bottom: 32px;
}

.mb-5 {
    margin-bottom: 48px;
}

.hidden {
    display: none;
}

/* ==================== ANIMATIONS ==================== */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* ==================== LANGUAGE BADGE ==================== */

.lang-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.lang-badge img {
    width: 16px;
    height: 16px;
    border-radius: 2px;
}

/* Widget Pointer */
.widget-pointer {
    position: fixed;
    bottom: 100px;
    right: 100px;
    z-index: 99998;
    animation: widget-pointer-bounce 2s infinite;
    pointer-events: none;
}

.widget-pointer-content {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.widget-pointer-arrow {
    font-size: 1.5rem;
    animation: arrow-bounce 1s infinite;
}

@keyframes widget-pointer-bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes arrow-bounce {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(4px, 4px);
    }
}

@media (max-width: 768px) {
    .widget-pointer {
        bottom: 90px;
        right: 20px;
    }

    .widget-pointer-content {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Light mode fixes for card-light and section-light */
[data-theme="light"] .card-light {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .card-light:hover {
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .section-light {
    background: #f8f9fa;
}

[data-theme="light"] .section-light p {
    color: #4a4a5a;
}

[data-theme="light"] .section-light .card-light p {
    color: #1a1a2e;
}