@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=EB+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');

.nexroc-wrap{
  --ink:#161513;
  --cream:#ffffff;
  --parchment:#f7f5f0;
  --parchment-soft:#fbfaf7;
  --parchment-dark:#ece8df;
  --brass:#a3803f;
  --brass-deep:#7c5f2c;
  --muted:#726d63;
  --hairline:rgba(22,21,19,.12);
  --hairline-strong:rgba(124,95,44,.24);
  font-family:'EB Garamond',serif;
}

.nexroc-wrap *{
  box-sizing:border-box;
}

.nexroc-wrap #overlay{
  position:fixed;
  inset:0;
  z-index:999999;
  background:rgba(10,9,6,.68);
  backdrop-filter:blur(2px);
  display:none;
  align-items:center;
  justify-content:center;
  padding:24px;
  opacity:0;
  transition:opacity .5s ease;
}

.nexroc-wrap #overlay.visible{ display:flex; }
.nexroc-wrap #overlay.show{ opacity:1; }

.nexroc-wrap #modal{
  width:100%;
  max-width:860px;
  background:var(--cream);
  color:var(--ink);
  box-shadow:0 40px 100px rgba(22,21,19,.22);
  border:1px solid var(--hairline);
  padding:0;
  overflow:hidden;
  transform:translateY(16px);
  transition:transform .5s ease;
}

.nexroc-wrap #overlay.show #modal{ transform:translateY(0); }

.nexroc-wrap .terms-header{
  padding:32px 46px 28px;
  border-bottom:1px solid var(--hairline);
}

.nexroc-wrap .terms-header h1{
  font-family:'Cormorant Garamond',serif;
  font-size:30px;
  font-weight:600;
  letter-spacing:.02em;
  margin:0 0 18px;
  color:var(--ink);
}

.nexroc-wrap .terms-header p{
  font-size:16px;
  font-weight:500;
  line-height:1.45;
  margin:0;
  color:var(--ink);
}

.nexroc-wrap .terms-header p + p{ margin-top:0; }

.nexroc-wrap .m-body{ padding:30px 46px 28px; }

.nexroc-wrap .proceed-intro{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  margin:0 0 18px;
}

.nexroc-wrap .proceed-copy{
  min-width:0;
  flex:1 1 auto;
}

.nexroc-wrap .m-body h2{
  font-family:'Cormorant Garamond',serif;
  font-weight:500;
  font-size:36px;
  margin:0 0 7px;
  letter-spacing:.01em;
}

.nexroc-wrap .m-sub{
  font-size:15px;
  color:var(--muted);
  margin:0;
  max-width:570px;
  line-height:1.5;
}

/* ---------- LANGUAGE RAIL ---------- */

.nexroc-wrap .language-rail{
  flex:0 0 auto;
  min-width:280px;
  max-width:320px;
  padding:14px 16px 15px;
  border:1px solid var(--hairline-strong);
  background:linear-gradient(180deg, var(--parchment-soft), var(--parchment));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.55);
}

.nexroc-wrap .language-kicker{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 12px;
}

.nexroc-wrap .language-kicker::before,
.nexroc-wrap .language-kicker::after{
  content:'';
  flex:1 1 auto;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(124,95,44,.35));
}

.nexroc-wrap .language-kicker::after{
  background:linear-gradient(90deg, rgba(124,95,44,.35), transparent);
}

.nexroc-wrap .language-label{
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.22em;
  color:var(--brass-deep);
  white-space:nowrap;
}

