@import url('https://fonts.googleapis.com/css2?family=Aref+Ruqaa:wght@400;700&family=Cairo:wght@400;700;900&display=swap');

/* Base Configurations & Reset */
:root {
    /* Color Palette - Dark Theme (Default) */
    --bg-color: hsl(225, 25%, 9%);
    --card-bg: hsla(225, 20%, 15%, 0.65);
    --card-border: hsla(225, 20%, 25%, 0.4);
    --text-primary: hsl(210, 25%, 98%);
    --text-secondary: hsl(215, 15%, 75%);
    --text-muted: hsl(215, 12%, 55%);
    
    --primary-color: hsl(262, 83%, 62%);
    --primary-glow: hsla(262, 83%, 62%, 0.35);
    --secondary-color: hsl(192, 95%, 50%);
    --secondary-glow: hsla(192, 95%, 50%, 0.25);
    
    --navbar-bg: hsla(225, 25%, 9%, 0.75);
    --btn-hover-bg: hsl(262, 83%, 55%);
    
    --accent-glow: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    
    /* Global Settings */
    --font-tajawal: 'Tajawal', sans-serif;
    --font-outfit: 'Outfit', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
}

/* Light Theme Variables */
body.light-theme {
    --bg-color: hsl(220, 30%, 97%);
    --card-bg: hsla(0, 0%, 100%, 0.7);
    --card-border: hsla(220, 20%, 85%, 0.5);
    --text-primary: hsl(225, 30%, 15%);
    --text-secondary: hsl(220, 15%, 40%);
    --text-muted: hsl(220, 10%, 55%);
    
    --primary-color: hsl(262, 75%, 55%);
    --primary-glow: hsla(262, 75%, 55%, 0.15);
    --secondary-color: hsl(192, 85%, 45%);
    --secondary-glow: hsla(192, 85%, 45%, 0.1);
    
    --navbar-bg: hsla(220, 30%, 97%, 0.85);
    --btn-hover-bg: hsl(262, 75%, 48%);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-tajawal);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color 0.5s ease, color 0.3s ease;
}

/* Global Container Utility */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Glow Effects */
.bg-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
    transition: var(--transition-smooth);
}

.bg-glow-1 {
    top: -100px;
    right: -100px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
}

.bg-glow-2 {
    top: 600px;
    left: -150px;
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
}

/* Typography Helpers */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.3;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Header & Navbar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--navbar-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transition: var(--transition-smooth);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-icon {
    font-size: 28px;
    color: var(--secondary-color);
    text-shadow: 0 0 10px var(--secondary-glow);
}

.logo-icon-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    border-radius: 50%;
    filter: drop-shadow(0 0 8px var(--secondary-glow));
}

.contact-icon .logo-icon-img {
    width: 32px;
    height: 32px;
}

.social-icons .logo-icon-img {
    width: 22px;
    height: 22px;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: var(--text-primary);
}

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

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 700;
    transition: var(--transition-smooth);
}

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

.nav-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white !important;
    padding: 10px 22px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 4px 15px var(--primary-glow);
}

.nav-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.nav-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

#theme-toggle,
.menu-toggle {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 18px;
    transition: var(--transition-smooth);
}

#theme-toggle:hover,
.menu-toggle:hover {
    background-color: var(--card-bg);
    border-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
}

/* Mobile Drawer Menu */
.mobile-menu {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: var(--bg-color);
    z-index: 999;
    padding: 40px 24px;
    transition: var(--transition-smooth);
    border-top: 1px solid var(--card-border);
}

.mobile-menu.open {
    left: 0;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 25px;
    text-align: center;
}

.mobile-nav-links a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 18px;
    font-weight: 700;
}

.mobile-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 14px;
    display: block;
    border-radius: var(--border-radius-md);
    margin-top: 20px;
}

