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

:root {
    --bg-color: #050505;
    --card-bg: rgba(255, 255, 255, 0.03);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --accent-orange: #ff4d00;
    --accent-glow: linear-gradient(135deg, #ff4d00 0%, #ff9500 100%);
    --accent-hover: rgba(255, 77, 0, 0.1);
    --transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

[lang="ar"] {
    font-family: 'Alexandria', sans-serif;
}

[lang="en"] {
    font-family: 'Outfit', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    font-family: 'Outfit', sans-serif;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

/* Layout Containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 1;
}

header {
    padding: 1.5rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.hero-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    margin: 0 auto 2rem;
    margin-top: -3rem;
    animation: fadeInDown 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.hero-logo .main-logo {
    height: 140px;
    margin-bottom: 0.5rem;
}

.hero-logo .logo-text {
    font-size: 2.5rem;
    letter-spacing: 0.05em;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.logo-text {
    font-size: 2.2rem;
    font-weight: 800;
    background: var(--accent-glow);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.05em;
    text-transform: uppercase;
}

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

.lang-toggle {
    padding: 0.6rem 1.2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    border-radius: 12px;
    color: var(--text-primary);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.lang-toggle:hover {
    background: var(--accent-hover);
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 2rem 1rem 6rem;
    position: relative;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
    background: linear-gradient(to bottom, #fff 0%, #aaa 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-weight: 400;
}

/* Selection Section */
.selection-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 4rem 0 3rem;
    text-align: center;
    letter-spacing: -0.02em;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 5rem;
}

.card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    padding: 3rem 2rem;
    border-radius: 24px;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 77, 0, 0.4);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
}

.card.active {
    border-color: var(--accent-orange);
    background: rgba(255, 77, 0, 0.08);
}

.card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(1);
    pointer-events: none;
}

.card.active::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--accent-glow);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0.8;
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
    font-size: 1.5rem;
    transition: var(--transition);
}

.card:hover .card-icon {
    background: var(--accent-orange);
    color: #fff;
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

/* Comparison Table */
.comparison {
    margin: 8rem 0;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.75rem;
}

.comparison-table th {
    text-align: left;
    padding: 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

[dir="rtl"] .comparison-table th {
    text-align: right;
}

.comparison-row {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.comparison-row:hover {
    background: rgba(255, 255, 255, 0.08);
}

.comparison-row td {
    padding: 1.5rem;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.comparison-row td:first-child {
    border-left: 1px solid var(--glass-border);
    border-radius: 16px 0 0 16px;
}

.comparison-row td:last-child {
    border-right: 1px solid var(--glass-border);
    border-radius: 0 16px 16px 0;
}

[dir="rtl"] .comparison-row td:first-child {
    border-left: none;
    border-right: 1px solid var(--glass-border);
    border-radius: 0 16px 16px 0;
}

[dir="rtl"] .comparison-row td:last-child {
    border-right: none;
    border-left: 1px solid var(--glass-border);
    border-radius: 16px 0 0 16px;
}

.highlight {
    color: var(--accent-orange);
    font-weight: 700;
}

/* Auth Section */
.auth-section {
    text-align: center;
    padding: 6rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    margin: 6rem 0;
}

.auth-header {
    margin-bottom: 3rem;
}

#authText {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.google-auth-btn {
    display: inline-flex;
    align-items: center;
    gap: 1.2rem;
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px -10px rgba(255, 255, 255, 0.2);
}

.google-auth-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 50px -10px rgba(255, 255, 255, 0.3);
    background: #f8f8f8;
}

.google-auth-btn img {
    width: 24px;
    height: 24px;
}

.btn-signin {
    display: inline-block;
    padding: 1.2rem 3rem;
    background: var(--accent-glow);
    color: white;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 1.5rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px -10px rgba(255, 77, 0, 0.4);
}

.btn-signin:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -10px rgba(255, 77, 0, 0.6);
}

@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 10px 40px -10px rgba(255, 77, 0, 0.4); }
    50% { box-shadow: 0 10px 50px -5px rgba(255, 77, 0, 0.6); }
}

.btn-signin.pulse {
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.03) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 6s ease-in-out infinite;
    pointer-events: none;
}

