@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800&family=Manrope:wght@400;600;700;800&display=swap');

:root {
  --font-ui-ar: "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-ui-en: "Manrope", "Segoe UI", Tahoma, Arial, sans-serif;
  --font-body-size: 15px;
  --font-small: 0.84rem;
  --font-base: 0.96rem;
  --font-lead: 1rem;
  --font-title-1: clamp(1.42rem, 2.6vw, 2.45rem);
  --font-title-2: clamp(1.18rem, 1.8vw, 1.8rem);
  --font-title-3: clamp(1rem, 1.2vw, 1.24rem);
  --line-body: 1.72;
  --line-heading: 1.22;
  --bg: #f2ede3;
  --bg-deep: #e7dcc9;
  --surface: rgba(255, 252, 246, 0.78);
  --surface-strong: #fffaf2;
  --ink: #1d2433;
  --muted: #5f697e;
  --line: rgba(29, 36, 51, 0.12);
  --brand: #b5542f;
  --brand-deep: #7f3316;
  --teal: #0d6b64;
  --teal-deep: #094944;
  --gold: #e3b46b;
  --shadow-soft: 0 16px 40px rgba(35, 26, 18, 0.08);
  --shadow-strong: 0 24px 70px rgba(35, 26, 18, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui-ar);
  font-size: var(--font-body-size);
  line-height: var(--line-body);
  background:
    radial-gradient(circle at top right, rgba(179, 84, 47, 0.12), transparent 28%),
    radial-gradient(circle at top left, rgba(13, 107, 100, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg), #fbf7ef 42%, #f6efe2 100%);
}

html[lang="en"] body {
  font-family: var(--font-ui-en);
}

html[dir="ltr"] .brand-copy,
html[dir="ltr"] .nav-links,
html[dir="ltr"] .hero-copy,
html[dir="ltr"] .page-hero,
html[dir="ltr"] .contact-panel,
html[dir="ltr"] .surface-card,
html[dir="ltr"] .cta-panel {
  text-align: left;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(250, 245, 236, 0.84);
  border-bottom: 1px solid rgba(29, 36, 51, 0.08);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: transparent;
  font-size: 0;
  background-color: rgba(255, 255, 255, 0.96);
  background-image: url('branding/nefer-icon-512.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border: 1px solid rgba(29, 36, 51, 0.08);
  box-shadow: 0 18px 30px rgba(35, 26, 18, 0.16);
}

.brand-copy strong {
  display: block;
  font-size: 1rem;
  line-height: 1.25;
}

.brand-copy span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 700;
  font-size: var(--font-small);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 800;
  font-size: var(--font-small);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.lang-select {
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  font: inherit;
  font-size: 0.92rem;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  box-shadow: 0 16px 32px rgba(13, 107, 100, 0.2);
}

.btn-secondary {
  color: var(--ink);
  border-color: rgba(29, 36, 51, 0.12);
  background: rgba(255, 255, 255, 0.75);
}

.btn-ghost {
  color: var(--brand-deep);
  border-color: rgba(127, 51, 22, 0.14);
  background: rgba(179, 84, 47, 0.08);
}

.hero-block,
.page-hero {
  position: relative;
  overflow: clip;
}

.hero-block {
  padding: 58px 0 28px;
}

.page-hero {
  padding: 52px 0 12px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 30px;
  align-items: center;
}

.hero-copy h1,
.page-hero h1 {
  margin: 14px 0 12px;
  font-size: var(--font-title-1);
  line-height: var(--line-heading);
  max-width: 12ch;
}

h2,
.section-heading h2,
.contact-panel h2,
.highlight-card h2 {
  font-size: var(--font-title-2);
  line-height: 1.3;
}

h3,
.surface-card h3,
.solution-card h3 {
  font-size: var(--font-title-3);
  line-height: 1.35;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: var(--font-lead);
  line-height: 1.85;
}

.lead.narrow {
  max-width: 68ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--brand-deep);
  background: rgba(179, 84, 47, 0.1);
  border: 1px solid rgba(179, 84, 47, 0.12);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.trust-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.trust-row span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(29, 36, 51, 0.1);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.hero-stack {
  display: grid;
  gap: 18px;
}

.highlight-card,
.surface-card,
.journey-card,
.solution-card,
.contact-panel,
.timeline-panel,
.cta-panel,
.metric-band,
.split-panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.62);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.highlight-card,
.surface-card,
.solution-card,
.contact-panel,
.timeline-panel,
.cta-panel,
.split-panel {
  border-radius: var(--radius-lg);
}

.highlight-card,
.contact-panel,
.timeline-panel,
.cta-panel,
.split-panel {
  padding: 24px;
}

.card-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(13, 107, 100, 0.12);
  color: var(--teal-deep);
  font-size: 0.74rem;
  font-weight: 800;
}