/* Hero Section */
.hero-section {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 40px;
    padding-top: 160px;
    padding-bottom: 80px;
    min-height: 100vh;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.badge {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    color: var(--secondary-color);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.hero-content h1 {
    font-size: 3.2rem;
    font-weight: 900;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 540px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-top: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px var(--primary-glow);
}

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

.btn-secondary:hover {
    background-color: var(--card-border);
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 20px;
    border-top: 1px solid var(--card-border);
    padding-top: 30px;
}

.stat-item h3 {
    font-family: var(--font-outfit);
    font-size: 28px;
    color: var(--secondary-color);
}

.stat-item p {
    font-size: 14px;
    color: var(--text-muted);
}

.hero-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Phone Mockup Styling */
.phone-mockup {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 600px;
    border-radius: 40px;
    border: 10px solid var(--card-border);
    background-color: #0c0d14;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), inset 0 0 10px rgba(255, 255, 255, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    margin: 0 auto;
}

.phone-mockup:hover {
    transform: translateY(-8px) scale(1.02);
    border-color: var(--secondary-color);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.6), 0 0 20px var(--secondary-glow);
}

.phone-notch {
    width: 120px;
    height: 18px;
    background-color: var(--card-border);
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
    transition: var(--transition-smooth);
}

.phone-mockup:hover .phone-notch {
    background-color: var(--secondary-color);
}

.phone-screen {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    padding-top: 18px;
    background-color: #0c0d14;
    color: #e3e6f0;
    direction: rtl;
    font-family: var(--font-tajawal);
    user-select: none;
}

.phone-status-bar {
    height: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 600;
    color: #80889c;
    user-select: none;
    z-index: 9;
}

.status-left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-left i {
    font-size: 10px;
}

.battery-pct {
    font-family: var(--font-outfit);
    font-size: 10px;
    margin-left: 2px;
}

.status-right {
    display: flex;
    align-items: center;
    font-family: var(--font-outfit);
}

.phone-app-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #1c1d2e;
    background-color: #0c0d14;
}

.phone-back-btn {
    background: none;
    border: none;
    color: #e3e6f0;
    font-size: 14px;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.phone-back-btn:hover {
    color: var(--secondary-color);
}

.phone-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
}

.phone-app-body {
    flex: 1;
    overflow-y: auto;
    padding: 12px 0;
    scrollbar-width: thin;
    scrollbar-color: #222538 transparent;
}

.phone-app-body::-webkit-scrollbar {
    width: 4px;
}

.phone-app-body::-webkit-scrollbar-track {
    background: transparent;
}

.phone-app-body::-webkit-scrollbar-thumb {
    background: #222538;
    border-radius: 2px;
}

.settings-section {
    margin-bottom: 20px;
    border-bottom: 6px solid #07080d;
    padding-bottom: 12px;
}

.settings-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-title {
    font-size: 11px;
    color: #5587c4; /* Blue color for section titles as in Telegram */
    padding: 0 16px 8px;
    font-weight: 700;
    text-align: right;
    border-bottom: 1px solid #131522;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    transition: background-color 0.2s ease;
    cursor: pointer;
    border-bottom: 1px solid #131522;
}

.setting-item:hover {
    background-color: #131522;
}

.setting-item.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.setting-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    text-align: right;
}

.setting-name {
    font-size: 13px;
    color: #e3e6f0;
}

.setting-value {
    font-size: 11px;
    color: #5587c4;
    font-weight: 600;
}

.section-footer {
    font-size: 10px;
    color: #5d6679;
    padding: 8px 16px 0;
    line-height: 1.5;
    text-align: right;
}

/* Custom Telegram Toggles (Blue active, Red inactive) */
.telegram-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.telegram-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.telegram-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #1a1c29;
    transition: 0.3s;
    border-radius: 22px;
    border: 1px solid #282c3f;
}

.telegram-switch .slider::before {
    position: absolute;
    content: "✖";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #e34c4c;
    border-radius: 50%;
    transition: 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 8px;
    color: white;
    font-weight: bold;
}

.telegram-switch input:checked + .slider {
    background-color: rgba(59, 113, 243, 0.15);
    border-color: rgba(59, 113, 243, 0.3);
}

.telegram-switch input:checked + .slider::before {
    content: "✔";
    background-color: #3b71f3;
    transform: translateX(24px);
}

/* Expandable Voice Selector Panel */
.voice-selector-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #11121d;
    padding: 0 16px;
    border-radius: 8px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    direction: rtl;
}

.voice-selector-panel.open {
    max-height: 200px;
    padding: 12px 16px;
    margin-bottom: 12px;
    border: 1px solid #1c1d2e;
}

.panel-subtitle {
    font-size: 11px;
    color: #80889c;
}

.voice-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.voice-option {
    background-color: #1a1c29;
    border: 1px solid #282c3f;
    color: #80889c;
    padding: 6px 4px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    font-family: var(--font-tajawal);
    font-size: 10px;
}