.nexroc-wrap .language-list{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.nexroc-wrap .lang-chip{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:58px;
  padding:9px 10px;
  border:1px solid rgba(22,21,19,.13);
  background:rgba(255,255,255,.58);
  color:var(--ink);
  text-decoration:none;
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  transition:all .18s ease;
}

.nexroc-wrap .lang-chip:hover,
.nexroc-wrap .lang-chip:focus{
  transform:translateY(-1px);
  border-color:var(--brass);
  background:rgba(163,128,63,.10);
  outline:none;
}

.nexroc-wrap .lang-chip[aria-current="page"]{
  border-color:var(--brass);
  background:linear-gradient(180deg, rgba(163,128,63,.14), rgba(163,128,63,.05));
  box-shadow:inset 0 0 0 1px rgba(163,128,63,.12);
}

.nexroc-wrap .lang-flag{
  font-size:14px;
  line-height:1;
}

/* ---------- INVESTOR CARDS ---------- */

.nexroc-wrap .cards{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:14px;
  margin:0;
}

.nexroc-wrap .card{
  border:1px solid var(--hairline);
  background:transparent;
  padding:21px 20px 22px;
  cursor:pointer;
  transition:border-color .2s ease, background .2s ease, transform .2s ease;
}

.nexroc-wrap .card:hover{ transform:translateY(-2px); }

.nexroc-wrap .card.selected{
  border-color:var(--brass);
  background:linear-gradient(180deg, rgba(163,128,63,.09), rgba(163,128,63,.03));
}

.nexroc-wrap .card-icon{
  width:27px;
  height:27px;
  margin-bottom:12px;
  color:var(--brass-deep);
}

.nexroc-wrap .card-icon svg{ width:100%; height:100%; }

.nexroc-wrap .card h3{
  font-family:'Cormorant Garamond',serif;
  font-weight:600;
  font-size:19px;
  margin:0 0 7px;
  letter-spacing:.01em;
}

.nexroc-wrap .card p{
  font-size:13.5px;
  line-height:1.5;
  color:var(--muted);
  margin:0;
}

/* ---------- FOOTER ---------- */

.nexroc-wrap .m-footer{
  background:var(--cream);
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:19px 46px 24px;
  border-top:1px solid var(--hairline);
}

.nexroc-wrap .foot-links{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:20px;
}

.nexroc-wrap .foot-links a{
  color:var(--muted);
  font-size:11px;
  letter-spacing:.1em;
  text-transform:uppercase;
  text-decoration:none;
  transition:color .15s ease;
}

.nexroc-wrap .foot-links a.underlined{
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:4px;
}

.nexroc-wrap .foot-links a:hover{
  color:var(--ink);
}

.nexroc-wrap .m-btns{
  display:flex;
  align-items:center;
  gap:10px;
}

.nexroc-wrap .btn{
  padding:12px 27px;
  font-family:'EB Garamond',serif;
  font-size:12px;
  letter-spacing:.16em;
  text-transform:uppercase;
  cursor:pointer;
  border:1px solid var(--ink);
  background:transparent;
  color:var(--ink);
  transition:background .2s ease, color .2s ease, border-color .2s ease;
}

.nexroc-wrap .btn.primary{
  background:var(--ink);
  color:var(--cream);
}

.nexroc-wrap .btn.primary:hover{
  background:var(--brass-deep);
  border-color:var(--brass-deep);
}

.nexroc-wrap .btn:not(.primary):hover{
  background:rgba(21,19,15,.06);
}

/* ---------- MOBILE ---------- */

@media(max-width:760px){
  .nexroc-wrap #overlay{ padding:14px; }
  .nexroc-wrap #modal{ max-height:calc(100vh - 28px); overflow-y:auto; }
  .nexroc-wrap .terms-header{ padding:24px 24px 22px; }
  .nexroc-wrap .terms-header h1{ font-size:27px; margin-bottom:16px; }
  .nexroc-wrap .terms-header p{ font-size:15px; }
  .nexroc-wrap .m-body{ padding:25px 24px 24px; }
  .nexroc-wrap .proceed-intro{ flex-direction:column; gap:16px; }
  .nexroc-wrap .m-body h2{ font-size:32px; }
  .nexroc-wrap .language-rail{ min-width:0; max-width:none; width:100%; }
  .nexroc-wrap .cards{ grid-template-columns:1fr; }
  .nexroc-wrap .m-footer{
    flex-direction:column;
    align-items:stretch;
    padding:18px 24px 22px;
  }
  .nexroc-wrap .foot-links{
    justify-content:center;
    flex-wrap:wrap;
    gap:16px;
  }
  .nexroc-wrap .m-btns{ width:100%; }
  .nexroc-wrap .btn{ flex:1; }
}