/* ==========================================================================
   Fanny Landing Page - Stylesheet
   ========================================================================== */

:root {
  /* Colors */
  --bg-main: #080a0f;
  --bg-header: rgba(8, 10, 15, 0.75);
  --bg-card: rgba(18, 22, 32, 0.65);
  --bg-card-hover: rgba(26, 32, 46, 0.8);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(6, 182, 212, 0.4);
  
  --text-main: #f3f4f6;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.15);
  
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.15);
  
  --warning: #f59e0b;
  --warning-glow: rgba(245, 158, 11, 0.15);
  
  --danger: #ef4444;
  --danger-glow: rgba(239, 68, 68, 0.25);
  
  --cyan-glow: #06b6d4;
  
  /* Fonts */
  --font-en: 'Outfit', sans-serif;
  --font-ar: 'Cairo', sans-serif;
  
  /* Transitions */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  font-family: var(--font-en);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* RTL Layout Support */
body.rtl {
  font-family: var(--font-ar);
  direction: rtl;
}

/* Font families based on language direction */
body.rtl .logo-text,
body.rtl nav a,
body.rtl .btn,
body.rtl h1,
body.rtl h2,
body.rtl h3,
body.rtl p,
body.rtl input {
  font-family: var(--font-ar);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Glowing Background Blobs */
.glow-bg-blob {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.25;
  pointer-events: none;
}

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

.blob-2 {
  top: 50%;
  left: -200px;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
}

.blob-3 {
  bottom: -100px;
  right: 10%;
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: #fff;
}

p {
  color: var(--text-secondary);
}

.highlight-text {
  color: var(--primary);
  text-shadow: 0 0 20px rgba(6, 182, 212, 0.35);
  background: linear-gradient(120deg, #06b6d4 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: #080a0f;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.4);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 182, 212, 0.6);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.05rem;
  border-radius: 10px;
}

.btn-full {
  width: 100%;
}

/* Glassmorphism Card base */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 24px;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.15);
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background-color: var(--bg-header);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

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

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

.logo-icon {
  position: relative;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(6, 182, 212, 0.1);
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
}

.logo-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-text .arabic-sub {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  border-left: 1px solid var(--border-color);
  padding-left: 6px;
}

body.rtl .logo-text .arabic-sub {
  border-left: none;
  border-right: 1px solid var(--border-color);
  padding-left: 0;
  padding-right: 6px;
}

nav.nav-links {
  display: flex;
  gap: 32px;
}

nav.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

nav.nav-links a:hover {
  color: #fff;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.85rem;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--primary);
  animation: pulse 2s infinite;
}

.hero-title {
  font-size: 3.5rem;
  line-height: 1.15;
  font-weight: 800;
}

body.rtl .hero-title {
  font-size: 3rem;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
}

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

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 24px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-visual {
  position: relative;
}

/* Dashboard Mockup in Hero */
.hero-dashboard-mockup {
  border-radius: 12px;
  border-color: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(6, 182, 212, 0.1);
  padding: 0;
  overflow: hidden;
}

.mockup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-color);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.mockup-title {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.mockup-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-indicator.online {
  background-color: var(--success);
  box-shadow: 0 0 6px var(--success);
}

.mockup-body {
  padding: 20px;
}

.grid-layout-dashboard {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.dashboard-mini-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 14px;
}

.col-span-2 {
  grid-column: span 2;
}

.mini-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.mini-card-header i {
  width: 14px;
  height: 14px;
}

.mini-card-value {
  font-size: 1.5rem;
  font-weight: 700;
}

.mini-card-desc {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-pulse-cyan {
  color: var(--primary);
  animation: pulse-op 1.5s infinite;
}

.bar-chart-mock {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 20px;
  margin-top: 8px;
}

.bar-chart-mock span {
  display: block;
  flex: 1;
  background-color: var(--success);
  border-radius: 2px;
  opacity: 0.7;
}

.realtime-sparkline {
  margin-top: 6px;
  height: 35px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
}

.recent-alerts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.alert-list-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.mini-alert-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
}

.mini-alert-item.critical {
  border-left: 3px solid var(--danger);
}

body.rtl .mini-alert-item.critical {
  border-left: none;
  border-right: 3px solid var(--danger);
}

.mini-alert-item.warning {
  border-left: 3px solid var(--warning);
}

body.rtl .mini-alert-item.warning {
  border-left: none;
  border-right: 3px solid var(--warning);
}

.severity-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.severity-badge.critical {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.severity-badge.warning {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.alert-text {
  flex: 1;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.alert-time {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Sections General */
section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
}

body.rtl .section-title {
  font-size: 2.2rem;
  line-height: 1.3;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

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

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-icon {
  width: 48px;
  height: 48px;
  background-color: var(--primary-glow);
  color: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon i {
  width: 24px;
  height: 24px;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

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

/* ==========================================================================
   Interactive IoT Simulator Section
   ========================================================================== */
.simulator-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 340px;
  gap: 24px;
  align-items: stretch;
}

/* Telemetry Controls Card */
.simulator-controls {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.controls-header {
  margin-bottom: 24px;
}

.controls-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.controls-title i {
  color: var(--primary);
}

.controls-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.control-groups {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.control-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.control-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.control-name {
  color: var(--text-main);
  font-weight: 500;
}

.control-value {
  color: var(--primary);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  padding: 2px 8px;
  background-color: rgba(6, 182, 212, 0.08);
  border-radius: 4px;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #232936;
  outline: none;
  transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
  transition: var(--transition-fast);
}

.slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary);
  border: none;
  transition: var(--transition-fast);
}

.slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.warning-tick { color: var(--warning); }
.critical-tick { color: var(--danger); }

/* Gauge Visualizer Panel */
.simulator-gauge-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.panel-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.machine-state-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  transition: var(--transition-smooth);
}

.machine-state-banner.ok {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.machine-state-banner.ok .state-dot {
  background-color: var(--success);
  box-shadow: 0 0 8px var(--success);
}

.machine-state-banner.warn {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning);
  border: 1px solid rgba(245, 158, 11, 0.2);
}
.machine-state-banner.warn .state-dot {
  background-color: var(--warning);
  box-shadow: 0 0 8px var(--warning);
  animation: pulse 1s infinite;
}

.machine-state-banner.critical {
  background-color: rgba(239, 68, 68, 0.12);
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.2);
}
.machine-state-banner.critical .state-dot {
  background-color: var(--danger);
  box-shadow: 0 0 10px var(--danger);
  animation: pulse-fast 0.6s infinite;
}

.state-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.gauges-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.radial-gauge-wrapper {
  width: 100%;
  max-width: 220px;
  position: relative;
  text-align: center;
}

.gauge-svg {
  width: 100%;
  height: auto;
}

.gauge-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-top: -10px;
}

.sim-flow-indicator {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
  margin-top: 16px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.flow-step-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #1a202e;
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition-smooth);
}

.flow-step-icon i {
  width: 14px;
  height: 14px;
}

.flow-step-icon.active {
  background-color: var(--primary-glow);
  border-color: var(--primary);
  color: var(--primary);
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}

.flow-step-icon.active-success {
  background-color: var(--success-glow);
  border-color: var(--success);
  color: var(--success);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.3);
}

.flow-step-icon.active-warning {
  background-color: var(--warning-glow);
  border-color: var(--warning);
  color: var(--warning);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.3);
}

