/* ============================================
   Tapix Solutions - Main Stylesheet
   Brand Colors: Blue #1976D2, Orange #FF9800
   ============================================ */

/* ---------- CSS Variables ---------- */
:root {
  --primary: #1976D2;
  --primary-light: #42A5F5;
  --primary-dark: #0D47A1;
  --primary-container: #BBDEFB;
  --secondary: #FF9800;
  --secondary-light: #FFB74D;
  --secondary-dark: #F57C00;
  --secondary-container: #FFE0B2;
  --success: #4CAF50;
  --warning: #FF9800;
  --error: #F44336;
  --info: #2196F3;
  --surface: #FAFAFA;
  --surface-dark: #121212;
  --on-surface: #1C1B1F;
  --on-surface-light: #49454F;
  --white: #FFFFFF;
  --gray-50: #F8F9FA;
  --gray-100: #F1F3F5;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #868E96;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-main: 'Inter', 'IBM Plex Sans Arabic', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'IBM Plex Sans Arabic', 'Inter', sans-serif;
  --container-max: 1200px;
  --nav-height: 72px;
}

/* ---------- Dark Theme ---------- */
[data-theme="dark"] {
  --surface: #121212;
  --on-surface: #E6E1E5;
  --on-surface-light: #CAC4D0;
  --white: #1C1C1E;
  --gray-50: #1C1C1E;
  --gray-100: #2C2C2E;
  --gray-200: #3A3A3C;
  --gray-300: #48484A;
  --gray-400: #636366;
  --gray-500: #8E8E93;
  --gray-600: #AEAEB2;
  --gray-700: #C7C7CC;
  --gray-800: #D1D1D6;
  --gray-900: #F2F2F7;
  --primary-container: rgba(25, 118, 210, 0.2);
  --secondary-container: rgba(255, 152, 0, 0.15);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.5);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.6);
}

[data-theme="dark"] body {
  background: #121212;
  color: #E6E1E5;
}

[data-theme="dark"] .navbar {
  background: rgba(28, 28, 30, 0.95);
  border-bottom-color: #3A3A3C;
}

[data-theme="dark"] .nav-links {
  background: #1C1C1E;
}

[data-theme="dark"] .nav-links a {
  color: #C7C7CC;
}

[data-theme="dark"] .nav-links a:hover,
[data-theme="dark"] .nav-links a.active {
  color: var(--primary-light);
  background: rgba(25, 118, 210, 0.2);
}

[data-theme="dark"] .lang-switcher {
  background: #2C2C2E;
}

[data-theme="dark"] .lang-btn {
  color: #AEAEB2;
}

[data-theme="dark"] .lang-btn.active {
  background: #3A3A3C;
  color: var(--primary-light);
}

[data-theme="dark"] .hero {
  background: linear-gradient(165deg, #0D1B2A 0%, #121212 50%, #1A1200 100%);
}

[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(25,118,210,0.1) 0%, transparent 70%);
}

[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(255,152,0,0.08) 0%, transparent 70%);
}

[data-theme="dark"] .hero h1 {
  color: #F2F2F7;
}

[data-theme="dark"] .hero-stats {
  border-top-color: #3A3A3C;
}

[data-theme="dark"] .float-card {
  background: #2C2C2E;
}

[data-theme="dark"] .float-text strong {
  color: #F2F2F7;
}

[data-theme="dark"] .section-alt {
  background: #1C1C1E;
}

[data-theme="dark"] .feature-card {
  background: #1C1C1E;
  border-color: #3A3A3C;
}

[data-theme="dark"] .feature-card:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border-color: transparent;
}

[data-theme="dark"] .feature-card h3 {
  color: #F2F2F7;
}

[data-theme="dark"] .pricing-card {
  background: #1C1C1E;
  border-color: #3A3A3C;
}

[data-theme="dark"] .pricing-card:hover {
  border-color: var(--primary-light);
}

[data-theme="dark"] .pricing-card.popular {
  border-color: var(--primary);
}

[data-theme="dark"] .pricing-note {
  background: rgba(255, 152, 0, 0.1);
  border-color: rgba(255, 152, 0, 0.3);
}

[data-theme="dark"] .store-btn {
  background: #2C2C2E;
}

[data-theme="dark"] .demo-container {
  background: #1C1C1E;
  border-color: #3A3A3C;
}

[data-theme="dark"] .demo-iframe-wrapper {
  background: #2C2C2E;
}

[data-theme="dark"] .demo-notice {
  background: rgba(255, 152, 0, 0.1);
  border-color: rgba(255, 152, 0, 0.3);
}

