/* ============================================================
   MEXX VENTURES — shared stylesheet
   Dark premium theme: near-black base, glowing orange accents
   ============================================================ */

:root {
  --bg: #0b0a08;
  --bg-soft: #12100c;
  --surface: #16130e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f2ec;
  --muted: #a59f93;
  --orange: #ff7a1a;
  --orange-soft: #ffb46b;
  --grad: linear-gradient(135deg, #ffc46b 0%, #ff7a1a 45%, #ff4d0d 100%);
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, .wordmark {
  font-family: "Space Grotesk", "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.12;
}

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

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- ambient glow orbs ---------- */

.orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.orb--hero {
  width: 560px;
  height: 560px;
  top: 60px;
  right: -120px;
  background: radial-gradient(circle at 38% 38%, #ffd9a0 0%, #ffa14a 30%, #ff5e1a 62%, rgba(255, 60, 10, 0) 74%);
  filter: blur(2px);
  opacity: 0.95;
}

.orb--faint {
  width: 700px;
  height: 700px;
  bottom: -420px;
  left: -260px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.22) 0%, rgba(255, 122, 26, 0) 65%);
}

/* thin vertical hairlines behind the hero, like the reference */
.hairlines {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 25% 100%;
  background-position: 12.5% 0;
  opacity: 0.5;
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}

/* ---------- navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 10, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.wordmark {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
}

.wordmark .dot {
  color: var(--orange);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}

.nav__links > li { position: relative; }

.nav__links a {
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}

.nav__links a:hover,
.nav__links a.is-active { color: var(--text); }

/* dropdown */
.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  background: none;
  border: none;
  font: inherit;
  font-size: 0.86rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
  padding: 24px 0;
}

.dropdown__toggle:hover { color: var(--text); }

.dropdown__toggle .caret {
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 230px;
  background: #171410;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  padding: 8px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.dropdown:hover .dropdown__menu,
.dropdown.is-open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown:hover .caret,
.dropdown.is-open .caret {
  transform: rotate(-135deg) translateY(-3px);
}

.dropdown__menu a {
  display: block;
  padding: 12px 16px;
  border-radius: 9px;
  color: var(--text);
  font-size: 0.86rem;
}

.dropdown__menu a span {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

.dropdown__menu a:hover {
  background: rgba(255, 122, 26, 0.1);
  color: var(--orange-soft);
}

/* language switcher */
.lang-switch {
  display: flex;
  gap: 2px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 5px 11px;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.lang-switch button:hover { color: var(--text); }

.lang-switch button.is-active {
  background: rgba(255, 122, 26, 0.16);
  color: var(--orange-soft);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn--solid {
  background: var(--grad);
  color: #1a0d02;
  box-shadow: 0 8px 30px rgba(255, 110, 26, 0.35);
}

.btn--solid:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(255, 110, 26, 0.5);
}

.btn--ghost {
  border: 1px solid rgba(255, 150, 60, 0.55);
  color: var(--orange-soft);
}

.btn--ghost:hover {
  background: rgba(255, 122, 26, 0.12);
  color: #ffd0a0;
}

/* pill label, like the floating chips in the reference */
.chip {
  display: inline-block;
  padding: 8px 18px;
  border: 1px solid rgba(255, 150, 60, 0.45);
  border-radius: 999px;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-soft);
  background: rgba(255, 122, 26, 0.07);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 110px 0 130px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg,
    rgba(11, 10, 8, 0.94) 0%,
    rgba(11, 10, 8, 0.72) 45%,
    rgba(11, 10, 8, 0.25) 70%,
    rgba(11, 10, 8, 0) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 700;
  margin: 26px 0 22px;
  text-shadow: 0 0 34px rgba(255, 255, 255, 0.18);
}

.hero h1 .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 520px;
  margin-bottom: 38px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- sections ---------- */

.section {
  position: relative;
  padding: 96px 0;
  border-bottom: 1px solid var(--line);
}

.section__head {
  max-width: 620px;
  margin-bottom: 56px;
}

.section__head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 700;
  margin: 18px 0 14px;
}

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

.eyebrow {
  font-size: 0.76rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--orange);
  font-weight: 600;
}

/* ---------- cards ---------- */

.grid {
  display: grid;
  gap: 22px;
}

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

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.card:hover {
  border-color: rgba(255, 140, 50, 0.5);
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 700;
  margin: 18px 0 10px;
}

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

.card__icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 140, 50, 0.35);
}

.card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange-soft);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* big entity cards on the landing page */
.entity-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 330px;
  background:
    radial-gradient(600px 240px at 110% -30%, rgba(255, 122, 26, 0.16), transparent 60%),
    var(--surface);
}

.entity-card .btn { align-self: flex-start; margin-top: 28px; }

.entity-card h3 { font-size: 1.5rem; }

/* ---------- stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  text-align: center;
}

.stat {
  padding: 30px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.stat .num {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat .label {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- feature list (checkmarks) ---------- */

.feature-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

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

.feature-list li::before {
  content: "";
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffb46b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 12px no-repeat,
    rgba(255, 122, 26, 0.12);
  border: 1px solid rgba(255, 140, 50, 0.4);
}

/* two-column split section */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* ---------- page hero (subpages) ---------- */

.page-hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.page-hero .orb--hero {
  width: 460px;
  height: 460px;
  top: -40px;
  right: -140px;
  opacity: 0.8;
}

/* dark scrim over the orb so hero text keeps contrast; painted after the
   orb (z-index 0) but below the z-index:1 hero content */
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(90deg,
    rgba(11, 10, 8, 0.94) 0%,
    rgba(11, 10, 8, 0.72) 45%,
    rgba(11, 10, 8, 0.25) 70%,
    rgba(11, 10, 8, 0) 100%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  margin: 24px 0 18px;
  position: relative;
  z-index: 1;
}

.page-hero p.lead {
  position: relative;
  z-index: 1;
  color: var(--muted);
  max-width: 560px;
  font-size: 1.03rem;
}

.breadcrumb {
  position: relative;
  z-index: 1;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--orange-soft); }
.breadcrumb .sep { margin: 0 10px; color: var(--orange); }

/* ---------- CTA band ---------- */

.cta-band {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 90px 0;
}

.cta-band .orb--cta {
  position: absolute;
  width: 520px;
  height: 520px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.2) 0%, rgba(255, 122, 26, 0) 65%);
  pointer-events: none;
}

.cta-band .cta-actions {
  position: relative;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  margin-bottom: 16px;
  position: relative;
}

.cta-band p {
  color: var(--muted);
  margin-bottom: 34px;
  position: relative;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  background: #080706;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}

.footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 16px;
}

.footer p, .footer li, .footer a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer ul { list-style: none; display: grid; gap: 10px; }

.footer a:hover { color: var(--orange-soft); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .nav__links { gap: 22px; }
  .nav__links .hide-mobile { display: none; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .orb--hero { width: 400px; height: 400px; right: -160px; }
}

@media (max-width: 640px) {
  .nav__links { gap: 20px; }
  .nav__links .hide-mobile { display: none; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding: 70px 0 90px; }
  .orb--hero { opacity: 0.55; }
}