.flow-step-icon.active-danger {
  background-color: var(--danger-glow);
  border-color: var(--danger);
  color: var(--danger);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.4);
}

.flow-step-label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
}

.flow-line {
  flex: 1;
  height: 2px;
  background-color: #1a202e;
  margin: 0 8px;
  margin-bottom: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 1px;
}

.flow-line span {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background-color: var(--primary);
  transition: width 0.3s ease;
}

body.rtl .flow-line span {
  left: auto;
  right: 0;
}

/* Phone Mockup */
.phone-mockup {
  width: 100%;
  height: 520px;
  background-color: #0b0c10;
  border: 10px solid #1f242e;
  border-radius: 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.phone-camera {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 18px;
  background-color: #1f242e;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
  z-index: 10;
}

.phone-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #0d0f14;
  padding-top: 18px;
}

.phone-app-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background-color: #11151e;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.app-logo {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.85rem;
}

.app-logo i {
  width: 16px;
  height: 16px;
}

.app-logo .app-sub-ar {
  font-size: 0.7rem;
  color: var(--text-secondary);
  font-weight: 400;
  margin-left: 2px;
}

body.rtl .app-logo .app-sub-ar {
  margin-left: 0;
  margin-right: 2px;
}

.app-profile {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: var(--primary);
  color: #000;
  font-weight: 700;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-user-info {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.app-user-name {
  font-size: 0.65rem;
  font-weight: 600;
  color: #fff;
}

.app-user-role {
  font-size: 0.55rem;
  color: var(--text-muted);
}

.phone-app-content {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
}

.app-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.app-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 80%;
  color: var(--text-muted);
  gap: 8px;
}

.app-empty-state i {
  width: 36px;
  height: 36px;
  color: var(--success);
  opacity: 0.6;
}

.app-empty-state h4 {
  font-size: 0.85rem;
  color: #fff;
}

.app-empty-state p {
  font-size: 0.7rem;
}

/* Simulated App Task Card */
.app-tasks-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-task-card {
  background-color: #151924;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: slide-in 0.3s ease;
  position: relative;
}

.app-task-card.warn {
  border-left: 3px solid var(--warning);
}
body.rtl .app-task-card.warn {
  border-left: none;
  border-right: 3px solid var(--warning);
}

.app-task-card.critical {
  border-left: 3px solid var(--danger);
  animation: pulse-danger-border 1.5s infinite;
}
body.rtl .app-task-card.critical {
  border-left: none;
  border-right: 3px solid var(--danger);
}

.app-task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.app-task-title-group {
  display: flex;
  flex-direction: column;
}

.app-task-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.app-task-machine {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.app-task-badge {
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.app-task-badge.warn {
  background-color: rgba(245, 158, 11, 0.15);
  color: var(--warning);
}

.app-task-badge.critical {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.app-task-desc {
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.app-task-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.phone-btn {
  padding: 6px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  border-radius: 4px;
  flex: 1;
}

.phone-btn-primary {
  background-color: var(--primary);
  color: #000;
  border: none;
}
.phone-btn-primary:hover {
  background-color: var(--primary-hover);
}

.phone-btn-secondary {
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.phone-btn-success {
  background-color: var(--success);
  color: #000;
  border: none;
}

.phone-nav-bar {
  display: flex;
  background-color: #11151e;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 8px 0;
}

.phone-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-muted);
  gap: 4px;
  cursor: pointer;
}

.phone-nav-item i {
  width: 16px;
  height: 16px;
}

.phone-nav-item span {
  font-size: 0.55rem;
  font-weight: 600;
}

.phone-nav-item.active {
  color: var(--primary);
}

/* Resolution Dialog Simulator */
.phone-resolution-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.phone-modal-body {
  background-color: #151924;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.phone-modal-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.phone-modal-input {
  background-color: #0d0f14;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: #fff;
  padding: 8px;
  font-size: 0.75rem;
  width: 100%;
  min-height: 50px;
  resize: none;
  outline: none;
}

.phone-modal-input:focus {
  border-color: var(--primary);
}

.phone-modal-actions {
  display: flex;
  gap: 8px;
}

/* ==========================================================================
   Architecture & How it Works Section
   ========================================================================== */
.architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.arch-card {
  background-color: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
}

.arch-card::after {
  content: '';
  position: absolute;
  top: 40px;
  right: -16px;
  width: 32px;
  height: 1px;
  background-color: var(--border-color);
  z-index: 2;
}

body.rtl .arch-card::after {
  right: auto;
  left: -16px;
}

.architecture-grid .arch-card:last-child::after {
  display: none;
}

.arch-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  opacity: 0.5;
  line-height: 1;
}

.arch-title {
  font-size: 1.15rem;
  font-weight: 600;
}

.arch-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.pricing-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.pricing-card.recommended {
  border-color: var(--primary);
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(18, 22, 32, 0.65) 100%);
  box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
}

.recommended-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary);
  color: #000;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-tier-name {
  font-size: 1.25rem;
  font-weight: 600;
}

