/* ── Landing Page – Custom CSS ── */
/* No external CSS libraries used */

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --primary-50: #eff6ff;
    --primary-100: #dbeafe;
    --primary-900: #1e3a5f;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --gray-950: #030712;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --red-500: #ef4444;
    --cyan-400: #22d3ee;
    --amber-500: #f59e0b;
    --white: #ffffff;
    --radius: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.25rem;
    --shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.1), 0 8px 10px -6px rgba(0,0,0,.1);
    --transition: 0.2s ease;
}

[data-theme="dark"] {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #60a5fa;
    --primary-50: rgba(59,130,246,.08);
    --primary-100: rgba(59,130,246,.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-size: 16px;
}

body.landing {
    font-family: 'Inter', 'Noto Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--gray-700);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.landing[dir="rtl"] {
    font-family: 'Noto Sans Arabic', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

[data-theme="dark"] body.landing {
    color: var(--gray-300);
    background: var(--gray-950);
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

@media (min-width: 768px) {
    .container { padding: 0 1.5rem; }
}

/* ── Navigation ── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,.85);
    backdrop-filter: blur(16px) saturate(1.8);
    -webkit-backdrop-filter: blur(16px) saturate(1.8);
    border-bottom: 1px solid var(--gray-100);
    transition: box-shadow var(--transition);
}

[data-theme="dark"] .nav {
    background: rgba(3,7,18,.85);
    border-bottom-color: var(--gray-800);
}

.nav.scrolled { box-shadow: var(--shadow); }

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 4rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 800;
    font-size: 1.375rem;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .nav-brand { color: var(--white); }

.nav-brand-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light, #60a5fa));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .nav-brand-text {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-brand-icon {
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--primary);
    color: var(--white);
}

.nav-brand-icon.has-logo {
    background: none;
    border-radius: 0;
    width: 2rem;
    height: 2rem;
}

.nav-brand-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.nav-brand-icon svg { width: 1.25rem; height: 1.25rem; }

.nav-links {
    display: none;
    align-items: center;
    gap: 0.25rem;
}

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

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    border-radius: 0.5rem;
    transition: color var(--transition), background var(--transition);
}

[data-theme="dark"] .nav-link { color: var(--gray-400); }

.nav-link:hover {
    color: var(--gray-900);
    background: var(--gray-50);
}

[data-theme="dark"] .nav-link:hover {
    color: var(--white);
    background: var(--gray-800);
}

.nav-actions {
    display: none;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: var(--gray-600);
}

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

.nav-toggle svg { width: 1.5rem; height: 1.5rem; }

.nav-mobile {
    display: none;
    padding: 1rem 1.25rem 1.25rem;
    border-top: 1px solid var(--gray-100);
}

[data-theme="dark"] .nav-mobile { border-top-color: var(--gray-800); }

.nav-mobile.open { display: flex; flex-direction: column; gap: 0.5rem; }

.nav-mobile .nav-link {
    display: block;
    padding: 0.75rem 0;
}

.nav-mobile .nav-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--gray-100);
}

[data-theme="dark"] .nav-mobile .nav-actions { border-top-color: var(--gray-800); }

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(37,99,235,.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 20px rgba(37,99,235,.35);
    transform: translateY(-1px);
}

.btn-outline {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
}

[data-theme="dark"] .btn-outline {
    border-color: var(--gray-700);
    color: var(--gray-300);
    background: transparent;
}

.btn-outline:hover {
    background: var(--gray-50);
}

[data-theme="dark"] .btn-outline:hover {
    background: var(--gray-800);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 0.875rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-xl);
}

.btn-icon {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: var(--gray-600);
}

[data-theme="dark"] .btn-icon { color: var(--gray-400); }

.btn-icon:hover {
    background: var(--gray-100);
}

[data-theme="dark"] .btn-icon:hover {
    background: var(--gray-800);
}

.btn svg { width: 1.25rem; height: 1.25rem; }
.btn-sm svg { width: 1rem; height: 1rem; }

/* ── Hero ── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 4rem 0 5rem;
}

@media (min-width: 768px) {
    .hero { padding: 6rem 0 7rem; }
}

@media (min-width: 1024px) {
    .hero { padding: 7rem 0 9rem; }
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary-50), var(--white) 50%, rgba(6,182,212,.05));
    z-index: 0;
}

[data-theme="dark"] .hero-bg {
    background: linear-gradient(135deg, rgba(30,58,95,.3), var(--gray-950) 50%, rgba(6,182,212,.05));
}

.hero-dots {
    position: absolute;
    inset: 0;
    opacity: 0.3;
    background-image: radial-gradient(circle at 1px 1px, rgba(59,130,246,.12) 1px, transparent 0);
    background-size: 32px 32px;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 52rem;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary);
    background: var(--primary-50);
    border: 1px solid var(--primary-100);
    border-radius: 2rem;
    margin-bottom: 1.5rem;
}

.hero-badge svg { width: 1rem; height: 1rem; }

.hero h1 {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    letter-spacing: -0.025em;
}

[data-theme="dark"] .hero h1 { color: var(--white); }

@media (min-width: 640px) {
    .hero h1 { font-size: 3rem; }
}
@media (min-width: 1024px) {
    .hero h1 { font-size: 3.75rem; }
}

.hero h1 .gradient {
    background: linear-gradient(135deg, var(--primary), var(--cyan-400));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    margin-top: 1.5rem;
    font-size: 1.125rem;
    color: var(--gray-500);
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

[data-theme="dark"] .hero-sub { color: var(--gray-400); }

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

@media (min-width: 480px) {
    .hero-actions { flex-direction: row; justify-content: center; }
}

/* Stats Row */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 4rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.stat { text-align: center; }

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

@media (min-width: 640px) {
    .stat-value { font-size: 2.25rem; }
}

.stat-label {
    margin-top: 0.25rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

/* ── Live Demo / Dashboard Preview ── */
.demo-section {
    padding: 0 0 5rem;
    position: relative;
}

.demo-window {
    max-width: 56rem;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    background: var(--white);
}

[data-theme="dark"] .demo-window {
    border-color: var(--gray-700);
    background: var(--gray-900);
}

.demo-toolbar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

[data-theme="dark"] .demo-toolbar {
    background: var(--gray-800);
    border-bottom-color: var(--gray-700);
}

.demo-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.demo-dot:nth-child(1) { background: #ef4444; }
.demo-dot:nth-child(2) { background: #f59e0b; }
.demo-dot:nth-child(3) { background: #22c55e; }

.demo-body {
    padding: 1.5rem;
}

.demo-monitors { display: flex; flex-direction: column; gap: 0.75rem; }

.demo-monitor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-100);
    background: var(--white);
    animation: fadeSlideUp 0.6s ease both;
}

[data-theme="dark"] .demo-monitor {
    border-color: var(--gray-700);
    background: var(--gray-800);
}

.demo-monitor:nth-child(2) { animation-delay: 0.15s; }
.demo-monitor:nth-child(3) { animation-delay: 0.3s; }
.demo-monitor:nth-child(4) { animation-delay: 0.45s; }

.demo-monitor-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.demo-status {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
    flex-shrink: 0;
}

.demo-status.up {
    background: var(--green-500);
    box-shadow: 0 0 0 3px rgba(34,197,94,.2);
    animation: pulse-green 2s infinite;
}

.demo-status.down {
    background: var(--red-500);
    box-shadow: 0 0 0 3px rgba(239,68,68,.2);
    animation: pulse-red 2s infinite;
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,.1); }
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 3px rgba(239,68,68,.2); }
    50% { box-shadow: 0 0 0 6px rgba(239,68,68,.1); }
}

.demo-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

[data-theme="dark"] .demo-name { color: var(--white); }

.demo-url {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

.demo-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.demo-meta span { white-space: nowrap; }

.demo-uptime { color: var(--green-600); font-weight: 600; }

/* ── Features ── */
.features {
    padding: 5rem 0;
    background: var(--gray-50);
}

[data-theme="dark"] .features { background: var(--gray-900); }

.section-header {
    text-align: center;
    max-width: 36rem;
    margin: 0 auto 3.5rem;
}

.section-header h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

[data-theme="dark"] .section-header h2 { color: var(--white); }

@media (min-width: 640px) {
    .section-header h2 { font-size: 2.25rem; }
}

.section-header p {
    margin-top: 1rem;
    color: var(--gray-500);
}

[data-theme="dark"] .section-header p { color: var(--gray-400); }

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

@media (min-width: 640px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .features-grid { grid-template-columns: repeat(4, 1fr); }
}

.feature-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    transition: all var(--transition);
}

[data-theme="dark"] .feature-card {
    border-color: var(--gray-800);
    background: var(--gray-950);
}

.feature-card:hover {
    border-color: var(--primary-100);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

[data-theme="dark"] .feature-card:hover { border-color: rgba(59,130,246,.3); }

.feature-icon {
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--primary-50);
    color: var(--primary);
    margin-bottom: 1rem;
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--primary);
    color: var(--white);
}

.feature-icon svg { width: 1.5rem; height: 1.5rem; }

.feature-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .feature-card h3 { color: var(--white); }

.feature-card p {
    font-size: 0.8125rem;
    color: var(--gray-500);
    line-height: 1.6;
}

/* ── How It Works ── */
.how-it-works {
    padding: 5rem 0;
}

.steps {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
    position: relative;
}

@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
}

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

