* {
  box-sizing: border-box;
}

:root {
  --ink: #171717;
  --muted: #5f5b55;
  --paper: #f7f3eb;
  --card: #fffdf8;
  --line: #e7ddcb;
  --gold: #c69b42;
  --gold-deep: #8a6625;
  --olive: #2f4a43;
  --forest: #17342d;
  --sand: #efe5d4;
  --sky: #dcebf3;
  --white: #ffffff;
  --success: #166534;
  --danger: #991b1b;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(198, 155, 66, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(47, 74, 67, 0.15), transparent 30%),
    var(--paper);
  font-family: "Cairo", Tahoma, sans-serif;
}

body.en {
  direction: ltr;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

body.ar {
  direction: rtl;
}

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

img {
  max-width: 100%;
}

[data-lang] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

body.ar [data-lang="ar"],
body.en [data-lang="en"] {
  display: revert !important;
}

body.ar [data-lang="en"],
body.en [data-lang="ar"] {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 54px);
  border-bottom: 1px solid rgba(231, 221, 203, 0.9);
  background: rgba(247, 243, 235, 0.94);
  backdrop-filter: blur(14px);
}

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

.brand img {
  width: 50px;
  height: 50px;
  padding: 6px;
  border-radius: 12px;
  background: #111111;
  border: 1px solid rgba(198, 155, 66, 0.18);
  box-shadow: 0 16px 34px rgba(23, 23, 23, 0.18);
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 18px;
  line-height: 1.1;
}

.brand-copy span {
  color: var(--muted);
  font-size: 13px;
}

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

.lang-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
}

.lang-switch button {
  min-width: 48px;
  border: 0;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  cursor: pointer;
}

body.ar .lang-switch {
  direction: ltr;
}

body.ar .lang-switch [data-set-lang="ar"],
body.en .lang-switch [data-set-lang="en"] {
  background: var(--ink);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.btn.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.btn.gold {
  background: var(--gold);
  border-color: var(--gold);
  color: #261801;
}

.btn.ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(42px, 7vw, 92px) clamp(18px, 5vw, 68px);
  background:
    linear-gradient(135deg, rgba(23, 52, 45, 0.98), rgba(22, 22, 22, 0.98)),
    #181818;
  color: var(--white);
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-start: clamp(8px, 4vw, 48px);
  bottom: -40px;
  width: min(28vw, 380px);
  aspect-ratio: 1;
  transform: none;
  background: url("logo.png") center / contain no-repeat;
  opacity: 0.18;
  filter: drop-shadow(0 26px 70px rgba(198, 155, 66, 0.24));
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 430px);
  gap: 34px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.locale-block {
  display: grid;
  gap: 0;
}

.locale-block h1,
.locale-block .lead,
.locale-block .hero-actions,
.locale-block .hero-note {
  max-width: 980px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid rgba(198, 155, 66, 0.5);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #f4dcad;
  font-size: 14px;
  font-weight: 800;
}

h1 {
  margin: 18px 0 0;
  font-size: clamp(34px, 5.5vw, 78px);
  line-height: 1.06;
  letter-spacing: 0;
}

.lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: #e7e4de;
  font-size: clamp(17px, 2.2vw, 23px);
  line-height: 1.8;
}

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

.hero-note {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hero-note span {
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #d6d3ce;
  font-size: 14px;
  font-weight: 700;
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.hero-brand-card,
.hero-tile {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.hero-brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
}

.hero-brand-card img {
  width: 72px;
  height: 72px;
  padding: 8px;
  border-radius: 16px;
  background: #0f0f0f;
  border: 1px solid rgba(198, 155, 66, 0.2);
}

.hero-brand-text {
  display: grid;
  gap: 4px;
}

.hero-brand-text strong {
  font-size: 28px;
  line-height: 1;
}

.hero-brand-text span {
  color: #d9d5cd;
  line-height: 1.6;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.hero-tile {
  padding: 18px;
}

.hero-tile b {
  display: block;
  margin-bottom: 8px;
  color: #f7e0af;
  font-size: 24px;
}

.hero-tile span {
  color: #ece6d9;
  line-height: 1.7;
}

.section {
  padding: clamp(44px, 7vw, 82px) clamp(18px, 5vw, 68px);
}

.section.alt {
  background: rgba(255, 255, 255, 0.52);
}

.section-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.08;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.feature-grid,
.pricing-grid,
.download-grid,
.showcase-grid {
  display: grid;
  gap: 14px;
}

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

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

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

.feature-card,
.pricing-card,
.download-card,
.showcase-card,
.contact-panel,
.workflow-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  padding: 22px;
  box-shadow: 0 18px 44px rgba(23, 23, 23, 0.06);
}

.feature-card strong,
.pricing-card strong,
.download-card strong,
.showcase-card strong,
.workflow-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 19px;
}

.feature-card p,
.pricing-card p,
.download-card p,
.showcase-card p,
.workflow-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
}