/* Use cases section – moving chips */
.use-cases-section {
    padding: 4rem 0 5rem;
    text-align: center;
}

.use-cases-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.use-cases-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 400;
}

.use-cases-mask {
    position: relative;
    overflow: hidden;
    margin: 0 -1.5rem;
}

.use-cases-mask::before,
.use-cases-mask::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 120px;
    z-index: 2;
    pointer-events: none;
}

.use-cases-mask::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.use-cases-mask::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

[dir="rtl"] .use-cases-mask::before {
    left: auto;
    right: 0;
    background: linear-gradient(to left, var(--bg-color) 0%, transparent 100%);
}

[dir="rtl"] .use-cases-mask::after {
    right: auto;
    left: 0;
    background: linear-gradient(to right, var(--bg-color) 0%, transparent 100%);
}

.use-cases-row {
    display: flex;
    width: 100%;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.use-cases-track {
    display: inline-flex;
    gap: 0.75rem;
    padding: 0 0.5rem;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.use-cases-row-1 .use-cases-track {
    animation-name: useCasesScrollL;
    animation-duration: 45s;
}

.use-cases-row-2 .use-cases-track {
    animation-name: useCasesScrollR;
    animation-duration: 50s;
}

[dir="rtl"] .use-cases-row-1 .use-cases-track {
    animation-name: useCasesScrollR;
}

[dir="rtl"] .use-cases-row-2 .use-cases-track {
    animation-name: useCasesScrollL;
}

@keyframes useCasesScrollL {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@keyframes useCasesScrollR {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.use-case-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    white-space: nowrap;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    flex-shrink: 0;
}

.use-case-chip i {
    width: 1rem;
    height: 1rem;
    color: var(--accent-orange);
    flex-shrink: 0;
}

.use-case-chip:hover {
    border-color: rgba(255, 77, 0, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 20px -5px rgba(255, 77, 0, 0.3);
}

.use-cases-ps {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

/* FAQ section */
.faq-section {
    padding: 5rem 0 4rem;
    max-width: 720px;
    margin: 0 auto;
}

.faq-title {
    font-size: 2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 2.5rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.faq-item {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 77, 0, 0.25);
}

.faq-item[open] {
    border-color: rgba(255, 77, 0, 0.4);
}

.faq-q {
    padding: 1.1rem 1.25rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: "";
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23ff4d00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.8;
    transition: transform 0.25s ease;
}

.faq-item[open] .faq-q::after {
    transform: rotate(180deg);
}

.faq-a {
    padding: 0 1.25rem 1.25rem;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.faq-a:not(:first-child) {
    padding-top: 0;
}

/* Footer */
footer {
    text-align: center;
    padding: 6rem 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

footer a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

footer a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Glassy Icons (Lucide integration) */
.glass-icon {
    display: inline-flex;
    padding: 1rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    color: var(--accent-orange);
    margin-bottom: 1rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

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

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

.animate {
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }

    .container {
        padding: 0 1rem;
    }

    header {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding: 1rem 0;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .main-logo {
        height: 60px;
    }

    .hero-logo .main-logo {
        height: 80px;
    }

    .logo-text, .hero-logo .logo-text {
        font-size: 1.5rem;
    }

    .grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .auth-section {
        padding: 3rem 1rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }

    .selection-title {
        font-size: 1.4rem;
        margin: 2rem 0 1.5rem;
    }

    .use-cases-title {
        font-size: 1.6rem;
    }

    .use-cases-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .use-case-chip {
        font-size: 0.8rem;
        padding: 0.5rem 0.85rem;
    }

    .use-cases-mask {
        margin: 0 -1rem;
    }

    .use-cases-mask::before,
    .use-cases-mask::after {
        width: 60px;
    }

    .card {
        padding: 2rem 1.25rem;
    }

    .faq-section {
        padding: 3rem 0 2.5rem;
    }

    .faq-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .faq-q {
        padding: 1rem 1rem;
        font-size: 0.95rem;
    }

    .faq-a {
        padding: 0 1rem 1rem;
        font-size: 0.9rem;
    }

    .comparison-table {
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-row td {
        padding: 0.75rem 0.5rem;
    }

    .dashboard-container {
        margin: 1rem auto;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .stepper {
        margin-bottom: 2rem;
        gap: 0;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .stepper .step {
        min-width: 56px;
        flex: 0 0 auto;
    }

    .stepper .step-label {
        font-size: 0.65rem;
    }

    .control-panel {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
    }

    .config-progress-steps li {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }

    .config-progress-hint {
        font-size: 0.75rem;
    }

    .google-auth-btn {
        padding: 1rem;
        font-size: 0.95rem;
    }

    .btn-signin, .btn-outline {
        padding: 0.85rem 1.25rem;
        font-size: 0.95rem;
    }

    .pricing-section {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .price-card {
        padding: 2rem 1.5rem;
    }

    .price-val {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.85rem;
    }

    .container {
        padding: 0 0.75rem;
    }

    .use-cases-mask {
        margin: 0 -0.75rem;
    }

    .dashboard-container {
        padding: 1.25rem 0.75rem;
        margin: 0.75rem auto;
    }

    .stepper .step-circle {
        width: 28px;
        height: 28px;
        font-size: 0.75rem;
    }

    .stepper::before {
        top: 12px;
    }

    .status-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .status-header .status-badge {
        align-self: flex-start;
    }

    .form-group input,
    .form-group select {
        font-size: 16px; /* prevents zoom on focus on iOS */
    }

    .config-progress-steps li {
        font-size: 0.8rem;
    }
}

/* ===== Blog Styles ===== */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.blog-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    backdrop-filter: blur(20px);
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 77, 0, 0.4);
    box-shadow: 0 20px 60px -15px rgba(255, 77, 0, 0.15);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--glass-border);
}

.blog-card-img-placeholder {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    border-bottom: 1px solid var(--glass-border);
}

.blog-card-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.blog-card-tag {
    background: rgba(255, 77, 0, 0.12);
    color: var(--accent-orange);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.blog-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-orange);
    font-weight: 600;
    font-size: 0.85rem;
    margin-top: 1.25rem;
    transition: gap 0.2s;
}

.blog-card:hover .blog-card-link {
    gap: 0.7rem;
}

/* Blog Post Article */
.blog-article {
    max-width: 760px;
    margin: 2rem auto 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(20px);
}

.blog-article h1 {
    font-size: 2.5rem;
    -webkit-text-fill-color: unset;
    background: none;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.blog-article-meta {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.blog-article h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--glass-border);
}

.blog-article h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 1.75rem 0 0.75rem;
}

.blog-article p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.blog-article ul, .blog-article ol {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.blog-article li {
    margin-bottom: 0.5rem;
}

.blog-article strong {
    color: var(--text-primary);
}

.blog-article a {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 600;
}

.blog-article a:hover {
    text-decoration: underline;
}

.blog-article code {
    background: rgba(255,255,255,0.06);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: var(--accent-orange);
}

.blog-article blockquote {
    border-left: 3px solid var(--accent-orange);
    margin: 1.5rem 0;
    padding: 1rem 1.5rem;
    background: rgba(255, 77, 0, 0.04);
    border-radius: 0 12px 12px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.blog-cta {
    margin: 3rem 0 1rem;
    padding: 2rem;
    background: rgba(255, 77, 0, 0.06);
    border: 1px solid rgba(255, 77, 0, 0.2);
    border-radius: 16px;
    text-align: center;
}

.blog-cta h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.blog-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

@media (max-width: 768px) {
    .blog-grid {
        grid-template-columns: 1fr;
    }
    .blog-article {
        padding: 2rem 1.25rem;
        margin: 1rem auto 2rem;
    }
    .blog-article h1 {
        font-size: 1.75rem;
    }
}

/* ===== Floating Support Chat Button ===== */
.support-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0;
    text-decoration: none;
    filter: drop-shadow(0 4px 20px rgba(0, 136, 204, 0.4));
    transition: var(--transition);
}

.support-fab:hover {
    transform: translateY(-4px) scale(1.05);
    filter: drop-shadow(0 8px 30px rgba(0, 136, 204, 0.55));
}

.support-fab-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0088cc, #00aaee);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
}

.support-fab-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

.support-fab-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(0, 136, 204, 0.5);
    animation: fabPulse 2.5s ease-in-out infinite;
}

@keyframes fabPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0; }
}

.support-fab-label {
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.5rem 1rem 0.5rem 0.75rem;
    border-radius: 12px 12px 12px 0;
    white-space: nowrap;
    margin-right: 0.5rem;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.support-fab:hover .support-fab-label {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    .support-fab {
        bottom: 1.25rem;
        right: 1.25rem;
    }
    .support-fab-icon {
        width: 50px;
        height: 50px;
    }
    .support-fab-icon svg {
        width: 22px;
        height: 22px;
    }
}

/* ===================================================================== */
/* ===== Redesign foundation: CSS aurora background (replaces video) === */
/* ===================================================================== */

.bg-fx {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: var(--bg-color);
    overflow: hidden;
}

.bg-fx-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    will-change: transform;
    pointer-events: none;
}

.bg-fx-blob.blob-a {
    width: 55vmax;
    height: 55vmax;
    top: -18vmax;
    left: -12vmax;
    background: radial-gradient(circle at 32% 32%, rgba(255, 77, 0, 0.17), transparent 62%);
    animation: bgDriftA 70s ease-in-out infinite alternate;
}

.bg-fx-blob.blob-b {
    width: 46vmax;
    height: 46vmax;
    bottom: -16vmax;
    right: -10vmax;
    background: radial-gradient(circle at 60% 55%, rgba(255, 149, 0, 0.11), transparent 60%);
    animation: bgDriftB 90s ease-in-out infinite alternate;
}

.bg-fx-blob.blob-c {
    width: 38vmax;
    height: 38vmax;
    top: 32%;
    left: 56%;
    background: radial-gradient(circle at 45% 45%, rgba(190, 42, 10, 0.13), transparent 58%);
    animation: bgDriftC 58s ease-in-out infinite alternate;
}

@keyframes bgDriftA {
    from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
    to   { transform: translate3d(9vmax, 7vmax, 0) rotate(35deg) scale(1.15); }
}

@keyframes bgDriftB {
    from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1.1); }
    to   { transform: translate3d(-8vmax, -9vmax, 0) rotate(-30deg) scale(0.95); }
}

@keyframes bgDriftC {
    from { transform: translate3d(0, 0, 0) scale(0.9); }
    to   { transform: translate3d(-11vmax, 6vmax, 0) scale(1.2); }
}

.bg-fx-grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, black 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 38%, black 25%, transparent 78%);
    pointer-events: none;
}

