/* ============================
   Ghaith Automation - Premium Dark Theme
   ============================ */

/* ============================
   1. CSS Variables & Reset
   ============================ */
:root {
    --primary: #1B0B7A;
    --primary-light: #2A18A8;
    --primary-dark: #0E0550;
    --accent: #4D8DFF;
    --accent-light: #7AABFF;
    --accent-glow: rgba(77, 141, 255, 0.3);
    --bg-body: #07041A;
    --bg-card: rgba(27, 11, 122, 0.12);
    --bg-glass: rgba(27, 11, 122, 0.25);
    --text-primary: #E8E6F5;
    --text-secondary: #9B95C8;
    --text-muted: #6560A0;
    --border: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(77, 141, 255, 0.25);
    --success: #4D8DFF;
    --error: #FF4D6A;
    --warning: #FFB546;
    --shadow-glow: 0 0 30px rgba(77, 141, 255, 0.15);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.4);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: 0.3s ease;
}

[hidden] {
    display: none !important;
}

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

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

body {
    font-family: 'Tajawal', sans-serif;
    direction: rtl;
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.7;
    background: var(--bg-body);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(27, 11, 122, 0.5) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(77, 141, 255, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 100%, rgba(27, 11, 122, 0.25) 0%, transparent 50%);
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--bg-body);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* ============================
   2. Utility Classes
   ============================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.glow-border {
    border: 1px solid var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 32px;
    border-radius: var(--radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-body);
    border-color: var(--accent);
    box-shadow: 0 0 20px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px var(--accent-glow);
}

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

.btn-outline:hover {
    background: rgba(77, 141, 255, 0.1);
    border-color: var(--accent-light);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 40px;
    font-size: 1.1rem;
}

.btn-block {
    width: 100%;
}

.required {
    color: var(--error);
}

/* ============================
   3. Navbar
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.navbar.scrolled {
    background: rgba(7, 4, 26, 0.95);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    transition: var(--transition);
}

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

.logo-icon {
    font-size: 1.8rem;
    color: var(--accent);
}

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

.nav-links a {
    position: relative;
    padding: 8px 18px;
    border-radius: 8px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 18px;
    left: 18px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
    border-radius: 1px;
}

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

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--bg-body) !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    box-shadow: 0 0 20px var(--accent-glow);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--accent-light) !important;
    transform: scale(1.05);
    box-shadow: 0 0 30px var(--accent-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

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

/* ============================
   4. Hero Section
   ============================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 70% 20%, rgba(27, 11, 122, 0.7) 0%, transparent 50%),
        radial-gradient(ellipse at 30% 80%, rgba(77, 141, 255, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse at 50% 50%, rgba(14, 5, 80, 0.8) 0%, transparent 70%),
        radial-gradient(ellipse at 10% 30%, rgba(42, 24, 168, 0.3) 0%, transparent 40%),
        radial-gradient(ellipse at 90% 70%, rgba(77, 141, 255, 0.05) 0%, transparent 30%);
}

.hero::before {
    content: '<G>';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(200px, 25vw, 400px);
    font-weight: 900;
    font-family: 'Courier New', monospace;
    color: rgba(27, 11, 122, 0.12);
    letter-spacing: -10px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
    text-shadow: 0 0 80px rgba(77, 141, 255, 0.05);
}

.hero::after {
    content: 'GAITH';
    position: absolute;
    bottom: 12%;
    left: 50%;
    transform: translateX(-50%);
    font-size: clamp(80px, 12vw, 180px);
    font-weight: 900;
    font-family: 'Tajawal', sans-serif;
    color: rgba(27, 11, 122, 0.08);
    letter-spacing: 20px;
    pointer-events: none;
    white-space: nowrap;
    z-index: 0;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
}

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

.hero-brand-mark {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 0;
}

.hero-brand-mark .brand-text {
    font-size: 2.8rem;
    font-weight: 900;
    letter-spacing: 3px;
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
}

.hero-brand-mark .brand-code {
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    font-family: 'Courier New', monospace;
    position: relative;
    top: -8px;
    margin-right: 4px;
    text-shadow: 0 0 20px var(--accent-glow);
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(77, 141, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 24px;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    background: var(--bg-glass);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border);
}

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

.stat-number {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--accent);
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
}

/* Phone Mockup */
.hero-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    background: var(--bg-body);
    border-radius: 40px;
    padding: 12px;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--bg-body), var(--bg-body)), linear-gradient(135deg, var(--primary-light), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-card), 0 0 60px rgba(0, 212, 170, 0.15);
    animation: float 4s ease-in-out infinite;
    perspective: 1000px;
}

