﻿:root {
  --bg: #f7fbff;
  --bg-2: #edf4ff;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --text: #0f172a;
  --muted: #4b5563;
  --line: #dbe7f7;
  --primary: #0c6fd6;
  --primary-2: #1fb7a6;
  --danger: #b42318;
  --shadow-lg: 0 28px 56px rgba(15, 23, 42, 0.12);
  --shadow-md: 0 14px 28px rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 18px rgba(15, 23, 42, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: "Manrope", "Cairo", "Segoe UI", sans-serif;
  background:
    radial-gradient(56rem 56rem at 95% -8%, #d7f3ff 0, transparent 56%),
    radial-gradient(44rem 44rem at 4% 95%, #dffaf6 0, transparent 54%),
    linear-gradient(160deg, var(--bg), var(--bg-2) 58%, var(--bg));
  line-height: 1.55;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    to right,
    rgba(255, 255, 255, 0.34) 0,
    rgba(255, 255, 255, 0.34) 1px,
    transparent 1px,
    transparent 28px
  );
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 65%);
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(12, 111, 214, 0.35);
  outline-offset: 2px;
}

.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 28px auto 60px;
}

main {
  margin-top: 16px;
  display: grid;
  gap: 18px;
}

.top-nav {
  position: sticky;
  top: 14px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(219, 231, 247, 0.92);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.brand-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 8px rgba(12, 111, 214, 0.12);
}

.nav-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-tools {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-inline-start: auto;
}

.lang-picker {
  position: relative;
  display: inline-flex;
}

.lang-toggle {
  border: 1px solid #c9dbf3;
  border-radius: 999px;
  padding: 8px 12px;
  background: linear-gradient(165deg, #ffffff, #eef5ff);
  color: #0f172a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  min-width: 74px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.07);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.lang-toggle-globe {
  font-size: 12px;
}

.lang-toggle:hover {
  background: #eaf3ff;
  border-color: #b7ceed;
  transform: translateY(-1px);
}

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline-end: 0;
  width: max-content;
  min-width: 156px;
  border: 1px solid #d4e4f7;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  padding: 6px;
  display: grid;
  gap: 4px;
  z-index: 120;
}

.lang-menu[hidden] {
  display: none;
}

.lang-menu-item {
  border: 1px solid transparent;
  border-radius: 9px;
  background: #ffffff;
  color: #1f2937;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: start;
  padding: 8px 10px;
  cursor: pointer;
}

.lang-menu-item:hover {
  background: #eef5ff;
}

.lang-menu-item.is-active {
  border-color: #c9dbf3;
  background: #edf5ff;
  color: #0f172a;
}

.nav-link {
  text-decoration: none;
  color: #374151;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  padding: 9px 12px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: #0f172a;
  background: #edf4ff;
}

.hero {
  margin-top: 0;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f4f9ff 54%, #ecfff8);
  box-shadow: var(--shadow-lg);
  animation: rise-in 0.55s ease both;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.36px;
  text-transform: uppercase;
  color: #0d5e57;
  background: #d9fbf1;
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #12a98e;
}

.hero h1 {
  margin: 14px 0 12px;
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.01;
  letter-spacing: -0.6px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  max-width: 760px;
  font-size: 17px;
}

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