.voice-option i {
    font-size: 12px;
}

.voice-option:hover {
    border-color: #3b71f3;
    color: white;
}

.voice-option.active {
    background-color: rgba(59, 113, 243, 0.15);
    border-color: #3b71f3;
    color: #3b71f3;
}

.voice-preview-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #1a1c29;
    padding: 6px 10px;
    border-radius: 8px;
    border: 1px solid #282c3f;
}

.voice-play-btn {
    background: #3b71f3;
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 700;
    font-family: var(--font-tajawal);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background-color 0.2s;
}

.voice-play-btn:hover {
    background-color: #2b5cd4;
}

.voice-wave-container {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 18px;
}

.wave-bar {
    width: 2px;
    height: 4px;
    background-color: #3b71f3;
    border-radius: 1px;
    transition: height 0.1s ease;
}

.voice-wave-container.playing .wave-bar {
    animation: phone-wave-anim 1s ease-in-out infinite;
}

.voice-wave-container.playing .wave-bar:nth-child(1) { animation-delay: 0.1s; }
.voice-wave-container.playing .wave-bar:nth-child(2) { animation-delay: 0.3s; }
.voice-wave-container.playing .wave-bar:nth-child(3) { animation-delay: 0.5s; }
.voice-wave-container.playing .wave-bar:nth-child(4) { animation-delay: 0.2s; }
.voice-wave-container.playing .wave-bar:nth-child(5) { animation-delay: 0.4s; }

@keyframes phone-wave-anim {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}

/* Expandable Video Options Panel */
.video-options-panel {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background-color: #11121d;
    padding: 0 16px;
    border-radius: 8px;
    margin: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    direction: rtl;
}

.video-options-panel.open {
    max-height: 150px;
    padding: 10px 12px;
    margin-bottom: 12px;
    border: 1px solid #1c1d2e;
}

.video-option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    color: #80889c;
    transition: all 0.2s ease;
    text-align: right;
}

.video-option-row:hover {
    background-color: #1a1c29;
    color: white;
}

.video-option-row.selected {
    background-color: rgba(59, 113, 243, 0.1);
    color: #3b71f3;
}

/* Selector dropdown styled like Android */
.phone-select {
    background-color: #1a1c29;
    color: #e3e6f0;
    border: 1px solid #282c3f;
    padding: 5px 8px;
    border-radius: 6px;
    outline: none;
    font-size: 11px;
    width: 130px;
    text-align: right;
    cursor: pointer;
    font-family: var(--font-tajawal);
}

.phone-select option {
    background-color: #0c0d14;
    color: #e3e6f0;
}

/* Live Video Preview Bubble */
.video-preview-bubble {
    position: absolute;
    bottom: 24px;
    left: 16px;
    background-color: rgba(6, 7, 10, 0.9);
    border: 1px solid #3b71f3;
    padding: 6px 12px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transform: translateY(30px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 100;
}

.video-preview-bubble.visible {
    transform: translateY(0);
    opacity: 1;
}

.preview-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    animation: phone-blink 1.5s infinite;
}

@keyframes phone-blink {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 1; }
}

/* Floating Toast Notification */
.phone-toast {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translate(-50%, 20px);
    background-color: #3b71f3;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 11px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    z-index: 101;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.phone-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

.phone-home-bar {
    width: 90px;
    height: 3px;
    background-color: #222538;
    border-radius: 2px;
    margin: 6px auto;
    flex-shrink: 0;
}

/* Custom Font classes for phone mockup */
.phone-screen.font-ios-font {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-weight: 700;
}

.phone-screen.font-kufi-font {
    font-family: 'Cairo', sans-serif;
}

.phone-screen.font-ruqah-font {
    font-family: 'Aref Ruqaa', serif;
}

/* Features Section */
.features-section {
    padding: 80px 24px;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.section-header h2 {
    font-size: 2.5rem;
}

.section-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
}

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

/* Full-width featured cards */
.feature-card--featured {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--card-bg) 0%, hsla(262, 83%, 15%, 0.4) 100%);
    border-color: hsla(262, 83%, 62%, 0.35);
    position: relative;
    overflow: hidden;
}

.feature-card--featured::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.feature-card--voice {
    background: linear-gradient(135deg, var(--card-bg) 0%, hsla(192, 95%, 15%, 0.3) 100%);
    border-color: hsla(192, 95%, 50%, 0.3);
}

