/* Palette sampled from the Rivot Trading logo: deep navy ground, polished gold, royal blue. */
:root {
  --navy-950: #010a1c;
  --navy-900: #021533;
  --navy-800: #06214a;
  --navy-700: #0c2f63;
  --blue: #2f63d8;
  --gold: #d8a238;
  --gold-light: #ffd751;
  --gold-deep: #9e6a12;
  --text: #e9edf5;
  --text-muted: #a9b4c8;
  --line: rgba(216, 162, 56, 0.28);
  --gold-gradient: linear-gradient(135deg, #fff1b8 0%, var(--gold-light) 22%, var(--gold) 55%, var(--gold-deep) 100%);
  --radius: 14px;
  /* Latin faces first; glyphs they lack fall through to the script-specific face. */
  --font-display: "Cinzel", Georgia, serif;
  --font-body: "Jost", system-ui, sans-serif;
  --header-h: 76px;
}

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

/* touch-action: manipulation turns off double-tap zoom (a missed tap on the
   menu button used to zoom the page) while keeping pinch zoom. */
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); touch-action: manipulation; }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-text,
h1,
h2 {
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gold-rule {
  width: 72px;
  height: 2px;
  margin-top: 20px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
}
.gold-rule.center { margin-inline: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(1, 10, 28, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand img {
  width: 84px;
  height: auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: "Cinzel", Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav a {
  font-size: 15px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--gold-light); }
.site-nav .nav-cta {
  padding: 8px 20px;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
}
.site-nav .nav-cta:hover { background: rgba(216, 162, 56, 0.12); }

/* 48px hit area; the negative margin extends it into the container gutter so
   taps near the screen's right edge still land. */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  margin-right: -12px;
  padding: 12px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--gold);
  transition: transform 0.2s, opacity 0.2s;
}

/* Mobile menu is a native popover (top layer), anchored under the header. */
.mobile-nav {
  inset: var(--header-h) 0 auto 0;
  width: 100%;
  margin: 0;
  padding: 8px 16px 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(1, 10, 28, 0.97);
  color: var(--text);
}
.mobile-nav:popover-open { display: flex; flex-direction: column; }
.mobile-nav::backdrop { background: rgba(1, 10, 28, 0.5); }
.mobile-nav a {
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 16px;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: var(--text-muted);
}
.mobile-nav .nav-cta {
  margin-top: 12px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  color: var(--gold-light);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, var(--navy-800) 0%, var(--navy-900) 45%, var(--navy-950) 100%);
  text-align: center;
}
.hero-glow {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.hero-logo {
  width: min(720px, 100%);
  height: auto;
  margin: 0 auto;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%);
}
.hero .eyebrow { margin-top: 8px; }
.hero h1 {
  font-size: clamp(30px, 5vw, 54px);
  letter-spacing: 0.03em;
}
.lead {
  max-width: 640px;
  margin: 20px auto 0;
  font-size: 18px;
  font-weight: 300;
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 36px;
}

.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-gold {
  background: var(--gold-gradient);
  color: var(--navy-950);
  box-shadow: 0 6px 24px rgba(216, 162, 56, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(216, 162, 56, 0.4); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); }

/* Sections */
.section { padding: 104px 0; }
.section-head { text-align: center; margin-bottom: 56px; }
.section-head h2,
.about h2 { font-size: clamp(28px, 4vw, 40px); }
.section-lead { margin: 20px auto 0; color: var(--text-muted); }

.about { background: var(--navy-950); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.about-copy p { margin: 0 0 18px; color: var(--text-muted); font-weight: 300; font-size: 18px; }
.about-copy p:last-child { margin-bottom: 0; }

.services { background: linear-gradient(180deg, var(--navy-950), var(--navy-900)); }
.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.card {
  padding: 32px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(12, 47, 99, 0.55), rgba(2, 21, 51, 0.4));
  transition: transform 0.25s, border-color 0.25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card h3 { font-size: 19px; color: var(--gold-light); margin: 20px 0 10px; }
.card p { margin: 0; font-size: 16px; color: var(--text-muted); font-weight: 300; }

.card-icon,
.contact-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: radial-gradient(circle at 30% 30%, var(--navy-700), var(--navy-900));
}
.card-icon svg,
.contact-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.process { background: var(--navy-900); }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: none;
}
.steps li {
  position: relative;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.steps li::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold-light);
  box-shadow: 0 0 12px var(--gold);
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num {
  font-family: "Cinzel", Georgia, serif;
  font-size: 34px;
  color: var(--blue);
  opacity: 0.9;
}
.steps h3 { font-size: 19px; color: var(--gold-light); margin: 6px 0 8px; }
.steps p { margin: 0; color: var(--text-muted); font-weight: 300; font-size: 16px; }