[data-theme="dark"] .contact-form-wrapper {
  background: #1C1C1E;
  border-color: #3A3A3C;
}

[data-theme="dark"] .contact-form-wrapper h3 {
  color: #F2F2F7;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
  background: #2C2C2E;
  border-color: #3A3A3C;
  color: #E6E1E5;
}

[data-theme="dark"] .form-group input:focus,
[data-theme="dark"] .form-group textarea:focus {
  background: #1C1C1E;
  border-color: var(--primary);
}

[data-theme="dark"] .page-header {
  background: linear-gradient(165deg, #0D1B2A 0%, #121212 100%);
}

[data-theme="dark"] .page-header h1 {
  color: #F2F2F7;
}

[data-theme="dark"] .legal-content h1,
[data-theme="dark"] .legal-content h2,
[data-theme="dark"] .legal-content h3 {
  color: #F2F2F7;
}

[data-theme="dark"] .legal-content h2 {
  border-bottom-color: #3A3A3C;
}

[data-theme="dark"] .legal-meta {
  border-bottom-color: #3A3A3C;
}

[data-theme="dark"] .legal-lang-tab {
  background: #1C1C1E;
  border-color: #3A3A3C;
  color: #AEAEB2;
}

[data-theme="dark"] .legal-lang-tab.active {
  border-color: var(--primary);
  color: var(--primary-light);
  background: rgba(25, 118, 210, 0.15);
}

[data-theme="dark"] .footer {
  background: #0A0A0A;
}

[data-theme="dark"] .footer-bottom {
  border-top-color: #2C2C2E;
}

[data-theme="dark"] .cookie-banner {
  background: #2C2C2E;
}

[data-theme="dark"] .btn-secondary {
  background: #2C2C2E;
  border-color: #3A3A3C;
  color: var(--primary-light);
}

[data-theme="dark"] .btn-secondary:hover {
  background: rgba(25, 118, 210, 0.2);
  border-color: var(--primary);
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #1C1C1E;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #48484A;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #636366;
}

/* ---------- Theme Toggle Button ---------- */
.theme-toggle {
  width: 40px;
  height: 40px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  color: var(--gray-700);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--primary-container);
  color: var(--primary);
  transform: rotate(30deg);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  display: none;
}

.theme-toggle .icon-sun {
  display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .icon-moon {
  display: block;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-main);
  color: var(--on-surface);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gray-200);
  z-index: 1000;
  transition: var(--transition);
}

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

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.nav-logo img {
  height: 42px;
  width: auto;
}

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

.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--gray-700);
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  background: var(--gray-100);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.lang-btn {
  padding: 6px 12px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--white);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.lang-btn:hover:not(.active) {
  color: var(--primary);
}

.nav-cta {
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white) !important;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
  transition: var(--transition);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.4);
  background: linear-gradient(135deg, var(--primary-light), var(--primary)) !important;
}

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

.mobile-toggle span {
  width: 24px;
  height: 2.5px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: var(--transition);
}

.mobile-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---------- Hero Section ---------- */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 100px;
  background: linear-gradient(165deg, #EBF5FF 0%, var(--white) 50%, #FFF8E1 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(25,118,210,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,152,0,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

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

.hero-content {
  max-width: 560px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--secondary-container);
  color: var(--secondary-dark);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--gray-900);
}

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

.hero h1 .highlight-orange {
  background: linear-gradient(135deg, var(--secondary-dark), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.8;
  margin-bottom: 36px;
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

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

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-top: 4px;
}

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

.hero-mockup {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 40px;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-mockup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.mockup-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.mockup-content img {
  width: 200px;
  margin: 0 auto 20px;
  filter: brightness(10);
}

.mockup-ui {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.mockup-card {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.mockup-card-text {
  flex: 1;
}

.mockup-card-text .title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.mockup-card-text .subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
}

/* Floating elements */
.float-card {
  position: absolute;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  animation: float 3s ease-in-out infinite;
  z-index: 2;
}

.float-card.card-1 {
  top: 20px;
  right: -20px;
  animation-delay: 0s;
}

.float-card.card-2 {
  bottom: 40px;
  left: -20px;
  animation-delay: 1.5s;
}

.float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.float-icon.blue {
  background: var(--primary-container);
  color: var(--primary);
}

.float-icon.orange {
  background: var(--secondary-container);
  color: var(--secondary-dark);
}

.float-icon.green {
  background: #E8F5E9;
  color: var(--success);
}

.float-text {
  font-size: 0.85rem;
}

.float-text strong {
  display: block;
  color: var(--gray-900);
}

.float-text span {
  color: var(--gray-500);
  font-size: 0.75rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(25, 118, 210, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(25, 118, 210, 0.4);
}

.btn-secondary {
  background: var(--white);
  color: var(--primary);
  border: 2px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-container);
  transform: translateY(-2px);
}

.btn-orange {
  background: linear-gradient(135deg, var(--secondary), var(--secondary-dark));
  color: var(--white);
  box-shadow: 0 4px 16px rgba(255, 152, 0, 0.3);
}

.btn-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 152, 0, 0.4);
}

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

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.05rem;
}

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

