:root {
  --accent-primary: #6366f1;
  --accent-secondary: #a855f7;
  --accent-cyan: #37b7ff;
  --accent-coral: #ff6542;
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, .68);
  --bg-card-hover: rgba(30, 41, 59, .88);
  --border-color: rgba(148, 163, 184, .15);
  --border-highlight: rgba(99, 102, 241, .5);
  --text-heading: #f8fafc;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --gradient-primary: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  --glow-1: rgba(99, 102, 241, .15);
  --glow-2: rgba(55, 183, 255, .09);
  --glow-3: rgba(168, 85, 247, .1);
  --transition: all .3s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-body);
  font-family: Outfit, Inter, system-ui, sans-serif;
  line-height: 1.65;
  background: var(--bg-main);
}
body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 48% at 50% 0%, var(--glow-1, rgba(99, 102, 241, .15)), transparent 62%),
    radial-gradient(circle 480px at 8% 42%, var(--glow-2, rgba(55, 183, 255, .09)), transparent 72%),
    radial-gradient(circle 560px at 92% 80%, var(--glow-3, rgba(168, 85, 247, .1)), transparent 72%);
}
.shell { width: min(1000px, calc(100% - 48px)); margin: auto; position: relative; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-color);
}
.brand, .back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-heading);
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
}
.brand:hover, .back:hover { color: #fff; transform: translateY(-1px); }
.brand img { width: 42px; height: 42px; border-radius: 12px; }
.back { color: #c7d2fe; }
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 54px;
  align-items: center;
  padding: 64px 0 78px;
}
.eyebrow {
  color: #a5b4fc;
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.hero h1 {
  margin: 16px 0 24px;
  color: var(--text-heading);
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: .88;
  letter-spacing: -.065em;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--accent-cyan), #818cf8 62%, var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.lead { max-width: 650px; color: var(--text-muted); font-size: clamp(1.05rem, 2vw, 1.3rem); }
.status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid rgba(55, 183, 255, .2);
  border-radius: 99px;
  background: rgba(55, 183, 255, .09);
  color: #7dd3fc;
  font-weight: 800;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 0 5px rgba(55, 183, 255, .12), 0 0 16px rgba(55, 183, 255, .7);
}
.hero-art { position: relative; min-height: 430px; display: grid; place-items: center; }
.hero-art::before {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border-radius: 46% 54% 52% 48%;
  background: var(--gradient-primary);
  transform: rotate(-8deg);
  box-shadow: 0 35px 80px rgba(49, 46, 129, .45), 0 0 70px rgba(55, 183, 255, .13);
}
.hero-art img {
  position: relative;
  width: min(290px, 75vw);
  border-radius: 28%;
  filter: drop-shadow(0 22px 32px rgba(2, 6, 23, .55));
  transform: rotate(3deg);
}
.actions, .legal-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button, .chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition);
}
.button { background: var(--gradient-primary); color: #fff; box-shadow: 0 12px 24px rgba(99, 102, 241, .24); }
.button:hover, .chip:hover { transform: translateY(-2px); box-shadow: 0 14px 28px rgba(99, 102, 241, .28); }
.button.secondary, .chip {
  border: 1px solid var(--border-color);
  background: rgba(30, 41, 59, .7);
  color: #c7d2fe;
}
.section { padding: 40px 0; }
.section h2 { margin: 0 0 24px; color: var(--text-heading); font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.035em; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card, .document {
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-card);
  box-shadow: 0 18px 55px rgba(2, 6, 23, .25);
  backdrop-filter: blur(16px);
}
.card { padding: 26px; transition: var(--transition); }
.card:hover { border-color: var(--border-highlight); background: var(--bg-card-hover); transform: translateY(-3px); }
.card b { display: block; margin: 12px 0 7px; color: var(--text-heading); font-size: 1.15rem; }
.card > span:last-child { color: var(--text-muted); }
.icon { color: #818cf8; font-size: 1.7rem; }
.document { max-width: 820px; margin: 38px auto 70px; padding: clamp(24px, 5vw, 54px); }
.document h1 { margin: .4em 0; color: var(--text-heading); font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; }
.document h2 { margin-top: 34px; color: #a5b4fc; font-size: 1.25rem; }
.document p, .document li { color: var(--text-muted); }
.document a { color: #7dd3fc; }
.notice {
  padding: 16px 18px;
  border-left: 4px solid var(--accent-cyan);
  border-radius: 0 14px 14px 0;
  background: rgba(55, 183, 255, .07);
}
footer { margin-top: 38px; padding: 40px 0 56px; border-top: 1px solid var(--border-color); color: var(--text-muted); text-align: center; }

/* Shared language widget: align the global component with the CodExa portal. */
.i18n-btn { border-color: rgba(99, 102, 241, .4) !important; background: rgba(15, 23, 42, .9) !important; color: #c7d2fe !important; }
.i18n-btn:hover { border-color: #818cf8 !important; box-shadow: 0 6px 20px rgba(99, 102, 241, .25) !important; }
.i18n-menu { border-color: rgba(99, 102, 241, .35) !important; background: #111827 !important; }
.i18n-item:hover { background: rgba(99, 102, 241, .1) !important; color: #c7d2fe !important; }
.i18n-item.active { border-color: rgba(99, 102, 241, .3) !important; background: rgba(99, 102, 241, .18) !important; }

[dir="rtl"] .notice { border-right: 4px solid var(--accent-cyan); border-left: 0; border-radius: 14px 0 0 14px; }
@media (max-width: 800px) {
  .shell { width: min(100% - 32px, 1000px); }
  .topbar { padding-right: 96px; }
  [dir="rtl"] .topbar { padding-right: 0; padding-left: 96px; }
  .hero { grid-template-columns: 1fr; padding-top: 32px; text-align: center; }
  .lead { margin-inline: auto; }
  .actions, .legal-links { justify-content: center; }
  .hero-art { min-height: 330px; order: -1; }
  .hero-art::before { width: 260px; height: 260px; }
  .hero-art img { width: 225px; }
  .grid { grid-template-columns: 1fr; }
}