.contact {
  background:
    radial-gradient(ellipse 60% 70% at 50% 100%, var(--navy-800), var(--navy-950) 70%);
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 340px));
  justify-content: center;
  gap: 24px;
}
.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 36px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(2, 21, 51, 0.6);
  text-decoration: none;
  transition: transform 0.25s, border-color 0.25s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--gold); }
.contact-icon { margin-bottom: 8px; }
.contact-label {
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-value {
  font-family: "Cinzel", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--gold-light);
  white-space: nowrap;
}
.contact-location {
  margin: 40px 0 0;
  text-align: center;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-size: 13px;
  color: var(--gold);
}

.site-footer {
  padding: 28px 0;
  border-top: 1px solid var(--line);
  background: var(--navy-950);
  font-size: 14px;
  color: var(--text-muted);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}
.footer-brand { font-family: "Cinzel", Georgia, serif; color: var(--gold); letter-spacing: 0.1em; }

:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Language-specific type */
:root:lang(zh) {
  --font-display: "Cinzel", "Songti SC", "Noto Serif SC", "STSong", serif;
  --font-body: "Jost", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}
:root:lang(am) {
  --font-display: "Cinzel", "Noto Serif Ethiopic", serif;
  --font-body: "Jost", "Noto Sans Ethiopic", sans-serif;
}
:root:lang(zh) .eyebrow,
:root:lang(am) .eyebrow { letter-spacing: 0.16em; font-size: 14px; }
:root:lang(zh) h1,
:root:lang(zh) h2,
:root:lang(am) h1,
:root:lang(am) h2 { letter-spacing: 0.04em; line-height: 1.35; }
:root:lang(zh) h3,
:root:lang(am) h3 { font-weight: 700; }

/* Language switcher */
.lang-switch { display: flex; align-items: center; gap: 4px; margin-left: 24px; }
.lang-switch a {
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  color: var(--text-muted);
  transition: color 0.2s, background 0.2s;
}
.lang-switch a:hover { color: var(--gold-light); }
.lang-switch a[aria-current="page"] { color: var(--gold-light); background: rgba(216, 162, 56, 0.12); }
.lang-switch.mobile { margin: 16px 0 0; justify-content: center; }
.lang-switch.mobile a { border: 0; padding: 8px 14px; font-size: 15px; }
.lang-switch.footer { margin: 0; }

/* Why Rivot */
.why { background: var(--navy-900); }
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 56px;
}
.why-item { display: flex; gap: 20px; align-items: flex-start; }
.why-item .card-icon { flex: 0 0 52px; }
.why-item h3 { font-size: 19px; color: var(--gold-light); margin: 4px 0 8px; }
.why-item p { margin: 0; color: var(--text-muted); font-weight: 300; font-size: 16px; }

/* Products */
.products { background: linear-gradient(180deg, var(--navy-900), var(--navy-950)); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.product-col {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(12, 47, 99, 0.45), rgba(2, 21, 51, 0.3));
}
.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.product-head h3 { font-size: 20px; color: var(--gold-light); }
.product-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
.product-list li {
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2px solid var(--gold);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.product-list li span:last-child { overflow-wrap: anywhere; }
.card-icon.small { width: 46px; height: 46px; }
.card-icon.small svg { width: 22px; height: 22px; }
.product-note { margin: 32px 0 0; text-align: center; color: var(--text-muted); }

/* Why Ethiopia */
.ethiopia {
  background:
    radial-gradient(ellipse 70% 80% at 85% 20%, rgba(47, 99, 216, 0.18), transparent 60%),
    var(--navy-950);
}
.fact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.fact { padding: 28px 0 0; border-top: 2px solid var(--gold); }
.fact .card-icon { margin-bottom: 16px; }
.fact h3 { font-size: 18px; color: var(--gold-light); margin: 0 0 10px; }
.fact p { margin: 0; color: var(--text-muted); font-weight: 300; font-size: 16px; }

/* FAQ */
.faq { background: var(--navy-950); }
.faq-inner { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--gold-light); }
.faq-item p { margin: 0 4px 22px; color: var(--text-muted); font-weight: 300; }

/* Call band */
.call-band {
  padding: 56px 0;
  background: linear-gradient(100deg, var(--navy-700), var(--navy-900) 60%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.call-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.call-band h2 { font-size: clamp(24px, 3vw, 32px); }
.call-band p { margin: 8px 0 0; color: var(--text-muted); }

/* Tablet */
@media (max-width: 960px) {
  .card-grid,
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 24px; }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-toggle { display: block; }
  .site-nav,
  .lang-switch:not(.mobile):not(.footer) { display: none; }
}

/* Mobile */
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .brand img { width: 64px; }
  .brand-name { font-size: 18px; }
  .hero { padding: 16px 0 72px; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  .card-grid,
  .steps,
  .contact-grid,
  .why-grid,
  .product-grid,
  .fact-grid { grid-template-columns: 1fr; }
  .product-col { padding: 24px 20px; }
  .call-band-inner { flex-direction: column; text-align: center; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}

/* Motion — CSS only. Reveal-on-scroll uses scroll-driven animations where
   supported; elsewhere content is simply visible. Reveals animate the
   individual `translate`/`scale` properties so hover `transform`s still work. */
@keyframes rise { from { opacity: 0; translate: 0 28px; } }
@keyframes logo-in { from { opacity: 0; scale: 0.92; filter: blur(6px); } }
@keyframes logo-breathe { 50% { filter: drop-shadow(0 0 28px rgba(216, 162, 56, 0.28)); } }
@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 6% 4%; }
}
@keyframes sweep { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes grow { from { scale: 0 1; } }
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--gold); }
  50% { box-shadow: 0 0 0 6px rgba(216, 162, 56, 0.15), 0 0 18px var(--gold); }
}
@keyframes menu-in { from { opacity: 0; translate: 0 -8px; } }