.bg-fx-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(5, 5, 5, 0.72) 100%);
    pointer-events: none;
}

@media (max-width: 768px) {
    .bg-fx-blob { filter: blur(80px); }
    .bg-fx-blob.blob-c { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .bg-fx-blob { animation: none; }
}

/* ===== Scroll-reveal system (IntersectionObserver via reveal.js) ===== */
/* Hidden states apply only when JS is running (html.js) — crawlers and  */
/* no-JS visitors always see full content.                               */

html.js .reveal {
    opacity: 0;
    transform: translate3d(var(--rvx, 0), var(--rvy, 26px), 0) scale(var(--rvs, 1));
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1), transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

html.js .reveal-fade  { --rvy: 0; }
html.js .reveal-scale { --rvy: 0; --rvs: 0.94; }
html.js .reveal-left  { --rvy: 0; --rvx: -34px; }
html.js .reveal-right { --rvy: 0; --rvx: 34px; }

/* Slide-ins come from the logical start in RTL layouts */
html.js [dir="rtl"] .reveal-left,
html[dir="rtl"].js .reveal-left  { --rvx: 34px; }
html.js [dir="rtl"] .reveal-right,
html[dir="rtl"].js .reveal-right { --rvx: -34px; }

html.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    html.js .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ===== Fixed glass navigation ===== */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.site-nav.scrolled {
    background: rgba(5, 5, 5, 0.72);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-bottom-color: var(--glass-border);
}

.site-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.nav-brand img {
    height: 34px;
    width: 34px;
    border-radius: 8px;
}

.nav-brand-name {
    font-weight: 800;
    font-size: 1.02rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    background: var(--accent-glow);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    white-space: nowrap;
}

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

.nav-link {
    padding: 0.55rem 0.9rem;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92rem;
    transition: var(--transition);
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.btn-nav-cta {
    padding: 0.55rem 1.15rem;
    border-radius: 12px;
    background: var(--accent-glow);
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 24px -8px rgba(255, 77, 0, 0.55);
    transition: var(--transition);
}

.btn-nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -8px rgba(255, 77, 0, 0.7);
}

body.has-fixed-nav {
    padding-top: 62px;
}

@media (max-width: 768px) {
    .site-nav-inner { padding: 0.6rem 1rem; }
    .nav-brand-name { display: none; }
    .nav-link { padding: 0.5rem 0.6rem; font-size: 0.85rem; }
    .btn-nav-cta { padding: 0.5rem 0.85rem; font-size: 0.85rem; }
    body.has-fixed-nav { padding-top: 56px; }
}

/* ===== Scroll progress bar ===== */

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    transform-origin: 0 50%;
    transform: scaleX(0);
    background: var(--accent-glow);
    z-index: 101;
    pointer-events: none;
}

