:root {
  --bg-deep: #080810;
  --bg-mid: #0d0d1a;
  --bg-surface: #12121f;
  --bg-card: #16162a;
  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(120, 80, 255, 0.35);

  --accent-1: #7c4dff;
  --accent-2: #e040fb;
  --accent-3: #00e5ff;
  --accent-soft: rgba(124, 77, 255, 0.18);

  --text-primary: #f0eeff;
  --text-secondary: #a09ec0;
  --text-dim: #5e5c7a;

  --glow-purple: 0 0 60px rgba(124, 77, 255, 0.25);
  --glow-cyan: 0 0 40px rgba(0, 229, 255, 0.15);

  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;

  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}


body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 10%, rgba(124, 77, 255, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 85% 80%, rgba(0, 229, 255, 0.07) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(224, 64, 251, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}


body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.page-wrapper {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}


header {
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 8, 16, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(124, 77, 255, 0.4);
}

.logo-icon i {
  color: #ffffff;
  font-size: 16px;
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.logo-text span {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-soft);
  border: 1px solid var(--border-glow);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.75rem;
  font-weight: 500;
  color: #c4b0ff;
  letter-spacing: 0.03em;
}

.nav-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fff7f;
  box-shadow: 0 0 8px rgba(127, 255, 127, 0.7);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}


.hero {
  text-align: center;
  padding: 56px 24px 36px;
  animation: fadeUp 0.7s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 18px;
}

.hero-eyebrow::before,
.hero-eyebrow::after {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--accent-3);
  opacity: 0.5;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: clamp(0.9rem, 2.2vw, 1.05rem);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 300;
}


.stats-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0 24px 36px;
  animation: fadeUp 0.7s 0.15s ease both;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: border-color 0.25s, color 0.25s, transform 0.2s, box-shadow 0.25s;
}

.stat-pill:hover {
  border-color: var(--border-glow);
  color: var(--text-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(124, 77, 255, 0.15);
}

.stat-pill i {
  font-size: 1rem;
  transition: transform 0.25s ease;
}

.stat-pill:hover i {
  transform: scale(1.2);
}

.icon-comments {
  color: #9e7bff;
}

.icon-globe {
  color: #00e5ff;
}

.icon-link {
  color: #e040fb;
}


.chat-section {
  padding: 0 16px 48px;
  animation: fadeUp 0.7s 0.25s ease both;
}

.chat-card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    var(--glow-purple),
    0 40px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  transition: box-shadow 0.4s, transform 0.3s;
}

.chat-card:hover {
  box-shadow:
    0 0 80px rgba(124, 77, 255, 0.3),
    0 40px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}


.chat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2), var(--accent-3));
  z-index: 2;
}

.chat-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--border);
}

.chat-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.traffic-lights {
  display: flex;
  gap: 6px;
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.tl-r {
  background: #ff5f57;
}

.tl-y {
  background: #febc2e;
}

.tl-g {
  background: #28c840;
}

.chat-topbar-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
}

.chat-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--text-dim);
}

.live-indicator {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.8);
  animation: pulse-dot 2s ease-in-out infinite;
}


.chat-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

.chat-frame {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
  background: transparent;
}

@media (max-width: 768px) {
  .chat-frame {
    height: 460px;
  }
}

@media (max-width: 480px) {
  .chat-frame {
    height: 400px;
  }
}


.features {
  display: flex;
  justify-content: center;
  gap: 0;
  max-width: 800px;
  margin: 0 auto 48px;
  padding: 0 16px;
  animation: fadeUp 0.7s 0.35s ease both;
}

.feature-item {
  flex: 1;
  text-align: center;
  padding: 24px 16px;
  border: 1px solid var(--border);
  background: var(--bg-surface);
  position: relative;
  text-decoration: none;
  display: block;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-item:first-child {
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.feature-item:last-child {
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.feature-item:not(:first-child) {
  border-left: none;
}

.feature-item:hover {
  background: var(--bg-card);
  border-color: var(--border-glow);
  z-index: 2;
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(124, 77, 255, 0.2);
}

.feature-icon {
  font-size: 1.6rem;
  margin-bottom: 12px;
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transition: transform 0.3s ease;
}

.feature-item:hover .feature-icon {
  transform: scale(1.2) rotate(6deg);
}

.feature-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}


footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 20px 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
  background: rgba(8, 8, 16, 0.5);
  backdrop-filter: blur(10px);
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color 0.2s;
}

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


.lang-selector {
  margin-left: 16px;
}

#langSwitch {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 12px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

#langSwitch:hover,
#langSwitch:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 10px rgba(124, 77, 255, 0.2);
}


html[dir="rtl"] {
  direction: rtl;
}

html[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

html[dir="rtl"] .chat-topbar-left {
  flex-direction: row-reverse;
}

html[dir="rtl"] .chat-topbar-right {
  flex-direction: row-reverse;
}


@media (max-width: 600px) {
  .features {
    flex-direction: column;
  }

  .feature-item:first-child {
    border-radius: var(--radius-md) var(--radius-md) 0 0;
  }

  .feature-item:last-child {
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }

  .feature-item:not(:first-child) {
    border-left: 1px solid var(--border);
    border-top: none;
  }

  .hero {
    padding: 40px 16px 28px;
  }
}