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

:root {
  --background: #070816;
  --surface: rgba(18, 21, 43, 0.94);
  --surface-soft: rgba(31, 35, 68, 0.78);
  --border: rgba(167, 139, 250, 0.22);
  --primary: #7c3aed;
  --primary-light: #a78bfa;
  --primary-soft: rgba(124, 58, 237, 0.14);
  --text: #f8fafc;
  --muted: #aeb6ca;
  --success: #55e6a5;
  --warning: #fbbf24;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.3);
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, rgba(124, 58, 237, 0.28), transparent 31%),
    radial-gradient(circle at 90% 12%, rgba(67, 56, 202, 0.18), transparent 25%),
    var(--background);
  font-family: Inter, Arial, sans-serif;
}

body[dir="rtl"] {
  font-family: Tahoma, Arial, sans-serif;
}

button,
a {
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1240px, 100%);
  margin: 0 auto;
  padding: 0 24px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  margin: 0 -24px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 8, 22, 0.84);
  backdrop-filter: blur(20px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 14px 32px rgba(124, 58, 237, 0.35);
  font-size: 22px;
  font-weight: 900;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-size: 19px;
}

.brand-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link,
.language-button,
.account-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #dce1ee;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
}

.language-button {
  min-width: 48px;
  border-color: var(--border);
  background: var(--surface-soft);
}

.account-button {
  border-color: rgba(167, 139, 250, 0.3);
  background: var(--primary-soft);
  font-weight: 800;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  min-height: 670px;
  padding: 72px 0 65px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 999px;
  background: var(--primary-soft);
  color: #ddd4ff;
  font-size: 13px;
  font-weight: 750;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 13px rgba(85, 230, 165, 0.8);
}

.hero h1 {
  max-width: 750px;
  margin-top: 23px;
  font-size: clamp(46px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.055em;
}

body[dir="rtl"] .hero h1 {
  line-height: 1.17;
  letter-spacing: 0;
}

.hero h1 span {
  color: var(--primary-light);
}

.hero-copy > p {
  max-width: 700px;
  margin-top: 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.82;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 21px;
  border-radius: 16px;
  font-weight: 850;
}

.primary-action {
  background: linear-gradient(135deg, #6d28d9, #8b5cf6);
  box-shadow: 0 18px 36px rgba(124, 58, 237, 0.28);
}

.secondary-action {
  border: 1px solid var(--border);
  background: var(--surface-soft);
}

body[dir="rtl"] .action-arrow,
body[dir="rtl"] .card-action span:last-child,
body[dir="rtl"] .all-files-link span:last-child {
  transform: rotate(180deg);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  margin-top: 27px;
  color: var(--muted);
  font-size: 13px;
}

.hero-points > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-points b {
  color: var(--success);
}

.nexa-preview {
  padding: 24px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: 28px;
  background:
    linear-gradient(150deg, rgba(34, 38, 76, 0.96), rgba(13, 16, 35, 0.96));
  box-shadow: var(--shadow);
}

.preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.preview-head div span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.preview-head div strong {
  display: block;
  margin-top: 3px;
  font-size: 23px;
}

.online-pill {
  padding: 7px 11px;
  border-radius: 999px;
  color: var(--success);
  background: rgba(85, 230, 165, 0.1);
  font-size: 12px;
  font-weight: 800;
}

.preview-chat {
  display: grid;
  gap: 12px;
  margin-top: 25px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(6, 8, 22, 0.55);
}

.chat-message {
  max-width: 88%;
  padding: 13px 15px;
  border-radius: 15px;
  font-size: 13px;
  line-height: 1.65;
}

.user-message {
  justify-self: end;
  background: #6d28d9;
}

.nexa-message {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--surface-soft);
  color: #dfe4f0;
}

.nexa-mini {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  border-radius: 8px;
  background: var(--primary);
  font-weight: 900;
}

.preview-tools,
.format-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.preview-tools {
  margin-top: 18px;
}

.preview-tools span,
.format-list span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.045);
  color: #d4d8e4;
  font-size: 11px;
  font-weight: 750;
}

.overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--border);
}

.overview article {
  padding: 21px;
  background: rgba(16, 19, 40, 0.98);
}

.overview strong {
  display: block;
  font-size: 15px;
}

.overview span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.sections-area {
  padding: 105px 0 70px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 28px;
}

.eyebrow {
  color: var(--primary-light);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

body[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.section-heading h2,
.closing h2 {
  max-width: 750px;
  margin-top: 10px;
  font-size: clamp(31px, 4vw, 47px);
  line-height: 1.15;
}

.section-heading p,
.closing p {
  max-width: 720px;
  margin-top: 13px;
  color: var(--muted);
  line-height: 1.75;
}

.all-files-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: var(--surface-soft);
  font-size: 13px;
  font-weight: 800;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.section-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 23px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 23px;
  background:
    linear-gradient(145deg, rgba(29, 33, 66, 0.95), rgba(13, 16, 35, 0.95));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.section-card:hover {
  transform: translateY(-4px);
  border-color: rgba(167, 139, 250, 0.5);
}

.section-card.featured {
  background:
    linear-gradient(145deg, rgba(77, 39, 142, 0.94), rgba(19, 20, 48, 0.96));
}

.section-card.upcoming {
  opacity: 0.73;
}

.section-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: 16px;
  background: var(--primary-soft);
  font-size: 27px;
}

.card-status {
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[dir="rtl"] .card-status {
  right: auto;
  left: 22px;
  letter-spacing: 0;
}

.card-status.available {
  color: var(--success);
  background: rgba(85, 230, 165, 0.1);
}

.card-status.soon {
  color: var(--warning);
  background: rgba(251, 191, 36, 0.1);
}

.section-card h3 {
  margin-top: 20px;
  font-size: 21px;
}

.section-card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.format-list {
  margin-top: 17px;
}

.card-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  margin-top: auto;
  padding: 0 14px;
  border: 1px solid rgba(167, 139, 250, 0.28);
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(109, 40, 217, 0.85), rgba(124, 58, 237, 0.85));
  font-size: 13px;
  font-weight: 850;
}

.card-action.disabled {
  justify-content: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.045);
}

.closing {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  margin: 35px 0 90px;
  padding: 38px;
  border: 1px solid var(--border);
  border-radius: 27px;
  background:
    radial-gradient(circle at 90% 10%, rgba(124, 58, 237, 0.24), transparent 35%),
    var(--surface);
}

.closing .primary-action {
  flex: 0 0 auto;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 32px 0 42px;
  border-top: 1px solid var(--border);
}

.footer-brand .brand-mark {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 13px;
  font-size: 19px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .nexa-preview {
    width: min(620px, 100%);
  }

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

@media (max-width: 720px) {
  .page-shell {
    padding: 0 14px;
  }

  .topbar {
    min-height: 70px;
    margin: 0 -14px;
    padding: 10px 14px;
  }

  .brand-copy small,
  .desktop-link {
    display: none;
  }

  .nav-link,
  .language-button,
  .account-button {
    min-height: 40px;
    padding: 0 11px;
  }

  .hero {
    gap: 42px;
    padding: 52px 0 45px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 58px);
  }

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

  .sections-area {
    padding-top: 78px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .section-card {
    min-height: 305px;
  }

  .closing {
    align-items: flex-start;
    flex-direction: column;
    padding: 27px 22px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 410px) {
  .brand-copy strong {
    font-size: 17px;
  }

  .account-button {
    max-width: 96px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nexa-preview {
    padding: 18px;
  }

  .chat-message {
    max-width: 94%;
  }
}