.btn svg {
  width: 20px;
  height: 20px;
}

/* ---------- Section Common ---------- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--gray-50);
}

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

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  background: var(--primary-container);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  line-height: 1.8;
}

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

.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: var(--transition);
}

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

.feature-card:hover::before {
  opacity: 1;
}

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

.feature-icon.blue {
  background: var(--primary-container);
  color: var(--primary);
}

.feature-icon.orange {
  background: var(--secondary-container);
  color: var(--secondary-dark);
}

.feature-icon.green {
  background: #E8F5E9;
  color: var(--success);
}

.feature-icon.purple {
  background: #F3E5F5;
  color: #9C27B0;
}

.feature-card h3 {
  font-size: 1.2rem;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.7;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 2px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  text-align: center;
}

.pricing-card.popular {
  border-color: var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.pricing-card.popular .popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 4px 20px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.pricing-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
}

.pricing-plan {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.pricing-duration {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.pricing-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.pricing-amount .currency {
  font-size: 1.2rem;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 24px;
}

.pricing-features {
  text-align: left;
  margin-bottom: 28px;
}

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

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--gray-700);
}

.pricing-features li svg {
  width: 18px;
  height: 18px;
  color: var(--success);
  flex-shrink: 0;
}

.pricing-note {
  text-align: center;
  margin-top: 40px;
  padding: 24px;
  background: var(--secondary-container);
  border-radius: var(--radius-md);
  border: 1px solid var(--secondary-light);
}

.pricing-note p {
  color: var(--gray-800);
  font-size: 0.95rem;
}

.pricing-note svg {
  width: 20px;
  height: 20px;
  color: var(--secondary-dark);
  margin-bottom: 8px;
}

/* ---------- Download ---------- */
.download-section {
  text-align: center;
}

.store-buttons {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 32px;
  background: var(--gray-900);
  color: var(--white);
  border-radius: var(--radius-md);
  transition: var(--transition);
  min-width: 220px;
  position: relative;
  overflow: hidden;
}

.store-btn.coming-soon {
  opacity: 0.85;
}

.store-btn.coming-soon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-left: 40px solid transparent;
  border-top: 40px solid var(--secondary);
}

.store-btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.store-btn svg {
  width: 32px;
  height: 32px;
}

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

[dir="rtl"] .store-btn-text {
  text-align: right;
}

.store-btn-text .label {
  font-size: 0.75rem;
  opacity: 0.8;
  display: block;
}

.store-btn-text .store {
  font-size: 1.1rem;
  font-weight: 700;
}

.coming-soon-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

/* ---------- Demo ---------- */
.demo-container {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 2px solid var(--gray-200);
  background: var(--white);
}

.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--gray-900);
  color: var(--white);
}

.demo-toolbar-dots {
  display: flex;
  gap: 8px;
}

.demo-toolbar-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.demo-toolbar-dots span:nth-child(1) { background: #FF5F57; }
.demo-toolbar-dots span:nth-child(2) { background: #FEBC2E; }
.demo-toolbar-dots span:nth-child(3) { background: #28C840; }

.demo-toolbar-url {
  flex: 1;
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-400);
}

.demo-iframe-wrapper {
  position: relative;
  width: 100%;
  height: 700px;
  background: var(--gray-100);
}

.demo-iframe-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.demo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,152,0,0.95), rgba(255,152,0,0));
  z-index: 10;
  text-align: center;
}

.demo-overlay p {
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  background: var(--secondary-container);
  border-radius: var(--radius-md);
  margin-top: 24px;
  border: 1px solid var(--secondary-light);
}

.demo-notice svg {
  width: 24px;
  height: 24px;
  color: var(--secondary-dark);
  flex-shrink: 0;
}