.step-number {
    width: 3.5rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    border-radius: 50%;
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 8px 24px rgba(37,99,235,.25);
}

.step h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

[data-theme="dark"] .step h3 { color: var(--white); }

.step p {
    font-size: 0.875rem;
    color: var(--gray-500);
    max-width: 18rem;
    margin: 0 auto;
}

/* ── Pricing ── */
.pricing {
    padding: 5rem 0;
    background: var(--gray-50);
}

[data-theme="dark"] .pricing { background: var(--gray-900); }

.billing-toggle {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
}

.billing-toggle-inner {
    display: inline-flex;
    padding: 0.25rem;
    border-radius: 2rem;
    background: var(--gray-100);
}

[data-theme="dark"] .billing-toggle-inner { background: var(--gray-800); }

.billing-btn {
    padding: 0.5rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 2rem;
    color: var(--gray-600);
    transition: all var(--transition);
}

[data-theme="dark"] .billing-btn { color: var(--gray-400); }

.billing-btn.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow);
}

[data-theme="dark"] .billing-btn.active {
    background: var(--gray-700);
    color: var(--white);
}

.billing-btn .badge {
    display: inline-block;
    margin-inline-start: 0.375rem;
    padding: 0.125rem 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: 2rem;
    background: rgba(34,197,94,.1);
    color: var(--green-600);
}

