:root {
  --ink: #0e1a2b;
  --ink-2: #1b2a40;
  --ink-3: #2a3c57;
  --gold: #c9a24b;
  --gold-2: #e3c77d;
  --gold-dark: #8a6a26;
  --paper: #fbf9f4;
  --sand: #f3ede1;
  --line: #e4dccb;
  --text: #1d2433;
  --muted: #5b6474;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(14, 26, 43, .05), 0 12px 32px -12px rgba(14, 26, 43, .18);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Noto Naskh Arabic", "Songti SC", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Arabic", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 32px; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); font-weight: 400; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 249, 244, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 12px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: .2em; }
.brand-sub { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.brand-light { color: var(--white); }
.brand-light .brand-sub { color: #a9b3c3; }

.site-nav { display: flex; gap: 4px; margin-inline-start: auto; }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: 8px 12px; border-radius: 8px; color: var(--ink-2); }
.site-nav a:hover { background: var(--sand); }

.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--white); }
.lang button {
  font: 600 .78rem/1 var(--sans); color: var(--muted);
  border: 0; background: transparent; min-width: 32px; height: 28px; padding: 0 8px; border-radius: 999px; cursor: pointer;
}
.lang button:hover { color: var(--ink); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--ink); cursor: pointer; padding: 9px; }

@media (max-width: 880px) {
  .lang { margin-inline-start: auto; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: absolute; top: 68px; inset-inline: 0;
    flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .brand-sub { display: none; }
  .brand-mark { width: 34px; height: 34px; }
  .lang button { min-width: 28px; padding: 0 6px; }
  .header-inner { gap: 8px; }
}

/* Buttons */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn-ghost:hover { border-color: var(--gold-2); color: var(--gold-2); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--ink-3); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(201, 162, 75, .16), transparent 60%),
    linear-gradient(180deg, var(--ink) 0%, #12223a 100%);
  color: #d7deea;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 88px 96px; }
.hero h1 { color: var(--white); }
.hero .lead { font-size: 1.15rem; max-width: 38rem; color: #c3ccdb; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; max-width: 420px; margin-inline: auto; }
.hero-tags { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; }
.hero-tags li { font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--gold-2); border: 1px solid rgba(201, 162, 75, .4); padding: 6px 12px; border-radius: 999px; }
@media (max-width: 880px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 32px; }
  .hero-art svg { max-width: 280px; }
}

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.eyebrow-light { color: var(--gold-2); }

/* Sections */
.section { padding-block: 88px; }
.section-sand { background: var(--sand); }
.section-head { max-width: 640px; margin-bottom: 44px; }
@media (max-width: 720px) { .section { padding-block: 64px; } }

.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 8px; } }
.prose p { color: #3a4354; }

.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { position: relative; padding-inline-start: 32px; }
.checks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.5L14 7.5' fill='none' stroke='%238a6a26' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
  border: 1px solid var(--line);
}
.section-sand .checks li::before { background-color: var(--white); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card p { color: #4a5263; flex: 1; }
.card-num { position: absolute; inset-inline-end: 28px; top: 26px; font-family: var(--serif); font-size: 1.1rem; color: var(--gold); letter-spacing: .08em; }
.card-icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--ink); color: var(--gold-2); margin-bottom: 20px; }
.card-link { font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--gold); align-self: flex-start; padding-bottom: 2px; }
.card-link:hover { color: var(--gold-dark); }

/* Feature */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.feature-media { position: relative; margin: 0; }
.feature-media > img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; box-shadow: var(--shadow); }
.feature-badge { position: absolute; inset-inline-start: 20px; bottom: 20px; background: var(--white); padding: 12px 16px; border-radius: 12px; box-shadow: var(--shadow); }
.feature-badge img { width: 132px; height: auto; }
.feature-copy p { color: #3a4354; }
@media (max-width: 880px) { .feature { grid-template-columns: 1fr; gap: 32px; } }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { border-top: 2px solid var(--gold); padding-top: 22px; }
.value p { color: #4a5263; margin: 0; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; gap: 28px; } }

/* Contact */
.contact-card {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  background: radial-gradient(600px 300px at 100% 0%, rgba(201, 162, 75, .18), transparent 60%), var(--ink);
  color: #c3ccdb; border-radius: 24px; padding: 56px;
}
.contact-card h2 { color: var(--white); }
.contact-details { margin: 0; display: grid; gap: 18px; }
.contact-details div { border-bottom: 1px solid rgba(255, 255, 255, .12); padding-bottom: 16px; }
.contact-details div:last-child { border-bottom: 0; padding-bottom: 0; }
.contact-details dt { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 4px; }
.contact-details dd { margin: 0; color: var(--white); font-size: 1.08rem; overflow-wrap: anywhere; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { color: var(--gold-2); }
@media (max-width: 880px) { .contact-card { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; border-radius: 20px; } }

/* Footer */
.site-footer { background: var(--ink); color: #a9b3c3; padding-top: 64px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: 32px; }
.footer-about p { margin-top: 18px; max-width: 22rem; }
.site-footer h2 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; color: #d7deea; }
.site-footer a:hover { color: var(--gold-2); }
.contact-list li { overflow-wrap: anywhere; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 48px; padding-block: 22px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* Legal pages */
.page-head { background: var(--ink); color: #c3ccdb; padding-block: 64px 56px; }
.page-head h1 { color: var(--white); font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: .3em; }
.page-head p { margin: 0; }
.legal-layout { display: grid; grid-template-columns: 240px 1fr; gap: 56px; padding-block: 56px 88px; }
.legal-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 4px; }
.legal-nav a { text-decoration: none; padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.legal-nav a:hover { background: var(--sand); }
.legal-nav a[aria-current="page"] { background: var(--ink); color: var(--white); }
.legal { max-width: 46rem; }
.legal h2 { font-size: 1.45rem; margin-top: 1.8em; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: #3a4354; }
.legal ul { padding-inline-start: 1.25em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal .box { background: var(--sand); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.legal .box p:last-child { margin: 0; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 20px; margin: 0; }
.legal dt { font-weight: 600; color: var(--ink); }
.legal dd { margin: 0; color: #3a4354; overflow-wrap: anywhere; }
@media (max-width: 880px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 32px 64px; }
  .legal-nav { position: static; grid-template-columns: 1fr 1fr; }
  .legal-nav a { border: 1px solid var(--line); text-align: center; font-size: .88rem; }
}
@media (max-width: 520px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }

/* 404 */
.notfound { text-align: center; padding-block: 120px; }
.notfound .code { font-family: var(--serif); font-size: 5rem; color: var(--gold); line-height: 1; margin-bottom: 12px; }
.notfound .actions { justify-content: center; }

/* RTL tweaks */
[dir="rtl"] body, [dir="rtl"] { letter-spacing: 0; }
[dir="rtl"] .brand-text, [dir="rtl"] .brand { direction: ltr; }
[dir="rtl"] .eyebrow, [dir="rtl"] .hero-tags li, [dir="rtl"] .site-footer h2, [dir="rtl"] .contact-details dt { letter-spacing: 0; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; line-height: 1.35; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: .02em; line-height: 1.35; }
[dir="rtl"] .lang { direction: ltr; }
.lang button[lang="ar"] { font-size: 1rem; font-family: var(--sans); }
[dir="rtl"] body { font-size: 1.125rem; line-height: 1.8; }