.metric {
  border-radius: 12px;
  background: linear-gradient(180deg, #f6ecda, #ebdfcb);
  padding: 18px;
}

.metric b {
  display: block;
  color: var(--gold-deep);
  font-size: 28px;
}

.metric span {
  color: #624b29;
  line-height: 1.7;
}

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

.workflow-item {
  align-content: start;
}

.pricing-card {
  position: relative;
  display: grid;
  gap: 12px;
  align-content: start;
}

.pricing-card.featured {
  background: linear-gradient(180deg, #fff7e7, #fffdf8);
  border-color: rgba(198, 155, 66, 0.58);
}

.pricing-card.special {
  background: linear-gradient(180deg, #eaf4f2, #fffdf8);
  border-color: rgba(47, 74, 67, 0.34);
}

.pill {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--sand);
  color: var(--gold-deep);
  font-size: 13px;
  font-weight: 800;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}

.price b {
  font-size: 38px;
  line-height: 1;
}

.price span {
  color: var(--muted);
  font-weight: 700;
}

.pricing-list,
.download-list {
  display: grid;
  gap: 10px;
}

.pricing-list span,
.download-list span {
  color: var(--muted);
  line-height: 1.65;
}

.download-card {
  display: grid;
  gap: 12px;
}

.download-meta {
  color: var(--muted);
  font-size: 14px;
}

.showcase-card {
  display: grid;
  gap: 12px;
}

.showcase-card.smart {
  background: linear-gradient(180deg, #1b302a, #203932);
  color: var(--white);
  border-color: rgba(198, 155, 66, 0.28);
}

.showcase-card.smart p {
  color: #d8e1de;
}

.smart-tag {
  display: inline-flex;
  width: fit-content;
  min-height: 32px;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(198, 155, 66, 0.18);
  color: #f0d8a4;
  font-size: 13px;
  font-weight: 800;
}

.contact-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  background: var(--forest);
  color: var(--white);
}

.contact-panel p {
  max-width: 760px;
  margin: 8px 0 0;
  color: #d8e1de;
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.contact-list a,
.contact-list span {
  color: #f6f2ea;
  font-weight: 700;
}

.web-card {
  width: min(480px, 92vw);
  margin: 42px auto;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
}

.web-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.web-logo img {
  width: 58px;
  height: 58px;
  border-radius: 10px;
}

.web-logo strong {
  font-size: 22px;
}

.form-field {
  display: block;
  margin: 13px 0 7px;
  color: #374151;
  font-weight: 700;
}

.form-input {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 15px;
}

.message {
  margin-top: 14px;
  padding: 11px 12px;
  border-radius: 10px;
}

.message.success {
  color: var(--success);
  background: #dcfce7;
}

.message.error {
  color: var(--danger);
  background: #fee2e2;
}

.admin-header {
  background: var(--forest);
  color: var(--white);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-header .brand img {
  width: 44px;
  height: 44px;
}

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

  .hero-panel {
    max-width: 760px;
  }

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

  .pricing-grid,
  .download-grid,
  .showcase-grid,
  .workflow,
  .metric-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-copy span {
    white-space: normal;
  }

  .nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    inset-inline-start: 50%;
    transform: translateX(-50%);
    width: 68vw;
    opacity: 0.12;
  }

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

  .feature-grid,
  .pricing-grid,
  .download-grid,
  .showcase-grid,
  .workflow,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    flex-direction: column;
  }
}