.plans-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
    align-items: start;
}

@media (min-width: 768px) {
    .plans-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .plans-grid { grid-template-columns: repeat(3, 1fr); }
}

.plan-card {
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    background: var(--white);
    position: relative;
    transition: all var(--transition);
}

[data-theme="dark"] .plan-card {
    border-color: var(--gray-800);
    background: var(--gray-950);
}

.plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-xl); }

.plan-card.featured {
    border: 2px solid var(--primary);
    z-index: 1;
}

@media (min-width: 1024px) {
    .plan-card.featured { transform: scale(1.05); }
    .plan-card.featured:hover { transform: scale(1.05) translateY(-3px); }
}

.plan-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--white);
    background: var(--primary);
    border-radius: 2rem;
    white-space: nowrap;
}

.plan-header { text-align: center; margin-bottom: 1.5rem; }

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
}

[data-theme="dark"] .plan-name { color: var(--white); }

.plan-desc {
    margin-top: 0.375rem;
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.plan-price {
    margin-top: 1rem;
}

.plan-price .amount {
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

[data-theme="dark"] .plan-price .amount { color: var(--white); }

.plan-price .period {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.plan-features {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.8125rem;
    color: var(--gray-600);
}

[data-theme="dark"] .plan-feature { color: var(--gray-400); }

.plan-feature svg {
    width: 1.125rem;
    height: 1.125rem;
    color: var(--primary);
    flex-shrink: 0;
}

.plan-cta {
    display: block;
    width: 100%;
    text-align: center;
}

/* ── FAQ ── */
.faq {
    padding: 5rem 0;
}

.faq-list {
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    background: var(--white);
    overflow: hidden;
    transition: border-color var(--transition);
}

[data-theme="dark"] .faq-item {
    border-color: var(--gray-800);
    background: var(--gray-950);
}

.faq-item:hover { border-color: var(--primary-100); }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1.25rem 1.5rem;
    text-align: start;
    font-weight: 500;
    color: var(--gray-900);
    gap: 1rem;
}

[data-theme="dark"] .faq-question { color: var(--white); }

.faq-question svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.2s ease;
}

.faq-item.open .faq-question svg {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: none;
    padding: 0 1.5rem 1.25rem;
    color: var(--gray-500);
    font-size: 0.875rem;
    line-height: 1.7;
    border-top: 1px solid var(--gray-100);
    padding-top: 1rem;
}

[data-theme="dark"] .faq-answer { border-top-color: var(--gray-800); }

.faq-item.open .faq-answer { display: block; }

/* ── Testimonials ── */
.testimonials {
    padding: 5rem 0;
    background: var(--gray-50);
}

[data-theme="dark"] .testimonials { background: var(--gray-900); }

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

@media (min-width: 640px) {
    .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
}

[data-theme="dark"] .testimonial-card {
    border-color: var(--gray-800);
    background: var(--gray-950);
}

.testimonial-stars {
    display: flex;
    gap: 0.125rem;
    color: var(--amber-500);
    margin-bottom: 1rem;
}

.testimonial-stars svg { width: 1rem; height: 1rem; }

.testimonial-text {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

[data-theme="dark"] .testimonial-text { color: var(--gray-400); }

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--primary-50);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
}