.demo-notice p {
  font-size: 0.95rem;
  color: var(--gray-700);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info {
  padding: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  color: var(--white);
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.contact-info p {
  opacity: 0.9;
  margin-bottom: 32px;
  line-height: 1.8;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.2);
}

.contact-method svg {
  width: 24px;
  height: 24px;
  opacity: 0.9;
}

.contact-method-text .label {
  font-size: 0.8rem;
  opacity: 0.7;
  display: block;
}

.contact-method-text .value {
  font-weight: 600;
}

.contact-form-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-md);
}

.contact-form-wrapper h3 {
  font-size: 1.3rem;
  margin-bottom: 24px;
  color: var(--gray-900);
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
  background: var(--gray-50);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(25, 118, 210, 0.1);
}

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

/* ---------- Legal Pages ---------- */
.legal-page {
  padding: calc(var(--nav-height) + 60px) 0 80px;
  min-height: 100vh;
}

.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h1 {
  font-size: 2.2rem;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.legal-meta {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--gray-200);
}

.legal-content h2 {
  font-size: 1.4rem;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gray-200);
}

.legal-content h3 {
  font-size: 1.1rem;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 12px;
}

.legal-content p {
  margin-bottom: 16px;
  color: var(--gray-700);
  line-height: 1.8;
}

.legal-content ul {
  padding-left: 24px;
  margin-bottom: 16px;
}

[dir="rtl"] .legal-content ul {
  padding-left: 0;
  padding-right: 24px;
}

.legal-content ul li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--gray-700);
  line-height: 1.7;
}

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

.legal-lang-tab {
  padding: 10px 24px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-full);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-600);
  transition: var(--transition);
}

.legal-lang-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-container);
}

.legal-lang-tab:hover:not(.active) {
  border-color: var(--gray-400);
}

.legal-lang-content {
  display: none;
}

.legal-lang-content.active {
  display: block;
}

/* ---------- Enterprise ---------- */
.enterprise-section {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  color: var(--white);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.enterprise-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

.enterprise-section .container {
  position: relative;
  z-index: 1;
}

.enterprise-section h2 {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.enterprise-section p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.enterprise-section .btn {
  background: var(--white);
  color: var(--primary-dark);
}

.enterprise-section .btn:hover {
  background: var(--secondary);
  color: var(--white);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 60px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 40px;
  margin-bottom: 16px;
  filter: brightness(10);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--gray-500);
}

.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}

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

.footer-links a:hover {
  color: var(--primary-light);
  padding-left: 4px;
}

[dir="rtl"] .footer-links a:hover {
  padding-left: 0;
  padding-right: 4px;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-links a {
  color: var(--gray-500);
}

.footer-bottom-links a:hover {
  color: var(--primary-light);
}

/* ---------- Page Headers ---------- */
.page-header {
  padding: calc(var(--nav-height) + 60px) 0 60px;
  background: linear-gradient(165deg, #EBF5FF 0%, var(--white) 100%);
  text-align: center;
}

.page-header h1 {
  font-size: 2.8rem;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.15rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto;
}

/* ---------- Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }
.fade-in-delay-4 { transition-delay: 0.4s; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
    text-align: center;
  }

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

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

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

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

  .pricing-card.popular {
    transform: scale(1);
  }

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

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

@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: var(--shadow-lg);
    transform: translateY(-120%);
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.open {
    transform: translateY(0);
  }

  .nav-links a {
    width: 100%;
    text-align: center;
    padding: 12px 16px;
  }

  .mobile-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: calc(var(--nav-height) + 40px) 0 60px;
  }

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

  .hero-description {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 24px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .section {
    padding: 60px 0;
  }

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

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .store-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

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

  .page-header h1 {
    font-size: 2rem;
  }

  .demo-iframe-wrapper {
    height: 500px;
  }

  .enterprise-section h2 {
    font-size: 1.6rem;
  }

  .legal-lang-tabs {
    justify-content: center;
  }
}

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

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

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

  .lang-switcher {
    font-size: 0.75rem;
  }

  .lang-btn {
    padding: 4px 8px;
  }

  .store-btn {
    min-width: auto;
    width: 100%;
  }
}

/* ---------- Utility Classes ---------- */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

/* ---------- Cookie/Privacy Banner ---------- */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--gray-900);
  color: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 10000;
  transform: translateY(100%);
  transition: var(--transition);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--gray-300);
}

.cookie-banner p a {
  color: var(--primary-light);
  text-decoration: underline;
}

.cookie-banner button {
  padding: 8px 24px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: var(--transition);
}

.cookie-banner button:hover {
  background: var(--primary-light);
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

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

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

/* ---------- Selection ---------- */
::selection {
  background: var(--primary);
  color: var(--white);
}