[dir="rtl"] .scroll-progress,
html[dir="rtl"] .scroll-progress {
    transform-origin: 100% 50%;
}

/* ===== Hero (v2) ===== */

.hero-v2 {
    text-align: center;
    padding: 5.5rem 1rem 5rem;
    position: relative;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: rgba(255, 77, 0, 0.09);
    border: 1px solid rgba(255, 77, 0, 0.28);
    color: #ffc9a8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.9rem;
}

.hero-eyebrow i {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--accent-orange);
}

.hero-title {
    font-size: clamp(2.4rem, 6vw, 4.6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 1.6rem;
    background: linear-gradient(to bottom, #fff 0%, #a9a9b0 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.grad-text {
    background: linear-gradient(90deg, #ff4d00, #ff9500, #ff4d00);
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradSheen 7s linear infinite;
}

@keyframes gradSheen {
    to { background-position: 200% center; }
}

@media (prefers-reduced-motion: reduce) {
    .grad-text { animation: none; }
}

.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto;
    font-weight: 400;
}

.hero-cta-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2.6rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1.05rem 2.4rem;
    background: var(--accent-glow);
    color: #fff;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    transition: var(--transition);
    box-shadow: 0 10px 40px -10px rgba(255, 77, 0, 0.45);
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px -10px rgba(255, 77, 0, 0.6);
}

.btn-primary i { width: 1.1rem; height: 1.1rem; }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 1.05rem 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: var(--transition);
    cursor: pointer;
    font-family: inherit;
}