.phone-notch {
    width: 120px;
    height: 24px;
    background: var(--bg-body);
    border-radius: 0 0 16px 16px;
    margin: 0 auto -12px;
    position: relative;
    z-index: 2;
}

.phone-screen {
    background: var(--bg-body);
    border-radius: 32px;
    overflow: hidden;
    min-height: 460px;
}

.chat-header-mock {
    background: var(--primary);
    padding: 32px 16px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar {
    width: 36px;
    height: 36px;
    background: var(--accent-glow);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border: 2px solid var(--accent);
}

.chat-name {
    color: var(--text-primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.chat-status {
    color: var(--accent);
    font-size: 0.7rem;
    margin-right: auto;
}

.chat-messages {
    padding: 16px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: rgba(15, 10, 31, 0.6);
}

.chat-msg {
    max-width: 85%;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    line-height: 1.5;
    direction: rtl;
}

.chat-msg.received {
    background: var(--bg-glass);
    color: var(--text-primary);
    align-self: flex-start;
    border-radius: 0 12px 12px 12px;
    border: 1px solid var(--border);
}

.chat-msg.sent {
    background: var(--accent);
    color: var(--bg-body);
    align-self: flex-end;
    border-radius: 12px 0 12px 12px;
    font-weight: 600;
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 80px;
}

/* ============================
   5. Section Shared Styles
   ============================ */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-tag {
    display: inline-block;
    padding: 6px 20px;
    background: rgba(77, 141, 255, 0.1);
    color: var(--accent);
    border: 1px solid var(--border-glow);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-title {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================
   6. Features Section
   ============================ */
.features {
    background: transparent;
}

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

.feature-card {
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: var(--transition);
    text-align: center;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

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

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--accent);
    font-size: 1.6rem;
}

.feature-title {
    font-size: 1.125rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.feature-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(4) { animation-delay: 0.3s; }
.feature-card:nth-child(5) { animation-delay: 0.4s; }
.feature-card:nth-child(6) { animation-delay: 0.5s; }

/* ============================
   7. How It Works Section
   ============================ */
.how-it-works {
    background: rgba(7, 4, 26, 0.5);
    position: relative;
}

.steps-container {
    position: relative;
    display: flex;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step-line {
    display: none;
}

.steps-timeline {
    position: absolute;
    top: 28px;
    right: 56px;
    left: 56px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light), var(--accent), var(--primary-light));
    z-index: 0;
}

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

.step-number {
    width: 56px;
    height: 56px;
    background: var(--bg-body);
    color: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    font-weight: 800;
    margin: 0 auto 24px;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-body), var(--bg-body)), linear-gradient(135deg, var(--primary-light), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 0 20px var(--accent-glow);
    position: relative;
    z-index: 1;
}

.step-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.step-content:hover {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.step-icon {
    font-size: 2.4rem;
    margin-bottom: 16px;
    display: block;
}

.step-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.step-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================
   8. Bot Demo Section
   ============================ */
.bot-demo {
    background: transparent;
    position: relative;
}

.bot-demo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.demo-phone {
    width: 375px;
    height: 667px;
    border-radius: 40px;
    overflow: hidden;
    position: relative;
    border: 3px solid transparent;
    background-image: linear-gradient(var(--bg-body), var(--bg-body)), linear-gradient(135deg, var(--primary-light), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: var(--shadow-card), 0 0 40px rgba(77, 141, 255, 0.1);
    animation: float 5s ease-in-out infinite;
}

.demo-phone-screen {
    background: var(--bg-body);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.demo-chat-header {
    background: var(--primary);
    padding: 20px 16px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border);
}

.demo-chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 2px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: var(--accent);
}

.demo-chat-name {
    color: var(--text-primary);
    font-weight: 700;
}

.demo-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.demo-msg {
    max-width: 80%;
    font-size: 0.85rem;
    line-height: 1.5;
}

.demo-msg p {
    margin: 0;
    white-space: pre-wrap;
}

.demo-msg-received {
    align-self: flex-start;
}

.demo-msg-received p {
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px;
    color: var(--text-primary);
}

.demo-msg-sent {
    align-self: flex-end;
}

.demo-msg-sent p {
    padding: 10px 14px;
    background: var(--accent);
    border-radius: 12px 0 12px 12px;
    color: var(--bg-body);
    font-weight: 600;
}

.typing-indicator {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    background: var(--bg-glass);
    border: 1px solid var(--border);
    border-radius: 0 12px 12px 12px;
    align-self: flex-start;
    width: fit-content;
}

.typing-indicator span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: typing-dots 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

.demo-quick-actions,
.quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
}

.quick-action-btn {
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.8rem;
    cursor: pointer;
    transition: var(--transition);
}

.quick-action-btn:hover {
    background: var(--accent);
    color: var(--bg-body);
}

.demo-input-area,
.demo-chat-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(7, 4, 26, 0.8);
    border-top: 1px solid var(--border);
}

.demo-input,
.demo-chat-input input {
    flex: 1;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-primary);
    font-family: 'Tajawal', sans-serif;
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
    direction: rtl;
}

.demo-input:focus,
.demo-chat-input input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

.demo-send-btn,
.demo-chat-input button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    border: none;
    color: var(--bg-body);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    flex-shrink: 0;
}