.pricing-price {
  font-size: 2.75rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.price-period {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  min-height: 45px;
}

.pricing-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 8px;
}

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

.pricing-features-list li i {
  width: 16px;
  height: 16px;
  color: var(--primary);
}

/* Waitlist Section */
.waitlist-section {
  padding-bottom: 120px;
}

.waitlist-card {
  padding: 60px 40px;
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(6, 182, 212, 0.05);
}

.waitlist-title {
  font-size: 2.25rem;
  font-weight: 800;
}

body.rtl .waitlist-title {
  font-size: 2rem;
  line-height: 1.3;
}

.waitlist-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 12px;
}

.waitlist-form {
  display: flex;
  width: 100%;
  max-width: 500px;
  gap: 12px;
}

.waitlist-input {
  flex: 1;
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: #fff;
  padding: 14px 20px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition-smooth);
}

.waitlist-input:focus {
  border-color: var(--primary);
  background-color: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 12px rgba(6, 182, 212, 0.15);
}

body.rtl .waitlist-input {
  text-align: right;
}

/* Waitlist Success Message */
.waitlist-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  animation: scale-up 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-icon-wrapper {
  color: var(--success);
  margin-bottom: 8px;
}

.success-icon-wrapper i {
  width: 54px;
  height: 54px;
}

/* Footer */
footer {
  background-color: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
}

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

.footer-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

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

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ==========================================================================
   Animations & Keyframes
   ========================================================================== */

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7);
  }
  70% {
    transform: scale(1.1);
    opacity: 0.9;
    box-shadow: 0 0 0 6px rgba(6, 182, 212, 0);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
  }
}

@keyframes pulse-fast {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

@keyframes pulse-op {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

@keyframes slide-in {
  from {
    transform: translateY(12px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes scale-up {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes pulse-danger-border {
  0% {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
  50% {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.15);
  }
  100% {
    border-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* ==========================================================================
   Responsive Media Queries
   ========================================================================== */

@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-badge {
    align-self: center;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .hero-visual {
    max-width: 550px;
    margin: 0 auto;
    width: 100%;
  }
  
  .simulator-layout {
    grid-template-columns: 1fr 1fr;
  }
  
  .phone-mockup {
    grid-column: span 2;
    max-width: 360px;
    margin: 0 auto;
    height: 480px;
  }
  
  .architecture-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .arch-card::after {
    display: none;
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 450px;
    margin: 0 auto;
  }
  
  .pricing-card.recommended {
    transform: none;
  }
}

@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }
  
  .hero-section {
    padding-top: 120px;
  }
  
  nav.nav-links {
    display: none;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  body.rtl .hero-title {
    font-size: 2.2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .simulator-layout {
    grid-template-columns: 1fr;
  }
  
  .phone-mockup {
    grid-column: span 1;
  }
  
  .architecture-grid {
    grid-template-columns: 1fr;
  }
  
  .waitlist-form {
    flex-direction: column;
  }
  
  .footer-container {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}