.feature-card--voice::before {
    background: radial-gradient(circle, var(--secondary-glow) 0%, transparent 70%);
    top: -60px;
    left: -60px;
    right: auto;
}

.feature-featured-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: 50px;
    width: fit-content;
    letter-spacing: 0.5px;
}

.feature-featured-badge--ai {
    background: linear-gradient(135deg, hsl(192, 95%, 40%), hsl(240, 90%, 55%));
}

.icon-box--large {
    width: 76px;
    height: 76px;
    font-size: 30px;
}

.feature-highlights {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-top: 4px;
}

.feature-highlights li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.feature-highlights li i {
    color: var(--secondary-color);
    font-size: 12px;
    margin-top: 2px;
    flex-shrink: 0;
}


.feature-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-glow) 0%, transparent 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.feature-card:hover .icon-box {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
}

.feature-card h3 {
    font-size: 20px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Changelog Section */
.changelog-section {
    padding: 80px 24px;
}

.changelog-box {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.changelog-header {
    background-color: var(--card-border);
    padding: 24px 36px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.version-tag {
    font-size: 18px;
    font-weight: 700;
    color: var(--secondary-color);
}

.version-date {
    font-size: 14px;
    color: var(--text-muted);
    margin-right: 12px;
}

.status-badge {
    background-color: var(--primary-glow);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
}

.pulse {
    animation: animate-pulse 2s infinite;
}

@keyframes animate-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(124, 58, 237, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
    }
}

.changelog-body {
    padding: 36px;
}

.changelog-body h4 {
    font-size: 18px;
    margin-bottom: 20px;
}

.changelog-body ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.changelog-body ul li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
}

.changelog-body ul li i {
    color: var(--secondary-color);
}

/* Download Section */
.download-section {
    padding: 80px 24px 120px;
    position: relative;
}

.download-card {
    background: linear-gradient(135deg, var(--card-bg) 0%, rgba(20, 20, 30, 0.8) 100%);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 60px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.download-info h2 {
    font-size: 2.3rem;
    margin-bottom: 16px;
}

.download-info p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.btn-download-big {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 16px 36px;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    box-shadow: 0 8px 30px var(--primary-glow);
    transition: var(--transition-smooth);
    text-align: right;
}

.btn-download-big i {
    font-size: 32px;
}

.btn-download-big div {
    display: flex;
    flex-direction: column;
}

.btn-download-big span {
    font-size: 18px;
    font-weight: 700;
}

.btn-download-big small {
    font-size: 12px;
    opacity: 0.8;
}

.btn-download-big:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--primary-glow);
}

.safety-shield {
    background-color: hsla(145, 80%, 40%, 0.1);
    border: 1px solid hsla(145, 80%, 40%, 0.25);
    border-radius: var(--border-radius-lg);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.safety-shield i {
    font-size: 48px;
    color: hsl(145, 80%, 45%);
}

.safety-shield h4 {
    color: var(--text-primary);
}

.safety-shield p {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 60px 24px 40px;
    background-color: rgba(10, 10, 15, 0.95);
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-content p {
    color: var(--text-secondary);
    max-width: 500px;
    font-size: 14px;
}

.social-icons {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 20px;
    transition: var(--transition-smooth);
    border: 1px solid var(--card-border);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.social-icons a:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: var(--card-bg);
}

.footer-bottom {
    margin-top: 40px;
    border-top: 1px solid var(--card-border);
    padding-top: 24px;
    width: 100%;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* Language Switcher Styling */
#lang-toggle {
    background: none;
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-outfit);
    transition: var(--transition-smooth);
}

#lang-toggle:hover {
    background-color: var(--card-bg);
    border-color: var(--secondary-color);
}

/* Pricing Section Styling */
.pricing-section {
    padding: 80px 24px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1040px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 40px 30px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transition-smooth);
    position: relative;
    text-align: center;
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px var(--primary-glow);
}

.pricing-card.popular {
    border-color: var(--secondary-color);
    box-shadow: 0 15px 35px var(--secondary-glow);
}

.popular-tag {
    position: absolute;
    top: -15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: bold;
}

.plan-badge {
    background-color: var(--card-border);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.plan-price {
    font-family: var(--font-outfit);
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 15px 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.plan-price span {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.5;
}

.plan-features {
    list-style: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
}

.plan-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-secondary);
}

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