.btn-ghost:hover {
    border-color: rgba(255, 77, 0, 0.45);
    background: rgba(255, 255, 255, 0.08);
}

.hero-trust {
    margin-top: 2.2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: flex;
    gap: 1.4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.hero-trust i {
    width: 1rem;
    height: 1rem;
    color: var(--accent-orange);
}

/* Non-interactive showcase cards (informational, not selectable) */
.card.static {
    cursor: default;
}

.card.static:hover {
    transform: none;
    border-color: var(--glass-border);
    background: var(--glass-bg);
    box-shadow: none;
}

.card.static:hover .card-icon {
    background: var(--glass-bg);
    color: var(--accent-orange);
    transform: none;
}

@media (min-width: 769px) {
    #works-with .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    #works-with .card {
        padding: 2.25rem 1.25rem;
    }
}

.channel-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.works-note {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    font-style: italic;
}

/* Wide tables scroll inside their own container so the page never overflows */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table-wrap .comparison-table {
    min-width: 640px;
}

/* ===== Section shell ===== */

.section {
    margin: 7rem 0;
}

.sec-head {
    text-align: center;
    margin-bottom: 2.75rem;
}

.sec-eyebrow {
    color: var(--accent-orange);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sec-title {
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-top: 0.6rem;
    color: var(--text-primary);
}

.sec-sub {
    color: var(--text-secondary);
    max-width: 640px;
    margin: 0.9rem auto 0;
    font-size: 1.02rem;
}

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

/* ===== How it works ===== */

.hiw-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.hiw-step {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border-radius: 20px;
    padding: 2.25rem 1.75rem;
    position: relative;
    transition: var(--transition);
}

.hiw-step:hover {
    border-color: rgba(255, 77, 0, 0.35);
    transform: translateY(-6px);
}

.hiw-num {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--accent-glow);
    color: #fff;
    font-weight: 800;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px -8px rgba(255, 77, 0, 0.5);
}

