:root {
  --bg: #faf8f3;
  --surface: #ffffff;
  --surface-soft: #f2efe6;
  --emerald-soft: #e6f2ed;
  --gold-soft: #f7efe0;
  --border: #e0dacb;
  --ink: #17332a;
  --muted: #556159;
  --emerald: #1b664e;
  --emerald-deep: #134837;
  --gold: #b88a3e;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow: 0 10px 30px rgba(23, 51, 42, 0.06);
  --max-w: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--emerald);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--emerald-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emerald);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
}

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

.nav-links a.active {
  border-bottom: 2px solid var(--emerald);
}

.nav-toggle {
  display: none;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}

/* Hero */
.hero {
  padding: 56px 0 42px;
}

.hero-card {
  background: linear-gradient(135deg, var(--emerald-deep) 0%, #0f2f24 100%);
  color: #ffffff;
  border-radius: 28px;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(212, 164, 74, 0.25);
  background: radial-gradient(circle, rgba(212, 164, 74, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--emerald);
  margin-bottom: 8px;
}

.hero-card .eyebrow {
  background: rgba(212, 164, 74, 0.2);
  color: #f4cf86;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(212, 164, 74, 0.35);
}

.hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.18;
  font-weight: 500;
  margin: 12px 0 16px;
  max-width: 720px;
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 660px;
  margin: 0 0 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: #ffffff;
  color: var(--ink);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
}

.btn-emerald {
  background: var(--emerald);
  color: #ffffff;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

/* Sections */
.section {
  padding: 36px 0;
}

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

.section-header h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 500;
  margin: 0 0 6px;
}

.section-header p {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

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

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(23, 51, 42, 0.03);
}

.card-soft {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

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

/* App Showcase */
.app-showcase {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
}

.badge-emerald {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.badge-gold {
  background: var(--gold-soft);
  color: #8c6320;
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}

.feature-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  margin-top: 8px;
  flex-shrink: 0;
}

.phone-preview {
  background: linear-gradient(155deg, var(--emerald-deep), #0e241d);
  color: #ffffff;
  border-radius: 24px;
  padding: 28px;
  border: 1px solid rgba(212, 164, 74, 0.3);
}

.arabic-sample {
  font-size: 1.45rem;
  line-height: 2.1;
  direction: rtl;
  text-align: right;
  color: #fbe9c2;
  margin: 14px 0 8px;
}

.latin-sample {
  font-style: italic;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.92rem;
  margin: 0 0 6px;
}

.meaning-sample {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  margin: 0;
}

/* Legal / Document Pages */
.page-hero {
  padding: 42px 0 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}

.page-hero h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  font-weight: 500;
  margin: 6px 0 10px;
}

.page-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.legal-doc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  margin-bottom: 48px;
}

.legal-doc h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  margin: 28px 0 10px;
  color: var(--ink);
}

.legal-doc h2:first-child {
  margin-top: 0;
}

.legal-doc p,
.legal-doc li {
  color: #313d37;
  font-size: 0.97rem;
}

.legal-doc ul {
  padding-left: 20px;
}

.notice-box {
  background: var(--emerald-soft);
  border: 1px solid rgba(27, 102, 78, 0.22);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 18px 0;
  font-size: 0.93rem;
}

/* Contact Form */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: 2px solid rgba(27, 102, 78, 0.25);
  border-color: var(--emerald);
}

.info-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 0 28px;
  margin-top: 40px;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer-bottom {
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 860px) {
  .grid-3,
  .grid-2,
  .app-showcase {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 32px 24px;
  }

  .legal-doc {
    padding: 24px 20px;
  }
}

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

  .nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 70px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px;
    gap: 12px;
  }

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