.testimonial-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--gray-900);
}

[data-theme="dark"] .testimonial-name { color: var(--white); }

.testimonial-role {
    font-size: 0.75rem;
    color: var(--gray-400);
}

/* ── CTA ── */
.cta {
    padding: 5rem 0;
    text-align: center;
}

.cta-inner {
    max-width: 36rem;
    margin: 0 auto;
}

.cta h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
}

[data-theme="dark"] .cta h2 { color: var(--white); }

@media (min-width: 640px) {
    .cta h2 { font-size: 2.25rem; }
}

.cta p {
    margin-top: 1rem;
    color: var(--gray-500);
}

.cta .btn {
    margin-top: 2rem;
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--gray-200);
    background: var(--gray-50);
    padding: 2.5rem 0;
}

[data-theme="dark"] .footer {
    border-top-color: var(--gray-800);
    background: var(--gray-900);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .footer-inner { flex-direction: row; justify-content: space-between; }
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--gray-900);
    text-decoration: none;
    letter-spacing: -0.02em;
}

[data-theme="dark"] .footer-brand { color: var(--white); }

.footer-brand-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light, #60a5fa));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
[data-theme="dark"] .footer-brand-text {
    background: linear-gradient(135deg, #93c5fd, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand-icon {
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: var(--primary);
    color: var(--white);
}

.footer-brand-icon.has-logo {
    background: none;
    border-radius: 0;
    width: 1.5rem;
    height: 1.5rem;
}

.footer-brand-icon.has-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.footer-brand-icon svg { width: 1rem; height: 1rem; }

.footer-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    text-align: center;
}

.footer-copy {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

/* ── Animations ── */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(1.5rem); }
    to { opacity: 1; transform: translateY(0); }
}

.animate-in {
    opacity: 0;
    transform: translateY(1.5rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Utility ── */
.text-center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Responsive helpers */
@media (max-width: 479px) {
    .hero h1 { font-size: 1.875rem; }
    .hero-sub { font-size: 1rem; }
    .stat-value { font-size: 1.5rem; }
    .plan-price .amount { font-size: 2.25rem; }
}

/* RTL adjustments */
[dir="rtl"] .plan-feature {
    flex-direction: row;
}

/* theme toggle animation */
.theme-icon {
    transition: transform 0.3s ease;
}
.theme-icon:hover {
    transform: rotate(20deg);
}

/* Dark/Light logo toggle */
.logo-dark { display: none; }
.logo-light { display: inline; }
[data-theme="dark"] .logo-dark { display: inline; }
[data-theme="dark"] .logo-light { display: none; }