.demo-send-btn:hover,
.demo-chat-input button:hover {
    background: var(--accent-light);
    transform: scale(1.05);
}

/* ============================
   9. Pricing Section
   ============================ */
.pricing {
    background: rgba(7, 4, 26, 0.5);
}

.pricing-card {
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    padding: 3px;
    background: linear-gradient(135deg, var(--primary-light), var(--accent), var(--primary-light));
    background-size: 300% 300%;
    animation: gradient-rotate 4s ease infinite;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card-inner {
    background: var(--bg-body);
    border-radius: calc(var(--radius-lg) - 3px);
    padding: 0;
    overflow: hidden;
}

.pricing-badge {
    position: absolute;
    top: 24px;
    left: 24px;
    background: var(--accent);
    color: var(--bg-body);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 1;
}

.pricing-header {
    padding: 40px 36px 20px;
    text-align: center;
}

.pricing-name {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pricing-tagline {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    padding: 20px 36px 32px;
    text-align: center;
}

.price-value {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-details {
    display: flex;
    flex-direction: column;
    text-align: start;
}

.price-currency {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.pricing-features {
    padding: 0 36px 20px;
}

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

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--accent);
    font-weight: 700;
    font-size: 1.1rem;
}

.pricing-card .btn {
    margin: 12px 36px 24px;
    width: calc(100% - 72px);
}

.pricing-trial {
    text-align: center;
    padding: 0 36px 36px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ============================
   10. Testimonials Section
   ============================ */
.testimonials {
    background: transparent;
    overflow: hidden;
}

.testimonials-track-wrapper {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    gap: 24px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    padding: 16px 0 32px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonials-track.auto-scroll {
    animation: slide-in 30s linear infinite;
}

.testimonial-card {
    flex: 0 0 350px;
    scroll-snap-align: start;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: var(--border-glow);
}

.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid transparent;
    background-image: linear-gradient(var(--bg-body), var(--bg-body)), linear-gradient(135deg, var(--primary-light), var(--accent));
    background-origin: border-box;
    background-clip: padding-box, border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 16px;
    overflow: hidden;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.testimonial-stars {
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

.testimonial-name {
    font-weight: 700;
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 4px;
}

.testimonial-company {
    color: var(--text-muted);
    font-size: 0.85rem;
}

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

.testimonials-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: var(--transition);
    cursor: pointer;
}

.testimonials-dots span.active {
    background: var(--accent);
    box-shadow: 0 0 8px var(--accent-glow);
}

/* ============================
   11. FAQ Section
   ============================ */
.faq {
    background: rgba(7, 4, 26, 0.5);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.faq-item.active {
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: right;
    transition: var(--transition);
    gap: 16px;
}

.faq-question:hover {
    color: var(--accent);
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(77, 141, 255, 0.1);
}

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

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ============================
   12. Registration Section
   ============================ */
.register {
    background: transparent;
    position: relative;
}

.register-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}

.register-info h3 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.register-benefits {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.register-benefits li {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-benefits strong {
    display: block;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.register-benefits p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.register-form {
    background: var(--bg-card);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: var(--shadow-card);
    max-width: 600px;
}

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

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

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: 'Tajawal', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: rgba(15, 10, 31, 0.6);
    transition: var(--transition);
    outline: none;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

.form-group input:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.form-group input:focus {
    border-color: var(--accent);
    background: rgba(7, 4, 26, 0.8);
    box-shadow: 0 0 0 4px var(--accent-glow);
}

.form-group input.error {
    border-color: var(--error);
    background: rgba(255, 77, 106, 0.05);
}

.form-group input[dir="ltr"] {
    direction: ltr;
    text-align: left;
}

.error-msg {
    display: block;
    font-size: 0.82rem;
    color: var(--error);
    margin-top: 6px;
    min-height: 18px;
}

.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(15, 10, 31, 0.3);
    border-top-color: var(--bg-body);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}

.form-message {
    margin-top: 16px;
    padding: 0;
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: center;
    transition: var(--transition);
}

.form-message.success {
    padding: 14px;
    background: rgba(77, 141, 255, 0.1);
    color: var(--success);
    border: 1px solid var(--success);
}

.form-message.error {
    padding: 14px;
    background: rgba(255, 77, 106, 0.1);
    color: var(--error);
    border: 1px solid var(--error);
}

/* ============================
   13. Success Overlay Animation
   ============================ */
.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(7, 4, 26, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.success-overlay.active {
    opacity: 1;
}

.success-content {
    background: var(--bg-body);
    border: 1px solid var(--border-glow);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    max-width: 420px;
    width: 90%;
    transform: scale(0.8) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: var(--shadow-card), var(--shadow-glow);
}

.success-overlay.active .success-content {
    transform: scale(1) translateY(0);
}

.success-checkmark {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.checkmark-svg {
    width: 80px;
    height: 80px;
}

.checkmark-circle {
    stroke: var(--accent);
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-miterlimit: 10;
    fill: none;
}

.success-overlay.active .checkmark-circle {
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) 0.2s forwards;
}

.checkmark-check {
    stroke: var(--accent);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
}

.success-overlay.active .checkmark-check {
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

.success-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 12px;
}

.success-message {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 28px;
}

.success-close-btn {
    min-width: 160px;
}

/* ============================
   14. Footer
   ============================ */
.footer {
    background: rgba(10, 6, 18, 0.8);
    border-top: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent, var(--primary-light), var(--accent), var(--primary-light), transparent) 1;
    color: var(--text-secondary);
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    max-width: 400px;
}

.footer-brand .logo-icon {
    font-size: 1.6rem;
    color: var(--accent);
}

.footer-brand .logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
}

.footer-desc {
    margin-top: 12px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.footer-links h4,
.footer-contact h4 {
    color: var(--text-primary);
    font-weight: 700;
    margin-bottom: 16px;
}

.footer-links a {
    display: block;
    color: var(--text-muted);
    padding: 6px 0;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent);
    padding-right: 8px;
}

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

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

.whatsapp-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: #25D366;
    color: #ffffff !important;
    border-radius: var(--radius);
    font-weight: 600;
    transition: var(--transition);
}

.whatsapp-link:hover {
    background: #1da851;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ============================
   15. Animations / Keyframes
   ============================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px var(--accent-glow);
    }
    50% {
        box-shadow: 0 0 40px var(--accent-glow);
    }
}

@keyframes typing-dots {
    0%, 60%, 100% {
        transform: translateY(0);
        opacity: 0.4;
    }
    30% {
        transform: translateY(-6px);
        opacity: 1;
    }
}

@keyframes gradient-rotate {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes slide-in {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(50%);
    }
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* ============================
   16. Media Queries
   ============================ */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin: 0 auto 36px;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

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

    .register-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

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

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        background: rgba(15, 10, 31, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 16px 24px;
        box-shadow: var(--shadow-card);
        border-radius: 0 0 var(--radius) var(--radius);
        border: 1px solid var(--border);
        border-top: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        color: var(--text-secondary) !important;
        padding: 12px 18px;
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a:hover {
        color: var(--accent) !important;
        background: rgba(77, 141, 255, 0.1) !important;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 100px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }

    .stat-divider {
        width: 40px;
        height: 1px;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        flex-direction: column;
        gap: 24px;
    }

    .steps-timeline {
        display: none;
    }

    .pricing-card {
        margin: 0 8px;
    }

    .demo-phone {
        width: 300px;
        height: 540px;
    }

    .testimonial-card {
        flex: 0 0 280px;
    }

    .register-form {
        padding: 24px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    section {
        padding: 70px 0;
    }

    .faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .faq-answer {
        padding: 0 20px;
    }

    .faq-item.active .faq-answer {
        padding: 0 20px 16px;
    }

    .success-content {
        padding: 36px 24px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }

    .container {
        padding: 0 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .btn-lg {
        padding: 14px 28px;
        font-size: 1rem;
    }

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

    .feature-card {
        padding: 24px 20px;
    }

    .step-content {
        padding: 24px 16px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .demo-phone {
        width: 260px;
        height: 480px;
    }

    .testimonial-card {
        flex: 0 0 260px;
        padding: 24px;
    }

    section {
        padding: 56px 0;
    }
}