/* Hero: staggered entrance, slow ambient light, shimmering title */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  animation: drift 16s ease-in-out infinite;
}
.hero::before {
  width: 420px;
  height: 420px;
  top: -120px;
  left: -140px;
  background: rgba(30, 80, 160, 0.35);
}
.hero::after {
  width: 360px;
  height: 360px;
  right: -120px;
  bottom: 40px;
  background: rgba(216, 162, 56, 0.14);
  animation-duration: 20s;
  animation-direction: reverse;
}
.hero .container { position: relative; z-index: 1; }
.hero-logo {
  animation:
    logo-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    logo-breathe 6s ease-in-out 1.2s infinite;
}
.hero .eyebrow,
.hero h1,
.hero .lead,
.hero-actions { animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.hero .eyebrow { animation-delay: 0.35s; }
.hero h1 { animation-delay: 0.5s; }
.hero .lead { animation-delay: 0.65s; }
.hero-actions { animation-delay: 0.8s; }
.hero h1 {
  background-image: linear-gradient(110deg, var(--gold-deep) 0%, var(--gold) 30%, #fff1b8 45%, var(--gold-light) 55%, var(--gold) 70%, var(--gold-deep) 100%);
  background-size: 200% 100%;
  animation:
    rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.5s both,
    shimmer 7s linear 1.5s infinite;
}
.hero-glow {
  background: linear-gradient(90deg, transparent, var(--gold), #fff1b8, var(--gold), transparent);
  background-size: 50% 100%;
  background-repeat: no-repeat;
  animation: sweep 6s linear infinite;
}

/* Gold button shine on hover */
.btn-gold { position: relative; overflow: hidden; }
.btn-gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  translate: -120% 0;
  transition: translate 0.7s;
}
.btn-gold:hover::after { translate: 120% 0; }

/* Icons glow and turn slightly when their card is hovered */
.card-icon,
.contact-icon { transition: box-shadow 0.3s, rotate 0.4s; }
.card:hover .card-icon,
.contact-card:hover .contact-icon,
.why-item:hover .card-icon { box-shadow: 0 0 22px rgba(216, 162, 56, 0.45); rotate: -8deg; }
.card:hover,
.contact-card:hover { box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35); }

/* Process timeline dots pulse in turn */
.steps li::before { animation: pulse-dot 3.2s ease-in-out infinite; }
.steps li:nth-child(2)::before { animation-delay: 0.8s; }
.steps li:nth-child(3)::before { animation-delay: 1.6s; }
.steps li:nth-child(4)::before { animation-delay: 2.4s; }

/* Call band: slow light sweep */
.call-band {
  background:
    linear-gradient(110deg, transparent 40%, rgba(216, 162, 56, 0.08) 50%, transparent 60%) 0 0 / 200% 100%,
    linear-gradient(100deg, var(--navy-700), var(--navy-900) 60%);
  animation: shimmer 9s linear infinite;
}

/* Mobile menu slides in */
.mobile-nav:popover-open { animation: menu-in 0.25s ease-out; }

/* Header gains depth once the page scrolls */
@keyframes header-shadow { to { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); } }

@supports (animation-timeline: view()) {
  .site-header {
    animation: header-shadow linear both;
    animation-timeline: scroll();
    animation-range: 0 120px;
  }
  .section-head,
  .about-grid > *,
  .card,
  .why-item,
  .product-col,
  .product-note,
  .fact,
  .steps li,
  .faq-item,
  .call-band-inner,
  .contact-card {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 70%;
  }
  .gold-rule {
    animation: grow linear both;
    animation-timeline: view();
    animation-range: entry 20% entry 90%;
  }
  /* Later items in a row arrive a beat after the first */
  :is(.card, .why-item, .product-col, .fact, .steps li, .contact-card, .about-grid > *):nth-child(2) { animation-range: entry 8% entry 78%; }
  :is(.card, .why-item, .fact, .steps li, .contact-card):nth-child(3) { animation-range: entry 16% entry 86%; }
  :is(.card, .why-item, .fact, .steps li):nth-child(4) { animation-range: entry 24% entry 94%; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { animation: none !important; }
}