.surface-card p,
.contact-panel p,
.timeline-panel p,
.solution-card p,
.journey-card span,
.quote-card cite,
.comparison-table,
.feature-list li,
.contact-list li {
  font-size: var(--font-base);
}

.feature-list {
  margin: 0;
  padding-inline-start: 20px;
  display: grid;
  gap: 10px;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.highlight-card h2,
.section-heading h2,
.split-panel h2,
.cta-panel h2,
.solution-card h2 {
  margin: 14px 0 12px;
  font-size: clamp(1.25rem, 2vw, 2rem);
  line-height: 1.12;
}

.feature-list,
.contact-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.contact-list li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(29, 36, 51, 0.08);
}

.feature-list li:last-child,
.contact-list li:last-child {
  border-bottom: 0;
}

.feature-list a,
.contact-list a {
  color: var(--brand-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  word-break: break-word;
}

.feature-list a:hover,
.contact-list a:hover,
.feature-list a:focus-visible,
.contact-list a:focus-visible {
  color: var(--teal-deep);
}

.download-grid,
.platform-download-grid {
  display: grid;
  gap: 18px;
}

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

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

.download-card,
.platform-download-card {
  padding: 24px;
}

.download-card h3,
.platform-download-card h3 {
  margin: 0 0 10px;
  font-size: 1.08rem;
}

.download-card p,
.platform-download-card p {
  margin: 0;
  color: var(--muted);
}

.download-meta {
  margin: 18px 0;
  padding: 0;
  list-style: none;
}

.download-meta li {
  padding: 8px 0;
  color: var(--ink);
  border-bottom: 1px solid rgba(29, 36, 51, 0.08);
}

.download-meta li:last-child {
  border-bottom: 0;
}

.download-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.download-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

.release-panel {
  align-items: start;
}

.release-metrics {
  margin: 18px 0;
}

.release-notes-card,
.release-history-card {
  padding: 22px;
}

.release-notes-card h3,
.release-history-card h3 {
  margin-top: 0;
}

.release-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.release-history-head span {
  color: var(--muted);
  font-size: 0.84rem;
  white-space: nowrap;
}

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

.stat-card {
  padding: 22px;
  text-align: center;
}

.stat-card strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 10px;
  color: var(--teal-deep);
}

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

.seo-note {
  margin-top: 18px;
  color: var(--muted);
  text-align: center;
}

.platform-download-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-soft);
}

.metric-band {
  border-radius: 24px;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-band div {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
}

.metric-band strong {
  display: block;
  font-size: 1.28rem;
}

.metric-band span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
}

.section-block {
  padding: 28px 0 18px;
}

.alt-surface {
  background: linear-gradient(180deg, rgba(227, 180, 107, 0.08), rgba(13, 107, 100, 0.05));
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  color: var(--muted);
  max-width: 70ch;
}

.card-grid {
  display: grid;
  gap: 18px;
}

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

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

.surface-card {
  padding: 24px;
}

.surface-card h3 {
  margin: 0 0 10px;
  font-size: 1rem;
}

.surface-card p {
  margin: 0;
  color: var(--muted);
}

.platform-showcase {
  display: grid;
  gap: 18px;
}

.platform-card {
  overflow: hidden;
  padding: 0;
}

.platform-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(29, 36, 51, 0.08);
}

.platform-copy {
  padding: 18px 20px 20px;
}

.platform-copy h3 {
  margin: 0 0 8px;
}

.platform-copy p {
  margin: 0;
}

.media-frame {
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(29, 36, 51, 0.08);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.72);
}

.media-frame img {
  width: 100%;
  display: block;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(29, 36, 51, 0.08);
  text-align: start;
  vertical-align: top;
}