.hiw-step h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

.hiw-step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.65;
}

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

/* ===== Footer (v2) ===== */

footer.footer-v2 {
    border-top: 1px solid var(--glass-border);
    margin-top: 6rem;
    padding: 4rem 0 2.5rem;
    text-align: start;
    font-size: 0.95rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-about p {
    color: var(--text-secondary);
    margin-top: 0.9rem;
    max-width: 300px;
    line-height: 1.65;
    font-size: 0.9rem;
}

.footer-col h4 {
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 0.28rem 0;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--accent-orange);
    text-decoration: none;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.footer-bottom a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

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

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

/* ===== Pricing (moved from pricing.html inline styles) ===== */

.pricing-section {
    max-width: 1100px;
    margin: 2rem auto;
    text-align: center;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

@media (max-width: 820px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

.price-card {
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card:hover {
    border-color: var(--accent-orange);
    transform: translateY(-6px);
    box-shadow: 0 20px 50px -18px rgba(255, 77, 0, 0.35);
}

.price-card.featured {
    border-color: var(--accent-orange);
    box-shadow: 0 0 46px rgba(255, 77, 0, 0.22);
    transform: scale(1.03);
}

.price-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.price-card.featured::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-orange), #ffb347);
    border-radius: 24px 24px 0 0;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-glow);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.3rem 1rem;
    border-radius: 20px;
    box-shadow: 0 6px 20px -6px rgba(255, 77, 0, 0.6);
}

.plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0.75rem 0 0.25rem;
}

.plan-desc {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    min-height: 2.4em;
}

.price-val {
    font-size: 3rem;
    font-weight: 800;
    margin: 0.5rem 0;
    background: var(--accent-glow);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.price-val .period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 400;
    -webkit-text-fill-color: var(--text-secondary);
}

.plan-specs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 1rem 0;
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.plan-specs span {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
    direction: ltr;
    flex: 1;
}

html[dir="rtl"] .features-list {
    text-align: right;
    direction: rtl;
}

.features-list li {
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.features-list i {
    color: var(--accent-orange);
    flex-shrink: 0;
}

.btn-plan {
    width: 100%;
    border: none;
    padding: 0.85rem;
    border-radius: 14px;
    font-weight: 700;
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: auto;
}

.btn-plan.primary {
    background: var(--accent-glow);
    color: #fff;
}

.btn-plan.primary:hover {
    box-shadow: 0 4px 24px rgba(255, 77, 0, 0.45);
    transform: translateY(-2px);
}

.btn-plan.outline {
    background: transparent;
    border: 1px solid var(--glass-border);
    color: #fff;
}

.btn-plan.outline:hover {
    border-color: var(--accent-orange);
    background: rgba(255, 77, 0, 0.05);
}

/* ===== Login card ===== */

.login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 62px);
    padding: 2rem 0;
}

.login-card {
    max-width: 450px;
    width: 100%;
    padding: 3.5rem 2.5rem;
    text-align: center;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border-radius: 28px;
}

.login-card h1 {
    font-size: 2rem;
    margin-bottom: 0.9rem;
}

.login-card .login-sub {
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

/* ===== Blog reading progress (CSS scroll-driven, no JS) ===== */

@supports (animation-timeline: scroll()) {
    .read-progress {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        height: 2px;
        background: var(--accent-glow);
        transform-origin: 0 50%;
        transform: scaleX(0);
        animation: readGrow linear both;
        animation-timeline: scroll(root);
        z-index: 101;
        pointer-events: none;
    }

    @keyframes readGrow {
        to { transform: scaleX(1); }
    }
}