.button {
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible,
.nav-link:focus-visible,
.lang-toggle:focus-visible,
.lang-menu-item:focus-visible,
.footer-links a:focus-visible,
.checkout-form input:focus-visible,
.checkout-form select:focus-visible {
  box-shadow: 0 0 0 4px rgba(12, 111, 214, 0.18);
}

.button.primary {
  color: #ffffff;
  background: linear-gradient(130deg, var(--primary), #0b87ce);
  box-shadow: 0 10px 20px rgba(12, 111, 214, 0.26);
}

.button.secondary {
  color: #1f2937;
  border-color: #c5d6ee;
  background: #ffffff;
}

.hero-showcase {
  border-radius: var(--radius-lg);
  border: 1px solid #d3e1f4;
  background: linear-gradient(165deg, #ffffff, #f3f9ff);
  padding: 14px;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 12px;
}

.hero-showcase h3 {
  margin: 0;
  font-size: 17px;
  letter-spacing: 0.2px;
}

.showcase-row {
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #dce8f8;
  background: #f8fbff;
}

.showcase-track {
  display: flex;
  gap: 12px;
  width: max-content;
  padding: 12px;
  animation: showcase-left 34s linear infinite;
}

.showcase-row.reverse .showcase-track {
  animation-name: showcase-right;
}

.showcase-card {
  margin: 0;
  width: 146px;
  aspect-ratio: 9 / 19;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #d4e4f7;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
  background: #eef5ff;
}

.showcase-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section {
  margin-top: 0;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  animation: rise-in 0.5s ease both;
  display: grid;
  gap: 12px;
}

.section h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.35px;
}

.section p {
  margin: 0;
  color: var(--muted);
  line-height: 1.78;
  max-width: 920px;
}

.features-grid {
  margin-top: 4px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  border: 1px solid #dde8f8;
  border-radius: var(--radius-md);
  padding: 18px;
  background: linear-gradient(160deg, #fbfdff, #f4f9ff);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: #c8daf3;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-header {
  margin-bottom: 2px;
  display: grid;
  gap: 10px;
}

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

.step-card {
  border: 1px solid #dce8f8;
  border-radius: var(--radius-md);
  padding: 18px;
  background: linear-gradient(165deg, #fcfeff, #f3f9ff);
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 18px;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cta-banner {
  margin-top: 0;
  border-radius: var(--radius-xl);
  border: 1px solid #cde0fa;
  background:
    radial-gradient(circle at 90% 10%, rgba(69, 191, 255, 0.24), transparent 45%),
    linear-gradient(140deg, #ffffff, #f0f7ff 60%, #e9fff8);
  box-shadow: var(--shadow-lg);
  padding: clamp(24px, 3vw, 34px);
  display: grid;
  gap: 12px;
}

.cta-banner h2 {
  margin: 0;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.25px;
}

.cta-banner p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
  max-width: 760px;
}

.checkout-card {
  max-width: 740px;
  margin-left: auto;
  margin-right: auto;
}

.plans-block {
  margin-top: 22px;
  display: grid;
  gap: 12px;
}

.plans-title {
  margin: 0;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.2px;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
  justify-content: center;
  gap: 12px;
}

.plans-loading {
  margin: 0;
  border: 1px solid #d6e5f8;
  border-radius: 14px;
  background: #f9fcff;
  color: #475569;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
}

.plans-loading.is-error {
  color: var(--danger);
}

.plan-card {
  position: relative;
  border: 1px solid #d8e6f9;
  border-radius: 16px;
  background: linear-gradient(170deg, #ffffff, #f5f9ff);
  box-shadow: var(--shadow-sm);
  padding: 14px;
  display: grid;
  gap: 10px;
  align-content: start;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  cursor: pointer;
}

.plan-card.has-badge {
  padding-top: 26px;
}

.plan-card:hover {
  transform: translateY(-2px);
  border-color: #bfd7f4;
}

.plan-card.is-selected {
  border-color: #79afe8;
  box-shadow: 0 10px 24px rgba(12, 111, 214, 0.16);
  background: linear-gradient(170deg, #fdfefe, #edf5ff);
}

.plan-badge {
  position: absolute;
  top: -10px;
  inset-inline-start: 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.25px;
  color: #0b5fba;
  background: #e9f2ff;
  border: 1px solid #cfe0f7;
}

.plan-name {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.1px;
}

.plan-price {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  color: #0d5fb9;
  letter-spacing: -0.2px;
}

.plan-features {
  margin: 0;
  padding: 0 0 0 18px;
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.plan-card-btn {
  width: 100%;
  margin-top: 4px;
}

.checkout-inline-card {
  margin: 20px auto 0;
  width: min(100%, 620px);
  border: 1px solid #d6e5f8;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  padding: clamp(14px, 2vw, 20px);
}

.checkout-form {
  margin-top: 4px;
  display: grid;
  gap: 12px;
}

.checkout-form label {
  color: #1f2937;
  font-size: 14px;
  font-weight: 700;
}

.checkout-form input,
.checkout-form select {
  width: 100%;
  border: 1px solid #c8d7ee;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
}

.checkout-form .button {
  width: 100%;
  margin-top: 4px;
}

.checkout-form input:focus,
.checkout-form select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(12, 111, 214, 0.13);
}

.checkout-status {
  margin: 12px 0 0;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
}

.checkout-meta {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
}

.checkout-status.is-success {
  color: #0f766e;
}

.checkout-status.is-error {
  color: var(--danger);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.legal-page {
  margin-top: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
  padding: clamp(20px, 3vw, 30px);
}

.standalone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.standalone-top--end {
  justify-content: flex-end;
}

.standalone-top .brand {
  font-size: 15px;
}

.standalone-top .lang-toggle {
  padding: 7px 10px;
}

.legal-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.3px;
}

.legal-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.legal-content {
  margin-top: 16px;
  display: grid;
  gap: 14px;
}

.legal-block {
  border: 1px solid #dfe9f8;
  border-radius: 12px;
  background: #fbfdff;
  padding: 16px;
}

.legal-block h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.legal-block p,
.legal-block li {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
  font-size: 14px;
}

.legal-block ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.footer {
  margin-top: 26px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
  padding-bottom: 10px;
}

.footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links a {
  text-decoration: none;
  color: #475569;
  font-weight: 600;
  border-radius: 8px;
  padding: 5px 8px;
}

.footer-links a:hover {
  color: #1f2937;
  background: #e9f2ff;
}

html[dir="rtl"] body {
  font-family: "Cairo", "Manrope", "Segoe UI", sans-serif;
}

html[dir="rtl"] .hero,
html[dir="rtl"] .section,
html[dir="rtl"] .legal-page {
  text-align: right;
}

html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer-links {
  justify-content: flex-start;
}

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

@keyframes showcase-left {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes showcase-right {
  from {
    transform: translateX(-50%);
  }
  to {
    transform: translateX(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.d1 {
  transition-delay: 80ms;
}

.d2 {
  transition-delay: 160ms;
}

.d3 {
  transition-delay: 240ms;
}

.d4 {
  transition-delay: 320ms;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .showcase-card {
    width: 132px;
  }

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

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

  .plans-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
  }
}

@media (max-width: 680px) {
  .site-shell {
    width: calc(100% - 24px);
    margin-top: 14px;
  }

  .top-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    top: 8px;
  }

  .nav-links {
    width: auto;
    justify-content: flex-start;
  }

  .nav-tools {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
  }

  .hero,
  .section,
  .legal-page {
    padding: 18px 16px;
  }

  .hero h1 {
    font-size: clamp(30px, 11vw, 40px);
  }

  .showcase-card {
    width: 116px;
  }

  .checkout-inline-card {
    width: 100%;
    padding: 14px;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