.comparison-table th {
  background: rgba(13, 107, 100, 0.08);
  font-size: 0.9rem;
}

.comparison-table tr:last-child td {
  border-bottom: 0;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  padding: 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 36, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.faq-item h3 {
  margin: 0 0 10px;
}

.faq-item p {
  margin: 0;
  color: var(--muted);
}

.quote-card {
  padding: 24px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(29, 36, 51, 0.08);
  box-shadow: var(--shadow-soft);
}

.quote-card blockquote {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.7;
}

.quote-card cite {
  color: var(--muted);
  font-style: normal;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kpi-strip .surface-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.embed-card {
  display: grid;
  gap: 18px;
}

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

.journey-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.journey-card {
  text-decoration: none;
  color: inherit;
  border-radius: 22px;
  padding: 22px;
}

.journey-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
}

.journey-card span {
  color: var(--muted);
}

.static-card {
  cursor: default;
}

.split-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 22px;
}

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

.check-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(29, 36, 51, 0.08);
  font-weight: 700;
}

.stacked-cards {
  display: grid;
  gap: 16px;
}

.solution-card {
  padding: 24px 26px;
  display: grid;
  grid-template-columns: minmax(220px, 0.46fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.solution-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

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

.pricing-card {
  min-height: 100%;
}

.pricing-card.featured {
  border-color: rgba(13, 107, 100, 0.24);
  background: linear-gradient(180deg, rgba(13, 107, 100, 0.08), rgba(255, 252, 246, 0.88));
}

.pricing-price {
  margin: 14px 0 10px;
  font-size: 1.7rem;
  font-weight: 800;
}

.landing-page .hero-copy h1 {
  max-width: 12ch;
}

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

.timeline-panel {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 16px 0;
  border-bottom: 1px solid rgba(29, 36, 51, 0.08);
}

.timeline-item:last-child {
  border-bottom: 0;
}

.timeline-item strong {
  display: block;
  margin-bottom: 5px;
}

.timeline-item span {
  color: var(--muted);
}

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

.contact-panel h2 {
  margin-top: 0;
}

.contact-panel p {
  color: var(--muted);
}

.cta-section {
  padding: 30px 0 54px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background:
    radial-gradient(circle at left top, rgba(227, 180, 107, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(13, 107, 100, 0.94), rgba(9, 73, 68, 0.96));
  color: #fff;
  box-shadow: var(--shadow-strong);
}

.cta-panel .eyebrow {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.12);
}

.cta-panel p {
  color: rgba(255, 255, 255, 0.82);
  max-width: 64ch;
}

.cta-panel .btn-primary {
  background: #fff;
  color: var(--teal-deep);
}

.cta-panel .btn-secondary,
.cta-panel .btn-ghost {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.site-footer {
  padding: 0 0 46px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid rgba(29, 36, 51, 0.08);
}

.footer-grid strong {
  display: block;
  margin-bottom: 10px;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid a {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  text-decoration: none;
}

.footer-grid a:hover {
  color: var(--ink);
}

.tech-links a {
  word-break: break-word;
}

@media (max-width: 1100px) {
  .hero-grid,
  .split-panel,
  .solution-card {
    grid-template-columns: 1fr;
  }

  .card-grid-4,
  .pricing-grid,
  .journey-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 820px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    inset: calc(100% + 8px) 20px auto 20px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: var(--shadow-strong);
    border: 1px solid rgba(29, 36, 51, 0.08);
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-actions {
    display: none;
  }

  .lang-select {
    width: 100%;
  }

  .card-grid-3,
  .card-grid-4,
  .journey-grid,
  .contact-grid,
  .check-grid,
  .pricing-grid,
  .kpi-strip,
  .landing-links,
  .footer-grid,
  .metric-band,
  .download-grid,
  .platform-download-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .page-hero h1 {
    max-width: none;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 24px, 1180px);
  }

  .hero-block {
    padding-top: 44px;
  }

  .highlight-card,
  .surface-card,
  .contact-panel,
  .timeline-panel,
  .cta-panel,
  .split-panel,
  .solution-card {
    padding: 18px;
  }

  .btn {
    width: 100%;
  }
}