html[dir="ltr"] .plan-features li {
    direction: ltr;
    text-align: left;
}

.plan-features li i {
    color: var(--secondary-color);
}

.plan-btn {
    width: 100%;
    margin-top: auto;
}

/* Contact Section Styling */
.contact-section {
    padding: 80px 24px;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1040px;
    margin: 0 auto;
}

.contact-card {
    background-color: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--border-radius-lg);
    padding: 36px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text-primary);
}

.contact-card:hover {
    transform: translateY(-8px);
    border-color: var(--secondary-color);
    box-shadow: 0 10px 30px var(--secondary-glow);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-glow) 0%, transparent 100%);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 26px;
    color: var(--secondary-color);
    transition: var(--transition-smooth);
}

.contact-card:hover .contact-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border-color: transparent;
}

.contact-card h3 {
    font-size: 18px;
    font-weight: 700;
}

.contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.contact-link-text {
    font-size: 13px;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* Ensure horizontal scroll doesn't happen globally */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* ============================================
   RESPONSIVE STYLES — MOBILE FIRST
   ============================================ */

/* Tablet / Large phones (max 968px) */
@media (max-width: 968px) {
    .hero-section {
        grid-template-columns: 1fr;
        padding-top: 110px;
        text-align: center;
        gap: 40px;
    }

    .badge {
        align-self: center;
    }

    .hero-desc {
        margin: 0 auto;
        max-width: 540px;
    }

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

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

    /* Features: 1 col on tablet */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
    }

    /* Pricing: 1 col on tablet */
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .download-card {
        grid-template-columns: 1fr;
        padding: 36px 24px;
        gap: 24px;
        text-align: center;
    }

    .download-info h2 {
        font-size: 1.8rem;
    }

    .btn-download-big {
        justify-content: center;
        padding: 14px 24px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Phone mockup hero sizing on tablet */
    .phone-mockup {
        transform: scale(0.85);
        transform-origin: center top;
        margin: 0 auto;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* Small phones (max 640px) */
@media (max-width: 640px) {
    .hero-section {
        padding-top: 90px;
        padding-inline: 16px;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 2.1rem;
        line-height: 1.25;
    }

    .hero-desc {
        font-size: 15px;
    }

    .hero-btns {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .btn {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: space-around;
    }

    .stat-item {
        min-width: 100px;
    }

    .features-section,
    .pricing-section,
    .contact-section,
    .changelog-section {
        padding: 60px 16px;
    }

    .section-header {
        margin-bottom: 36px;
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 15px;
    }

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

    .feature-card--featured {
        padding: 28px 20px;
    }

    .feature-highlights {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .feature-highlights li {
        font-size: 12.5px;
    }

    /* Correct phone mockup sizing for mobile screens to eliminate layout overflow completely */
    .phone-mockup {
        width: 270px !important;
        min-width: 270px !important;
        max-width: 270px !important;
        height: 520px !important;
        transform: scale(0.95);
        transform-origin: center top;
        border-width: 8px !important;
        border-radius: 28px !important;
    }

    .phone-screen {
        padding-top: 14px !important;
    }

    .phone-status-bar {
        padding: 0 10px !important;
        height: 20px !important;
    }

    .phone-app-header {
        padding: 8px 10px !important;
    }

    .setting-item {
        padding: 8px 10px !important;
    }

    /* Pricing on mobile */
    .pricing-card {
        padding: 32px 20px;
    }

    .plan-price {
        font-size: 2.5rem;
    }

    /* Download section */
    .download-section {
        padding: 60px 16px 80px;
    }

    .download-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .download-info h2 {
        font-size: 1.5rem;
    }

    .safety-shield {
        padding: 20px;
    }

    /* Changelog */
    .changelog-header {
        padding: 16px 20px;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .changelog-body {
        padding: 20px;
    }

    /* Footer */
    footer {
        padding: 40px 16px 30px;
    }

    /* Navbar */
    .navbar {
        padding: 0 16px;
    }

    #lang-toggle,
    #theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 12px;
    }
}

/* Extra small phones (max 380px) */
@media (max-width: 380px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .phone-mockup {
        width: 245px !important;
        min-width: 245px !important;
        max-width: 245px !important;
        height: 480px !important;
        transform: scale(0.95);
        border-width: 6px !important;
        border-radius: 24px !important;
    }

    .section-header h2 {
        font-size: 1.55rem;
    }
}
